420 lines
7 KiB
SCSS
420 lines
7 KiB
SCSS
/* STYLE for jannikbeyerstedt.de
|
|
* generic styles
|
|
*
|
|
* main font: Alegreya Sans (100,300,400,400italic,500,500italic,700)
|
|
* headings: Crimson Text (400,700)
|
|
* Logo: Boon
|
|
*/
|
|
@import "mainvariables";
|
|
|
|
@import "fonts";
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Alegreya Sans', "Verdana", "Arial", sans-serif;
|
|
min-width: 300px;
|
|
overflow-x: hidden;
|
|
}
|
|
div.site-wrap {
|
|
background-color: $color_bg;
|
|
}
|
|
h1, h2, h3, h4 {
|
|
margin-bottom: 18px;
|
|
margin-top: 1em;
|
|
font-family: 'Crimson Text', serif;
|
|
}
|
|
main h1:first-child, main div.container:first-child {
|
|
margin-top: 0;
|
|
}
|
|
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_logoPadg: 4px;
|
|
header {
|
|
a {
|
|
display: inline-block;
|
|
}
|
|
img {
|
|
width: $header_logoSize;
|
|
height: $header_logoSize;
|
|
margin-top: $header_logoPadg;
|
|
|
|
float: left;
|
|
}
|
|
}
|
|
|
|
|
|
.nav-trigger {
|
|
display: none;
|
|
}
|
|
nav {
|
|
box-sizing: border-box;
|
|
ul.nav {
|
|
margin: 0; // reset
|
|
padding-left: 0; // reset
|
|
a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
li {
|
|
list-style-type: none; // reset
|
|
}
|
|
a:hover, a:focus {
|
|
text-decoration: none; // reset
|
|
}
|
|
}
|
|
}
|
|
@include media-breakpoint-up(sm) {
|
|
nav {
|
|
float: right;
|
|
ul.nav {
|
|
a {
|
|
float: left;
|
|
text-align: center;
|
|
font-size: 18px;
|
|
font-weight: 300;
|
|
margin: 30px 7px 1px;
|
|
}
|
|
a:hover, a:focus, a.active {
|
|
border-bottom: 1px solid $color_accent;
|
|
}
|
|
a.section {
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@include media-breakpoint-up(md) {
|
|
nav ul.nav a {
|
|
margin: 30px 9px 1px;
|
|
}
|
|
}
|
|
|
|
$mobileNav_width: 200px;
|
|
$mobileNav_button_right: 15px;
|
|
nav.mobile {
|
|
width: $mobileNav_width;
|
|
height: 100%;
|
|
position: fixed;
|
|
right: -$mobileNav_width;
|
|
z-index: 0;
|
|
}
|
|
.site-wrap {
|
|
position: relative;
|
|
left: 0;
|
|
z-index: 1;
|
|
}
|
|
@include media-breakpoint-down(xs) {
|
|
label[for="nav-trigger"] {
|
|
position: absolute;
|
|
right: $mobileNav_button_right;
|
|
top: 24px;
|
|
z-index: 2;
|
|
|
|
padding: .5rem .75rem;
|
|
font-size: $font-size-lg;
|
|
line-height: 1;
|
|
font-family: inherit;
|
|
font-weight: 300;
|
|
|
|
// button-color
|
|
color: #373a3c;
|
|
background-color: #fff;
|
|
}
|
|
|
|
nav.mobile {
|
|
background-color: $color_bg_inv;
|
|
ul.mobileNav {
|
|
color: $color_font_inv;
|
|
padding: 1rem 1rem;
|
|
padding-top: 28px;
|
|
li {
|
|
margin-bottom: 0.4em;
|
|
a {
|
|
font-size: 20px;
|
|
font-weight: 300;
|
|
}
|
|
a.active {
|
|
color: $color_accent;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
ul>li {
|
|
margin-bottom: 0.2em;
|
|
}
|
|
}
|
|
}
|
|
.nav-trigger:checked + label {
|
|
right: ($mobileNav_width + $mobileNav_button_right);
|
|
}
|
|
.nav-trigger:checked ~ .site-wrap {
|
|
left: -$mobileNav_width;
|
|
box-shadow: 0 0 5px 5px rgba(0,0,0,0.5);
|
|
}
|
|
.nav-trigger:checked ~ nav.mobile {
|
|
right: 0;
|
|
}
|
|
.nav-trigger + label, nav.mobile {
|
|
transition: right 0.2s;
|
|
-webkit-transition: right 0.2s;
|
|
-moz-transition: right 0.2s;
|
|
-o-transition: right 0.2s;
|
|
}
|
|
.site-wrap {
|
|
transition: left 0.2s;
|
|
-webkit-transition: left 0.2s;
|
|
-moz-transition: left 0.2s;
|
|
-o-transition: left 0.2s;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$footer_logoHeight: 1.4rem;
|
|
$footer_margin: 25px;
|
|
$footer_height: 70px;
|
|
$footer_height_xs: 175px;
|
|
footer {
|
|
margin-top: 25px;
|
|
padding-top: 15px;
|
|
padding-bottom: 10px;
|
|
|
|
height: $footer_height;
|
|
min-width: inherit;
|
|
|
|
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;
|
|
}
|
|
|
|
}
|
|
|
|
@include media-breakpoint-down(xs) {
|
|
footer {
|
|
height: $footer_height_xs;
|
|
}
|
|
}
|
|
|
|
/* space footer at bottom of page */
|
|
$header_height: 2*$header_logoPadg + $header_logoSize + 4px; // + weird "padding" added to inline-block elements
|
|
@include media-breakpoint-up(sm) {
|
|
main {
|
|
min-height: calc(100vh - #{$header_height} - #{$footer_height} - #{$footer_margin});
|
|
}
|
|
}
|
|
@include media-breakpoint-down(xs) {
|
|
main {
|
|
min-height: calc(100vh - #{$header_height} - #{$footer_margin});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
* PLUGINS AND OTHER MODULES
|
|
*/
|
|
|
|
/*
|
|
* KIRBY PLUGIN columns by Bastians Allgeier
|
|
*/
|
|
$cols-breakdown-width: 600px;
|
|
$cols-pad: 15px;
|
|
.columns {
|
|
margin-right: -$cols-pad;
|
|
margin-left: -$cols-pad;
|
|
|
|
&:before {
|
|
display: table;
|
|
content: " ";
|
|
}
|
|
&:after {
|
|
clear: both;
|
|
display: table;
|
|
content: " ";
|
|
}
|
|
}
|
|
.column {
|
|
padding-right: $cols-pad;
|
|
padding-left: $cols-pad;
|
|
|
|
display: block;
|
|
float: left;
|
|
position: relative;
|
|
min-height: 1px;
|
|
}
|
|
.columns-1 .column {
|
|
width: 100%;
|
|
}
|
|
.columns-2 .column {
|
|
width: 50%;
|
|
|
|
@media(max-width: $cols-breakdown-width) {
|
|
width: 100%;
|
|
}
|
|
}
|
|
.columns-3 .column {
|
|
width: 33.33%;
|
|
@media(max-width: $cols-breakdown-width) {
|
|
width: 100%;
|
|
}
|
|
}
|
|
.columns-4 .column {
|
|
width: 25%;
|
|
@media(max-width: $cols-breakdown-width*2) {
|
|
width: 50%;
|
|
}
|
|
@media(max-width: $cols-breakdown-width) {
|
|
width: 100%;
|
|
}
|
|
}
|
|
.columns-5 .column {
|
|
width: 20%;
|
|
}
|
|
|
|
|
|
/* 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;
|
|
}
|