contrast-hugo/static/css/theme.css
2019-12-23 22:09:15 +01:00

154 lines
2.1 KiB
CSS

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