aktuell icon

This commit is contained in:
2018-06-07 14:15:36 +02:00
parent 50304ef4fd
commit 3ffbc63107
5 changed files with 41 additions and 17 deletions

View File

@@ -442,4 +442,5 @@
color: $white;
font-weight: 900;
text-align: center;
z-index: 2;
}

View File

@@ -9,7 +9,7 @@
box-shadow: 0 0 em(30px) rgba($black, 0.2);
transform: scale(0);
opacity: 0;
transform-origin: 50% 5%;
transform-origin: 70% 5%;
transition: transform 0.3s $easeOutQuad, opacity 0.3s $easeOutQuad;
&:before {
content: '';
@@ -18,7 +18,7 @@
z-index: -2;
position: absolute;
top: em(-10px);
right: em(122px);
right: em(70px);
width: em(20px);
height: em(20px);
transform: rotate(45deg);
@@ -31,10 +31,33 @@
.cms-toolbar-expanded & {
margin-top: 46px;
}
@media screen and (max-width: $small_breakpoint) {
transform-origin: 58% 5%;
@media screen and (max-width: $medium_breakpoint) {
top: 50%;
right: 50%;
transform: translate(50%, -50%) scale(0);
transform-origin: 50% 50%;
.notification_open & {
transform: translate(50%, -50%) scale(1);
&:after {
opacity: 0.4;
transition: opacity 0.15s $easeOutQuad 0.15s;
}
}
&:before {
right: em(102px);
display: none;
}
&:after {
content: '';
display: block;
background: $black;
position: absolute;
z-index: -1;
top: -100vh;
left: -100vw;
right: -100vw;
bottom: -100vh;
opacity: 0;
transition: opacity 0.15s $easeOutQuad;
}
}
}