1
0
Fork 0
web-jbeyerstedt/assets/scss/main.scss

299 lines
5 KiB
SCSS

/* STYLE for jannikbeyerstedt.de
* generic styles
*/
@import "custom";
@import "variables";
@import "mixins";
@import "mainvariables";
body {
margin: 0;
font-family: 'Alegreya Sans', "Verdana", "Arial", sans-serif;
min-width: 300px;
}
h1, h2, h3, h4 {
margin-bottom: 18px;
font-family: 'Crimson Text', serif;
}
h5 {
margin-bottom: 8px;
}
h6 {
margin-bottom: 5px;
}
p {
margin-top: 0;
line-height: 1.5em;
}
main div.container {
margin-top: 10px;
@include media-breakpoint-up(lg) {
max-width: 940px;
}
}
$header_logoSize: 75px;
header {
margin-bottom: 10px;
img {
width: $header_logoSize;
height: $header_logoSize;
float: left;
}
}
nav {
box-sizing: border-box;
ul.nav {
margin: 0; // reset
padding-left: 0; // reset
a {
text-decoration: none;
background-color: inherit;
color: inherit;
}
li {
list-style-type: none; // reset
}
a:hover, a:focus {
text-decoration: none; // reset
}
}
}
@include media-breakpoint-up(sm) {
nav {
float: right;
height: $header_logoSize;
ul.nav {
a {
float: left;
text-align: center;
font-size: 16px;
padding: 45px 0 5px;
width: $nav_textSmWidth;
}
a:hover, a:focus, a.active {
color: $nav_fgColor;
background-color: darken($nav_bgColor, 10%);
}
}
ul.nav.home {
color: $nav_fgColor;
a {
background-color: $nav_bgColor;
border-right: 1px solid $nav_borderColor;
}
a:last-child {
border-right: 0;
}
a.active {
color: $nav_fgColor;
border-bottom: 4px solid #2da301;
padding-bottom: 1px;
}
}
ul.nav.main, ul.nav.second {
height: $header_logoSize/2;
a {
padding: 8px 0 5.5px;
}
}
ul.nav.main {
color: $nav_bgColor;
a.active {
color: $nav_fgColor;
border-bottom: 4px solid #2da301;
padding-bottom: 1.5px;
}
}
ul.nav.second {
color: $nav_fgColor;
a {
background-color: $nav_bgColor;
}
a.active {
border-bottom: 4px solid #2da301;
padding-bottom: 1.5px;
}
}
}
}
@include media-breakpoint-down(xs) {
nav {
button.navbar-toggler {
float: right;
margin-top: 10px;
font-family: inherit;
font-weight: 300;
}
ul.mobileNav {
a {
font-size: 18px;
font-weight: 300;
}
a.active {
color: lighten($nav_bgColor, 10%);
font-weight: 700;
}
}
}
// ---- from boostrap ----
// @requires animation.scss and collapse.js, util.js
.navbar-toggler {
padding: .5rem .75rem;
font-size: $font-size-lg;
line-height: 1;
background: none;
border: $border-width solid transparent;
@include border-radius($btn-border-radius);
@include hover-focus {
text-decoration: none;
}
}
}
$footer_logoHeight: 1.4rem;
footer {
margin-top: 20px;
padding-top: 20px;
padding-bottom: 20px;
background-color: #bebebe;
color: $fontcolor;
p {
margin-bottom: 0;
}
@media (max-width: $col_xxs_bp) {
text-align: center;
p {
margin-bottom: 10px;
}
}
i.fa {
color: $fontcolor;
font-size: $footer_logoHeight;
padding-right: 0.2em;
}
a > svg {
height: $footer_logoHeight;
width: $footer_logoHeight;
position: relative; top: 0.18rem;
image {
height: $footer_logoHeight;
width: $footer_logoHeight;
}
}
}
/* make footer sticky */
$footer_height: 85px;
$footer_height_xs: 162px;
html {
position: relative;
min-height: 100%;
}
@include media-breakpoint-up(sm) {
body {
/* Margin bottom by footer height */
margin-bottom: $footer_height;
}
footer {
position: absolute;
bottom: 0;
width: 100%;
height: $footer_height;
}
}
@include media-breakpoint-down(xs) {
body {
/* Margin bottom by footer height */
margin-bottom: $footer_height_xs;
}
footer {
position: absolute;
bottom: 0;
width: 100%;
height: $footer_height_xs;
}
}
/*
* HELPERS
*/
.right {
text-align: right;
}
.center {
text-align: center;
}
@media (max-width: $col_xxs_bp) {
.col-xxs-12.right, .col-xxs-12.center {
text-align: inherit;
}
}
/* to break down col-xs */
.visible-xxs {
display: none!important;
}
@media (max-width: $col_xxs_bp) {
.col-xxs-12 {
float: none;
width: 100%;
position: relative; left: 0; right: 0;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}
.hidden-xxs {
display: none!important;
}
.visible-xxs {
display: block!important;
}
}
/*
* KIRBYTAGS
*/
.html5player {
width: 100%;
height: auto;
background-color: black;
}
div.video-container {
position: relative;
width: 100%;
height: auto;
max-width: 100%;
padding-bottom: 53%;
padding-top: 30px;
overflow: hidden;
}
.video-container iframe {
position: absolute; top: 0; left: 0;
width: 100%; height: 100%;
}