Selaa lähdekoodia

fix #2652 the same font size as parent heading. (#2661)

zz of NSFOCUS Security Team 1 kuukausi sitten
vanhempi
sitoutus
944348f3b2

+ 5 - 1
src/data/extra/themes/vue-dark/web.css

@@ -100,6 +100,10 @@ code {
     word-break: break-word;
 }
 
+:is(h1, h2, h3, h4, h5, h6) code {
+  font-size: inherit;
+}
+
 pre code {
     display: block;
     padding-left: 0.5em;
@@ -383,4 +387,4 @@ div.vx-plantuml-graph {
     border-color: #111 !important;
     background-color: #1E1E1E !important;
     color: #999 !important;
-}
+}

+ 4 - 3
src/data/extra/themes/vue-light/web.css

@@ -115,8 +115,9 @@ code {
     background-color: #f8f8f8;
     word-break: break-word;
 }
-:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code {
-    font-size: 0.9rem;
+
+:is(h1, h2, h3, h4, h5, h6) code {
+  font-size: inherit;
 }
 
 pre code {
@@ -428,4 +429,4 @@ h5 .vx-header-anchor{margin-top: -1px;}
 .vx-alert .code-toolbar pre[class*="language-"]{
     background-color: #f3f3f3 !important;
     border: 1px dashed #eee;
-}
+}