mkht.php/style.css
2023-05-31 02:40:31 +02:00

213 lines
3.2 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);
}
* {
padding: 0px;
margin: 0px;
scrollbar-color: var(--foreground-color) var(--background-color);
}
body {
font-family: system-ui, sans-serif;
font-size: 30px;
line-height: 42px;
margin: 20px;
background-color: var(--background-color);
color: var(--foreground-color);
}
@media (max-width: 420px) {
body {
font-size: 26px;
line-height: 38px;
}
}
main {
margin-left: 20%;
margin-right: 20%;
}
@media (max-width: 1400px) {
main {
margin-left: 10%;
margin-right: 10%;
}
}
@media (max-width: 800px) {
main {
margin-left: 0px;
margin-right: 0px;
padding-left: 0px;
padding-right: 0px;
}
}
a, a:visited {
text-decoration: 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;
}
abbr[title] {
text-decoration: dotted underline;
}
address {
font-style: normal;
}
ul {
padding-left: 35px;
}
dt {
font-weight: 500;
}
dd {
margin-left: 25px;
padding-bottom: 10px;
}
p {
padding-top: 8px;
padding-bottom: 8px;
}
header, footer, .centered {
text-align: center;
justify-content: center;
}
footer {
display: flex;
flex-direction: column;
}
/* ----- TITLES ----- */
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
line-height: 100%;
}
h1 {
font-size: 70px;
text-align: center;
padding-top: 15px;
margin-bottom: 20px;
}
@media (max-width: 420px) {
h1 {
font-size: 45px;
}
}
h2 {
font-size: 60px;
margin-top: 30px;
margin-bottom: 15px;
}
@media (max-width: 420px) {
h2 {
font-size: 40px;
}
}
h3 {
font-size: 42px;
margin-top: 30px;
margin-bottom: 15px;
}
@media (max-width: 420px) {
h3 {
font-size: 35px;
}
}