mkht.php/style.less
2022-01-03 19:22:55 +01:00

229 lines
3.2 KiB
Text
Executable file

@light: ~"(prefers-color-scheme: light)";
@dark: ~"(prefers-color-scheme: dark)";
@smallWidthScreen: ~"(max-width: 420px)";
::selection {
@media @light {
color: @lightColor;
background-color: @darkColor;
}
@media @dark {
color: @darkColor;
background-color: @lightColor;
}
}
* {
padding: 0px;
margin: 0px;
@media @light {
scrollbar-color: @darkColor @lightColor;
}
@media @dark {
scrollbar-color: @lightColor @darkColor;
}
}
body {
font-family: system-ui, sans-serif;
font-size: 30px;
line-height: 42px;
margin: 20px;
@media @light {
background-color: @lightColor;
color: @darkColor;
}
@media @dark {
background-color: @darkColor;
color: @lightColor;
}
@media @smallWidthScreen {
font-size: 26px;
line-height: 38px;
}
}
main {
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;
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;
@media @light {
background-color: @lightColor;
color: @darkColor;
}
@media @dark {
background-color: @darkColor;
color: @lightColor;
}
&: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, 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 @smallWidthScreen {
font-size: 45px;
}
}
h2 {
font-size: 60px;
margin-top: 30px;
margin-bottom: 15px;
@media @smallWidthScreen {
font-size: 40px;
}
}
h3 {
font-size: 42px;
margin-top: 30px;
margin-bottom: 15px;
@media @smallWidthScreen {
font-size: 35px;
}
}