mkht.php/style.less

231 lines
3.1 KiB
Plaintext
Raw Normal View History

2021-10-09 20:13:55 +02:00
@light: ~"(prefers-color-scheme: light)";
@dark: ~"(prefers-color-scheme: dark)";
2021-10-12 00:03:18 +02:00
@fontSize: 30px;
2021-10-09 20:13:55 +02:00
* {
padding: 0px;
margin: 0px;
font-family: system-ui, sans-serif;
2021-10-12 00:03:18 +02:00
font-size: @fontSize;
line-height: 42px;
&:hover, &:focus {
color: inherit;
}
2021-10-09 20:13:55 +02:00
@media @light {
background-color: @lightColor;
color: @darkColor;
scrollbar-color: @darkColor @lightColor;
}
@media @dark {
background-color: @darkColor;
color: @lightColor;
scrollbar-color: @lightColor @darkColor;
}
}
::selection {
@media @light {
color: @lightColor;
background-color: @darkColor;
}
@media @dark {
color: @darkColor;
background-color: @lightColor;
}
}
2021-10-12 00:03:18 +02:00
body {
margin: 20px;
}
2021-10-09 20:13:55 +02:00
main {
2021-10-12 00:03:18 +02:00
padding: 15px;
2021-10-09 20:13:55 +02:00
@media (max-width: 500px) {
padding-left: 10px;
padding-right: 10px;
}
margin-left: 20%;
margin-right: 20%;
@media (max-width: 1400px) {
margin-left: 10%;
margin-right: 10%;
}
@media (max-width: 800px) {
margin-left: 0px;
margin-right: 0px;
}
}
a, a:visited {
text-decoration: underline;
transition-property: color, border-color;
transition-duration: 0.1s;
transition-timing-function: linear;
&:hover, &:focus {
text-decoration: none;
color: @mainColor;
}
}
.button {
border-width: 2px;
border-style: solid;
padding: 8px 16px 8px 16px;
margin: 5px;
display: inline-block;
border-radius: 14px;
text-decoration: none;
@media @light {
border-color: @darkColor;
}
@media @dark {
border-color: @lightColor;
}
&:hover, &:focus {
color: @mainColor;
border: 2px solid @mainColor;
}
}
.smallButton {
.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;
@media @light {
border-color: @darkColor;
}
@media @dark {
border-color: @lightColor;
}
}
strong {
font-weight: bold;
}
pre, *:not(pre) > code, var, samp {
padding: 5px;
}
pre, code, var, samp {
font-family: monospace;
overflow: auto;
border-radius: 10px;
font-style: normal;
@media @dark {
background-color: @darkerColor;
}
@media @light {
background-color: @lightlessColor;
}
}
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 {
2021-10-12 00:03:18 +02:00
padding-top: 8px;
padding-bottom: 8px;
2021-10-09 20:13:55 +02:00
}
2021-10-12 00:03:18 +02:00
header, footer, .centered {
2021-10-09 20:13:55 +02:00
text-align: center;
justify-content: center;
}
// ----- TITLES -----
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
line-height: 100%;
}
2021-10-12 00:03:18 +02:00
h1, h1 > * {
font-size: @fontSize + 40;
}
2021-10-09 20:13:55 +02:00
h1 {
text-align: center;
padding-top: 15px;
}
2021-10-12 00:03:18 +02:00
h2, h2 > * {
font-size: @fontSize + 30;
}
2021-10-09 20:13:55 +02:00
h2 {
2021-10-12 00:03:18 +02:00
margin-top: 50px;
2021-10-09 20:13:55 +02:00
margin-bottom: 20px;
}
2021-10-12 00:03:18 +02:00
h3, h3 > * {
font-size: @fontSize + 25;
}
2021-10-09 20:13:55 +02:00
h3 {
margin-top: 30px;
margin-bottom: 10px;
}
2021-10-12 00:03:18 +02:00
h4, h4 > * {
font-size: @fontSize + 18;
2021-10-09 20:13:55 +02:00
}
2021-10-12 00:03:18 +02:00
h5, h5 > * {
font-size: @fontSize + 12;
2021-10-09 20:13:55 +02:00
}
2021-10-12 00:03:18 +02:00
h6, h6 > * {
font-size: @fontSize + 6;
2021-10-09 20:13:55 +02:00
}