98se.css/docs/docs.css

114 lines
1.4 KiB
CSS
Raw Normal View History

2020-04-20 14:23:06 -04:00
body {
margin: 0;
padding: 0;
background: var(--surface);
}
main {
width: 65rem;
margin-left: 240px;
2020-04-20 14:52:33 -04:00
margin-bottom: 60px;
2020-04-20 14:23:06 -04:00
}
aside {
width: 200px;
position: fixed;
top: 0;
bottom: 0;
padding: 8px;
display: flex;
align-items: stretch;
}
aside .treeview {
width: 100%;
/* TODO: Move scrollbar into the recessed region? */
overflow-y: scroll;
}
h1 {
font-size: 5rem;
margin: 12px 0;
}
hr {
margin: 0;
border: none;
width: 400px;
height: 1px;
opacity: 0.5;
background: linear-gradient(
to right,
red 20%,
yellow 20%,
yellow 36%,
green 36%,
green 60%,
blue 60%,
blue 100%
);
}
h2 {
font-size: 2.5rem;
margin-bottom: 12px;
}
h3 {
font-size: 2rem;
margin-top: 20px;
2020-04-20 14:52:33 -04:00
display: block;
flex: 0 0 120px;
2020-04-20 14:23:06 -04:00
}
p {
max-width: 50rem;
line-height: 1.5;
}
.component {
display: flex;
}
.component > div {
2020-04-20 14:52:33 -04:00
margin-left: 32px;
2020-04-20 14:23:06 -04:00
padding-left: 32px;
border-left: 1px solid var(--button-shadow);
}
2020-04-20 14:52:33 -04:00
.component:not(:first) > div {
padding-top: 12px;
}
2020-04-20 14:23:06 -04:00
blockquote {
margin: 0 0 20px;
padding: 20px;
background: var(--button-face);
}
blockquote footer {
margin: 12px 0 0 12px;
}
.example {
2020-04-20 14:52:33 -04:00
margin: 0 12px 24px;
}
.example:first {
margin-top: 12px;
2020-04-20 14:23:06 -04:00
}
2020-04-20 14:52:33 -04:00
details,
summary {
2020-04-20 14:23:06 -04:00
margin: 12px 0;
}
button.focused {
outline: 1px dotted #000000;
outline-offset: -4px;
}
button.active {
box-shadow: var(--border-sunken-outer), var(--border-sunken-inner);
}