m2.nz/themes/m10c/assets/css/_base.scss

60 lines
1.2 KiB
SCSS
Raw Normal View History

2021-11-03 09:23:25 +00:00
* {
box-sizing: border-box;
}
html {
line-height: 1.6;
}
body {
margin: 0;
font-family: sans-serif;
background: $dark-color;
color: $light-color;
}
h1, h2, h3, h4, h5, h6 {
color: $lightest-color;
}
a {
color: $primary-color;
transition: color 0.35s;
text-decoration: none;
&:hover {
color: $lightest-color;
}
}
// Browsers seem to use a smaller default font-size with monospaced code
// blocks (like 80% of the size of normal text) and that looks pretty bad with
// small inline code-blocks in the middle of normal text (mainly because of
// the very noticeable difference in x-height). This CSS corrects that problem.
code {
font-family: monospace,monospace;
font-size: 1em;
color: rgba($light-color, .8);
}
pre {
font-size: 1rem;
line-height: 1.2em;
margin: 0;
overflow: auto;
// A larger monospaced block of text (that isn't mixed with normal text)
// generally looks heavier than normal text with the same font size. For this
// reason using a smaller monospaced font size makes sense in this situation.
code {
font-size: .8em;
}
}
::selection {
background: rgba($light-color, .25);
}
::-moz-selection {
background: rgba($light-color, .25);
}