mirror of
https://github.com/avitex/avitex.github.io
synced 2024-11-16 09:29:57 +00:00
154 lines
2.2 KiB
SCSS
154 lines
2.2 KiB
SCSS
$red: #ef5350;
|
|
$grey: #a1a1a1;
|
|
$white: #f1f1f1;
|
|
$bg-color: #111111;
|
|
$fg-color: #1d1d1d;
|
|
$border-color: #161616;
|
|
|
|
$mono-font: 'Source Code Pro', monospace;
|
|
$content-font: 'Charter', serif;
|
|
$heading-font: 'Space Grotesk', Helvetica, sans-serif;
|
|
|
|
$lg-breakpoint: 1024px;
|
|
$md-breakpoint: 720px;
|
|
$sm-breakpoint: 640px;
|
|
|
|
@import './layout';
|
|
@import './scrollbar';
|
|
@import './header';
|
|
@import './search';
|
|
@import './site-nav';
|
|
@import './home';
|
|
|
|
* {
|
|
color: inherit;
|
|
line-height: 1.3;
|
|
text-decoration: inherit;
|
|
}
|
|
|
|
html {
|
|
color: $white;
|
|
background: $bg-color;
|
|
font-family: $content-font;
|
|
text-rendering: optimizeLegibility;
|
|
|
|
@media all and (min-width: 640px) {
|
|
font-size: 17px;
|
|
}
|
|
|
|
@media all and (min-width: 720px) {
|
|
font-size: 18px
|
|
}
|
|
|
|
@media all and (min-width: 1024px) {
|
|
font-size: 19px;
|
|
}
|
|
}
|
|
|
|
main {
|
|
font-size: 0.9rem;
|
|
|
|
a {
|
|
color: $red;
|
|
border-bottom: 1px solid $red;
|
|
}
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
font-weight: bold;
|
|
font-family: $heading-font;
|
|
margin: 1.2rem 0 0.4rem 0;
|
|
|
|
& > a {
|
|
color: inherit;
|
|
border-bottom: none;
|
|
}
|
|
|
|
a.anchor{
|
|
display: none;
|
|
&::after {
|
|
color: $red;
|
|
content: " #";
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
&:hover a.anchor {
|
|
display: inline;
|
|
}
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
small {
|
|
font-size: 0.5em;
|
|
}
|
|
|
|
ul, ol {
|
|
padding-left: 1rem;
|
|
|
|
li {
|
|
padding-bottom: 0.2rem;
|
|
}
|
|
}
|
|
|
|
hr {
|
|
border: none;
|
|
height: 2px;
|
|
margin-bottom: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
background-color: $border-color;
|
|
}
|
|
|
|
article {
|
|
header, footer .info {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.icon {
|
|
color: $grey;
|
|
}
|
|
|
|
.readmore {
|
|
span {
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.icon {
|
|
color: $red;
|
|
}
|
|
}
|
|
}
|
|
|
|
p {
|
|
padding-top: 0.5rem;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
code {
|
|
font-family: $mono-font;
|
|
background-color: $fg-color;
|
|
padding: 2.5px 5px;
|
|
border-radius: 4px;
|
|
font-size: 0.75em;
|
|
}
|
|
|
|
.muted {
|
|
color: $grey;
|
|
}
|
|
|
|
.mono {
|
|
font-family: $mono-font;
|
|
}
|