mirror of
https://github.com/offen/website.git
synced 2024-10-18 20:20:24 +02:00
474 lines
8.2 KiB
CSS
474 lines
8.2 KiB
CSS
|
|
|
|
/* ---------------------------------------------------
|
|
ROOTS
|
|
----------------------------------------------------*/
|
|
:root {
|
|
--yellow-mid: #F7BF08;
|
|
--yellow-bright: #fde28c;
|
|
--black-mid: #39352A;
|
|
--grey-mid: #898989;
|
|
--grey-bright: #D5D5D5;
|
|
--white: #FFF;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------
|
|
BASICS
|
|
----------------------------------------------------*/
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------
|
|
LAYOUT
|
|
----------------------------------------------------*/
|
|
.menu {
|
|
width: 100%;
|
|
height: 70px;
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
background-color: var(--yellow-mid);
|
|
}
|
|
.intro {
|
|
width: 100%;
|
|
margin: 70px 0 0 0;
|
|
background-color: var(--yellow-mid);
|
|
}
|
|
.feature {
|
|
width: 100%;
|
|
background-color: var(--grey-bright);
|
|
}
|
|
.cta-top {
|
|
width: 100%;
|
|
height: 200px;
|
|
color: var(--yellow-mid);
|
|
background-color: var(--black-mid);
|
|
}
|
|
.content {
|
|
width: 100%;
|
|
margin: 70px 0 0 0;
|
|
background-color: var(--white);
|
|
}
|
|
.content-index {
|
|
width: 100%;
|
|
background-color: var(--white);
|
|
}
|
|
.cta-bottom {
|
|
width: 100%;
|
|
background-color: var(--yellow-mid);
|
|
}
|
|
.footer {
|
|
width: 100%;
|
|
min-height: 300px;
|
|
color: var(--grey-mid);
|
|
background-color: var(--black-mid);
|
|
}
|
|
/* Desktop Styles */
|
|
@media only screen and (min-width: 961px) {
|
|
.container-reader {
|
|
width: 600px;
|
|
margin: 0 auto;
|
|
padding: 60px 20px 120px 20px;
|
|
}
|
|
.container-full {
|
|
padding: 60px 80px 120px 80px;
|
|
}
|
|
.footer {
|
|
padding: 40px 40px 0 40px;
|
|
}
|
|
}
|
|
/* Tablet Styles */
|
|
@media only screen and (min-width: 600px) and (max-width: 960px) {
|
|
.container-reader,
|
|
.container-full {
|
|
width: 600px;
|
|
margin: 0 auto;
|
|
padding: 60px 20px 120px 20px;
|
|
}
|
|
}
|
|
/* Mobile Styles */
|
|
@media only screen and (max-width: 960px) {
|
|
.container-reader,
|
|
.container-full,
|
|
.footer {
|
|
padding: 60px 20px 120px 20px;
|
|
}
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------
|
|
CARDS
|
|
----------------------------------------------------*/
|
|
.card-deck,
|
|
.card,
|
|
.footer-card-deck {
|
|
display: flex;
|
|
}
|
|
.card {
|
|
max-width: 400px;
|
|
color: var(--black-mid);
|
|
}
|
|
.footer-card p {
|
|
margin: 0 0 4px 0;
|
|
}
|
|
.footer-card:nth-child(1),
|
|
.footer-card:nth-child(2) {
|
|
margin: 0 0 20px 0;
|
|
}
|
|
/* Mobile Styles */
|
|
@media only screen and (max-width: 960px) {
|
|
.card-deck,
|
|
.card,
|
|
.footer-card-deck {
|
|
flex-direction: column;
|
|
}
|
|
.card {
|
|
align-self: center;
|
|
}
|
|
.card:nth-child(2) {
|
|
margin: 80px 0 80px 0;
|
|
}
|
|
.card-gfx,
|
|
.card-text,
|
|
.footer-card {
|
|
text-align: center;
|
|
}
|
|
.card-gfx {
|
|
margin: 0 0 20px 0;
|
|
}
|
|
}
|
|
/* Tablet Styles */
|
|
@media only screen and (min-width: 600px) and (max-width: 960px) {
|
|
|
|
}
|
|
/* Desktop Styles */
|
|
@media only screen and (min-width: 961px) {
|
|
.card-deck,
|
|
.card,
|
|
.footer-card-deck {
|
|
flex-direction: row;
|
|
}
|
|
.card-deck {
|
|
justify-content: space-evenly;
|
|
}
|
|
.card:nth-child(2) {
|
|
margin: 0 40px 0 40px;
|
|
}
|
|
.card-gfx,
|
|
.card-text {
|
|
text-align: left;
|
|
}
|
|
.card-gfx {
|
|
margin: 0 20px 0 0;
|
|
}
|
|
.footer-card-deck {
|
|
justify-content: space-between;
|
|
}
|
|
.footer-card:nth-child(1),
|
|
.footer-card:nth-child(2) {
|
|
flex-grow: 1;
|
|
}
|
|
.footer-card:nth-child(3) {
|
|
text-align: right;
|
|
flex-grow: 10;
|
|
}
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------
|
|
TYPO
|
|
----------------------------------------------------*/
|
|
body {
|
|
background-color: var(--white);
|
|
font: 18px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
font-size: 18px;
|
|
line-height: 1.5;
|
|
font-weight: 400;
|
|
word-wrap: break-word;
|
|
color: var(--grey-mid);
|
|
}
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
font-size: 28px;
|
|
font-weight: 400;
|
|
color: var(--black-mid);
|
|
}
|
|
h3,
|
|
h4 {
|
|
font-size: 18px;
|
|
}
|
|
h3 {
|
|
margin: 0 0 20px 0;
|
|
}
|
|
p + h3 {
|
|
margin: 60px 0 20px 0;
|
|
}
|
|
h4 {
|
|
color: var(--grey-mid);
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------
|
|
LINKS
|
|
----------------------------------------------------*/
|
|
a,
|
|
a:hover,
|
|
a:focus {
|
|
color: var(--grey-mid);
|
|
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 {
|
|
color: var(--grey-bright);
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------
|
|
TYPO ELEMENTS
|
|
----------------------------------------------------*/
|
|
p {
|
|
margin: 0 0 20px 0;
|
|
}
|
|
hr {
|
|
height: 0;
|
|
margin: 80px 0 20px 0;
|
|
border-top: 1px solid var(--grey-bright);
|
|
}
|
|
blockquote {
|
|
margin: 0;
|
|
padding: 0 0 0 20px;
|
|
font-style: italic;
|
|
border-left: 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);
|
|
}
|
|
em {
|
|
background: linear-gradient(transparent 66%, var(--yellow-bright) 66%);
|
|
font-style: normal;
|
|
}
|
|
.footnote {
|
|
color: var(--grey-bright);
|
|
}
|
|
ol {
|
|
padding-inline-start: 20px;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------
|
|
BUTTONS
|
|
----------------------------------------------------*/
|
|
.btn-wrapper {
|
|
margin: 40px 0 0 0;
|
|
}
|
|
.btn {
|
|
-webkit-border-radius: 0;
|
|
-moz-border-radius: 0;
|
|
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;
|
|
background: var(--white);
|
|
color: var(--yellow-mid);
|
|
border: solid var(--yellow-mid) 5px;
|
|
}
|
|
.btn-color-yellow-black,
|
|
.btn-color-yellow-black:visited,
|
|
.btn-color-yellow-black:link,
|
|
.btn-color-yellow-black:hover,
|
|
.btn-color-yellow-black:active {
|
|
font-weight: 700;
|
|
background: var(--black-mid);
|
|
color: var(--yellow-mid);
|
|
border: solid var(--yellow-mid) 5px;
|
|
}
|
|
.btn-color-black,
|
|
.btn-color-black:visited,
|
|
.btn-color-black:link,
|
|
.btn-color-black:hover,
|
|
.btn-color-black:active {
|
|
font-weight: 700;
|
|
background: var(--yellow-mid);
|
|
color: var(--black-mid);
|
|
border: solid var(--black-mid) 5px;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------
|
|
MENU
|
|
----------------------------------------------------*/
|
|
.nav-bar {
|
|
height: 70px;
|
|
}
|
|
.brand {
|
|
position: absolute;
|
|
padding: 12px 0 0 20px;
|
|
float: left;
|
|
line-height: 70px;
|
|
}
|
|
.brand a,
|
|
.brand a:visited {
|
|
color: var(--black-mid);
|
|
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;
|
|
background: var(--yellow-mid);
|
|
color: var(--black-mid);
|
|
text-decoration: none;
|
|
}
|
|
nav ul li a:hover,
|
|
nav ul li a:visited:hover {
|
|
color: var(--black-mid);
|
|
}
|
|
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;
|
|
background: var(--yellow-mid);
|
|
height: 70px;
|
|
width: 70px;
|
|
}
|
|
/* Mobile Styles */
|
|
@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;
|
|
padding-left: 25%;
|
|
|
|
}
|
|
nav ul li ul li a {
|
|
padding-left: 30%;
|
|
}
|
|
.nav-dropdown {
|
|
position: static;
|
|
}
|
|
.brand a img {
|
|
/*
|
|
max-height: 60px;
|
|
margin-top: 5px;
|
|
*/
|
|
}
|
|
}
|
|
/* Desktop Styles */
|
|
@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;
|
|
background: var(--black-mid);
|
|
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);
|
|
}
|