contrast-hugo/static/css/index.css

158 lines
2.6 KiB
CSS
Raw Normal View History

2020-12-18 11:59:55 -05:00
@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;
2020-02-07 15:20:47 -05:00
}
2020-11-26 09:28:01 -05:00
html {
2020-12-05 18:44:57 -05:00
background: #565968;
2020-11-26 09:28:01 -05:00
font-size: 16px;
font-size: calc(0.8rem + 0.3vw);
2020-11-26 20:59:57 -05:00
padding: 0 calc(38% - 20em);
2020-11-26 09:28:01 -05:00
}
2019-07-15 09:04:11 -04:00
body {
2020-11-25 18:14:07 -05:00
font-family: "PT Sans", -apple-system, "Helvetica Neue", "Segoe UI", "Roboto", sans-serif;
2019-07-31 08:26:18 -04:00
font-weight: 400;
2020-11-26 19:56:17 -05:00
background: #ffffff;
2020-11-27 09:26:40 -05:00
color: #1c1d22;
2020-12-05 18:44:57 -05:00
box-shadow: 0 0 0 1px rgba(86, 89, 104, 0.3);
2019-12-23 16:09:15 -05:00
margin: 0;
2020-11-26 19:56:17 -05:00
line-height: 1.6;
2020-11-25 17:45:00 -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-12-18 11:59:55 -05:00
@media (prefers-color-scheme: dark) {
2021-01-09 19:20:47 -05:00
html, body {
2020-12-18 11:59:55 -05:00
background: #1c1d22;
color: #ffffff;
}
}
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-11-27 09:26:40 -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
}
blockquote {
2020-11-27 09:26:40 -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;
2020-11-27 09:26:40 -05:00
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-11-27 09:26:40 -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-11-27 09:26:40 -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-11-27 09:26:40 -05:00
background: rgba(40, 41, 48, 0.9)!important;
2020-11-25 12:43:38 -05:00
color: #ffffff;
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-11-27 09:26:40 -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-27 09:26:40 -05:00
background: #1c1d22;
2020-11-25 17:09:56 -05:00
color: #ffffff;
2020-12-05 18:44:57 -05:00
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
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-12-18 11:59:55 -05:00
body > header, body > article {
2020-11-27 09:26:40 -05:00
padding: 1.65em calc(20% - 4em);
2020-12-18 11:59:55 -05:00
padding: 1.65em max(calc(20% - 4em), 1.5em);
2020-11-26 19:56:17 -05:00
}