/**
* Site header */
.site-header {
border-top: 10px solid $grey-color-dark; background-color: #999999; min-height: $spacing-unit * 1.865; // Positioning context for the mobile navigation icon position: relative;
}
.site-title {
@include relative-font-size(2);
font-weight: 300;
line-height: $base-line-height * $base-font-size * 3;
letter-spacing: -1px;
margin-bottom: 0;
float: left;
&,
&:visited {
color: $brand-color;
}
}
.site-nav {
float: right;
line-height: $base-line-height * $base-font-size * 2.25;
z-index: 99;
ul.topnav {
list-style-type: none;
margin: 0;
padding: 0;
background-color: #333;
li {
float: left;
border-right: 1px solid #bbb;
}
li:last-child {
border-right: none;
}
li a, .dropbtn {
display: inline-block;
padding: 14px 16px;
color: white;
text-align: center;
text-decoration: none;
}
li .active {
background-color: darken($brand-color, 10%);
display: block;
}
li:hover, .dropdown:hover .dropbtn {
background-color: darken($contrast-color, 10%);
color: black;
transition: .5s ease;
}
li.dropdown {
display: block;
}
.dropdown-content {
display: none;
position: absolute;
z-index: 99;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
border-radius: 5px;
border: 1px solid #ccc;
background-color: $grey-color;
}
.dropdown-content a:hover {
background-color: darken($contrast-color, 5%);
border-radius: 5px;
transition: .5s ease;
}
.dropdown:hover .dropdown-content {
display: block;
transition: .5s ease;
}
}
.nav-trigger {
display: none;
}
.menu-icon {
display: none;
}
@include media-query($on-palm) {
position: absolute;
top: 9px;
right: $spacing-unit / 2;
background-color: $background-color;
border: 1px solid $grey-color-light;
border-radius: 5px;
text-align: right;
ul.topnav li.right,
ul.topnav li {
float: none;
}
ul.topnav .dropdown {
float: none;
}
label[for="nav-trigger"] {
display: block;
float: right;
width: 36px;
height: 36px;
z-index: 2;
cursor: pointer;
}
.menu-icon {
display: block;
float: right;
width: 36px;
height: 26px;
line-height: 0;
padding-top: 10px;
text-align: center;
> svg {
fill: $brand-color;
}
}
input ~ .trigger {
clear: both;
display: none;
}
input:checked ~ .trigger {
display: block;
padding-bottom: 5px;
}
}
}
/**
* Site footer */
.site-footer {
border-top: 5px solid $grey-color; padding: $spacing-unit 0; background-color: #333333;
}
.footer-heading {
@include relative-font-size(1.125); margin-bottom: $spacing-unit / 2;
}
.contact-list, .social-media-list {
list-style: none; margin-left: 0;
}
.footer-col-wrapper {
@include relative-font-size(0.9375); color: white; display: flex; flex-wrap: wrap;
}
.footer-des {
float: left; padding-right: 100px; max-width: 400px;
}
.footer-col {
margin-bottom: $spacing-unit / 2; padding-left: $spacing-unit / 2;
}
.p-name {
@include relative-font-size(1.1)
}
/**
* Page content */
.page-content {
padding: $spacing-unit 0; flex: 1; background-color: #EBEBEB; width: 100%; margin: auto;
}
.page-heading {
@include relative-font-size(2);
}
.post-list-heading {
@include relative-font-size(1.75);
}
.post-list {
margin-left: 0;
list-style: none;
> li {
margin-bottom: $spacing-unit;
}
}
.post-meta {
font-size: $small-font-size; color: $grey-color;
}
.post-link {
display: block; @include relative-font-size(1.5);
}
/**
* Posts */
.post-header {
margin-bottom: $spacing-unit;
}
.post-title {
@include relative-font-size(2.625);
letter-spacing: -1px;
line-height: 1;
@include media-query($on-laptop) {
@include relative-font-size(2.25);
}
}
.post-content {
margin-bottom: $spacing-unit;
h2 {
@include relative-font-size(2);
@include media-query($on-laptop) {
@include relative-font-size(1.75);
}
}
h3 {
@include relative-font-size(1.625);
@include media-query($on-laptop) {
@include relative-font-size(1.375);
}
}
h4 {
@include relative-font-size(1.25);
@include media-query($on-laptop) {
@include relative-font-size(1.125);
}
}
}
/**
* Widget */
.widget {
border-radius: 10px; border-color: #FF0000; background-color: #FFFFFF; padding: 10px; margin: 10px;
}
.widget-wrapper {
display: flex; flex-wrap: wrap; padding: 10px;
}
.widget-wrapper>* {
flex: 1 1 auto;
}