selfdefined/assets/css/base/_base.scss

73 lines
999 B
SCSS
Raw Normal View History

body {
border-top: 1rem solid $primary-color;
font-family: $sans-serif;
font-size: pxToRem(20);
margin: 0;
padding: 2rem;
}
h1 {
font-family: $ext-sans;
font-weight: $bold;
}
h1,
h2,
h3,
h4 {
margin-bottom: 0.5em;
margin-top: 1em;
}
p {
font-size: 1.25rem;
line-height: 1.25;
margin: 0.75rem 0;
}
a {
border-bottom: $dark-grey solid 0.1em;
color: $black;
font-family: $ext-sans;
margin: 1rem 0;
text-decoration: none;
&:hover {
border-bottom: $primary-color solid 0.1rem;
}
&:focus {
outline: pxToRem(3) solid $primary-color;
outline-offset: pxToRem(5);
}
}
code {
background-color: $dark-grey;
border: 1px solid $black;
border-radius: 0.25em;
color: $white;
font-size: 95%;
padding: 0.15em;
pre & {
border: none;
border-radius: 0;
font-size: inherit;
padding: 0;
}
}
ul[class] {
list-style: none;
margin: 0;
padding: 0;
}
th {
text-align: left;
}
pre[class*='language-'] {
font-size: 1rem;
}