You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

166 lines
2.2 KiB
SCSS

$color-primary: #e1327b;
$color-bg: #12042d;
$content-width: 800px;
* {
box-sizing: border-box; /* never gets old */
}
html, body {
background-color: $color-bg;
color: rgba(255, 255, 255, 0.8);
font-family: sans-serif;
margin: 0;
min-height: 100vh;
}
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;
}
ul {
list-style-type: none;
padding: 0;
}
}
@media(max-width: 550px) {
footer .container {
display: block;
}
footer ul {
line-height: 2rem;
}
}
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, ul, ol {
font-size: 1rem;
line-height: 1.5rem;
font-weight: 400;
}
@media(min-width: $content-width) {
main {
p, code, ul, ol {
font-size: 1.2rem;
line-height: 1.8rem;
}
}
}
code {
background-color: rgba(0, 0, 0, 0.5);
border-radius: 4px;
}
pre {
display: block;
padding: 20px;
border-radius: 4px;
background-color: rgba(0, 0, 0, 0.5);
overflow-x: auto;
code {
background: none;
}
}
header {
padding-top: 20px;
border-bottom: thin solid $color-primary;
h1 {
text-align: center;
margin: 0;
font-weight: 400;
font-family: "Oleo Script", 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;
}
a.nostyle {
color: unset;
text-decoration: none;
}
nav {
overflow-x: auto;
white-space: nowrap;
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;
}
}
li[aria-current] a {
text-decoration: none;
padding-bottom: 16px;
border-bottom: 4px solid $color-primary;
}
}
}