blog/_sass/style.scss

136 lines
1.8 KiB
SCSS
Raw Normal View History

2021-02-11 15:55:26 +01:00
$color-primary: #e1327b;
2021-02-11 01:38:11 +01:00
$color-secondary: #edcd1a;
$color-accent: #32eaed;
2021-02-11 15:55:26 +01:00
$color-bg: #12042d;
$content-width: 800px;
* {
box-sizing: border-box; /* never gets old */
}
2021-02-11 01:38:11 +01:00
body {
background-color: $color-bg;
2021-02-11 15:55:26 +01:00
font-family: sans-serif;
2021-02-11 01:38:11 +01:00
color: rgba(255, 255, 255, 0.8);
2021-02-11 15:55:26 +01:00
margin: 0;
}
2021-02-11 16:19:37 +01:00
footer {
padding: 20px 0;
2021-02-11 15:55:26 +01:00
border-top: thin solid $color-primary;
2021-02-11 19:30:17 +01:00
.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;
}
2021-02-11 15:55:26 +01:00
}
h1, h2, h3, h4, h5, h6 {
color: $color-primary;
}
2021-02-11 19:58:15 +01:00
.page-title {
padding-bottom: 16px;
border-bottom: thin solid rgba(255, 255, 255, 0.2);
}
2021-02-11 21:23:00 +01:00
p, code, ul, ol {
2021-02-11 19:58:15 +01:00
font-size: 1rem;
line-height: 1.5rem;
font-weight: 400;
}
code {
background-color: rgba(0, 0, 0, 0.5);
border-radius: 4px;
}
2021-02-11 21:23:00 +01:00
pre {
display: block;
padding: 20px;
border-radius: 4px;
background-color: rgba(0, 0, 0, 0.5);
overflow-x: auto;
code {
background: none;
}
}
2021-02-11 18:45:38 +01:00
header h1 {
2021-02-11 16:19:37 +01:00
text-align: center;
2021-02-11 18:45:38 +01:00
margin: 20px 0 0;
2021-02-11 15:55:26 +01:00
font-weight: 400;
font-family: "Oleo Script", sans-serif;
2021-02-11 01:38:11 +01:00
}
2021-02-11 16:19:37 +01:00
2021-02-11 19:12:20 +01:00
main {
max-width: $content-width;
2021-02-11 19:30:17 +01:00
margin: 40px auto;
2021-02-11 19:12:20 +01:00
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 {
2021-02-11 19:30:17 +01:00
margin-top: 0;
padding-top: 0;
2021-02-11 19:12:20 +01:00
}
article.feed-item:last-child {
border-bottom: 0;
2021-02-11 19:30:17 +01:00
margin-bottom: 0;
padding-bottom: 0;
2021-02-11 19:12:20 +01:00
}
2021-02-11 16:19:37 +01:00
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;
2021-02-11 18:45:38 +01:00
font-weight: 700;
2021-02-11 16:19:37 +01:00
}
}
2021-02-11 21:24:37 +01:00
li.current a {
text-decoration: none;
}
2021-02-11 16:19:37 +01:00
}
}