1bit.pw/sass/site.scss

197 lines
2.9 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;
}
pre {
background-color: $fg-color;
font-size: 0.8em;
overflow-x: auto;
padding: 0.8rem;
border-radius: 4px;
margin-bottom: 0.5rem;
border-left: 4px solid $red;
}
table {
border-collapse: collapse;
border-spacing: 0;
tr {
border-bottom: 1px solid $border-color;
}
th {
padding-top: 0.6em;
padding-bottom: 0.4em;
padding-left: 0.8em;
padding-right: 0.8em;
font-size: 0.9em;
font-family: $heading-font;
font-weight: normal;
background-color: $border-color;
}
td {
padding: 0.4em 0.6em;
}
}
code {
font-family: $mono-font;
background-color: $fg-color;
padding: 2.5px 5px;
border-radius: 4px;
font-size: 0.75em;
}
img.badge, a.badge img {
vertical-align: middle;
}
.badge {
border: none;
text-decoration: none;
}
.muted {
color: $grey;
}
.mono {
font-family: $mono-font;
}