contrast-hugo/static/css/theme.css

154 lines
2.1 KiB
CSS
Raw Normal View History

2019-08-02 08:14:37 -04:00
@media (prefers-color-scheme: light) {
html {
background: #fff;
2019-12-21 16:27:34 -05:00
color: #222;
2019-08-02 08:14:37 -04:00
}
}
2019-07-19 12:54:30 -04:00
@media (prefers-color-scheme: dark) {
2019-07-31 08:26:18 -04:00
html {
2019-12-21 16:27:34 -05:00
background: #222;
2019-07-31 08:26:18 -04:00
color: #fff;
}
2019-07-19 12:54:30 -04:00
}
2019-07-15 09:04:11 -04:00
body {
2019-12-21 16:27:34 -05:00
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Roboto", sans-serif;
2019-07-31 08:26:18 -04:00
font-size: 16px;
font-size: calc(0.8rem + 0.25vw);
font-weight: 400;
line-height: 1.65;
2019-12-23 16:09:15 -05:00
margin: 0;
2019-08-04 15:37:24 -04:00
-webkit-text-size-adjust: 100%;
2019-07-31 08:26:18 -04:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2019-07-15 09:04:11 -04:00
}
h1, h2, h3, h4, h5, h6 {
2019-07-31 08:26:18 -04:00
font-weight: 400;
2019-07-15 09:04:11 -04:00
}
b, strong, th {
2019-08-02 16:14:05 -04:00
font-weight: 600;
2019-07-15 09:04:11 -04:00
}
a {
2019-07-31 08:26:18 -04:00
color: inherit;
text-decoration: inherit;
2019-07-15 09:04:11 -04:00
}
2019-12-21 16:27:34 -05:00
a:hover {
text-decoration: underline;
2019-07-15 09:04:11 -04:00
}
article a {
2019-07-31 08:26:18 -04:00
color: #68f;
2019-07-15 09:04:11 -04:00
}
2019-12-21 16:27:34 -05:00
header time {
color: #949494;
2019-07-15 09:04:11 -04:00
}
hr {
2019-07-31 08:26:18 -04:00
border: 1px solid #9494944d;
margin: 2em 0;
2019-07-15 09:04:11 -04:00
}
blockquote {
2019-07-31 08:26:18 -04:00
background: #9494940f;
border-left: 4px solid #68f;
padding: 1px 1.5em;
2019-07-15 09:04:11 -04:00
}
2019-12-23 16:09:15 -05:00
blockquote, figure {
margin: 1em 0;
}
img, li {
margin: .5em 0;
}
2019-07-15 09:04:11 -04:00
img {
2019-07-31 08:26:18 -04:00
border-radius: 2px;
max-width: 100%;
height: auto;
2019-07-15 09:04:11 -04:00
}
table {
2019-08-02 09:16:03 -04:00
box-shadow: 0 0 0 1px #9494941f inset;
border-spacing: 1px;
2019-07-31 08:26:18 -04:00
width: 100%;
2019-07-15 09:04:11 -04:00
}
2019-07-21 11:48:42 -04:00
tr:hover, tr:nth-child(odd) td {
2019-07-31 08:26:18 -04:00
background: #94949410;
2019-07-15 09:04:11 -04:00
}
th, td {
2019-08-04 11:02:22 -04:00
box-shadow: 0 0 0 1px #9494941f;
2019-07-31 08:26:18 -04:00
padding: .5em 1em;
2019-07-15 09:04:11 -04:00
}
pre {
2019-07-31 15:22:41 -04:00
background: #94949422;
2019-07-31 08:26:18 -04:00
border-radius: 2px;
font-size: .8em;
margin: 1.5em 0;
padding: .8em 1.2em;
overflow-x: auto;
2019-07-15 09:04:11 -04:00
}
2019-12-13 10:04:17 -05:00
pre code {
all: unset;
2019-12-21 16:27:34 -05:00
-webkit-text-fill-color: initial;
2019-12-13 10:04:17 -05:00
}
code {
2019-07-31 08:26:18 -04:00
font-size: .9em;
background: #94949426;
opacity: .75;
border-radius: 2px;
margin: 0 .1em;
padding: .2em .4em;
2019-07-15 09:04:11 -04:00
}
2019-07-31 15:22:41 -04:00
body > header {
2019-07-31 08:26:18 -04:00
display: flex;
flex-wrap: wrap;
justify-content: space-between;
2019-08-04 11:14:02 -04:00
align-items: center;
2019-07-15 09:04:11 -04:00
}
2019-08-04 11:10:36 -04:00
header h1, header h2 {
2019-07-31 10:34:03 -04:00
margin: 0;
}
2019-12-21 16:27:34 -05:00
article header {
margin-bottom: 2em;
}
article header h1 {
font-size: 1.75em;
padding: .25em 0;
margin-bottom: .7em;
border-bottom: 1px solid #94949436;
}
2019-07-31 10:34:03 -04:00
nav {
margin: .5em -.8em;
}
nav a {
2019-12-21 16:27:34 -05:00
padding: 0 .8em;
2019-07-31 10:34:03 -04:00
}
2019-07-31 15:22:41 -04:00
body > header, article {
2019-08-04 15:37:24 -04:00
padding: 1.5em;
2019-07-15 09:04:11 -04:00
}
2019-07-31 08:26:18 -04:00
@media (min-width: 40em) {
2019-07-31 15:22:41 -04:00
body > header, article {
2019-07-31 08:26:18 -04:00
padding: 1.5em calc(34% - 12rem);
}
2019-07-15 09:04:11 -04:00
}