mat.services/sass/main.scss

141 lines
2.0 KiB
SCSS
Raw Normal View History

2022-08-10 20:15:30 +00:00
@import "../themes/apollo/sass/parts/_code.scss";
@import "../themes/apollo/sass/parts/_header.scss";
@import "../themes/apollo/sass/parts/_image.scss";
@import "../themes/apollo/sass/parts/misc.scss";
@import "../themes/apollo/sass/parts/table.scss";
@import "../themes/apollo/sass/parts/tags.scss";
:root {
/* Used for: block comment, hr, ... */
--border-color: var(--bg-1);
/* Fonts */
--text-font: 'iA Writer Quattro';
--header-font: 'Pretendard Std';
--code-font: 'Fira Code';
@supports(font-variation-settings: normal) {
/* Variable fonts */
--text-font: 'iA Writer Quattro var';
--header-font: 'Pretendard Std Variable';
--code-font: 'Fira Code VF';
}
}
html {
background-color: var(--bg-0);
color: var(--text-0);
font-family: var(--text-font);
line-height: 1.6em;
}
.content {
max-width: 944px;
margin: 0 auto;
padding: 0 24px;
word-wrap: break-word;
}
@media all and (min-width:640px) {
html {
font-size: 16.5px;
}
}
@media all and (min-width:720px) {
html {
font-size: 17px;
}
}
@media all and (min-width:960px) {
html {
font-size: 18px;
}
}
div.brand>* {
padding: 0 0.25em;
}
div.brand:hover img.logo {
filter: brightness(0) invert(1);
}
img.logo {
border: none;
height: 0.75em;
width: 0.75em;
padding-right: 0.25em;
}
// Nav links
nav a {
margin-left: 0.7em;
font-family: var(--code-font);
}
// Footer
.content {
display: flex;
flex-direction: column;
min-height: 100vh;
}
div.inner {
flex-grow: 1;
}
header,
footer {
flex-grow: 0;
flex-shrink: 0;
}
footer {
margin: 2em;
color: grey;
font-size: 0.75em;
}
// Different sized headers
h1 {
font-size: 1.5rem;
margin-top: 1.5em;
}
h2 {
font-size: 1.4rem;
margin-top: 1.4em;
}
h3 {
font-size: 1.3rem;
margin-top: 1.3em;
}
h4 {
font-size: 1.2rem;
margin-top: 1.2em;
}
h5 {
font-size: 1.1rem;
margin-top: 1.1em;
}
h6 {
font-size: 1rem;
margin-top: 1em;
}
// Code fonts
pre,
code {
font-family: var(--code-font);
}
// Page title width
.page-header {
max-width: 720px;
}