contrast-hugo/static/css/index.css

183 lines
2.9 KiB
CSS
Raw Normal View History

2020-02-07 15:20:47 -05:00
@media (min-width: 50em) {
@font-face {
font-family: 'PT Sans';
src: local("PT Sans"), local("PTSans-Regular"), url("../fonts/PTSans-Regular.woff") format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PT Sans';
src: local("PT Sans Bold"), local("PTSans-Bold"), url("../fonts/PTSans-Bold.woff") format("woff");
font-weight: bold;
font-style: normal;
}
}
2019-08-02 08:14:37 -04:00
@media (prefers-color-scheme: light) {
html {
2020-11-25 12:16:04 -05:00
background: #393b45;
}
body {
2020-01-07 20:45:34 -05:00
background: #ffffff;
2020-02-03 11:05:50 -05:00
color: #1c1d22;
2019-08-02 08:14:37 -04:00
}
2020-11-25 12:16:04 -05:00
body > header {
background: #1c1d22;
color: #fff;
}
2019-08-02 08:14:37 -04:00
}
2019-07-19 12:54:30 -04:00
@media (prefers-color-scheme: dark) {
2020-11-25 12:16:04 -05:00
body {
2020-02-03 11:05:50 -05:00
background: #1c1d22;
2020-01-07 20:45:34 -05:00
color: #ffffff;
2020-11-25 12:16:04 -05:00
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
2019-07-31 08:26:18 -04:00
}
2019-07-19 12:54:30 -04:00
}
2020-02-03 21:04:06 -05:00
html {
font-size: 16px;
font-size: calc(0.8rem + 0.3vw);
}
2019-07-15 09:04:11 -04:00
body {
2020-01-20 17:14:54 -05:00
font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Roboto", sans-serif;
2019-07-31 08:26:18 -04:00
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;
2020-11-25 12:16:04 -05:00
min-height: 100vh;
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
}
2020-02-07 15:20:47 -05:00
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
}
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-02-03 11:05:50 -05:00
color: #8e8e91;
2019-07-15 09:04:11 -04:00
}
hr {
2020-02-03 11:05:50 -05:00
border: 1px solid rgba(142, 142, 145, 0.3);
2019-07-31 08:26:18 -04:00
margin: 2em 0;
2019-07-15 09:04:11 -04:00
}
2020-02-18 11:40:33 -05:00
article:not(:last-child) {
border-bottom: 1px solid rgba(142, 142, 145, 0.12);
}
2019-07-15 09:04:11 -04:00
blockquote {
2020-02-16 08:17:20 -05:00
background: rgba(142, 142, 145, 0.06);
border-left: 3px solid rgba(142, 142, 145, 0.9);
2019-07-31 08:26:18 -04:00
padding: 1px 1.5em;
2020-02-16 08:17:20 -05:00
opacity: .75;
2020-01-20 17:14:54 -05: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-07-31 08:26:18 -04:00
width: 100%;
2020-02-16 08:17:20 -05:00
border-spacing: 1px;
box-shadow: 0 0 0 1px rgba(142, 142, 145, 0.12) inset;
2019-07-15 09:04:11 -04:00
}
th, td {
2019-07-31 08:26:18 -04:00
padding: .5em 1em;
2020-02-16 08:17:20 -05:00
box-shadow: 0 0 0 1px rgba(142, 142, 145, 0.12);
2020-01-20 17:14:54 -05:00
}
tr:hover, tr:nth-child(odd) td {
2020-02-03 11:05:50 -05:00
background: rgba(142, 142, 145, 0.04);
2020-01-20 17:14:54 -05:00
}
2019-07-15 09:04:11 -04:00
pre {
2020-02-03 11:05:50 -05:00
background: rgba(142, 142, 145, 0.12);
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-02-03 11:05:50 -05:00
background: rgba(142, 142, 145, 0.15);
2020-01-20 17:14:54 -05:00
opacity: .7;
2019-07-31 08:26:18 -04:00
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;
2020-11-25 12:16:04 -05:00
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
2019-07-15 09:04:11 -04:00
}
2020-01-20 17:14:54 -05:00
body > header > a {
2020-11-25 12:16:04 -05:00
font-size: 1.4em;
2019-12-21 16:27:34 -05:00
}
2020-01-20 17:14:54 -05:00
article header {
margin-bottom: 1.5em;
2019-12-21 16:27:34 -05:00
}
2020-02-03 11:05:50 -05:00
article header h1 {
2020-02-03 14:19:33 -05:00
font-size: 1.8em;
2020-02-03 21:04:06 -05:00
margin: 0 0 .1em;
2020-02-03 11:05:50 -05:00
}
2019-07-31 10:34:03 -04:00
nav {
2020-02-18 11:40:33 -05:00
margin: .5em -.8em;
2019-07-31 10:34:03 -04:00
}
nav a {
2020-02-18 11:40:33 -05:00
margin: .5em .8em;
2019-07-31 10:34:03 -04:00
}
2020-02-07 15:20:47 -05:00
body > header, body > article, body > footer {
2019-08-04 15:37:24 -04:00
padding: 1.5em;
2019-07-15 09:04:11 -04:00
}
2020-11-25 12:16:04 -05:00
@media (min-width: 36em) {
body {
margin: 0 calc(38% - 18em);
}
2020-02-07 15:20:47 -05:00
body > header, body > article, body > footer {
2020-11-25 12:16:04 -05:00
padding: 1.7em 12.5%;
2020-01-20 17:14:54 -05:00
}
}