reduce inline css usage,

fix additional font inconsistencies,
fix px unit used with 0 values
This commit is contained in:
2026-06-09 23:33:27 +00:00
parent 10ef24e76b
commit 8f72aaf255
12 changed files with 144 additions and 113 deletions
+24 -10
View File
@@ -5,7 +5,7 @@ input, select, textarea {
.input-grid {
display: grid;
gap: 5px 10px;
gap: 0.5em 1em;
align-items: center;
width: 100%;
}
@@ -13,12 +13,12 @@ input, select, textarea {
.input-grid * {
margin-top: 0;
margin-bottom: 0;
padding-top: 8px;
padding-bottom: 8px;
padding-top: 0.5em;
padding-bottom: 0.5em;
}
.input-grid input {
padding: 8px;
padding: 0.5em;
}
.input-grid img {
@@ -34,9 +34,8 @@ legend {
width: 100%;
margin: 0;
padding: 0;
line-height: 1.5em;
margin-top: 0.25lh;
margin-bottom: 0.25lh;
margin-top: 0.25em;
margin-bottom: 0.25em;
}
fieldset {
@@ -45,7 +44,7 @@ fieldset {
}
fieldset > *:last-child {
margin-bottom: 8px;
margin-bottom: 0.5em;
}
fieldset > .input-grid {
@@ -67,7 +66,7 @@ input[type="radio"] {
}
.w3-select, select {
padding: 8px;
padding: 0.5em;
}
.w3-check {
@@ -78,10 +77,25 @@ input[type="radio"] {
:not(.input-grid) .input-grid + * {
display: inline-block;
width: 100%;
margin-top: 5px;
margin-top: 0.5em;
}
dialog {
margin: auto;
max-width: calc(min(100% - 16px, 80ch));
color: var(--main-text-color);
}
dialog #prompt {
margin-top: 1em;
margin-bottom: 1em;
text-align: center;
}
dialog button[value="confirm"] {
background-color: var(--positive-color, #0f0); color: var(--lightbg-text-color, black);
}
dialog button[value="cancel"] {
background-color: var(--negative-color, #f00); color: var(--lightbg-text-color, black);
}
+3 -2
View File
@@ -53,6 +53,7 @@ header {
}
header h1 {
font-size: var(--small-font-size);
margin: 0;
background-color: var(--nav-header-bg-color);
color: var(--nav-header-text-color);
@@ -67,8 +68,8 @@ nav {
nav a, header h1, label[for="navtoggle"] {
text-align: left;
padding-left: 8px;
padding-right: 8px;
padding-left: 0.5em;
padding-right: 0.5em;
text-decoration: none;
vertical-align: middle;
height: 2em;
+19 -6
View File
@@ -44,22 +44,35 @@
}
}
*, h1, h2, h3, p {
*, h1, h2, h3, h4, h5, h6, p {
box-sizing: border-box;
font-family: monospace;
}
h1, p {
font-size: var(--small-font-size);
line-height: normal;
margin: 0;
padding: 0;
}
h2 {
font-size: var(--large-font-size);
margin-top: 0.5em;
margin-bottom: 0.5em;
}
h3 {
font-size: var(--medium-font-size);
margin-top: 0.5em;
margin-bottom: 0.5em;
}
h4, legend {
font-size: var(--small-font-size);
text-decoration: underline;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
p {
font-size: var(--small-font-size);
}
html {