docs/styles.css

357 lines
5.1 KiB
CSS
Raw Normal View History

2021-12-20 04:39:28 +01:00
body {
2022-04-25 03:56:05 +02:00
font-family: "Segoe UI", sans-serif;
2021-12-22 04:41:57 +01:00
line-height: 1.35;
2021-12-21 02:19:43 +01:00
max-width: 1000px;
2021-12-20 05:03:59 +01:00
margin: 16px auto;
color: #222;
2021-12-21 02:19:43 +01:00
padding: 0 16px;
2021-12-20 04:39:28 +01:00
}
table {
border-collapse: collapse;
letter-spacing: .02em;
2021-12-20 04:50:51 +01:00
max-width: 100%;
overflow-x: auto;
display: block;
2021-12-20 04:39:28 +01:00
}
2021-12-28 23:29:33 +01:00
2021-12-22 04:41:57 +01:00
table.code {
font-family: monospace;
}
2021-12-20 04:39:28 +01:00
thead {
font-weight: bold;
2022-04-11 20:40:28 +02:00
border-bottom: 2px solid currentColor;
2021-12-20 04:39:28 +01:00
}
2022-11-18 05:49:39 +01:00
svg {
transform: translateZ(0);
}
2021-12-20 04:39:28 +01:00
td {
border: 1px solid #111;
padding: 2px;
min-width: 32px;
}
2021-12-28 23:29:33 +01:00
2021-12-22 04:41:57 +01:00
table:not(.code) td {
padding: 2px 6px;
}
2021-12-28 23:29:33 +01:00
2021-12-22 04:41:57 +01:00
table.code td {
text-align: center;
}
2021-12-20 04:39:28 +01:00
td a {
display: block;
padding: 4px 8px;
}
2021-12-20 04:50:51 +01:00
p {
word-break: break-word;
}
2022-01-17 23:10:57 +01:00
img {
max-width: 100%;
}
2021-12-20 04:39:28 +01:00
code {
2021-12-28 01:26:42 +01:00
vertical-align: middle;
2021-12-20 04:39:28 +01:00
letter-spacing: .02em;
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f9f2f4;
border-radius: 4px;
2021-12-20 04:50:51 +01:00
word-break: break-word;
2021-12-20 04:39:28 +01:00
}
2021-12-28 23:29:33 +01:00
2022-01-17 23:10:57 +01:00
dfn {
border-bottom: 1px dashed currentColor;
cursor: help;
}
2021-12-28 23:29:33 +01:00
td>code {
2021-12-28 01:26:42 +01:00
word-break: normal;
}
2021-12-28 23:29:33 +01:00
code>a {
2021-12-21 02:19:43 +01:00
color: inherit;
}
2021-12-28 23:29:33 +01:00
pre>code, .highlight {
2021-12-21 02:19:43 +01:00
display: block;
2021-12-20 04:50:51 +01:00
word-break: normal;
2021-12-20 04:39:28 +01:00
border-radius: 4px;
background: #f8f8f8;
border: 1px solid #ccc;
padding: 4px;
color: #333;
padding: 9.5px;
line-height: 1.4;
2021-12-21 02:19:43 +01:00
width: min-content;
}
2021-12-28 23:29:33 +01:00
pre>.highlight {
margin-bottom: -16px;
}
2021-12-29 02:55:43 +01:00
2021-12-28 23:29:33 +01:00
.highlight>pre {
margin: 0;
}
2021-12-21 02:19:43 +01:00
pre {
2021-12-20 04:50:51 +01:00
max-width: 100%;
overflow-x: auto;
display: block;
2021-12-20 04:39:28 +01:00
}
summary {
user-select: none;
cursor: pointer;
2022-01-17 20:40:43 +01:00
color: #c7254e;
2021-12-20 04:39:28 +01:00
}
details {
2022-01-17 20:40:43 +01:00
background: #f9f2f4;
border: 1px solid #c7b3b8;
border-radius: 2px;
padding: 4px 8px;
2021-12-20 04:39:28 +01:00
margin: 4px 0;
2021-12-20 04:50:51 +01:00
overflow-x: auto;
max-width: 100%;
2021-12-29 02:35:44 +01:00
}
2022-04-11 20:40:28 +02:00
2022-01-17 20:40:43 +01:00
details code {
background: #fff;
}
2021-12-29 02:35:44 +01:00
table.nav {
padding-right: 1px;
padding-bottom: 1px;
}
2021-12-29 02:55:43 +01:00
2021-12-29 02:35:44 +01:00
table.nav td {
display: inline-block;
margin-right: -1px;
margin-bottom: -1px;
}
2021-12-29 02:55:43 +01:00
.haspara {
position: relative;
}
.haspara:hover .pilcrow {
opacity: 1;
}
.pilcrow {
position: absolute;
right: calc(100%);
2022-11-17 18:53:00 +01:00
padding-right: 24px;
2021-12-29 02:55:43 +01:00
top: .1em;
font-size: .9em;
text-decoration: none;
opacity: 0;
color: #e68aa2;
}
.pilcrow:hover {
opacity: 1;
color: #c7254e;
2022-04-11 20:27:15 +02:00
}
footer {
2022-04-11 20:40:28 +02:00
border-top: 1px solid #0005;
2022-04-11 20:27:15 +02:00
width: 100%;
text-align: center;
2022-04-11 20:40:28 +02:00
margin-top: 32px;
padding-top: 8px;
2022-04-11 20:27:15 +02:00
}
2022-04-11 20:40:28 +02:00
2022-04-11 20:27:15 +02:00
footer>*:first-child {
float: left;
}
2022-04-11 20:40:28 +02:00
2022-04-11 20:27:15 +02:00
footer>*:last-child {
float: right;
}
2022-04-11 20:40:28 +02:00
2022-04-25 00:35:53 +02:00
.part {
text-decoration: underline dotted;
text-underline-offset: 2px;
position: relative;
display: inline;
cursor: help;
2022-05-19 02:50:12 +02:00
background-color: #fff;
2022-04-25 00:35:53 +02:00
}
.part span {
display: block;
}
.part>span {
display: none;
position: absolute;
left: 0;
width: 100%;
top: 100%;
margin: 4px;
border: 1px solid currentColor;
padding: 8px;
background-color: inherit;
}
.part>span>span:nth-child(2n - 1) {
font-weight: 600;
}
.part>span>span:nth-child(2n) {
margin-left: 1rem;
}
.part:hover>span, .part:focus>span, .part>span:hover {
display: block;
}
figure>figcaption:first-child {
margin-bottom: 8px;
}
2022-06-13 04:41:05 +02:00
span.mark {
outline: 1px solid #c7254e;
}
2022-11-18 05:49:39 +01:00
2022-06-13 04:41:05 +02:00
.client {
color: #f5417d;
}
2022-11-18 05:49:39 +01:00
2022-06-13 04:41:05 +02:00
.server {
color: #4171f5;
}
2022-04-25 00:35:53 +02:00
mark {
background-color: unset;
color: unset;
font-family: monospace;
font-size: 1.2em;
text-decoration: underline;
text-underline-offset: 1px;
}
2022-11-17 18:53:00 +01:00
.toggle-root {
cursor: pointer;
position: relative;
}
2022-11-18 05:49:39 +01:00
.toggle-root.closed {
user-select: none;
}
2022-11-17 18:53:00 +01:00
.toggle-root::before {
opacity: .5;
content: "";
display: block;
border: 4px solid currentColor;
border-left-color: transparent;
border-top-color: transparent;
position: absolute;
left: -18px;
top: 50%;
transform: translateY(-50%) rotate(45deg);
transition: transform 100ms ease-out, opacity 100ms ease-out;
}
2022-11-18 05:49:39 +01:00
2022-11-17 18:53:00 +01:00
.toggle-root:hover::before {
opacity: 1;
}
2022-11-18 05:49:39 +01:00
2022-11-17 18:53:00 +01:00
.toggle-root.closed::before {
transform: translateY(-50%) rotate(-45deg);
}
2022-11-18 05:49:39 +01:00
.toggle-section {
opacity: 1;
height: auto;
transition: opacity 50ms ease-out;
overflow: visible;
}
.toggle-section.closed {
opacity: 0;
overflow: hidden;
height: 0;
}
@keyframes height0 {
from {
height: auto;
}
to {
height: 0;
}
}
2022-12-09 17:57:28 +01:00
.pad-row {
border-top: 2px solid currentColor;
border-bottom: 2px solid currentColor;
height: 1px;
}
2022-11-27 23:29:36 +01:00
.ata-bad {
color: #f5417d;
}
.ata-good {
color: #4df541;
}
.ata-ignore {
color: #f5ad41;
}
2022-04-11 20:40:28 +02:00
@media (prefers-color-scheme: dark) {
body {
background-color: #000;
color: #fff;
}
footer {
border-top: 1px solid #fff5;
}
td {
border: 1px solid #777;
}
code {
2022-04-25 00:35:53 +02:00
background-color: #221115;
2022-04-11 20:40:28 +02:00
}
2022-06-13 04:41:05 +02:00
2022-05-19 02:50:12 +02:00
.part {
background-color: #000;
}
2022-04-11 20:40:28 +02:00
.highlight, img:not(.graphic) {
filter: invert(1);
}
a, a:visited {
text-decoration: none;
color: #f5417d
}
a:hover {
color: #dc3264
}
details {
background: #1c0d11;
border-color: #3b2b2f;
}
2022-04-25 00:35:53 +02:00
2022-04-11 20:40:28 +02:00
details code {
background: #000;
}
}