From 1876463e7c36c6050589f27b8b3bab40d828d885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 1 Oct 2023 21:24:17 +0200 Subject: [PATCH] math: hide unrendered math #663 --- static/css/theme.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/static/css/theme.css b/static/css/theme.css index 2e805beacf..0f8c6e0d11 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -1663,6 +1663,15 @@ input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-results-button, input[type="search"]::-webkit-search-results-decoration { display: none; } +@supports selector(.math:has(> mjx-container)){ + .math{ + visibility: hidden; + } + .math:has(> mjx-container){ + visibility: visible; + } +} + .math.align-left > mjx-container{ text-align: left !important; }