servnest/less/main.less

93 lines
1.1 KiB
Plaintext
Raw Normal View History

@fontSize: 30px;
@light: ~"(prefers-color-scheme: light)";
@dark: ~"(prefers-color-scheme: dark)";
2021-01-22 21:58:46 +01:00
html {
2022-04-18 16:05:00 +02:00
margin: 0px;
line-height: @fontSize + 6%;
}
2021-02-16 19:20:19 +01:00
h1 {
2022-04-18 16:05:00 +02:00
font-size: @fontSize + 25px;
line-height: @fontSize + 30px
2021-02-16 19:20:19 +01:00
}
body {
2022-04-18 16:05:00 +02:00
margin: 0px;
font-family: system-ui, sans-serif;
font-size: @fontSize;
}
header, main, footer {
2022-04-18 16:05:00 +02:00
margin-left: 20%;
margin-right: 20%;
@media (max-width: 500px) {
margin-left: 20px;
margin-right: 20px;
}
2021-01-23 17:26:46 +01:00
}
code {
2022-04-18 16:05:00 +02:00
line-height: @fontSize + 6%;
font-size: @fontSize;
}
nav {
2022-04-18 16:05:00 +02:00
display: inline-block;
margin-left: 20px;
margin-right: 20px;
}
2021-01-22 21:58:46 +01:00
header {
2022-04-18 16:05:00 +02:00
text-align: center;
margin-top: 20px;
2021-01-22 21:58:46 +01:00
}
2021-05-14 21:10:56 +02:00
p {
2022-04-18 16:05:00 +02:00
margin: 0px;
margin-bottom: 15px;
2021-05-14 21:10:56 +02:00
}
h2 {
2022-04-18 16:05:00 +02:00
margin: 0px;
padding: 0px;
}
2021-05-14 21:10:56 +02:00
.breakable {
2022-04-18 16:05:00 +02:00
word-break: break-all;
2021-01-22 21:58:46 +01:00
}
@media @light {
2022-04-18 16:05:00 +02:00
html {
background-color: @lightColor;
color: @darkColor;
}
::selection {
background-color: @darkColor;
color: @lightColor;
}
a {
color: @darkColor;
}
2021-01-22 21:58:46 +01:00
}
@media @dark {
2022-04-18 16:05:00 +02:00
html {
background-color: @darkColor;
color: @lightColor;
}
::selection {
background-color: @lightColor;
color: @darkColor;
}
a {
color: @lightColor;
}
2021-01-22 21:58:46 +01:00
}