ulovliglogning.dk/_scss/module/_indexpage.scss
2018-02-05 23:17:52 +01:00

160 lines
3.5 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;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
width: 100%;
//overflow-x: auto;
//overflow-y: hidden;
-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 {
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 {
content: "Menu";
}
input[type=checkbox]:checked ~ label {
background: #ec2727;
background: $background-alternative;
width: 30px;
text-align: center;
padding: 3px;
font-size: 30px;
&:before {
content: "X";
}
}
ul {
display: none;
li a {
display: block;
}
}
input[type=checkbox]:checked ~ ul {
position: absolute;
left: 0;
width: 100%;
display: block;
background: #555;
text-align: center;
}
}
@include media-breakpoint-up(sm) {
.right label {
display: none;
}
.center a {
display: inline-block;
}
}
}
@keyframes nav-link-pulse {
0% {
background: $background-alternative;
}
50% {
background: darken($background-alternative, 15);
}
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;
}
}
}