2024-09-22 17:57:09 +02:00
|
|
|
:root {
|
|
|
|
--font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Cantarell, Roboto, Oxygen, Ubuntu, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
|
--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
|
2024-09-22 18:48:26 +02:00
|
|
|
--text-color: #212529;
|
2024-09-22 19:01:31 +02:00
|
|
|
--border-color: rgba(0,0,0,0.1);
|
|
|
|
--hover-color: rgba(0,0,0,0.05);
|
2024-09-22 18:48:26 +02:00
|
|
|
--background-color: #f8f9fa;
|
|
|
|
--well-color: #e9ecef;
|
2024-09-22 19:01:31 +02:00
|
|
|
--accent-color: #1971c2;
|
2024-09-22 18:48:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
--text-color: #f1f3f5;
|
|
|
|
--background-color: #212529;
|
|
|
|
--well-color: #343a40;
|
|
|
|
--accent-color: #d0ebff;
|
|
|
|
}
|
2024-09-22 17:57:09 +02:00
|
|
|
}
|
2018-10-13 16:49:21 +02:00
|
|
|
|
2019-11-07 12:22:09 +01:00
|
|
|
// Don't change this one, it's just to
|
|
|
|
// make code more readable
|
2024-09-22 18:55:39 +02:00
|
|
|
$lineheight: 1rem;
|
2019-11-04 15:21:06 +01:00
|
|
|
|
2018-10-13 17:35:10 +02:00
|
|
|
@mixin paragraph() {
|
|
|
|
padding:0;
|
|
|
|
margin:0;
|
2019-11-07 12:22:09 +01:00
|
|
|
margin-bottom: $lineheight;
|
2018-10-13 17:35:10 +02:00
|
|
|
}
|
|
|
|
|
2019-11-04 15:28:23 +01:00
|
|
|
html {
|
2024-09-22 17:57:09 +02:00
|
|
|
font-family: var(--font-family);
|
2018-10-13 16:49:21 +02:00
|
|
|
text-align: left;
|
2024-09-22 18:33:17 +02:00
|
|
|
font-size: 17px;
|
2024-09-22 18:48:26 +02:00
|
|
|
background-color: var(--background-color);
|
|
|
|
accent-color: var(--accent-color);
|
2024-09-22 18:55:39 +02:00
|
|
|
line-height: 1.6rem;
|
2019-11-04 15:28:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2024-09-22 18:48:26 +02:00
|
|
|
color: var(--text-color);
|
2018-10-13 16:49:21 +02:00
|
|
|
font-weight: 400;
|
2024-09-22 18:33:17 +02:00
|
|
|
max-width: 800px;
|
2024-09-22 17:59:41 +02:00
|
|
|
padding:1rem;
|
|
|
|
margin: auto;
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
2024-09-22 18:55:39 +02:00
|
|
|
nav ul {
|
|
|
|
display: flex;
|
|
|
|
padding: .5rem 0;
|
|
|
|
border-top: 1px solid var(--border-color);
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
li {
|
|
|
|
list-style-type: none;
|
|
|
|
margin:0;
|
|
|
|
a, span {
|
|
|
|
padding: .5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-13 16:49:21 +02:00
|
|
|
strong {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
em {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2024-09-22 18:48:26 +02:00
|
|
|
color: var(--accent-color);
|
2018-10-13 16:49:21 +02:00
|
|
|
text-decoration:none;
|
2024-09-22 19:01:31 +02:00
|
|
|
border-radius: 3px;
|
|
|
|
padding: 1px;
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--hover-color);
|
|
|
|
}
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
2019-11-07 12:37:56 +01:00
|
|
|
p, time {
|
2018-10-13 17:35:10 +02:00
|
|
|
@include paragraph();
|
2018-10-13 17:36:15 +02:00
|
|
|
&:last-child {
|
2019-11-04 15:47:24 +01:00
|
|
|
margin-bottom:0;
|
2018-10-13 17:36:15 +02:00
|
|
|
}
|
2018-10-13 17:35:10 +02:00
|
|
|
}
|
|
|
|
|
2019-11-07 12:52:49 +01:00
|
|
|
ul, ol {
|
2018-10-13 17:35:10 +02:00
|
|
|
@include paragraph();
|
|
|
|
ul {
|
2019-11-04 15:47:24 +01:00
|
|
|
margin-bottom:0;
|
2018-10-13 17:35:10 +02:00
|
|
|
}
|
|
|
|
li {
|
2019-11-07 12:22:09 +01:00
|
|
|
margin-left: $lineheight;
|
2018-10-13 17:35:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-07 12:49:17 +01:00
|
|
|
/* sup, sub */
|
|
|
|
|
|
|
|
sup, sub {
|
|
|
|
margin:0;
|
|
|
|
padding:0;
|
|
|
|
line-height:$lineheight;
|
|
|
|
font-size: 0.8rem;
|
|
|
|
vertical-align:baseline;
|
|
|
|
position:relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
sup {
|
|
|
|
top: -$lineheight/4;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub {
|
|
|
|
top: $lineheight/4;
|
|
|
|
}
|
|
|
|
|
2018-10-13 17:46:57 +02:00
|
|
|
|
2024-09-22 18:48:26 +02:00
|
|
|
::selection, ::-moz-selection { background: var(--accent-color); color: var(--background-color); }
|
2018-10-13 16:49:21 +02:00
|
|
|
|
|
|
|
/* ------------------ TITLES ------------------- */
|
|
|
|
|
2019-11-04 15:57:00 +01:00
|
|
|
@mixin title($size, $weight) {
|
2024-09-22 18:10:43 +02:00
|
|
|
font-size: $size;
|
2018-10-13 17:13:38 +02:00
|
|
|
font-weight: $weight;
|
|
|
|
}
|
|
|
|
|
2024-09-22 18:10:43 +02:00
|
|
|
h1, h2, h3, h4, h5, h6 {
|
2018-10-13 16:56:11 +02:00
|
|
|
text-align: left;
|
2024-09-22 18:10:43 +02:00
|
|
|
line-height: 1;
|
2018-10-13 16:54:38 +02:00
|
|
|
padding:0;
|
|
|
|
margin:0;
|
2018-10-13 16:49:21 +02:00
|
|
|
font-weight:400;
|
2024-09-22 18:10:43 +02:00
|
|
|
margin-bottom: $lineheight;
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2024-09-22 18:10:43 +02:00
|
|
|
@include title(2.3333333rem, 700);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
2024-09-22 18:10:43 +02:00
|
|
|
@include title(2rem, 700);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
2024-09-22 18:10:43 +02:00
|
|
|
@include title(1.5rem, 700);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
2024-09-22 18:10:43 +02:00
|
|
|
@include title(1.5rem, 600);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
2024-09-22 18:10:43 +02:00
|
|
|
@include title(1.333333rem, 600);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
2024-09-22 18:10:43 +02:00
|
|
|
@include title(1.1rem, 600);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------ HR ------------------- */
|
|
|
|
|
|
|
|
hr {
|
2019-11-07 12:49:17 +01:00
|
|
|
border-top: 0px;
|
|
|
|
border-left: 0px;
|
|
|
|
border-right: 0px;
|
|
|
|
border-bottom: 1px;
|
2024-09-22 18:48:26 +02:00
|
|
|
border-color: var(--border-color);
|
2019-11-07 12:49:17 +01:00
|
|
|
border-style: solid;
|
|
|
|
padding:0;
|
|
|
|
margin:0;
|
|
|
|
margin-bottom: $lineheight;
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------ QUOTE ------------------- */
|
|
|
|
|
2018-10-13 17:05:57 +02:00
|
|
|
@mixin well() {
|
2019-11-07 12:37:56 +01:00
|
|
|
border-width: 0 0 0 $lineheight/4;
|
2018-10-13 16:49:21 +02:00
|
|
|
border-style: solid;
|
2019-11-07 12:37:56 +01:00
|
|
|
border-radius: $lineheight/8;
|
2019-11-04 15:47:24 +01:00
|
|
|
margin:0;
|
2019-11-07 12:22:09 +01:00
|
|
|
margin-bottom: $lineheight;
|
2019-11-07 12:37:56 +01:00
|
|
|
padding: $lineheight;
|
|
|
|
font-size:1.1rem;
|
2018-10-13 17:05:57 +02:00
|
|
|
|
|
|
|
max-width: 100%;
|
2019-11-07 12:51:31 +01:00
|
|
|
overflow: auto;
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
2018-10-13 17:05:57 +02:00
|
|
|
blockquote {
|
|
|
|
@include well();
|
2024-09-22 18:48:26 +02:00
|
|
|
border-color: var(--accent-color);
|
|
|
|
background-color:var(--well-color);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
2018-10-13 17:05:57 +02:00
|
|
|
@include well();
|
2024-09-22 18:48:26 +02:00
|
|
|
border-color: var(--accent-color);
|
|
|
|
background-color:var(--well-color);
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|
|
|
|
|
2024-09-22 18:48:26 +02:00
|
|
|
code {
|
|
|
|
background-color:var(--well-color);
|
|
|
|
padding: 5px;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
2018-10-13 17:05:57 +02:00
|
|
|
|
2018-10-13 16:49:21 +02:00
|
|
|
|
|
|
|
/* ------------------ SPECIAL STYLING ------------------- */
|
|
|
|
|
|
|
|
mark {
|
|
|
|
border-radius: 0.2em;
|
2019-11-07 12:22:09 +01:00
|
|
|
padding:0 $lineheight/4 0 $lineheight/4;
|
2018-10-13 16:49:21 +02:00
|
|
|
|
|
|
|
background-color:rgba(255,255,0,0.33);
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------ SPECIAL STYLING ------------------- */
|
|
|
|
|
|
|
|
.time {
|
|
|
|
font-style: italic;
|
|
|
|
text-align: right;
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
2019-11-07 12:37:56 +01:00
|
|
|
font-size: 0.9rem;
|
2018-10-13 16:49:21 +02:00
|
|
|
}
|