251 lines
3.7 KiB
CSS
251 lines
3.7 KiB
CSS
@light: ~"(prefers-color-scheme: light)";
|
|
@dark: ~"(prefers-color-scheme: dark)";
|
|
|
|
:root {
|
|
--dark-color: #141312;
|
|
--light-color: #FFFFFF;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--foreground-color: var(--light-color);
|
|
--background-color: var(--dark-color);
|
|
--main-color: #FF1E00;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
--foreground-color: var(--dark-color);
|
|
--background-color: var(--light-color);
|
|
--main-color: #FF0000;
|
|
}
|
|
}
|
|
|
|
::selection {
|
|
color: var(--background-color);
|
|
background-color: var(--foreground-color);
|
|
}
|
|
|
|
* {
|
|
scrollbar-color: var(--foreground-color) var(--background-color);
|
|
}
|
|
|
|
body {
|
|
font-family: system-ui, sans-serif;
|
|
font-size: 1rem;
|
|
line-height: 1.5em;
|
|
margin: 1rem;
|
|
padding: 0;
|
|
|
|
background-color: var(--background-color);
|
|
color: var(--foreground-color);
|
|
}
|
|
|
|
main {
|
|
max-width: 40rem;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
a, a:visited, a[title], a[title]:visited {
|
|
text-decoration: solid underline;
|
|
transition-property: color, border-color;
|
|
transition-duration: 0.05s;
|
|
transition-timing-function: linear;
|
|
background-color: var(--background-color);
|
|
color: var(--foreground-color);
|
|
}
|
|
|
|
a:hover, a:visited:hover, a:focus, a:focus:visited {
|
|
text-decoration: none;
|
|
color: var(--main-color);
|
|
}
|
|
|
|
.small-button, .button {
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
padding: 8px 16px 8px 16px;
|
|
margin: 5px;
|
|
display: inline-block;
|
|
border-radius: 14px;
|
|
text-decoration: none;
|
|
border-color: var(--foreground-color);
|
|
}
|
|
|
|
.small-button:hover, .button:hover, .small-button:focus, .button:focus {
|
|
color: var(--main-color);
|
|
border: 2px solid var(--main-color);
|
|
}
|
|
|
|
.small-button {
|
|
font-size: 80%;
|
|
padding: 0px 16px 0px 16px;
|
|
}
|
|
|
|
img {
|
|
height: auto;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.imgArticle {
|
|
display: block;
|
|
margin: auto;
|
|
margin-top: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.border {
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-radius: 5px;
|
|
border-color: var(--foreground-color);
|
|
}
|
|
|
|
strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
pre, code, var, samp {
|
|
font-family: monospace;
|
|
overflow: auto;
|
|
font-style: normal;
|
|
border-radius: 15px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
address {
|
|
font-style: normal;
|
|
}
|
|
|
|
ul {
|
|
padding-left: 1.5rem;
|
|
}
|
|
ol {
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
dl {
|
|
margin: 0;
|
|
}
|
|
dt {
|
|
padding-top: 0.8rem;
|
|
font-size: 1.2rem;
|
|
}
|
|
dd {
|
|
margin-left: 0.6rem;
|
|
padding-left: 1.2rem;
|
|
position: relative;
|
|
}
|
|
dd::before {
|
|
content: '↳';
|
|
top: 0;
|
|
left: 0;
|
|
position: absolute;
|
|
}
|
|
|
|
blockquote {
|
|
position: relative;
|
|
margin: 0;
|
|
padding-left: 1.5rem;
|
|
padding-right: 1.5rem;
|
|
font-style: italic;
|
|
}
|
|
blockquote::before, blockquote::after {
|
|
position: absolute;
|
|
font-size: 1.3rem;
|
|
}
|
|
blockquote::before {
|
|
content: '«';
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
blockquote::after {
|
|
content: '»';
|
|
bottom: 0;
|
|
right: 0;
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
margin-top: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
header, footer, .centered {
|
|
text-align: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
footer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
[title] {
|
|
text-decoration: dotted underline;
|
|
}
|
|
|
|
[hreflang=en]::after {
|
|
content: ' (en)';
|
|
}
|
|
[hreflang=fr]::after {
|
|
content: ' (fr)';
|
|
}
|
|
|
|
[hreflang]::after {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.level2, .level3 {
|
|
margin-top: 1.2rem;
|
|
}
|
|
.level2 {
|
|
border-left: 0.16rem solid var(--foreground-color);
|
|
padding-left: 1rem;
|
|
}
|
|
.level3 {
|
|
border-left: 0.16rem solid var(--foreground-color);
|
|
padding-left: 1rem;
|
|
}
|
|
|
|
:target {
|
|
border: 0.16rem solid var(--foreground-color);
|
|
}
|
|
|
|
/* ----- TITLES ----- */
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-weight: normal;
|
|
line-height: 100%;
|
|
margin-top: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.6rem;
|
|
text-align: center;
|
|
}
|
|
@media (max-width: 420px) {
|
|
h1 {
|
|
font-size: 45px;
|
|
}
|
|
}
|
|
|
|
h2 {
|
|
font-size: 2.2rem;
|
|
}
|
|
@media (max-width: 420px) {
|
|
h2 {
|
|
font-size: 40px;
|
|
}
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.5rem;
|
|
}
|
|
@media (max-width: 420px) {
|
|
h3 {
|
|
font-size: 35px;
|
|
}
|
|
}
|