mylloon.fr/static/css/style.css

103 lines
1.5 KiB
CSS

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