servnest/less/main.less

93 lines
1.2 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 {
margin: 0px;
line-height: @fontSize + 6%;
}
2021-02-16 19:20:19 +01:00
h1 {
font-size: @fontSize + 25px;
line-height: @fontSize + 30px
}
body {
margin: 0px;
2021-02-16 19:20:19 +01:00
font-family: system-ui, sans-serif;
2021-01-22 21:58:46 +01:00
font-size: @fontSize;
}
header, main, footer {
2021-01-23 17:26:46 +01:00
margin-left: 20%;
margin-right: 20%;
2021-01-22 21:58:46 +01:00
@media (max-width: 500px) {
margin-left: 20px;
margin-right: 20px;
}
2021-01-23 17:26:46 +01:00
}
code {
line-height: @fontSize + 6%;
font-size: @fontSize;
}
nav {
display: inline-block;
margin-left: 20px;
margin-right: 20px;
}
2021-01-22 21:58:46 +01:00
header {
text-align: center;
margin-top: 20px;
2021-01-22 21:58:46 +01:00
}
2021-05-14 21:10:56 +02:00
p {
margin: 0px;
margin-bottom: 15px;
}
h2 {
margin: 0px;
padding: 0px;
}
2021-05-14 21:10:56 +02:00
.breakable {
word-break: break-all;
2021-01-22 21:58:46 +01:00
}
@media @light {
2021-01-22 21:58:46 +01:00
html {
background-color: @lightColor;
color: @darkColor;
2021-01-22 21:58:46 +01:00
}
2021-01-25 13:39:31 +01:00
::selection {
background-color: @darkColor;
color: @lightColor;
2021-01-25 13:39:31 +01:00
}
2021-08-05 02:54:12 +02:00
a {
color: @darkColor;
}
2021-01-22 21:58:46 +01:00
}
@media @dark {
2021-01-22 21:58:46 +01:00
html {
background-color: @darkColor;
color: @lightColor;
2021-01-22 21:58:46 +01:00
}
2021-01-25 13:39:31 +01:00
::selection {
background-color: @lightColor;
color: @darkColor;
2021-01-25 13:39:31 +01:00
}
2021-08-05 02:54:12 +02:00
a {
color: @lightColor;
}
2021-01-22 21:58:46 +01:00
}