contrast-hugo/static/css/theme.css

138 lines
2.1 KiB
CSS
Raw Normal View History

2019-07-19 12:54:30 -04:00
@media (prefers-color-scheme: dark) {
html {
background: #282828;
color: #fff;
}
}
2019-07-15 09:04:11 -04:00
body {
2019-07-20 20:09:02 -04:00
font-family: system-ui,-apple-system,"Helvetica Neue","Segoe UI",sans-serif;
2019-07-15 09:04:11 -04:00
font-size: 16px;
font-size: calc(0.8em + 0.25vw);
font-weight: 400;
line-height: 1.65;
2019-07-20 20:09:02 -04:00
color: #282828;
2019-07-15 09:04:11 -04:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body, blockquote, figure {
margin: 0;
}
h1, h2, h3, h4, h5, h6 {
2019-07-20 19:49:30 -04:00
font-weight: 400;
2019-07-15 09:04:11 -04:00
}
b, strong, th {
font-weight: 500;
}
a {
color: inherit;
text-decoration: inherit;
transition: color .2s;
}
a:hover {
color: #949494;
}
article a {
color: #68f;
}
article header a, article footer a {
font-weight: inherit;
color: inherit;
}
header time {
color: #949494;
}
hr {
2019-07-20 20:30:27 -04:00
border: 1px solid #9494944d;
2019-07-15 09:04:11 -04:00
margin: 2em 0;
}
blockquote {
2019-07-20 20:30:27 -04:00
background: #9494940f;
2019-07-19 12:54:30 -04:00
border-left: 4px solid #68f;
2019-07-15 09:04:11 -04:00
padding: 1px 1.5em;
}
img {
border-radius: 2px;
max-width: 100%;
height: auto;
margin: .5em 0;
}
table {
border-spacing: 1px;
2019-07-20 20:30:27 -04:00
box-shadow: 0px 0px 0px 1px #94949429 inset;
2019-07-15 09:04:11 -04:00
}
tr:hover, tr:nth-child(even) td {
2019-07-20 20:30:27 -04:00
background: #9494940f;
2019-07-15 09:04:11 -04:00
}
th {
2019-07-20 20:30:27 -04:00
background: #9494941a;
2019-07-15 09:04:11 -04:00
text-align: inherit;
}
th, td {
2019-07-20 20:30:27 -04:00
box-shadow: 0px 0px 0px 1px #94949429;
2019-07-15 09:04:11 -04:00
padding: .5em 1em;
}
pre {
2019-07-20 20:30:27 -04:00
background: #94949414;
2019-07-15 09:04:11 -04:00
border-radius: 2px;
font-size: .8em;
margin: 1.5em 0;
padding: .8em 1.2em;
white-space: pre-wrap;
}
p code {
2019-07-20 20:30:27 -04:00
background: #94949426;
2019-07-15 09:04:11 -04:00
opacity: .75;
border-radius: 2px;
font-size: .9em;
margin: 0 .1em;
padding: .2em .4em;
}
body > header, body > footer {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}
body > header, article, body > footer {
padding: 1.5em calc(34% - 12rem);
}
@media (max-width: 40em) {
body > header, article, body > footer {
2019-07-18 15:14:32 -04:00
padding: 1.5em 1em;
2019-07-15 09:04:11 -04:00
}
}
article, body > footer {
2019-07-20 20:30:27 -04:00
border-top: 1px solid #9494941f;
2019-07-15 09:04:11 -04:00
}
2019-07-19 12:54:30 -04:00
body > header.bright {
2019-07-20 20:30:27 -04:00
box-shadow: 0 0 1em #3c3c3c0f;
2019-07-19 12:54:30 -04:00
}
body > header.dark {
2019-07-15 09:04:11 -04:00
background: #2b2b2b;
color: #fff;
}