publik-base-theme/static/moselle/_custom.scss

138 lines
1.9 KiB
SCSS

#toplinks {
z-index: 100;
font-size: 80%;
box-shadow: none;
}
.site-header {
background: $primary-color;
position: fixed;
top: 0;
left: 0;
z-index: 100;
#header {
transition: all ease 0.2s;
margin-top: 0.5rem;
margin-bottom: 1rem;
h1 {
margin-top: 0.4rem;
a {
padding-left: 1rem;
}
}
}
}
div#nav {
position: fixed;
top: 0;
right: 0;
width: 100%;
max-width: none;
text-align: right;
padding-right: 1rem;
border-bottom: 1px solid darken($primary-color, 30%);
z-index: 10;
margin-top: 0;
& > ul {
transition: all ease 0.2s;
margin-top: 2rem;
margin-bottom: 2rem;
li > a {
font-weight: normal;
}
}
}
div#main-content-wrapper {
background: white;
z-index: 0;
padding: 8rem 1rem 0 1rem;
}
body.has-picture {
.site-nav::after {
content: "";
display: block;
width: 100%;
height: 600px;
background: white center center no-repeat;
background-size: cover;
}
div#main-content-wrapper {
padding-top: 1rem;
}
}
#logo a {
background: url(logo.png) top left no-repeat;
background-size: cover;
text-indent: -10000px;
display: block;
height: 80px;
width: 240px;
color: $primary-color;
font-weight: normal;
}
body.scrolled {
.site-header #header {
margin: 0;
}
div#nav > ul {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
#logo a {
height: 50px;
width: 150px;
}
}
footer {
border-top: 10px solid $primary-color;
}
@media screen and ($max-mobile-viewport) {
#page {
background: transparent;
}
div#nav, .site-header {
text-align: left;
position: static;
width: auto;
padding-right: 0;
border-bottom: 0;
#header h1 a {
padding-left: 0;
}
}
.site-header #header,
div#nav > ul {
margin-top: 2rem;
margin-bottom: 1rem;
}
div#main-content-wrapper {
padding-top: 0;
}
#toplinks {
right: 1vw;
left: auto;
top: -2rem;
width: auto;
}
div#main-content-wrapper {
&::after,
&::before {
content: none;
}
}
}