146 lines
2.4 KiB
SCSS
146 lines
2.4 KiB
SCSS
@font-face {
|
|
font-family: spectral;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url("/fonts/spectral-regular.woff2") format("woff2"),
|
|
url("/fonts/spectral-regular.woff") format("woff"),
|
|
url("/fonts/spectral-regular.ttf") format("truetype");
|
|
}
|
|
@font-face {
|
|
font-family: spectral;
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: url("/fonts/spectral-bold.woff2") format("woff2"),
|
|
url("/fonts/spectral-bold.woff") format("woff"),
|
|
url("/fonts/spectral-bold.ttf") format("truetype");
|
|
}
|
|
@font-face {
|
|
font-family: spectral;
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
src: url("/fonts/spectral-italic.woff2") format("woff2"),
|
|
url("/fonts/spectral-italic.woff") format("woff"),
|
|
url("/fonts/spectral-italic.ttf") format("truetype");
|
|
}
|
|
|
|
|
|
body {
|
|
font-family: spectral, serif;
|
|
text-rendering: optimizeLegibility;
|
|
font-size: 18px;
|
|
line-height: 1.5;
|
|
|
|
max-width: 45em;
|
|
margin: 0 auto;
|
|
padding: 1em;
|
|
|
|
display: grid;
|
|
grid-template-columns: 10em auto;
|
|
grid-column-gap: 2em;
|
|
}
|
|
|
|
header {
|
|
grid-column: 1/-1;
|
|
padding: 2rem 0;
|
|
font-weight: bold;
|
|
font-size: 1.5em;
|
|
|
|
a { color: inherit }
|
|
}
|
|
|
|
aside {
|
|
span.title {
|
|
display: block;
|
|
margin: 2em 0 1em 0;
|
|
font-weight: bold;
|
|
}
|
|
ul {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
|
|
li a {
|
|
color: #000;
|
|
display: block;
|
|
padding: 0 .5em;
|
|
|
|
&:hover {
|
|
color: #fff;
|
|
background-color: #000;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
main {
|
|
margin-bottom: 5rem;
|
|
|
|
article h1 a { color: inherit }
|
|
.info {
|
|
border-top: 1px solid #eee;
|
|
margin: 2em 0;
|
|
padding: 1em 0;
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
font-size: .85em;
|
|
|
|
li { margin-right: 1em }
|
|
}
|
|
}
|
|
img {
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
border: 1px solid #bbb;
|
|
border-radius: .2rem;
|
|
padding: .2rem;
|
|
|
|
& + em {
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
}
|
|
table {
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
text-align: left;
|
|
|
|
td, th { padding: 0 1em }
|
|
}
|
|
blockquote {
|
|
margin: 1em 2em 1em 1.5em;
|
|
|
|
p {
|
|
border-left: 3px solid #bbb;
|
|
padding-left: 1.5em;
|
|
}
|
|
}
|
|
p>code {
|
|
background-color: #2b303b;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
padding: .3em .5em;
|
|
border-radius: .3em;
|
|
}
|
|
pre {
|
|
font-size: 14px;
|
|
padding: 1em;
|
|
overflow: auto;
|
|
border-radius: .3em;
|
|
}
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: #E1140A;
|
|
|
|
&:hover { text-decoration: underline }
|
|
}
|
|
|
|
@media screen and (max-width: 50em) {
|
|
body { grid-template-columns: auto }
|
|
}
|