2
0
mirror of https://github.com/offen/website.git synced 2024-10-19 04:20:28 +02:00
website/homepage/theme/static/css/fix.css
2019-12-22 21:38:12 +01:00

256 lines
4.5 KiB
CSS

/* ---------------------------------------------------
CUSTOM COLORS
----------------------------------------------------*/
.cclr-mid-yellow {
background-color: #F7BF08;
}
.fnt-cclr-mid-yellow { /* font color */
color: #F7BF08;
}
.brd-cclr-mid-yellow { /* button border color */
border-color: #F7BF08;
}
.cclr-bright-yellow {
background-color: #fde28c;
}
.cclr-mid-mint {
background-color: #BBD9D3;
}
.cclr-mid-black {
background-color: #39352A;
}
.fnt-cclr-mid-black { /* font color */
color: #39352A;
}
.brd-cclr-mid-black { /* button border color */
border-color: #39352A;
}
.cclr-mid-grey {
background-color: #898989;
}
.cclr-bright-grey {
background-color: #D5D5D5;
}
/* ---------------------------------------------------
LAYOUT
----------------------------------------------------*/
.menu {
width: 100%;
height: 64px; /* mt5 */
position: fixed;
z-index: 1;
top: 0;
right: 0;
}
/* Mobile Styles*/
@media only screen and (max-width: 480px) {
.menu {
position: static;
}
}
.w55 {
width: 18rem;
}
/* custom margin for two-row text */
@media only screen and (min-width: 1088px) {
.mrgn-t {
margin-top: 2.8rem;
}
}
/* ---------------------------------------------------
TYPO
----------------------------------------------------*/
.f25 {
font-size: 1.9rem;
}
span {
display: table;
}
em {
background: linear-gradient(transparent 66%, #fde28c 66%);
font-style: normal;
}
/* ---------------------------------------------------
MENU
----------------------------------------------------*/
.nav-list {
margin: 0 10px 40px 0;
}
.nav-bar {
height: 70px;
}
.icon {
position: absolute;
padding: 12px 0 0 20px;
float: left;
line-height: 70px;
}
body.index .icon {
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;
text-decoration: none;
font-weight: 700;
background: $yellow-mid;
color: $black-mid;
}
nav ul li a:hover,
nav ul li a:visited:hover {
color: $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: $yellow-mid;
height: 70px;
width: 70px;
}
/* Mobile Styles */
@media only screen and (max-width: 960px) {
.nav-list {
margin: 0 0 40px 0;
}
.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;
width: 25px;
background: $black-mid;
position: absolute;
display: block;
content: '';
/*
transition: all 300ms ease-in-out;
*/
}
#nav-toggle span:before {
top: -8px;
}
#nav-toggle span:after {
bottom: -8px;
}
#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;
}
#bg-feature {
background: url(/theme/images/gfx-pattern-mint-bright.svg) center;
}
#bg-cta-top {
background: url(/theme/images/gfx-object-white.svg) center;
}
#bg-outro {
background: url(/theme/images/gfx-pattern-yellow-bright.svg) center;
}
/*
#bg-cta-bottom {
background: url(/theme/images/gfx-pattern-yellow-bright.svg) center;
}
*/