mylloon.fr/static/css/blog/post.css

87 lines
1.1 KiB
CSS
Raw Permalink Normal View History

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 {
--max-width: 750px;
2023-04-19 18:55:03 +02:00
}
body {
max-width: var(--max-width);
margin: auto;
2023-04-27 09:00:22 +02:00
}
/* Post title */
header h1 {
font-size: calc(var(--font-size) * 2);
2023-04-25 03:29:55 +02:00
}
/* Post date */
header span {
2023-04-25 03:29:55 +02:00
font-style: italic;
}
/* Post tags */
header > ul:last-of-type {
2023-05-02 16:11:09 +02:00
display: inline;
margin-left: 1em;
padding: 0;
}
header > ul:last-of-type li::before {
2023-05-02 16:11:09 +02:00
content: "#";
}
header > ul:last-of-type li {
2023-05-02 16:11:09 +02:00
display: inline;
background: var(--tag-bg-color);
2023-05-02 16:11:09 +02:00
border-radius: 5px;
padding: 2px 8px;
font-size: calc(var(--font-size) * 0.9);
2023-04-19 18:55:03 +02:00
}
2023-04-24 20:59:02 +02:00
/* Post */
main {
margin: 0;
2023-12-25 19:50:51 +01:00
padding-block: 0;
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 {
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;
}
/* 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;
}
}