2
0
mirror of https://github.com/offen/website.git synced 2024-10-18 20:20:24 +02:00
website/styles/index.css

299 lines
4.9 KiB
CSS
Raw Normal View History

2019-08-14 21:17:29 +02:00
2019-08-15 21:19:25 +02:00
/* ---------------------------------------------------
ROOTS
----------------------------------------------------*/
:root {
--yellow-mid: #F7BF08;
--yellow-bright: #F7BF08;
--black-mid: #39352A;
--grey-mid: #898989;
--grey-bright: #D5D5D5;
--white: #FFF;
}
/* ---------------------------------------------------
BASICS
----------------------------------------------------*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
2019-08-18 22:28:06 +02:00
/* ---------------------------------------------------
TYPO
----------------------------------------------------*/
2019-08-14 21:17:29 +02:00
body {
2019-08-18 22:28:06 +02:00
background-color: var(--white);
2019-08-15 21:19:25 +02:00
font: 18px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 18px;
line-height: 1.5;
font-weight: 400;
2019-08-18 22:28:06 +02:00
color: var(--grey-mid);
}
h1,
h2,
h3,
h4 {
font-size: 28px;
font-weight: 400;
color: var(--black-mid);
}
h3,
h4 {
font-size: 18px;
2019-08-14 21:17:29 +02:00
}
2019-08-18 22:28:06 +02:00
/* ---------------------------------------------------
TYPO ELEMENTS
----------------------------------------------------*/
.intro h1 {
color: var(--white);
}
blockquote {
margin: 0;
font-style: italic
border-left: 1px solid var(--grey-bright);
}
hr {
height: 0;
border-top: 1px solid var(--grey-bright);
}
strong {
font-weight: 700
}
strong,
h1 strong,
h2 strong,
h3 strong {
text-decoration: none;
font-weight: 400;
color: var(--black-mid);
}
2019-08-14 21:17:29 +02:00
2019-08-15 21:19:25 +02:00
2019-08-14 21:17:29 +02:00
/* ---------------------------------------------------
MENU
----------------------------------------------------*/
.nav-bar {
height: 70px;
}
.brand {
position: absolute;
padding: 12px 0 0 20px;
float: left;
line-height: 70px;
}
.brand a,
.brand a:visited {
2019-08-15 21:19:25 +02:00
color: var(--black-mid);;
2019-08-14 21:17:29 +02:00
text-decoration: none;
}
.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-08-15 21:19:25 +02:00
background: var(--yellow-mid);
color: var(--black-mid);;
2019-08-14 21:17:29 +02:00
text-decoration: none;
}
nav ul li a:hover,
nav ul li a:visited:hover {
2019-08-15 21:19:25 +02:00
color: var(--black-mid);;
2019-08-14 21:17:29 +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 {
2019-08-15 21:19:25 +02:00
min-width: 150px;
2019-08-14 21:17:29 +02:00
}
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-08-15 21:19:25 +02:00
background: var(--yellow-mid);
2019-08-14 21:17:29 +02:00
height: 70px;
width: 70px;
}
@media only screen and (max-width: 960px) {
.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;
2019-08-15 21:19:25 +02:00
padding-left: 25%;
2019-08-14 21:17:29 +02:00
}
nav ul li ul li a {
padding-left: 30%;
}
.nav-dropdown {
position: static;
}
.brand a img {
/*
max-height: 60px;
margin-top: 5px;
*/
}
}
2019-08-15 21:19:25 +02:00
2019-08-14 21:17:29 +02:00
@media screen and (min-width: 961px) {
.nav-list {
display: block !important;
}
}
#nav-toggle {
position: absolute;
left: 18px;
top: 22px;
cursor: pointer;
padding: 10px 35px 16px 0px;
}
#nav-toggle span,
#nav-toggle span:before,
#nav-toggle span:after {
cursor: pointer;
border-radius: 1px;
height: 3px;
width: 35px;
2019-08-15 21:19:25 +02:00
background: var(--black-mid);;
2019-08-14 21:17:29 +02:00
position: absolute;
display: block;
content: '';
transition: all 300ms ease-in-out;
}
#nav-toggle span:before {
top: -10px;
}
#nav-toggle span:after {
bottom: -10px;
}
#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);
}
/* ---------------------------------------------------
LAYOUT
----------------------------------------------------*/
2019-08-11 21:32:56 +02:00
.menu {
width: 100%;
2019-08-14 21:17:29 +02:00
height: 70px;
2019-08-11 21:32:56 +02:00
position: fixed;
top: 0;
right: 0;
2019-08-15 21:19:25 +02:00
background-color: var(--yellow-mid);
2019-08-11 21:32:56 +02:00
}
.intro {
width: 100%;
2019-08-18 22:28:06 +02:00
height: 400px;
2019-08-15 21:19:25 +02:00
margin: 70px 0 0 0;
background-color: var(--yellow-mid);
2019-08-11 21:32:56 +02:00
}
2019-08-18 22:28:06 +02:00
.feature {
width: 100%;
height: 400px;
background-color: var(--grey-bright);
}
.cta-top {
width: 100%;
height: 200px;
color: var(--yellow-mid);
background-color: var(--black-mid);
}
2019-08-11 21:32:56 +02:00
.content {
width: 100%;
2019-08-15 21:19:25 +02:00
margin: 70px 0 0 0;
background-color: var(--white);
2019-08-11 21:32:56 +02:00
}
2019-08-15 21:19:25 +02:00
.content-index {
2019-08-11 21:32:56 +02:00
width: 100%;
2019-08-15 21:19:25 +02:00
background-color: var(--white);
2019-08-11 21:32:56 +02:00
}
2019-08-18 22:28:06 +02:00
.cta-bottom {
width: 100%;
height: 200px;
background-color: var(--yellow-mid);
}
2019-08-11 21:32:56 +02:00
.footer {
width: 100%;
2019-08-15 21:19:25 +02:00
height: 240px;
color: var(--grey-mid);
background-color: var(--black-mid);
2019-08-11 21:32:56 +02:00
}
/* Mobile Styles */
2019-08-15 21:19:25 +02:00
@media only screen and (max-width: 960px) {
.container-reader {
margin: 0 20px 0 20px;
}
.container-full {
margin: 0 20px 0 20px;
2019-08-11 21:32:56 +02:00
}
}
/* Desktop Styles */
@media only screen and (min-width: 961px) {
2019-08-15 21:19:25 +02:00
.container-reader {
width: 600px;
2019-08-11 21:32:56 +02:00
margin: 0 auto;
}
2019-08-15 21:19:25 +02:00
.container-full {
margin: 0 80px 0 80px;
2019-08-11 21:32:56 +02:00
}
}