morgan.mcmillian.dev/static/style.css

83 lines
1,010 B
CSS
Raw Permalink Normal View History

2022-05-07 16:40:53 +00:00
:root {
--bg: #ffffff;
--fg: #171a1f;
--link: #004cb8;
--active: #006aff;
--pre: #e9ecef;
}
body {
font-family: sans-serif;
background-color: var(--bg);
color: var(--fg);
padding: 2rem 1.25rem;
line-height: 1.5;
max-width: 600px;
margin: 0 auto;
}
header {
margin-bottom: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
header h1 {
font-size: 1.2rem;
margin-top: 0;
margin-bottom: 0;
margin-right: 1rem;
}
a {
color: var(--link);
position: relative;
}
a:hover {
color: var(--active);
}
main h1 {
font-size: 1.6rem;
margin: 0;
}
h2 {
font-size: 1.35rem;
}
h3 {
font-size: 1.1rem;
}
ul {
padding: 0;
list-style: None;
}
pre {
display: block;
padding: .25rem;
margin: .25rem 0;
overflow-x: auto;
font-size: 1.2em;
background-color: var(--pre);
}
footer {
margin-top: 2rem;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #222222;
--fg: #efefef;
--link: #aaaaaa;
--active: #dddddd;
--pre: #555555;
}
}