contrast-hugo/static/css/theme.css

152 lines
2.0 KiB
CSS
Raw Normal View History

2019-08-02 08:14:37 -04:00
@media (prefers-color-scheme: light) {
html {
2020-01-07 20:45:34 -05:00
background: #ffffff;
color: #18191d;
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 {
2020-01-07 20:45:34 -05:00
background: #18191d;
color: #ffffff;
2019-07-31 08:26:18 -04:00
}
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;
2020-01-07 20:45:34 -05:00
line-height: 1.6;
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
}
2020-01-07 20:45:34 -05:00
h1 {
font-size: 1.75em
}
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 {
2020-01-07 20:45:34 -05:00
color: #8c8c8e;
2019-07-15 09:04:11 -04:00
}
hr {
2020-01-07 20:45:34 -05:00
border: 1px solid #8c8c8e4d;
2019-07-31 08:26:18 -04:00
margin: 2em 0;
2019-07-15 09:04:11 -04:00
}
blockquote {
2020-01-07 20:45:34 -05:00
background: #8c8c8e0a;
2019-07-31 08:26:18 -04:00
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 {
2020-01-07 20:45:34 -05:00
box-shadow: 0 0 0 1px #8c8c8e1f inset;
2019-08-02 09:16:03 -04:00
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 {
2020-01-07 20:45:34 -05:00
background: #8c8c8e10;
2019-07-15 09:04:11 -04:00
}
th, td {
2020-01-07 20:45:34 -05:00
box-shadow: 0 0 0 1px #8c8c8e1f;
2019-07-31 08:26:18 -04:00
padding: .5em 1em;
2019-07-15 09:04:11 -04:00
}
pre {
2020-01-07 20:45:34 -05:00
background: #8c8c8e22;
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
}
2020-01-07 20:45:34 -05:00
:not(pre) > code {
2019-07-31 08:26:18 -04:00
font-size: .9em;
2020-01-07 20:45:34 -05:00
background: #8c8c8e26;
2019-07-31 08:26:18 -04:00
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 {
2020-01-07 20:45:34 -05:00
margin-bottom: 1.5em;
2019-12-21 16:27:34 -05:00
}
article header h1 {
2020-01-07 20:45:34 -05:00
padding: .2em 0;
margin-bottom: .5em;
border-bottom: 1px solid #8c8c8e36;
2019-12-21 16:27:34 -05:00
}
2019-07-31 10:34:03 -04:00
nav {
margin: .5em -.8em;
}
nav a {
2020-01-07 20:45:34 -05:00
margin: 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 {
2020-01-07 20:45:34 -05:00
padding: 1.5em calc(35% - 12rem);
2019-07-31 08:26:18 -04:00
}
2019-07-15 09:04:11 -04:00
}