Fix #5303: Stop styling commandline

Other third party themes should follow this recipe using
nesting and a :not
This commit is contained in:
Oliver Blanthorn 2025-12-03 12:51:04 +01:00
parent 22ab6b4f65
commit 749dd59903
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -11,13 +11,15 @@
--serif-font: EconomistSerif, Plantin, Garamond, serif;
}
html {
html:not(.TridactylCommandline) {
height: 100vh;
width: 100vw;
overflow: hidden;
font-family: var(--serif-font);
}
:not(.TridactylCommandline) {
body {
display: block;
height: 100%;
@ -41,7 +43,6 @@ figure, section, article, .notice,
h1, h2, h3, h4, h5, h6,
img, video, table {
break-inside: avoid;
-webkit-column-break-inside: avoid;
}
h1, h2, h3, h4, h5, h6 { break-after: avoid-column; }
@ -108,3 +109,4 @@ h2, h3 { margin-top: 0.5rem; }
margin-bottom: 0;
}
}
}