Files
wireless-docs/src/style.css
2026-07-29 12:28:56 -04:00

94 lines
1.3 KiB
CSS

@font-face {
font-family: "Mojangles";
font-style: normal;
font-weight: 400;
src: url("/src/mojangles-ascii.woff2");
unicode-range: U+0000-007F;
}
h1, h2, h3, h4, h5, h6, nav li {
font-family: "Mojangles", sans-serif;
}
body {
max-width: 70ch;
padding-inline: 1ch;
margin-inline: auto;
font: 1rem / 1.5 sans-serif;
}
.tip {
color: forestgreen;
}
.warn {
color: brown;
}
.note {
color: mediumblue;
}
.todo {
color: red
}
@media (prefers-color-scheme: dark) {
.tip {
color: springgreen;
}
.warn {
color: coral;
}
.note {
color: cyan;
}
.todo {
color: #FF4444;
}
}
pre code {
text-wrap: wrap;
}
.callout, details, table td {
margin: 1em 0;
padding: 0.5em 1ch;
background: rgb(from currentColor r g b / 5%);
border: 1px outset rgb(from currentColor r g b / 30%);
}
.callout {
h1, h2, h3, h4, h5, h6 {
font-size: 1em;
vertical-align: baseline;
margin-inline-end: 1ch;
&, & + p {
display: inline;
}
}
*:last-child {
margin-block-end: 0;
padding-block-end: 0;
}
}
summary::marker {
content: "Click to show ";
padding-left: 0;
}
table {
border-collapse: collapse;
width: 100%;
td {
vertical-align: text-top;
}
}