mirror of
https://github.com/jdan/98.css.git
synced 2025-01-17 20:58:32 +01:00
109 lines
1.4 KiB
CSS
109 lines
1.4 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--surface);
|
|
}
|
|
|
|
main {
|
|
width: 65rem;
|
|
margin-left: 240px;
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
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 {
|
|
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 {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
h3 {
|
|
margin-top: 20px;
|
|
display: block;
|
|
flex: 0 0 180px;
|
|
}
|
|
|
|
p {
|
|
max-width: 50rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.component {
|
|
display: flex;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
blockquote {
|
|
margin: 0 0 20px;
|
|
padding: 20px;
|
|
background: var(--button-face);
|
|
}
|
|
|
|
blockquote footer {
|
|
margin: 12px 0 0 12px;
|
|
}
|
|
|
|
.example {
|
|
margin: 16px 0;
|
|
padding: 12px 24px;
|
|
border-left: 1px solid var(--button-shadow);
|
|
}
|
|
|
|
details {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
summary {
|
|
user-select: none;
|
|
cursor: pointer;
|
|
display: inline;
|
|
}
|
|
|
|
details[open] summary {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
button.focused {
|
|
outline: 1px dotted #000000;
|
|
outline-offset: -4px;
|
|
}
|
|
|
|
button.active {
|
|
box-shadow: var(--border-sunken-outer), var(--border-sunken-inner);
|
|
}
|