new-ryuslash.org/src/less/include/common.less
Tom Willemse 813ed5acc3 Reduce the overall line height
I'm not sure why I mad it so huge in the first place.
2023-07-26 12:19:30 -07:00

112 lines
1.6 KiB
Text

@import 'colors';
html {
max-width: 70ch;
padding: 0.2em 1em;
margin: auto;
line-height: 1.2;
font-size: 1.25em;
}
a {
text-decoration: underline;
@media (prefers-color-scheme: dark) {
color: @dark-primary;
&:visited {
color: darken(@dark-primary, 10%);
}
}
@media (prefers-color-scheme: light) {
color: @light-primary;
&:visited {
color: darken(@light-primary, 10%);
}
}
&:hover {
text-decoration: underline;
}
img {
border: none;
}
}
blockquote {
margin: 0;
}
body {
border: 0;
font-family: "PT Sans", "Liberation Sans", "DejaVu Sans", "Tahoma", "Verdana", "Arial", sans-serif;
margin-top: 0;
@media (prefers-color-scheme: dark) {
background-color: @dark-background;
color: @dark-foreground;
}
@media (prefers-color-scheme: light) {
background-color: @light-background;
color: @light-foreground;
}
}
figure {
margin: 0;
}
h1, h2, h3, h4, h5, h6 {
margin: 2rem 0 0.2rem;
}
h1 {
font-size: 1.6rem;
}
h2 {
font-size: 1.5rem;
border-bottom-width: 1px;
border-bottom-style: solid;
@media (prefers-color-scheme: dark) {
border-bottom-color: @dark-foreground;
}
@media (prefers-color-scheme: light) {
border-bottom-color: @light-foreground;
}
}
h3 {
font-size: 1.4rem;
}
h4 {
font-size: 1.3rem;
font-weight: bold;
}
h5 {
font-size: 1.2rem;
font-weight: bold;
}
h6 {
font-size: 1.1rem;
font-weight: bold;
}
pre {
font-family: "Fantasque Sans Mono", "PT Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier new", monospace;
font-size: 14pt;
line-height: 100%;
}
p { margin: 0; }
p + p { margin: 1rem 0; }