2024-11-06 16:31:13 +01:00
|
|
|
@import "../markdown.css";
|
2024-11-06 15:33:09 +01:00
|
|
|
|
2023-04-19 18:55:03 +02:00
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
:root {
|
2023-05-02 16:11:09 +02:00
|
|
|
--tag-bg-color: #d2e0f0;
|
2023-04-19 18:55:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
2023-05-02 16:11:09 +02:00
|
|
|
--tag-bg-color: #242e38;
|
2023-04-19 18:55:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
:root {
|
2023-04-27 19:23:22 +02:00
|
|
|
--max-width: 750px;
|
2023-04-19 18:55:03 +02:00
|
|
|
}
|
|
|
|
|
2023-10-15 20:58:20 +02:00
|
|
|
body {
|
|
|
|
max-width: var(--max-width);
|
|
|
|
margin: auto;
|
2023-04-27 09:00:22 +02:00
|
|
|
}
|
|
|
|
|
2023-10-15 20:58:20 +02:00
|
|
|
/* Post title */
|
|
|
|
header h1 {
|
|
|
|
font-size: calc(var(--font-size) * 2);
|
2023-04-25 03:29:55 +02:00
|
|
|
}
|
|
|
|
|
2023-10-15 20:58:20 +02:00
|
|
|
/* Post date */
|
|
|
|
header span {
|
2023-04-25 03:29:55 +02:00
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2023-10-15 20:58:20 +02:00
|
|
|
/* Post tags */
|
|
|
|
header > ul:last-of-type {
|
2023-05-02 16:11:09 +02:00
|
|
|
display: inline;
|
|
|
|
margin-left: 1em;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2023-10-15 20:58:20 +02:00
|
|
|
header > ul:last-of-type li::before {
|
2023-05-02 16:11:09 +02:00
|
|
|
content: "#";
|
|
|
|
}
|
|
|
|
|
2023-10-15 20:58:20 +02:00
|
|
|
header > ul:last-of-type li {
|
2023-05-02 16:11:09 +02:00
|
|
|
display: inline;
|
2023-10-15 20:58:20 +02:00
|
|
|
background: var(--tag-bg-color);
|
2023-05-02 16:11:09 +02:00
|
|
|
border-radius: 5px;
|
|
|
|
padding: 2px 8px;
|
2023-10-15 20:58:20 +02:00
|
|
|
font-size: calc(var(--font-size) * 0.9);
|
2023-04-19 18:55:03 +02:00
|
|
|
}
|
2023-04-24 20:59:02 +02:00
|
|
|
|
2023-10-15 20:58:20 +02:00
|
|
|
/* Post */
|
|
|
|
main {
|
|
|
|
margin: 0;
|
2023-12-25 19:50:51 +01:00
|
|
|
padding-block: 0;
|
2023-10-15 20:58:20 +02:00
|
|
|
max-width: 100%;
|
2023-04-25 02:32:32 +02:00
|
|
|
}
|
|
|
|
|
2023-04-25 03:21:05 +02:00
|
|
|
/* Images */
|
2024-12-16 19:11:00 +01:00
|
|
|
img,
|
|
|
|
svg {
|
2023-04-27 01:06:05 +02:00
|
|
|
max-width: var(--max-width);
|
2023-04-25 03:21:05 +02:00
|
|
|
}
|
|
|
|
|
2023-04-25 03:37:13 +02:00
|
|
|
/* Code */
|
|
|
|
kbd,
|
|
|
|
code {
|
2023-10-15 20:58:20 +02:00
|
|
|
font-family: monospace;
|
2023-04-25 03:37:13 +02:00
|
|
|
}
|
|
|
|
|
2023-05-02 23:10:36 +02:00
|
|
|
/* Table of content */
|
|
|
|
nav#toc {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 25px;
|
|
|
|
margin-left: 50px;
|
|
|
|
}
|
|
|
|
|
2023-10-15 20:58:20 +02:00
|
|
|
/* breakpoint */
|
2023-05-02 23:10:36 +02:00
|
|
|
@media only screen and (max-width: 1500px) {
|
|
|
|
/* Visible only on large screens */
|
|
|
|
nav#toc {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|