blog/_sass/style.scss
2021-02-11 19:58:15 +01:00

120 lines
1.7 KiB
SCSS

$color-primary: #e1327b;
$color-secondary: #edcd1a;
$color-accent: #32eaed;
$color-bg: #12042d;
$content-width: 800px;
* {
box-sizing: border-box; /* never gets old */
}
body {
background-color: $color-bg;
font-family: sans-serif;
color: rgba(255, 255, 255, 0.8);
margin: 0;
}
footer {
padding: 20px 0;
border-top: thin solid $color-primary;
.container {
max-width: $content-width;
margin: 0 auto;
display: flex;
flex-direction: horizontal;
}
.container > * {
flex: 1;
margin: 0 20px;
}
}
@media(max-width: 550px) {
footer .container {
display: block;
}
}
h1, h2, h3, h4, h5, h6 {
color: $color-primary;
}
.page-title {
padding-bottom: 16px;
border-bottom: thin solid rgba(255, 255, 255, 0.2);
}
p, code {
font-size: 1rem;
line-height: 1.5rem;
font-weight: 400;
}
code {
background-color: rgba(0, 0, 0, 0.5);
border-radius: 4px;
}
header h1 {
text-align: center;
margin: 20px 0 0;
font-weight: 400;
font-family: "OleoScript", sans-serif;
}
main {
max-width: $content-width;
margin: 40px auto;
padding: 0 20px;
}
article.feed-item {
margin: 0 0 20px;
padding: 0 0 20px;
border-bottom: thin solid rgba(255, 255, 255, 0.2);
:last-child {
margin-bottom: 0;
}
}
article.feed-item:first-child {
margin-top: 0;
padding-top: 0;
}
article.feed-item:last-child {
border-bottom: 0;
margin-bottom: 0;
padding-bottom: 0;
}
a {
color: $color-primary;
}
nav {
border-bottom: thin solid $color-primary;
ul {
list-style-type: none;
padding: 0;
margin: 0 auto;
max-width: $content-width;
li {
display: inline-block;
a {
padding: 20px;
display: inline-block;
font-weight: 700;
text-decoration: none;
}
}
}
}