mylloon.fr/static/css/style.css

104 lines
1.5 KiB
CSS
Raw Permalink Normal View History

/* Theme of the pages */
2023-02-09 10:45:59 +01:00
html {
background-color: var(--background);
2023-10-16 09:19:35 +02:00
font-family: var(--font-family);
2023-02-09 10:45:59 +01:00
}
2024-07-10 22:58:35 +02:00
::selection {
background-color: var(--selection-color);
}
body,
a {
color: var(--font-color);
font-size: var(--font-size);
2023-10-15 21:47:30 +02:00
hyphens: auto;
2023-02-09 10:45:59 +01:00
}
a {
transition: opacity 0.2s;
2023-02-09 10:45:59 +01:00
}
a:hover {
opacity: 0.6;
2023-02-09 10:45:59 +01:00
}
main {
position: relative;
font-size: var(--font-size);
padding: 2em 1em;
margin: 0 auto;
max-width: 640px; /* breakpoint */
2023-02-09 10:45:59 +01:00
}
/* Navigation bar across all of the pages */
header nav {
2023-04-11 01:51:49 +02:00
text-align: center;
2023-02-09 10:45:59 +01:00
}
header nav li {
display: inline-block;
2023-02-09 10:45:59 +01:00
}
/* Maybe do this only with 'large' screens */
header nav p::after {
content: "·";
padding: 10px;
2023-02-09 10:45:59 +01:00
}
/* breakpoint */
@media only screen and (max-width: 640px) {
header nav p::after {
padding: 6px;
2023-04-11 01:51:49 +02:00
}
2023-02-09 10:45:59 +01:00
}
header nav li:last-child p::after {
2023-04-11 01:51:49 +02:00
content: "";
2023-02-09 10:45:59 +01:00
}
header nav a {
2023-04-11 01:51:49 +02:00
text-decoration: none;
color: var(--link-color);
2023-02-09 10:45:59 +01:00
}
header nav a:hover {
text-decoration: underline;
2023-02-09 10:45:59 +01:00
}
.bold {
font-weight: bold;
2023-02-09 10:45:59 +01:00
}
@media print {
2024-05-29 22:46:37 +02:00
/* Hide navigation header */
header nav {
2024-05-29 22:46:37 +02:00
display: none;
}
/* Better colors for paper */
html {
color: black;
background-color: white;
}
/* Add links */
2024-12-16 19:11:00 +01:00
a:not(:where([href^="#"], [href^="/"])):not(:has(img)):not(:has(svg))::after {
2024-05-29 22:46:37 +02:00
content: " (" attr(href) ")";
display: inline-block;
2024-05-29 22:56:35 +02:00
white-space: pre;
2024-05-29 22:46:37 +02:00
color: mediumblue;
}
a {
text-underline-position: under;
}
}
2024-12-04 11:04:31 +01:00
@media (prefers-color-scheme: dark) {
2024-12-16 19:11:00 +01:00
img,
svg {
2024-12-04 11:04:31 +01:00
filter: brightness(0.8) contrast(1.2);
}
}