2
0
mirror of https://github.com/offen/website.git synced 2024-12-03 13:30:27 +01:00
website/homepage/theme/static/css/style.scss

613 lines
10 KiB
SCSS
Raw Normal View History

2019-08-26 21:05:13 +02:00
/* ---------------------------------------------------
ROOTS
----------------------------------------------------*/
2019-10-26 10:35:17 +02:00
$yellow-mid: #F7BF08;
$yellow-bright: #fde28c;
$mint-mid: #BBD9D3;
$black-mid: #39352A;
$grey-mid: #898989;
$grey-bright: #D5D5D5;
$white: #FFF;
2019-08-26 21:05:13 +02:00
2019-10-26 23:02:26 +02:00
2019-08-26 21:05:13 +02:00
/* ---------------------------------------------------
BASICS
----------------------------------------------------*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* ---------------------------------------------------
2019-08-29 22:21:00 +02:00
LAYOUT & SPACER
2019-08-26 21:05:13 +02:00
----------------------------------------------------*/
.menu {
width: 100%;
height: 70px;
position: fixed;
2019-08-29 22:21:00 +02:00
z-index: 1;
2019-08-26 21:05:13 +02:00
top: 0;
right: 0;
2019-10-26 10:35:17 +02:00
background-color: $yellow-mid;
2019-08-26 21:05:13 +02:00
}
.intro {
width: 100%;
margin: 70px 0 0 0;
2019-10-26 10:35:17 +02:00
background-color: $yellow-mid;
2019-08-26 21:05:13 +02:00
}
.feature {
width: 100%;
}
.cta-top {
width: 100%;
2019-10-26 10:35:17 +02:00
color: $yellow-mid;
2019-08-26 21:05:13 +02:00
}
.content {
width: 100%;
margin: 70px 0 0 0;
2019-10-26 10:35:17 +02:00
background-color: $white;
2019-08-26 21:05:13 +02:00
}
.content-index {
width: 100%;
2019-10-26 10:35:17 +02:00
background-color: $white;
2019-08-26 21:05:13 +02:00
}
.cta-bottom,
.outro {
width: 100%;
}
.footer {
width: 100%;
min-height: 300px;
2019-10-26 10:35:17 +02:00
color: $grey-mid;
background-color: $black-mid;
2019-08-26 21:05:13 +02:00
}
2019-08-29 22:21:00 +02:00
.spacer-intro {
width: 430px;
}
.spacer-right {
width: 400px;
margin: 0 0 0 auto;
}
2019-08-26 21:05:13 +02:00
/* Desktop Styles */
@media only screen and (min-width: 961px) {
2019-10-26 23:02:26 +02:00
.container-full {
padding: 60px 0 120px 0;
}
2019-08-26 21:05:13 +02:00
.container-reader {
width: 600px;
margin: 0 auto;
2019-10-26 23:02:26 +02:00
padding: 60px 0 120px 0;
2019-08-26 21:05:13 +02:00
}
.footer {
padding: 40px 40px 0 40px;
}
}
/* Mobile Styles */
@media only screen and (min-width: 600px) and (max-width: 960px) {
2019-10-26 23:02:26 +02:00
.container-reader {
2019-08-26 21:05:13 +02:00
width: 600px;
margin: 0 auto;
}
}
@media only screen and (max-width: 960px) {
.container-reader,
.container-full,
.footer {
padding: 60px 20px 120px 20px;
}
}
/* Mobile Styles*/
@media only screen and (max-width: 480px) {
.menu {
position: static;
}
.intro {
margin: 0;
}
.content {
margin: 0;
}
2019-08-29 22:21:00 +02:00
.spacer-intro {
width: 300px;
}
.spacer-right {
width: 100%;
margin: 0;
}
2019-08-26 21:05:13 +02:00
}
2019-08-29 22:21:00 +02:00
2019-08-26 21:05:13 +02:00
/* ---------------------------------------------------
CARDS
----------------------------------------------------*/
.card-deck,
.card,
.footer-card-deck {
2019-10-26 23:02:26 +02:00
display: -webkit-box;
display: -ms-flexbox;
2019-08-26 21:05:13 +02:00
display: flex;
}
.card {
2019-10-26 23:02:26 +02:00
flex-direction: column;
width: 280px;
2019-10-26 10:35:17 +02:00
color: $black-mid;
2019-08-26 21:05:13 +02:00
}
.card h2,
2019-08-29 22:21:00 +02:00
.card p {
2019-08-26 21:05:13 +02:00
text-align: center;
}
.footer-card p {
margin: 0 0 2px 0;
}
.footer-card:nth-child(1),
.footer-card:nth-child(3) {
2019-08-26 21:05:13 +02:00
margin: 0 0 20px 0;
}
/* Mobile Styles */
@media only screen and (max-width: 960px) {
.card-deck,
.footer-card-deck {
flex-direction: column;
}
2019-10-26 23:02:26 +02:00
.card-deck {
justify-content: center;
}
2019-08-26 21:05:13 +02:00
.card {
2019-10-26 23:02:26 +02:00
margin: 0 auto;
2019-08-26 21:05:13 +02:00
}
.card:nth-child(2) {
2019-10-26 23:02:26 +02:00
margin: 100px auto 100px auto;
2019-08-26 21:05:13 +02:00
}
.footer-card {
text-align: center;
}
}
/* Desktop Styles */
@media only screen and (min-width: 961px) {
.card-deck,
2019-08-29 22:21:00 +02:00
.footer-card-deck {
2019-08-26 21:05:13 +02:00
flex-direction: row;
}
.card-deck {
2019-10-26 23:02:26 +02:00
justify-content: center;
2019-08-26 21:05:13 +02:00
}
.card:nth-child(2) {
2019-10-26 23:02:26 +02:00
margin: 0 50px 0 50px;
2019-08-26 21:05:13 +02:00
}
.footer-card-deck {
justify-content: space-between;
}
.footer-card:nth-child(1),
.footer-card:nth-child(2),
.footer-card:nth-child(3) {
2019-08-26 21:05:13 +02:00
flex-grow: 1;
}
.footer-card:nth-child(4) {
2019-08-26 21:05:13 +02:00
text-align: right;
flex-grow: 8;
2019-08-26 21:05:13 +02:00
}
}
/* ---------------------------------------------------
TYPO
----------------------------------------------------*/
body {
font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
font-weight: 400;
word-wrap: break-word;
2019-10-26 10:35:17 +02:00
color: $grey-mid;
2019-10-26 23:02:26 +02:00
background-color: $black-mid; // overscroll color
2019-08-26 21:05:13 +02:00
}
h1,
h2 {
font-weight: 700;
line-height: 1.3;
2019-10-26 10:35:17 +02:00
color: $black-mid;
2019-08-26 21:05:13 +02:00
}
h3,
h4 {
2019-08-29 22:21:00 +02:00
font-size: 14px;
2019-08-26 21:05:13 +02:00
font-weight: 400;
2019-10-26 10:35:17 +02:00
color: $black-mid;
2019-08-26 21:05:13 +02:00
}
h3 {
margin: 0 0 20px 0;
}
p + h3 {
margin: 60px 0 20px 0;
}
h4 {
2019-10-26 10:35:17 +02:00
color: $grey-mid;
2019-08-26 21:05:13 +02:00
}
/* Desktop Styles */
@media only screen and (min-width: 481px) {
h1,
h2{
font-size: 30px;
}
h1 {
margin: 20px 0 10px 0;
}
}
/* Mobile Styles */
@media only screen and (max-width: 480px) {
h1,
h2 {
font-size: 22px;
}
}
2019-09-08 20:51:51 +02:00
@media only screen and (max-width: 330px) {
.spacer-intro {
width: 250px;
}
}
2019-08-29 22:21:00 +02:00
2019-08-26 21:05:13 +02:00
/* ---------------------------------------------------
LINKS
----------------------------------------------------*/
a,
a:hover,
a:focus {
2019-10-26 10:35:17 +02:00
color: $grey-mid;
2019-08-26 21:05:13 +02:00
text-decoration: none;
}
p a,
p a:hover,
p a:focus {
font-weight: 700;
}
ol li p a,
ol li p a:hover,
ol li p a:focus {
2019-10-26 10:35:17 +02:00
color: $grey-bright;
2019-08-26 21:05:13 +02:00
}
2019-08-29 22:21:00 +02:00
2019-08-26 21:05:13 +02:00
/* ---------------------------------------------------
TYPO ELEMENTS
----------------------------------------------------*/
2019-08-29 22:21:00 +02:00
h1 + p {
2019-10-26 10:35:17 +02:00
color: $black-mid;
2019-08-29 22:21:00 +02:00
}
.bg h2 {
margin: 0 0 10px 0;
}
#bg-cta-top h2,
#bg-cta-top p,
#bg-cta-top .btn-wrapper,
#bg-outro h2,
#bg-outro p,
#bg-outro .btn-wrapper {
text-align: right;
}
#bg-cta-bottom .btn-wrapper {
text-align: center;
}
#bg-cta-top h2,
#bg-cta-top p {
2019-10-26 10:35:17 +02:00
color: $white;
2019-08-29 22:21:00 +02:00
}
#bg-outro h2,
#bg-outro p {
2019-10-26 10:35:17 +02:00
color: $black-mid;
2019-08-29 22:21:00 +02:00
}
strong,
h1 + p strong,
.bg strong {
font-weight: 700;
}
.container-reader h2 {
2019-08-26 21:05:13 +02:00
margin: 0 0 20px 0;
2019-10-26 10:35:17 +02:00
color: $grey-bright;
2019-08-26 21:05:13 +02:00
}
2019-08-29 22:21:00 +02:00
strong,
h3 strong {
text-decoration: none;
font-weight: 400;
2019-10-26 10:35:17 +02:00
color: $black-mid;
2019-08-26 21:05:13 +02:00
}
2019-08-29 22:21:00 +02:00
.cta-top strong {
2019-10-26 10:35:17 +02:00
color: $white;
2019-08-29 22:21:00 +02:00
}
.content-index p,
.content p {
margin: 0 0 20px 0;
}
2019-08-26 21:05:13 +02:00
hr {
height: 0;
margin: 80px 0 20px 0;
2019-10-26 10:35:17 +02:00
border-top: 1px solid $grey-bright;
2019-08-26 21:05:13 +02:00
}
blockquote {
margin: 0;
padding: 0 0 0 20px;
font-style: italic;
2019-10-26 10:35:17 +02:00
border-left: 1px solid $grey-bright;
2019-08-26 21:05:13 +02:00
}
2019-08-29 22:21:00 +02:00
ol {
padding-inline-start: 20px;
}
em {
2019-10-26 10:35:17 +02:00
background: linear-gradient(transparent 66%, $yellow-bright 66%);
2019-08-29 22:21:00 +02:00
font-style: normal;
2019-08-26 21:05:13 +02:00
}
.footer-card h3 strong {
font-weight: 700;
2019-10-26 10:35:17 +02:00
color: $yellow-mid;
2019-08-26 21:05:13 +02:00
}
.footer h3,
.footer h4 {
2019-10-26 10:35:17 +02:00
color: $yellow-mid;
2019-08-26 21:05:13 +02:00
margin: 0 0 2px 0;
}
.footnote {
2019-10-26 10:35:17 +02:00
color: $grey-bright;
2019-08-26 21:05:13 +02:00
}
2019-09-03 22:09:46 +02:00
/* reposition for fixed menu */
.footnote li {
margin-top: -75px;
padding-top: 75px;
}
2019-08-26 21:05:13 +02:00
/* ---------------------------------------------------
BUTTONS
----------------------------------------------------*/
.btn-wrapper {
margin: 40px 0 0 0;
}
2019-12-11 14:08:02 +01:00
.btn-wrapper-article {
margin: 30px 0 80px 0;
}
2019-08-26 21:05:13 +02:00
.btn {
border-radius: 0px;
padding: 8px 30px;
text-align: center;
text-decoration: none;
}
.btn-color-yellow,
.btn-color-yellow:visited,
.btn-color-yellow:link,
.btn-color-yellow:hover,
.btn-color-yellow:active {
font-weight: 700;
2019-10-26 10:35:17 +02:00
color: $yellow-mid;
border: solid $yellow-mid 5px;
2019-08-26 21:05:13 +02:00
}
.btn-color-black,
.btn-color-black:visited,
.btn-color-black:link,
.btn-color-black:hover,
.btn-color-black:active {
font-weight: 700;
2019-10-26 10:35:17 +02:00
color: $black-mid;
border: solid $black-mid 5px;
2019-08-26 21:05:13 +02:00
}
.btn-color-white,
.btn-color-white:visited,
.btn-color-white:link,
.btn-color-white:hover,
.btn-color-white:active {
font-weight: 700;
2019-10-26 10:35:17 +02:00
color: $white;
border: solid $white 5px;
2019-08-26 21:05:13 +02:00
}
2019-08-29 22:21:00 +02:00
2019-08-26 21:05:13 +02:00
/* ---------------------------------------------------
MENU
----------------------------------------------------*/
.nav-list {
2019-09-08 20:51:51 +02:00
margin: 0 10px 40px 0;
2019-08-26 21:05:13 +02:00
}
.nav-bar {
height: 70px;
}
.icon {
2019-08-26 21:05:13 +02:00
position: absolute;
padding: 12px 0 0 20px;
float: left;
line-height: 70px;
}
body.index .icon {
2019-08-26 21:05:13 +02:00
opacity: 0;
}
.nav-container {
margin: 0 auto;
}
nav {
float: right;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
}
nav ul li {
float: left;
position: relative;
}
nav ul li a,
nav ul li a:visited {
display: block;
padding: 0 20px;
line-height: 70px;
2019-09-08 20:51:51 +02:00
text-decoration: none;
font-weight: 700;
2019-10-26 10:35:17 +02:00
background: $yellow-mid;
color: $black-mid;
2019-08-26 21:05:13 +02:00
}
nav ul li a:hover,
nav ul li a:visited:hover {
2019-10-26 10:35:17 +02:00
color: $black-mid;
2019-08-26 21:05:13 +02:00
}
nav ul li a:not(:only-child):after,
nav ul li a:visited:not(:only-child):after {
padding-left: 4px;
content: ' â–¾';
}
nav ul li ul li {
min-width: 150px;
}
nav ul li ul li a {
padding: 15px;
line-height: 20px;
}
.nav-dropdown {
position: absolute;
display: none;
z-index: 1;
}
.nav-mobile {
display: none;
position: absolute;
top: 0;
right: 0;
2019-10-26 10:35:17 +02:00
background: $yellow-mid;
2019-08-26 21:05:13 +02:00
height: 70px;
width: 70px;
}
/* Mobile Styles */
@media only screen and (max-width: 960px) {
2019-09-08 20:51:51 +02:00
.nav-list {
margin: 0 0 40px 0;
}
2019-08-26 21:05:13 +02:00
.nav-mobile {
display: block;
}
nav {
width: 100%;
padding: 70px 0 15px;
}
nav ul {
display: none;
}
nav ul li {
float: none;
}
nav ul li a {
padding: 15px;
line-height: 20px;
padding-left: 25%;
}
nav ul li ul li a {
padding-left: 30%;
}
nav ul li:last-child a {
padding-bottom: 60px;
}
nav ul li:last-child a {
box-shadow: 0px 7px 15px -6px rgba(57,53,42,0.2);
}
.nav-dropdown {
position: static;
}
}
/* Desktop Styles */
@media screen and (min-width: 961px) {
.nav-list {
display: block !important;
}
}
#nav-toggle {
position: absolute;
left: 18px;
top: 22px;
cursor: pointer;
padding: 12px 35px 16px 0px;
}
#nav-toggle span,
#nav-toggle span:before,
#nav-toggle span:after {
cursor: pointer;
border-radius: 1px;
height: 2px;
2019-09-08 20:51:51 +02:00
width: 25px;
2019-10-26 10:35:17 +02:00
background: $black-mid;
2019-08-26 21:05:13 +02:00
position: absolute;
display: block;
content: '';
/*
transition: all 300ms ease-in-out;
*/
}
#nav-toggle span:before {
2019-09-08 20:51:51 +02:00
top: -8px;
2019-08-26 21:05:13 +02:00
}
#nav-toggle span:after {
2019-09-08 20:51:51 +02:00
bottom: -8px;
2019-08-26 21:05:13 +02:00
}
#nav-toggle.active span {
background-color: transparent;
}
#nav-toggle.active span:before, #nav-toggle.active span:after {
top: 0;
}
#nav-toggle.active span:before {
transform: rotate(45deg);
}
#nav-toggle.active span:after {
transform: rotate(-45deg);
}
/* ---------------------------------------------------
GRAPHICS
----------------------------------------------------*/
#bg-intro {
background: url(/theme/images/gfx-intro.svg) no-repeat center;
}
/*-------------------------*/
2019-08-29 22:21:00 +02:00
#bg-feature {
background: url(/theme/images/gfx-pattern-mint-bright.svg) center;
2019-08-26 21:05:13 +02:00
}
/*-------------------------*/
#bg-cta-top {
2019-08-29 22:21:00 +02:00
background: url(/theme/images/gfx-object-white.svg) center;
2019-08-26 21:05:13 +02:00
}
/*-------------------------*/
#bg-outro {
2019-08-29 22:21:00 +02:00
background: url(/theme/images/gfx-pattern-yellow-bright.svg) center;
2019-08-26 21:05:13 +02:00
}
/*-------------------------*/
#bg-cta-bottom {
2019-08-29 22:21:00 +02:00
background: url(/theme/images/gfx-pattern-yellow-bright.svg) center;
2019-08-26 21:05:13 +02:00
}
/* ---------------------------------------------------
IMAGES
----------------------------------------------------*/
2019-09-30 15:16:03 +02:00
img {
display: block;
}
.image-text-custom {
margin: 10px 0 -15px 0;
}
2019-12-12 07:56:24 +01:00
.image-text-600-338 {
width: 600px;
height: 338px;
}
.image-text-600-322 {
width: 600px;
height: 322px;
2019-09-30 15:16:03 +02:00
}
@media only screen and (max-width: 600px) {
2019-12-12 07:56:24 +01:00
.image-text-600-338 {
max-width:100%;
height: auto;
}
.image-text-600-322 {
2019-09-30 15:16:03 +02:00
max-width:100%;
height: auto;
}
}