contrast-hugo/static/css/minimal.css

217 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;
}
html {
font-size: 16px;
font-size: calc(0.8rem + 0.3vw);
}
body {
2021-03-11 15:55:04 -05:00
background: #ffffff;
color: #212228;
2020-12-18 11:59:55 -05:00
font-family: "PT Sans", -apple-system, "Helvetica Neue", "Segoe UI", "Roboto", sans-serif;
font-weight: 400;
line-height: 1.6;
2021-03-11 15:55:04 -05:00
margin: 0;
2020-12-18 11:59:55 -05:00
min-height: 100vh;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@media (prefers-color-scheme: dark) {
body {
2021-03-11 15:55:04 -05:00
background: #212228;
2020-12-18 11:59:55 -05:00
color: #ffffff;
}
}
2021-03-11 15:55:04 -05:00
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
}
2020-12-18 11:59:55 -05:00
b, strong, th {
font-weight: 600;
}
2021-03-11 15:55:04 -05:00
p {
text-align: justify;
}
2020-12-18 11:59:55 -05:00
a {
2021-03-11 15:55:04 -05:00
color: #68f;
2020-12-18 11:59:55 -05:00
text-decoration: inherit;
}
a:hover {
text-decoration: underline;
}
2021-03-11 15:55:04 -05:00
header a, footer a, aside a {
color: inherit;
2020-12-18 11:59:55 -05:00
}
header time {
2021-03-11 15:55:04 -05:00
color: #909194;
2020-12-18 11:59:55 -05:00
}
hr {
2021-03-11 15:55:04 -05:00
border: 1px solid rgba(144, 145, 148, 0.3);
2020-12-18 11:59:55 -05:00
margin: 2em 0;
}
2021-03-11 15:55:04 -05:00
article:not(:last-of-type) {
border-bottom: 1.5px solid rgba(144, 145, 148, 0.2);
}
2020-12-18 11:59:55 -05: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);
2020-12-18 11:59:55 -05:00
padding: 1px 1.5em;
2021-03-11 15:55:04 -05:00
opacity: 0.75;
2020-12-18 11:59:55 -05:00
}
blockquote, figure {
margin: 1em 0;
}
img, li {
2021-03-11 15:55:04 -05:00
margin: 0.5em 0;
2020-12-18 11:59:55 -05:00
}
img {
border-radius: 2px;
max-width: 100%;
height: auto;
}
table {
2021-03-11 15:55:04 -05:00
display: inline-block;
max-width: 100%;
overflow-y: scroll;
2020-12-18 11:59:55 -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;
2020-12-18 11:59:55 -05: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-12-18 11:59:55 -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-12-18 11:59:55 -05:00
}
pre {
2021-03-11 15:55:04 -05:00
background: rgba(144, 145, 148, 0.12);
2020-12-18 11:59:55 -05:00
border-radius: 2px;
2021-03-11 15:55:04 -05:00
font-size: 0.8em;
2020-12-18 11:59:55 -05:00
margin: 1.5em 0;
2021-03-11 15:55:04 -05:00
padding: 0.8em 1.2em;
2020-12-18 11:59:55 -05:00
overflow-x: auto;
}
: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;
2020-12-18 11:59:55 -05:00
border-radius: 2px;
2021-03-11 15:55:04 -05:00
margin: 0 0.1em;
padding: 0.2em 0.4em;
2020-12-18 11:59:55 -05:00
}
2021-03-11 15:55:04 -05:00
body > header, body > footer {
2020-12-18 11:59:55 -05:00
display: flex;
flex-wrap: wrap;
align-items: center;
2021-03-11 15:55:04 -05:00
justify-content: space-between;
}
body > header, body > article, body > footer {
padding: 1.5em;
2020-12-18 11:59:55 -05:00
}
article header {
margin-bottom: 1.5em;
}
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-12-18 11:59:55 -05:00
}
nav {
2021-03-11 15:55:04 -05:00
margin: 0.5em -1em;
2020-12-18 11:59:55 -05:00
}
nav a {
2021-03-11 15:55:04 -05:00
margin: 0.5em 1em;
2020-12-18 11:59:55 -05:00
}
2021-03-11 15:55:04 -05:00
body > header {
box-shadow: 0 0 .6em rgba(33, 34, 40 ,0.04);
border-bottom: 1px solid rgba(144, 145, 148, 0.14);
2020-12-18 11:59:55 -05:00
}
2021-02-28 15:34:43 -05:00
2021-03-11 15:55:04 -05:00
body > footer {
box-shadow: 0 0 .6em rgba(33, 34, 40 ,0.04) inset;
border-top: 1px solid rgba(144, 145, 148, 0.14);
2021-02-28 15:34:43 -05:00
}
2021-03-11 15:55:04 -05:00
@media (min-width: 38em) {
body > header, body > article, body > footer {
padding: 1.7em calc(38% - 14em);
}
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;
}