maggioni.xyz/_sass/_layout.scss

137 lines
2.1 KiB
SCSS
Raw Normal View History

2021-01-20 14:27:52 +00:00
/* vim: set ts=2 sw=2 et tw=80: */
2016-09-13 19:40:45 +00:00
$header-border: 1px solid #eee;
2016-07-07 19:05:01 +00:00
2018-10-23 14:38:45 +00:00
body {
2021-01-20 14:27:52 +00:00
background-color: $background-color;
font-family: 'IBM Plex Mono', monospace;
display: flex;
min-height: 100vh;
flex-direction: column;
2016-07-07 19:05:01 +00:00
}
2016-09-13 19:40:45 +00:00
main {
2021-01-20 14:27:52 +00:00
flex: 1 0 auto;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
.navbar-list .navbar-item {
2021-01-20 14:27:52 +00:00
text-transform: uppercase;
font-weight: 400;
margin: 1em;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
ul.navbar-list {
2021-01-20 14:27:52 +00:00
margin-bottom: 2rem;
2016-07-07 19:05:01 +00:00
}
2016-09-13 19:40:45 +00:00
.header {
2021-01-20 14:27:52 +00:00
border-bottom: 1px solid black;
2016-07-07 19:05:01 +00:00
2021-01-20 14:27:52 +00:00
.head.navbar {
display: flex;
h1 {
flex: 2;
font-size: 1.5rem;
margin-bottom: .25rem;
display: inline;
margin: 0;
2018-10-23 14:38:45 +00:00
}
2021-01-20 14:27:52 +00:00
.links {
flex: 1 fit-content;
white-space: nowrap;
line-height: 2.3rem;
text-align: right;
height: 100%;
padding-left: 1rem;
padding-right: 1rem;
border-left: 1px solid #555;
a {
font-weight: bold;
text-transform: uppercase;
padding: 0 .5rem;
}
2016-07-07 19:05:01 +00:00
}
2021-01-20 14:27:52 +00:00
}
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
@media (max-width: 700px) {
2021-01-20 14:27:52 +00:00
.navbar-list .navbar-item {
width: calc(100% - 2em);
}
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
ul.post-list, ul.navbar-list {
2021-01-20 14:27:52 +00:00
list-style-type: none;
margin-left: 0;
margin-right: 0;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
ul.post-list li {
padding-top: 2rem;
}
ul.post-list li:first-child {
padding-top: 0;
}
.header, footer {
2021-01-20 14:27:52 +00:00
background-color: #EEE;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
footer {
2021-01-20 14:27:52 +00:00
padding-top: 1rem;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
footer .author {
2021-01-20 14:27:52 +00:00
text-align: center;
text-transform: uppercase;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
.container {
2021-01-20 14:27:52 +00:00
padding-top: 1rem;
padding-bottom: 1rem;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
.icons {
2021-01-20 14:27:52 +00:00
text-align: center;
2016-09-13 19:40:45 +00:00
}
2016-07-07 19:05:01 +00:00
2018-10-23 14:38:45 +00:00
a.icon {
2021-01-20 14:27:52 +00:00
display: inline-table;
background-color: rgba(255,255,255,0.5);
border-radius: 1.75em;
width: 3.5em;
height: 3.5em;
text-align: center;
line-height: 3.5em;
margin: .5em;
color: white;
cursor: pointer;
2018-10-23 14:38:45 +00:00
}
2016-07-07 19:05:01 +00:00
2018-10-23 14:38:45 +00:00
/* Disable underlining in icon links inside the footer */
a.icon:link, a.icon:hover, a.icon:visited, a.icon:active {
2021-01-20 14:27:52 +00:00
text-decoration: none;
2018-10-23 14:38:45 +00:00
}
2021-01-20 14:27:52 +00:00
/* Light up footer icon links when hovering */
2018-10-23 14:38:45 +00:00
a.icon:hover {
2021-01-20 14:27:52 +00:00
background-color: #bbbbbb;
2016-09-13 19:40:45 +00:00
}
2016-07-07 19:05:01 +00:00
2018-10-23 14:38:45 +00:00
a.icon i.fa {
2021-01-20 14:27:52 +00:00
font-size: 2em;
display: table-cell;
vertical-align: middle;
2016-07-07 19:05:01 +00:00
}
2018-10-23 15:17:23 +00:00
/* Utility class for centering block elements */
.block-center {
display: block;
margin: auto;
}