docs/styles.css

94 lines
1.4 KiB
CSS

body {
font-family: sans-serif;
line-height: 1.35;
max-width: 1000px;
margin: 16px auto;
color: #222;
padding: 0 16px;
}
table {
border-collapse: collapse;
letter-spacing: .02em;
max-width: 100%;
overflow-x: auto;
display: block;
}
table.code {
font-family: monospace;
}
thead {
font-weight: bold;
border-bottom: 2px solid #000;
}
td {
border: 1px solid #111;
padding: 2px;
min-width: 32px;
}
table:not(.code) td {
padding: 2px 6px;
}
table.code td {
text-align: center;
}
td a {
display: block;
padding: 4px 8px;
}
p {
word-break: break-word;
}
code {
vertical-align: middle;
letter-spacing: .02em;
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f9f2f4;
border-radius: 4px;
word-break: break-word;
}
td > code {
word-break: normal;
}
code > a {
color: inherit;
}
pre > code {
display: block;
word-break: normal;
border-radius: 4px;
background: #f8f8f8;
border: 1px solid #ccc;
padding: 4px;
color: #333;
padding: 9.5px;
line-height: 1.4;
width: min-content;
}
pre {
max-width: 100%;
overflow-x: auto;
display: block;
}
summary {
user-select: none;
cursor: pointer;
}
details {
background: lightblue;
border: 1px solid cornflowerblue;
padding: 4px;
margin: 4px 0;
overflow-x: auto;
max-width: 100%;
}