mylloon.fr/static/css/style.css
Mylloon b145510d83
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
custom selection color
2024-07-10 22:58:35 +02:00

96 lines
1.4 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))::after {
content: " (" attr(href) ")";
display: inline-block;
white-space: pre;
color: mediumblue;
}
a {
text-underline-position: under;
}
}