servnest/css/main.css

114 lines
1.4 KiB
CSS
Raw Normal View History

2022-05-31 23:53:19 +02:00
body {
margin: 1rem;
2022-05-31 23:53:19 +02:00
padding: 0;
background-color: var(--background-color);
color: var(--foreground-color);
font-family: system-ui, sans-serif;
2022-06-06 23:14:50 +02:00
font-size: 1rem;
line-height: 1.5em;
2022-06-06 23:14:50 +02:00
}
nav ul {
list-style-type: none;
display: inline;
margin: 0;
padding: 0;
}
nav li {
display: inline;
}
nav ul li ul li::before {
content: ' > ';
2022-05-31 23:53:19 +02:00
}
h1 {
2022-06-06 23:14:50 +02:00
font-size: 1.5rem;
display: inline;
}
h2 {
2023-01-21 02:52:28 +01:00
font-size: 1.4rem;
2022-05-31 23:53:19 +02:00
}
2023-01-21 02:52:28 +01:00
h3 {
font-size: 1.1rem;
}
2023-01-21 04:17:38 +01:00
main > *:not(pre, form), form > *:not(textarea), footer {
2022-06-06 23:14:50 +02:00
max-width: 40rem;
margin-left: auto;
margin-right: auto;
2022-06-16 15:08:50 +02:00
}
2022-08-11 16:39:31 +02:00
main > nav {
max-width: 30rem;
}
header, footer {
2022-05-31 23:53:19 +02:00
text-align: center;
margin-top: 0.8rem;
}
p {
margin-bottom: 1rem;
}
.breakable {
word-break: break-all;
}
::selection {
background-color: var(--foreground-color);
color: var(--background-color);
}
2022-06-06 23:14:50 +02:00
abbr {
text-decoration: underline 0.2em dotted;
}
2022-08-11 16:39:31 +02:00
pre {
margin: 0;
}
2022-11-01 00:26:57 +01:00
code {
white-space: nowrap;
}
2022-06-06 23:14:50 +02:00
a {
color: var(--foreground-color);
text-decoration: underline var(--svc-color) 0.2em;
2022-06-06 23:14:50 +02:00
}
a:hover {
text-decoration-thickness: 0.25em;
2022-06-06 23:14:50 +02:00
}
a:active {
text-decoration-thickness: 0.35em;
2022-06-06 23:14:50 +02:00
}
2022-07-20 20:03:45 +02:00
a[rel=help]:before {
2022-09-07 18:47:17 +02:00
content: '\202F';
font-size: 0.8rem;
2022-07-20 20:03:45 +02:00
}
2022-10-07 21:25:15 +02:00
a[rel=external]:after {
content: '\202F↗';
font-size: 0.8rem;
}
2022-06-06 23:14:50 +02:00
dt a {
font-size: 1.1rem;
}
2023-01-21 02:52:28 +01:00
table {
max-width: none;
border-spacing: 1ch 0;
}
table.zone td:first-child {
text-align: right;
}