ulovliglogning.dk/_scss/module/_indexpage.scss

197 lines
4.2 KiB
SCSS
Raw Normal View History

.cta {
display: none;
}
@media screen and (min-width: 1200px) and (orientation:landscape) {
#intro {
position: relative;
padding-bottom: 8rem;
}
.cta {
display: inline;
position: absolute;
left: 5%;
bottom: 15%;
height: auto;
width: 200px;
box-shadow: none;
}
.ctaTxt {
display: none;
}
2018-01-25 21:35:10 +00:00
}
nav {
display: flex;
background: #555;
2018-02-11 20:07:04 +00:00
background: $background-alternative-dark;
2018-02-03 23:56:00 +00:00
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 {
2018-02-05 22:17:52 +00:00
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 !important;
font-weight: normal;
}
.left,
.right {
flex: 1;
}
2018-02-05 22:17:52 +00:00
.right {
text-align: right;
input[type=checkbox] {
2018-02-05 22:17:52 +00:00
display: none;
}
label:before,
label:after {
2018-02-11 20:07:04 +00:00
display: block;
position: absolute;
top: 0;
right: 0;
cursor: pointer;
transition: all .2s ease-in;
}
2018-02-05 22:17:52 +00:00
label:before {
content: "Menu";
2018-02-11 20:07:04 +00:00
transform: translateX(0%) translate3d(0, 0, 0);
2018-02-05 22:17:52 +00:00
}
2018-02-11 20:07:04 +00:00
label:after {
content: "X";
transform: translateX(100%) translate3d(0, 0, 0);
2018-02-05 22:17:52 +00:00
background: $background-alternative;
width: 30px;
text-align: center;
padding: 3px;
font-size: 30px;
2018-02-11 20:07:04 +00:00
}
input[type=checkbox]:checked~label {
2018-02-05 22:17:52 +00:00
&:before {
2018-02-11 20:07:04 +00:00
transform: translateX(100%);
}
&:after {
transform: translateX(0%);
2018-02-05 22:17:52 +00:00
}
}
ul {
display: none;
2018-02-11 20:07:04 +00:00
position: absolute;
top: 36px;
left: 0;
right: 0;
width: 100%;
background: #555;
text-align: center;
2021-11-10 15:10:19 +00:00
line-height:1.5em;
2018-02-05 22:17:52 +00:00
li a {
display: block;
2018-02-11 20:07:04 +00:00
border-top: 1px solid #424242;
2018-02-05 22:17:52 +00:00
}
}
input[type=checkbox]:checked~ul {
2018-02-05 22:17:52 +00:00
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% {
2018-02-11 20:07:04 +00:00
background: $background-alternative-dark;
}
100% {
background: $background-alternative;
}
}
2018-01-25 21:35:10 +00:00
.signup {
2018-02-03 23:56:00 +00:00
width: 100%;
margin: 0 auto;
position: relative;
2018-01-25 21:35:10 +00:00
input {
display: block;
2018-02-03 23:56:00 +00:00
width: 100%;
2018-01-25 21:35:10 +00:00
border-radius: 0;
border: none;
padding: 5px 0;
height: 2rem;
text-align: center;
font-size: 1rem;
2018-02-03 23:56:00 +00:00
outline: none;
2018-01-25 21:35:10 +00:00
}
input[type="submit"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
2018-01-25 21:35:10 +00:00
cursor: pointer;
color: #FFF;
background: darken($background-alternative, 20);
border-bottom: 2px solid darken($background-alternative, 25);
}
&:before,
&:after {
2018-02-03 23:56:00 +00:00
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%;
}
}
2018-01-20 23:49:35 +00:00
section {
2018-01-25 21:35:10 +00:00
&#intro {
h1 {
2018-01-26 14:52:53 +00:00
//margin: 8rem 0 3rem;
2018-01-25 21:35:10 +00:00
}
}
}