forked from ulovliglogning/ulovliglogning.dk
a358c732b0
needs more work on mobile
195 lines
4.1 KiB
SCSS
195 lines
4.1 KiB
SCSS
.cta {
|
|
display: none;
|
|
}
|
|
|
|
@media screen and (min-width: 1200px) and (orientation:landscape) {
|
|
#intro {
|
|
position: relative;
|
|
}
|
|
.cta {
|
|
display: inline;
|
|
position: absolute;
|
|
left: 5%;
|
|
bottom: 15%;
|
|
height: auto;
|
|
width: 200px;
|
|
box-shadow: none;
|
|
}
|
|
.ctaTxt {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
background: #555;
|
|
background: $background-alternative-dark;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
-webkit-overflow-scrolling: touch;
|
|
white-space: nowrap;
|
|
.js & {
|
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
}
|
|
.langSwitcher a {
|
|
margin-right: 0;
|
|
&.activeLang {
|
|
background: $background-alternative;
|
|
}
|
|
}
|
|
.center {
|
|
a {
|
|
display: none;
|
|
&[data-link-for="wannahelp"] {
|
|
display: inline-block;
|
|
background: $background-alternative;
|
|
animation: nav-link-pulse 2s linear infinite;
|
|
}
|
|
}
|
|
}
|
|
a,
|
|
label:before,
|
|
label:after {
|
|
display: inline-block;
|
|
padding: 10px;
|
|
box-shadow: none;
|
|
font-weight: normal;
|
|
}
|
|
.left,
|
|
.right {
|
|
flex: 1;
|
|
}
|
|
.right {
|
|
text-align: right;
|
|
input[type=checkbox] {
|
|
display: none;
|
|
}
|
|
label:before,
|
|
label:after {
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
cursor: pointer;
|
|
transition: all .2s ease-in;
|
|
}
|
|
label:before {
|
|
content: "Menu";
|
|
transform: translateX(0%) translate3d(0, 0, 0);
|
|
}
|
|
label:after {
|
|
content: "X";
|
|
transform: translateX(100%) translate3d(0, 0, 0);
|
|
background: $background-alternative;
|
|
width: 30px;
|
|
text-align: center;
|
|
padding: 3px;
|
|
font-size: 30px;
|
|
}
|
|
input[type=checkbox]:checked~label {
|
|
&:before {
|
|
transform: translateX(100%);
|
|
}
|
|
&:after {
|
|
transform: translateX(0%);
|
|
}
|
|
}
|
|
ul {
|
|
display: none;
|
|
position: absolute;
|
|
top: 36px;
|
|
left: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
background: #555;
|
|
text-align: center;
|
|
li a {
|
|
display: block;
|
|
border-top: 1px solid #424242;
|
|
}
|
|
}
|
|
input[type=checkbox]:checked~ul {
|
|
display: block;
|
|
}
|
|
}
|
|
@include media-breakpoint-up(sm) {
|
|
.right label {
|
|
display: none;
|
|
}
|
|
.center a {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes nav-link-pulse {
|
|
0% {
|
|
background: $background-alternative;
|
|
}
|
|
50% {
|
|
background: $background-alternative-dark;
|
|
}
|
|
100% {
|
|
background: $background-alternative;
|
|
}
|
|
}
|
|
|
|
.signup {
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
position: relative;
|
|
input {
|
|
display: block;
|
|
width: 100%;
|
|
border-radius: 0;
|
|
border: none;
|
|
padding: 5px 0;
|
|
height: 2rem;
|
|
text-align: center;
|
|
font-size: 1rem;
|
|
outline: none;
|
|
}
|
|
input[type="submit"] {
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
cursor: pointer;
|
|
color: #FFF;
|
|
background: darken($background-alternative, 20);
|
|
border-bottom: 2px solid darken($background-alternative, 25);
|
|
}
|
|
&:before,
|
|
&:after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 20px;
|
|
background: $background-alternative;
|
|
}
|
|
&:before {
|
|
left: -10px;
|
|
transform: skew(-15deg);
|
|
}
|
|
&:after {
|
|
right: -10px;
|
|
transform: skew(-15deg);
|
|
}
|
|
@include media-breakpoint-up(sm) {
|
|
width: 90%;
|
|
}
|
|
}
|
|
|
|
section {
|
|
&#intro {
|
|
h1 {
|
|
//margin: 8rem 0 3rem;
|
|
}
|
|
}
|
|
} |