Fixed collapsible and Folders

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-09-08 16:23:28 +02:00
parent 37d331014b
commit f5ae444330
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
1 changed files with 15 additions and 13 deletions

View File

@ -112,9 +112,12 @@ kbd {
box-shadow: inset 2px 0 $color-primary;
}
}
&.open > ul {
display: block;
}
/* Second level nesting for lists */
> ul {
//display: none;
display: none;
flex: 1 0 100%;
padding-left: 44px;
width: inherit;
@ -133,6 +136,15 @@ kbd {
}
}
}
.collapsible.open {
&:hover,
&:focus {
//box-shadow: inset 0 0 3px $color-box-shadow;
}
ul {
display: block;
}
}
}
li {
position: relative;
@ -188,6 +200,7 @@ kbd {
display: none;
}
.collapsible {
border-width: 0 1 0 0 !important;
> .collapse {
position: absolute;
height: 44px;
@ -203,6 +216,7 @@ kbd {
border-radius: 0;
outline: none !important;
box-shadow: none;
transition: transform 250ms ease-in-out;
}
&:hover > a,
&:focus > a {
@ -225,18 +239,6 @@ kbd {
-ms-transform: rotate(0);
transform: rotate(0);
}
background-image: linear-gradient(top, nc-darken($color-main-background, 8%) 0%, nc-darken($color-main-background, 3%) 100%);
background-image: -webkit-linear-gradient(top, nc-darken($color-main-background, 8%) 0%, nc-darken($color-main-background, 3%) 100%);
background-image: -ms-linear-gradient(top, nc-darken($color-main-background, 8%) 0%, nc-darken($color-main-background, 3%) 100%);
}
}
> ul .collapsible.open {
&:hover,
&:focus {
box-shadow: inset 0 0 3px $color-box-shadow;
}
ul {
display: block;
}
}
/* Deleted entries with undo button */