this-week-in-rust/themes/rusted/static/css/_layout.scss

136 lines
1.8 KiB
SCSS

/**
* Site header
*/
.site-header {
border-top: 5px solid $grey-colour-dark;
border-bottom: 1px solid $grey-colour-light;
min-height: 56px;
// Positioning context for the mobile navigation icon
position: relative;
}
.site-title {
font-size: 36px;
font-weight: bold;
line-height: 64px;
letter-spacing: -1px;
margin-bottom: 0;
&,
&:visited {
color: $grey-colour-dark;
}
}
/**
* Site footer
*/
body > footer {
border-top: 1px solid $grey-colour-light;
padding: $spacing-unit 0;
margin-top: $spacing-unit;
}
/**
* Post list
*/
.past-issues {
margin-top: 20px;
li.nav-header h2 {
border-bottom: 1px solid $grey-colour-light;
}
li {
line-height: 1.8;
}
}
.time-prefix {
font-family: "Fira Mono", monospace;
}
.post-title {
font-size: 20px;
}
/**
* Page content
*/
.page-content {
padding-top: $spacing-unit;
}
.page-heading {
font-size: 20px;
}
.post-list {
margin-left: 0;
list-style: none;
> li {
margin-bottom: $spacing-unit;
}
}
.post-meta {
font-size: $small-font-size;
color: $grey-colour;
}
.post-link {
display: block;
font-size: 24px;
}
/**
* Posts
*/
.post {
margin-top: 32px;
border: 1px solid $grey-colour-light;
padding: 24px;
border-radius: 8px;
}
.post-header {
margin-bottom: $spacing-unit;
}
.post-content {
margin-bottom: $spacing-unit;
h2 {
font-size: 32px;
@include media-query($on-laptop) {
font-size: 28px;
}
}
h3 {
font-size: 26px;
@include media-query($on-laptop) {
font-size: 22px;
}
}
h4 {
font-size: 20px;
@include media-query($on-laptop) {
font-size: 18px;
}
}
}