SIGN IN SIGN UP
jdan / 98.css UNCLAIMED

A design system for building faithful recreations of old UIs

0 0 0 CSS
2020-04-20 14:23:06 -04:00
body {
margin: 0;
padding: 0;
2020-04-23 17:24:16 -04:00
background: #c0c0c0;
2020-04-20 14:23:06 -04:00
}
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;
}
2020-04-21 19:18:56 -04:00
aside .tree-view {
2020-04-20 14:23:06 -04:00
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;
}
2020-04-23 18:19:51 -04:00
h3 {
font-size: 1.6rem;
}
2020-04-21 18:34:21 -04:00
h3,
h4 {
2020-04-21 16:27:16 -04:00
/* Swap the margin for a top-padding so linking to this section
results in a better scroll position */
padding-top: 20px;
margin-top: 0;
2020-04-20 14:52:33 -04:00
display: block;
2020-04-21 10:09:54 -04:00
flex: 0 0 180px;
2020-04-20 14:23:06 -04:00
}
p {
max-width: 50rem;
line-height: 1.5;
}
.component {
display: flex;
2020-04-21 10:09:54 -04:00
margin-top: 24px;
2020-04-20 14:52:33 -04:00
}
2020-04-20 14:23:06 -04:00
blockquote {
margin: 0 0 20px;
padding: 20px;
2020-04-23 17:24:16 -04:00
background: #dfdfdf;
2020-04-20 14:23:06 -04:00
}
blockquote footer {
margin: 12px 0 0 12px;
}
.example {
2020-04-21 10:09:54 -04:00
margin: 16px 0;
padding: 12px 24px;
2020-04-23 17:24:16 -04:00
border-left: 1px solid #808080;
2020-04-20 14:52:33 -04:00
}
2020-04-21 10:09:54 -04:00
details {
2020-04-20 14:52:33 -04:00
margin-top: 12px;
2020-04-20 14:23:06 -04:00
}
2020-04-20 14:52:33 -04:00
summary {
2020-04-21 10:09:54 -04:00
user-select: none;
cursor: pointer;
display: inline;
}
details[open] summary {
margin-bottom: 8px;
2020-04-20 14:23:06 -04:00
}
button.focused {
outline: 1px dotted #000000;
outline-offset: -4px;
}
button.active {
2020-04-23 17:27:51 -04:00
box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a,
inset -2px -2px #dfdfdf, inset 2px 2px #808080;
2020-04-20 14:23:06 -04:00
}
2020-04-21 15:57:08 -04:00
@media (max-width: 480px) {
aside {
display: none;
}
main {
box-sizing: border-box;
width: 100%;
margin: 0;
padding: 16px;
}
hr {
width: 100%;
}
p {
width: 100%;
}
2020-04-21 18:34:21 -04:00
h3,
h4 {
2020-04-21 15:57:08 -04:00
flex: 0;
}
.component {
display: block;
margin-top: 24px;
}
2020-04-21 21:20:58 -04:00
pre {
overflow-x: scroll;
}
2020-04-21 15:57:08 -04:00
}