contrast-hugo/static/css/index.css

213 lines
3.4 KiB
CSS
Raw Permalink Normal View History

2020-12-18 11:59:55 -05:00
@font-face {
2021-03-11 15:55:04 -05:00
font-family: "PT Sans";
2020-12-18 11:59:55 -05:00
src: local("PT Sans"), local("PTSans-Regular"), url("../fonts/PTSans-Regular.woff") format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
2021-03-11 15:55:04 -05:00
font-family: "PT Sans";
2020-12-18 11:59:55 -05:00
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 {
2021-03-13 09:06:59 -05:00
background: #d3d4db;
2020-11-26 09:28:01 -05:00
font-size: 16px;
font-size: calc(0.8rem + 0.3vw);
2021-03-11 15:55:04 -05:00
padding: 0 calc(38% - 21em);
2020-11-26 09:28:01 -05:00
}
2019-07-15 09:04:11 -04:00
body {
2021-03-11 15:55:04 -05:00
background: #ffffff;
color: #212228;
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
line-height: 1.6;
2021-03-11 15:55:04 -05:00
margin: 0;
2020-11-25 17:45:00 -05:00
min-height: 100vh;
2021-03-13 09:06:59 -05:00
box-shadow: 0 0 0.3em #c5c7cf;
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
}
2021-03-11 15:55:04 -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
}
2021-03-11 15:55:04 -05:00
p {
text-align: justify;
}
2019-07-15 09:04:11 -04:00
a {
2021-03-11 15:55:04 -05:00
color: #68f;
2019-07-31 08:26:18 -04:00
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
}
2021-03-11 15:55:04 -05:00
header a, footer a, aside a {
color: inherit;
2019-07-15 09:04:11 -04:00
}
2019-12-21 16:27:34 -05:00
header time {
2021-03-11 15:55:04 -05:00
color: #909194;
2019-07-15 09:04:11 -04:00
}
hr {
2021-03-11 15:55:04 -05:00
border: 1px solid rgba(144, 145, 148, 0.3);
2019-07-31 08:26:18 -04:00
margin: 2em 0;
2019-07-15 09:04:11 -04:00
}
2021-03-11 15:55:04 -05:00
article:not(:last-of-type) {
border-bottom: 1.5px solid rgba(144, 145, 148, 0.2);
}
2019-07-15 09:04:11 -04:00
blockquote {
2021-03-11 15:55:04 -05:00
background: rgba(144, 145, 148, 0.06);
border-left: 3px solid rgba(144, 145, 148, 0.9);
2019-07-31 08:26:18 -04:00
padding: 1px 1.5em;
2021-03-11 15:55:04 -05:00
opacity: 0.75;
2020-01-20 17:14:54 -05:00
}
2019-12-23 16:09:15 -05:00
blockquote, figure {
margin: 1em 0;
}
img, li {
2021-03-11 15:55:04 -05:00
margin: 0.5em 0;
2019-12-23 16:09:15 -05:00
}
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 {
2021-03-11 15:55:04 -05:00
display: inline-block;
max-width: 100%;
overflow-y: scroll;
2020-02-16 08:17:20 -05:00
border-spacing: 1px;
2021-03-11 15:55:04 -05:00
border-radius: 2px;
box-shadow: 0 0 0 1px rgba(144, 145, 148, 0.12) inset;
2019-07-15 09:04:11 -04:00
}
th, td {
2021-03-11 15:55:04 -05:00
padding: 0.5em 1em;
box-shadow: 0 0 0 1px rgba(144, 145, 148, 0.12);
2020-01-20 17:14:54 -05:00
}
tr:hover, tr:nth-child(odd) td {
2021-03-11 15:55:04 -05:00
background: rgba(144, 145, 148, 0.04);
2020-01-20 17:14:54 -05:00
}
2019-07-15 09:04:11 -04:00
pre {
2021-03-11 15:55:04 -05:00
background: rgba(144, 145, 148, 0.12);
2019-07-31 08:26:18 -04:00
border-radius: 2px;
2021-03-11 15:55:04 -05:00
font-size: 0.8em;
2019-07-31 08:26:18 -04:00
margin: 1.5em 0;
2021-03-11 15:55:04 -05:00
padding: 0.8em 1.2em;
2019-07-31 08:26:18 -04:00
overflow-x: auto;
2019-07-15 09:04:11 -04:00
}
2020-01-07 20:45:34 -05:00
:not(pre) > code {
2021-03-11 15:55:04 -05:00
font-size: 0.9em;
background: rgba(144, 145, 148, 0.15);
opacity: 0.7;
2019-07-31 08:26:18 -04:00
border-radius: 2px;
2021-03-11 15:55:04 -05:00
margin: 0 0.1em;
padding: 0.2em 0.4em;
2019-07-15 09:04:11 -04:00
}
2021-03-11 15:55:04 -05:00
body > header, body > footer {
2019-07-31 08:26:18 -04:00
display: flex;
flex-wrap: wrap;
2019-08-04 11:14:02 -04:00
align-items: center;
2021-03-11 15:55:04 -05:00
justify-content: space-between;
2021-03-13 09:06:59 -05:00
background: #2d2e36;
2020-11-25 17:09:56 -05:00
color: #ffffff;
2021-03-11 15:55:04 -05:00
}
body > header, body > article, body > footer {
padding: 1.5em;
2019-07-15 09:04:11 -04: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 {
2021-02-28 15:34:43 -05:00
font-size: 1.7em;
2021-03-11 15:55:04 -05:00
margin: 0 0 0.1em;
2020-02-03 11:05:50 -05:00
}
2019-07-31 10:34:03 -04:00
nav {
2021-03-11 15:55:04 -05:00
margin: 0.5em -1em;
2019-07-31 10:34:03 -04:00
}
nav a {
2021-03-11 15:55:04 -05:00
margin: 0.5em 1em;
2020-11-26 19:56:17 -05:00
}
2021-01-12 14:01:19 -05:00
@media (prefers-color-scheme: dark) {
2021-03-11 15:55:04 -05:00
html, body, body > header, body > footer {
background: #212228;
2021-01-12 14:01:19 -05:00
color: #ffffff;
2021-03-11 15:55:04 -05:00
box-shadow: 0 0 0 1px #33353e;
2021-01-12 14:01:19 -05:00
}
}
2021-02-28 15:34:43 -05:00
2021-03-11 15:55:04 -05:00
@media (min-width: 32em) {
body > header, body > article, body > footer {
padding: 1.65em calc(22% - 6em);
}
2021-02-28 15:34:43 -05:00
}
2021-03-11 15:55:04 -05:00
.title {
font-size: 1.3em;
2021-02-28 15:34:43 -05:00
}
.more {
margin: 2em 0 1em;
}
.more a {
border-radius: 2px;
border: 1.5px solid #68f;
2021-03-11 15:55:04 -05:00
padding: 0.4em 0.8em;
transition: 0.2s background, 0.2s color;
2021-02-28 15:34:43 -05:00
}
.more a:hover {
color: #fff;
background: #68f;
text-decoration: inherit;
}
2021-03-11 15:55:04 -05:00
.archive {
font-size: 1.1em;
}
.archive time {
display: inline-block;
min-width: 10ch;
margin: 0 0.2em;
}
.highlight pre {
background: rgba(47, 48, 57, 0.9)!important;
color: white!important;
}
.katex {
overflow-x: auto;
overflow-y: hidden;
}