dots/.wiki/pandoc.css

208 lines
2.3 KiB
CSS
Raw Normal View History

2021-08-23 17:10:04 +02:00
@font-face {
font-family: Inter;
src: /* font might be installed locally */ local('Inter');
/* TODO: fallback to url imports */
}
2021-05-23 15:16:10 +02:00
*,
*:before,
*:after {
box-sizing: border-box;
}
body {
display: flex;
flex-direction: column;
color: #ccc;
background: #111;
2021-08-23 17:10:04 +02:00
font-family: Inter, serif;
font-size: 1rem;
line-height: 1.5;
padding: 3.2rem;
2021-05-23 15:16:10 +02:00
margin: 0 auto;
2021-08-23 17:10:04 +02:00
max-width: 48rem;
2021-05-23 15:16:10 +02:00
}
a {
color: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
2021-08-23 17:10:04 +02:00
margin-top: 1.6rem;
2021-05-23 15:16:10 +02:00
}
h1 {
font-size: 24px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
2021-08-23 17:10:04 +02:00
p {
margin: 0.4rem 0;
max-width: 32rem;
}
p + h1,
p + h2,
p + h3,
p + h4 {
margin-top: 1.6rem;
}
h1 + p,
h1 + ul,
h1 + ol {
margin-top: 1.2rem;
}
h2 + p,
h2 + ul,
h2 + ol {
margin-top: 0.8rem;
}
h3 + p,
h3 + ul,
h3 + ol {
margin-top: 0.4rem;
}
h4 + p,
h4 + ul,
h4 + ol {
margin-top: 0.4rem;
}
p + p {
margin-top: 0.8rem;
2021-05-23 15:16:10 +02:00
}
td {
padding: 0.4rem 0;
}
2021-08-23 17:10:04 +02:00
th {
padding: 0.4rem 0;
text-align: left;
}
2021-05-23 15:16:10 +02:00
ul,
ol {
list-style-position: outside;
padding: 0;
margin: 0;
2021-08-23 17:10:04 +02:00
margin-bottom: 0.8rem;
2021-05-23 15:16:10 +02:00
}
ul ul,
2021-08-23 17:10:04 +02:00
ol ol,
ul ol,
ol ul {
2021-05-23 15:16:10 +02:00
padding-left: 0.8rem;
}
img {
max-width: 100%;
}
2021-08-23 17:10:04 +02:00
figure > img {
filter: hue-rotate(180deg) invert(1);
mix-blend-mode: screen;
}
2021-05-23 15:16:10 +02:00
/* Minimal scrollbars */
::-webkit-scrollbar {
width: 0.2rem;
}
::-webkit-scrollbar-thumb {
background: #333;
}
hr {
border: none;
border-top: 1px solid #222;
margin: 0.8rem 0;
}
figcaption {
text-align: right;
font-size: 10px;
font-style: italic;
}
2021-08-23 17:10:04 +02:00
/* Tables */
table {
border-collapse: collapse;
min-width: 16rem;
margin: 0.8rem 0;
}
th,
td {
padding: 0.8rem;
padding-left: 0.2rem;
}
2021-05-23 15:16:10 +02:00
th {
border-bottom: 1px solid #222;
}
2021-08-23 17:10:04 +02:00
/* Footnotes */
.footnote-ref {
color: #888;
font-size: 0.8rem;
}
/* References and citations */
.citation {
font-size: 0.8rem;
color: #555;
transition: 0.15s cubic-bezier(0.19, 1, 0.22, 1);
}
.references {
color: #555;
border-top: 1px solid #222;
padding: 1.6rem;
margin: 1.6rem 0;
transition: 0.15s cubic-bezier(0.19, 1, 0.22, 1);
}
.citation:hover,
.references:hover {
color: #888;
}
.list-grid {
display: flex;
flex-wrap: wrap;
}
.list-grid > ul,
.list-grid > ol {
flex: 1 0 16rem;
padding: 1.6rem 0;
border-top: 1px solid #222;
list-style: none;
}