contrast-hugo/static/css/theme.css

140 lines
1.9 KiB
CSS
Raw Normal View History

2019-08-02 08:14:37 -04:00
@media (prefers-color-scheme: light) {
html {
background: #fff;
color: #282828;
}
}
2019-07-19 12:54:30 -04:00
@media (prefers-color-scheme: dark) {
2019-07-31 08:26:18 -04:00
html {
background: #282828;
color: #fff;
}
2019-07-19 12:54:30 -04:00
}
2019-07-15 09:04:11 -04:00
body {
2019-08-02 07:55:18 -04: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-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
}
body, blockquote, figure {
2019-07-31 08:26:18 -04:00
margin: 0;
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;
transition: color .2s;
2019-07-15 09:04:11 -04:00
}
2019-07-31 14:57:41 -04:00
a:hover, header time {
2019-07-31 08:26:18 -04:00
color: #949494;
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
}
article header a, article footer a {
2019-07-31 08:26:18 -04:00
color: inherit;
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
}
img {
2019-07-31 08:26:18 -04:00
border-radius: 2px;
max-width: 100%;
height: auto;
margin: .5em 0;
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
}
p 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
h1 {
2019-08-01 09:44:41 -04:00
font-size: 1.7em;
2019-08-04 11:10:36 -04:00
}
header h1, header h2 {
2019-07-31 10:34:03 -04:00
margin: 0;
}
nav {
margin: .5em -.8em;
}
nav a {
2019-12-10 07:32:13 -05:00
display: inline-block;
2019-07-31 10:34:03 -04:00
margin: 0 .8em;
}
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
}