docs/styles.css

170 lines
2.3 KiB
CSS
Raw Normal View History

2021-12-20 03:39:28 +00:00
body {
2021-12-22 03:41:57 +00:00
font-family: sans-serif;
line-height: 1.35;
2021-12-21 01:19:43 +00:00
max-width: 1000px;
2021-12-20 04:03:59 +00:00
margin: 16px auto;
color: #222;
2021-12-21 01:19:43 +00:00
padding: 0 16px;
2021-12-20 03:39:28 +00:00
}
table {
border-collapse: collapse;
letter-spacing: .02em;
2021-12-20 03:50:51 +00:00
max-width: 100%;
overflow-x: auto;
display: block;
2021-12-20 03:39:28 +00:00
}
2021-12-28 22:29:33 +00:00
2021-12-22 03:41:57 +00:00
table.code {
font-family: monospace;
}
2021-12-20 03:39:28 +00:00
thead {
font-weight: bold;
border-bottom: 2px solid #000;
}
td {
border: 1px solid #111;
padding: 2px;
min-width: 32px;
}
2021-12-28 22:29:33 +00:00
2021-12-22 03:41:57 +00:00
table:not(.code) td {
padding: 2px 6px;
}
2021-12-28 22:29:33 +00:00
2021-12-22 03:41:57 +00:00
table.code td {
text-align: center;
}
2021-12-20 03:39:28 +00:00
td a {
display: block;
padding: 4px 8px;
}
2021-12-20 03:50:51 +00:00
p {
word-break: break-word;
}
2022-01-17 22:10:57 +00:00
img {
max-width: 100%;
}
2021-12-20 03:39:28 +00:00
code {
2021-12-28 00:26:42 +00:00
vertical-align: middle;
2021-12-20 03:39:28 +00:00
letter-spacing: .02em;
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f9f2f4;
border-radius: 4px;
2021-12-20 03:50:51 +00:00
word-break: break-word;
2021-12-20 03:39:28 +00:00
}
2021-12-28 22:29:33 +00:00
2022-01-17 22:10:57 +00:00
dfn {
border-bottom: 1px dashed currentColor;
cursor: help;
}
2021-12-28 22:29:33 +00:00
td>code {
2021-12-28 00:26:42 +00:00
word-break: normal;
}
2021-12-28 22:29:33 +00:00
code>a {
2021-12-21 01:19:43 +00:00
color: inherit;
}
2021-12-28 22:29:33 +00:00
pre>code, .highlight {
2021-12-21 01:19:43 +00:00
display: block;
2021-12-20 03:50:51 +00:00
word-break: normal;
2021-12-20 03:39:28 +00:00
border-radius: 4px;
background: #f8f8f8;
border: 1px solid #ccc;
padding: 4px;
color: #333;
padding: 9.5px;
line-height: 1.4;
2021-12-21 01:19:43 +00:00
width: min-content;
}
2021-12-28 22:29:33 +00:00
pre>.highlight {
margin-bottom: -16px;
}
2021-12-29 01:55:43 +00:00
2021-12-28 22:29:33 +00:00
.highlight>pre {
margin: 0;
}
2021-12-21 01:19:43 +00:00
pre {
2021-12-20 03:50:51 +00:00
max-width: 100%;
overflow-x: auto;
display: block;
2021-12-20 03:39:28 +00:00
}
summary {
user-select: none;
cursor: pointer;
2022-01-17 19:40:43 +00:00
color: #c7254e;
2021-12-20 03:39:28 +00:00
}
details {
2022-01-17 19:40:43 +00:00
background: #f9f2f4;
border: 1px solid #c7b3b8;
border-radius: 2px;
padding: 4px 8px;
2021-12-20 03:39:28 +00:00
margin: 4px 0;
2021-12-20 03:50:51 +00:00
overflow-x: auto;
max-width: 100%;
2021-12-29 01:35:44 +00:00
}
2022-01-17 19:40:43 +00:00
details code {
background: #fff;
}
2021-12-29 01:35:44 +00:00
table.nav {
padding-right: 1px;
padding-bottom: 1px;
}
2021-12-29 01:55:43 +00:00
2021-12-29 01:35:44 +00:00
table.nav td {
display: inline-block;
margin-right: -1px;
margin-bottom: -1px;
}
2021-12-29 01:55:43 +00:00
.haspara {
position: relative;
}
.haspara:hover .pilcrow {
opacity: 1;
}
.pilcrow {
position: absolute;
right: calc(100%);
padding-right: 4px;
top: .1em;
font-size: .9em;
text-decoration: none;
opacity: 0;
color: #e68aa2;
}
.pilcrow:hover {
opacity: 1;
color: #c7254e;
2022-04-11 18:27:15 +00:00
}
footer {
width: 100%;
text-align: center;
margin-top: 8px;
}
footer>*:first-child {
float: left;
}
footer>*:last-child {
float: right;
}