mylloon.fr/static/css/style.css

93 lines
1.3 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
}
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 */
a:not(:where([href^="#"], [href^="/"])):not(:has(img))::after {
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;
}
}