maggioni.xyz/_sass/_layout.scss

154 lines
2.2 KiB
SCSS

/* vim: set ts=2 sw=2 et tw=80: */
body {
background-color: $background-color;
font-family: 'IBM Plex Mono', monospace;
display: flex;
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1 0 auto;
}
.navbar-list .navbar-item {
text-transform: uppercase;
font-weight: 400;
margin: 1em;
}
ul.navbar-list {
margin-bottom: 2rem;
}
.header {
border-bottom: $border;
background: $nav-bg;
color: $nav-col;
.head.navbar {
display: flex;
h1 {
flex: 2;
font-size: 1.5rem;
display: inline;
margin: 0;
padding: 0;
a {
color: white;
}
}
.links {
white-space: nowrap;
text-align: right;
a {
text-transform: uppercase;
display: inline-block;
padding: .25rem .5rem;
}
a:first-child {
padding-left: 0;
}
a:last-child {
padding-right: 0;
}
}
}
}
.homequote {
display: flex;
background: $nav-bg;
color: $nav-col;
align-items: stretch;
margin-bottom: 1rem;
figure {
margin: 0;
flex: 0;
display: flex;
align-items: center;
min-width: 300px;
background: black;
}
.quote {
border-left: 3px dotted $brand-color;
flex: 1;
padding: 1rem 1.5rem;
}
}
@media (max-width: 700px) {
.navbar-list .navbar-item {
width: calc(100% - 2em);
}
.homequote figure { display: none }
}
ul.post-list, ul.navbar-list {
list-style-type: none;
margin-left: 0;
margin-right: 0;
}
ul.post-list li {
padding-top: 2rem;
}
ul.post-list li:first-child {
padding-top: 0;
}
footer {
padding: .5rem;
display: flex;
justify-content: space-between;
border-top: $border;
background: $nav-bg;
color: $nav-col;
.author {
font-size: 1rem;
text-align: right;
}
.icons {
text-align: center;
flex: 0;
white-space: nowrap;
.icon {
display: inline-table;
background: $nav-col;
color: $nav-bg;
width: 2.5em;
height: 2.5em;
text-align: center;
line-height: 2.5em;
margin: .25em;
cursor: pointer;
}
}
}
.container {
padding-top: 1rem;
padding-bottom: 1rem;
}
/* Utility class for centering block elements */
.block-center {
display: block;
margin: auto;
}