junk/acct/main.css
2025-06-02 21:20:00 +08:00

207 lines
3.4 KiB
CSS

:root {
--fore: #202020;
--back: #f8f8f8;
--theme: #3377ff;
--descent: #b4dcff;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Noto Sans CJK SC', 'Microsoft YaHei UI', 'Noto Sans', sans-serif;
font-size: large;
color: var(--fore);
background-color: var(--back);
text-align: justify;
}
section, main, header, footer {
margin: 1em auto;
width: 21cm;
max-width: 100%;
padding: 0 8pt;
}
footer {
font-size: small;
opacity: 0.8;
margin: 8em auto;
text-align: center;
}
.center {
text-align: center;
}
h1 {
font-size: 1.8em;
}
h1:before {
content: '《 '
}
h1:after {
content: ' 》'
}
h2 {
font-size: 1.6em;
}
h2:before {
content: '〈 '
}
h2:after {
content: ' 〉'
}
h3 {
font-size: 1.4em;
}
h1, h2, h3 {
text-align: center;
margin: 1.5em;
}
p {
margin: 12pt 0;
}
hr {
border: none;
border-top: 1pt var(--fore) dashed;
height: 0;
margin: 8pt 0;
}
label {
display: inline-block;
margin: 4pt 8pt;
}
main.frontpage {
text-align: center;
}
main.frontpage > p {
font-size: larger;
}
input, button, select {
font: inherit;
background-color: inherit;
color: var(--fore);
border: 2pt solid var(--theme);
border-radius: 0;
text-align: center;
margin: 8pt;
padding: 4pt;
display: inline-block;
}
input[type="text"],
input[type="number"],
select {
width: 10em;
}
input.right {
background-color: #84ff84;
}
input.wrong {
background-color: #ff8484;
}
a.button, button {
display: inline-block;
background-color: var(--back);
text-decoration: none;
padding: 4pt 8pt;
margin: 0 8pt;
min-width: 6em;
border: 2pt solid var(--theme);
border-radius: 2em;
font-weight: bold;
transition: all 0.3s ease-out;
}
a.button:any-link, button {
color: var(--theme);
border: 2pt solid var(--theme);
}
a.button:hover, button:hover {
color: var(--back);
background-color: var(--theme);
}
main.frontpage > p > a {
padding: 1em 2em;
margin-bottom: 1em;
min-width: 8em;
border-radius: 2em;
transition: all 0.3s ease-out;
}
a:any-link {
color: #3333ff;
transition: color 0.3s ease;
}
a:hover {
color: #3380ff;
}
table {
width: 100%;
white-space: nowrap;
margin-bottom: 3em;
}
.to-be-filled, table td:nth-child(1) > abbr {
/* background-color: #f0f0f0;
color: #f0f0f0; */
color: transparent;
transition: all 0.2s ease;
display: inline-block;
padding: 0 0.5em;
/* padding: 0; */
min-width: 4em;
cursor: help;
text-decoration: none;
border-bottom: 1pt solid var(--fore);
}
.to-be-filled:hover,
.to-be-filled.shown,
table td:nth-child(1) > abbr:hover,
table td:nth-child(1) > abbr.shown {
color: var(--fore);
}
table td:nth-child(2),
table td:nth-child(3) {
width: 4em;
text-align: right;
text-align: end;
}
@media (prefers-color-scheme: dark) {
:root {
--back: #202020;
--fore: #e0e0e0;
--theme: #337fff;
--descent: #457fff;
}
a:any-link {
color: #3380ff;
}
a:hover {
color: #1870ff;
}
}
@media print {
body {
font-size: 12pt;
}
h1, h2, h3 {
text-align: center;
margin: 16pt 0;
font-size: 16pt;
}
table {
margin-bottom: 1em;
}
footer, .print-hide {
display: none;
}
}