Skip to content
Snippets Groups Projects
Commit 9871fc04 authored by Aria Givi's avatar Aria Givi
Browse files

Animation sieht jetzt gut aus

parent 4d1752d9
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -49,13 +49,14 @@ ...@@ -49,13 +49,14 @@
&>label { &>label {
font-size: 16px; font-size: 16px;
line-height: 20px; font-weight: normal;
text-decoration: none; text-decoration: none;
text-indent: 12px; text-indent: 12px;
color: black;
line-height: 20px;
display: inline-block; display: inline-block;
width: 100%; width: 100%;
color: black;
font-weight: normal;
&:hover { &:hover {
color: red; color: red;
} }
...@@ -63,13 +64,15 @@ ...@@ -63,13 +64,15 @@
} }
& .metager-dropdown-menu { & .metager-dropdown-menu {
min-width: 160px;
max-height: 0px;
text-align: left;
list-style-type: none; list-style-type: none;
z-index: 1000; z-index: 1000;
float: left; float: left;
min-width: 160px;
text-align: left;
max-height: 0px;
overflow: hidden; overflow: hidden;
transition: 0.5s ease;
&>li>a { &>li>a {
display: block; display: block;
font-size: 12px; font-size: 12px;
...@@ -80,10 +83,12 @@ ...@@ -80,10 +83,12 @@
line-height: 1.42857143; line-height: 1.42857143;
border-top: 1px solid LightGray; border-top: 1px solid LightGray;
margin-left: 2px; margin-left: 2px;
&:hover { &:hover {
text-decoration: none; text-decoration: none;
} }
} }
label:after { label:after {
#navbar-static-pages { #navbar-static-pages {
z-index: 4; z-index: 4;
...@@ -128,12 +133,10 @@ ...@@ -128,12 +133,10 @@
&:checked { &:checked {
& ~.metager-dropdown-menu { & ~.metager-dropdown-menu {
animation-name: dropdown-animation; max-height: 1000px;
animation-duration: 0.7s; padding: 5px 0;
animation-timing-function: ease-out;
animation-fill-mode: forwards;
animation-delay: 0.1s;
} }
& ~ label > .caret { & ~ label > .caret {
border-top:0 solid; border-top:0 solid;
border-bottom:4px solid; border-bottom:4px solid;
...@@ -143,10 +146,7 @@ ...@@ -143,10 +146,7 @@
&:not(:checked) { &:not(:checked) {
& ~.metager-dropdown-menu { & ~.metager-dropdown-menu {
animation-name: reverse-dropdown-animation; padding: 0px 0;
animation-duration: 0.3s;
animation-timing-function: ease-in;
animation-fill-mode: forwards;
} }
} }
} }
...@@ -188,34 +188,4 @@ input#nav0:checked { ...@@ -188,34 +188,4 @@ input#nav0:checked {
& ~.sideBar { & ~.sideBar {
right: 0px; right: 0px;
} }
} }
\ No newline at end of file
@keyframes dropdown-animation {
0% {
max-height: 0px;
padding: 0px 0;
}
1% {
padding: 5px 0;
}
100% {
max-height: 1000px;
padding: 5px 0;
}
}
@keyframes reverse-dropdown-animation {
0% {
max-height: 300px;
padding: 5px 0;
}
1% {
padding: 5px 0;
}
100% {
max-height: 0px;
padding: 0px 0;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment