maggioni.xyz/_sass/_layout.scss

126 lines
2 KiB
SCSS
Raw Normal View History

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 {
2016-09-13 19:40:45 +00:00
background-color: #333;
font-family: 'Hammersmith One', sans-serif;
color: white;
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 {
flex: 1 0 auto;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
.navbar-list .navbar-item {
2016-09-13 19:40:45 +00:00
text-transform: uppercase;
font-weight: 400;
display: inline-block;
margin: 1em;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
ul.navbar-list {
2016-09-13 19:40:45 +00:00
border-top: $header-border;
border-bottom: $header-border;
margin-bottom: 2rem;
2016-07-07 19:05:01 +00:00
}
2016-09-13 19:40:45 +00:00
.header {
2018-10-23 14:38:45 +00:00
padding: 4rem 0 .5rem 0;
2016-09-13 19:40:45 +00:00
text-align: center;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
.head {
margin-bottom: 2.66rem;
}
2016-07-07 19:05:01 +00:00
2018-10-23 14:38:45 +00:00
@media (min-width: 700px) {
2016-09-13 19:40:45 +00:00
.header {
2018-10-23 14:38:45 +00:00
padding-top: 6rem;
}
.head {
margin-bottom: 4rem;
2016-07-07 19:05:01 +00:00
}
}
2018-10-23 14:38:45 +00:00
@media (max-width: 700px) {
2016-09-13 19:40:45 +00:00
.navbar-list .navbar-item {
2016-09-26 20:09:25 +00:00
width: calc(100% - 2em);
2016-09-13 19:40:45 +00:00
}
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
.navbar-item a {
2016-09-13 19:40:45 +00:00
color: $brand-color;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
ul.post-list, ul.navbar-list {
2016-09-13 19:40:45 +00:00
list-style-type: none;
2016-07-07 19:05:01 +00:00
margin-left: 0;
2016-09-13 19:40:45 +00:00
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 {
2016-09-13 19:40:45 +00:00
background-color: rgba(0,0,0,0.25);
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
footer {
2016-09-13 19:40:45 +00:00
padding-top: 1rem;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
footer .author {
2016-09-13 19:40:45 +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 {
2016-09-13 19:40:45 +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 {
2016-09-13 19:40:45 +00:00
text-align: center;
}
2016-07-07 19:05:01 +00:00
2018-10-23 14:38:45 +00:00
a.icon {
2016-09-13 19:40:45 +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 {
text-decoration: none;
}
/* Light up footer icon links when hovering */
a.icon:hover {
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 {
2016-09-13 19:40:45 +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;
}