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

357 lines
6 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;
margin-top: 1em;
font-family: 'Crimson Text', serif;
}
h5 {
margin-bottom: 8px;
}
h6 {
margin-bottom: 5px;
}
p {
margin-top: 0;
line-height: 1.5em;
}
a {
color: $link_color;
&:active, &:hover, &:focus {
color: $link_active;
}
}
main p {
a {
text-decoration: underline;
}
a:visited {
color: $link_visited;
}
}
blockquote {
font-size: 1.4em;
border-left: 4px solid #dddddd;
padding: 0 15px;
color: #777777;
}
blockquote > :first-child {
margin-top: 0;
}
blockquote > :last-child {
margin-bottom: 0;
}
code {
padding: 0 5px;
white-space: nowrap;
border: 1px solid #eaeaea;
background-color: #f8f8f8;
border-radius: 3px;
}
pre {
background-color: #f8f8f8;
border: 1px solid #cccccc;
font-size: 14px;
line-height: 19px;
overflow: auto;
padding: 6px 10px;
border-radius: 3px;
code {
margin: 0;
padding: 0;
white-space: pre;
border: none;
background: transparent;
}
}
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 $color_accent;
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 $color_accent;
padding-bottom: 1.5px;
}
}
ul.nav.second {
color: $nav_fgColor;
a {
background-color: $nav_bgColor;
}
a.active {
border-bottom: 4px solid $color_accent;
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: $footer_color_bg;
color: $color_font;
p {
margin-bottom: 0;
}
@media (max-width: $col_xxs_bp) {
text-align: center;
p {
margin-bottom: 10px;
}
}
i.fa {
color: $color_font;
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;
}
}
img {
height: $footer_logoHeight;
padding-right: 0.2em;
}
}
/* make footer sticky */
$footer_height: 85px;
$footer_height_xs: 175px;
$footer_margin: 30px;
html {
position: relative;
min-height: 100%;
}
@include media-breakpoint-up(sm) {
body {
/* Margin bottom by footer height */
margin-bottom: $footer_height + $footer_margin;
}
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_margin;
}
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%;
}
.columns ul {
padding-left: 25px;
}