show-hides in asidenav
This commit is contained in:
parent
0b3d662eea
commit
b7a6cb78e5
@ -36,9 +36,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.js-show-hide__target {
|
.js-show-hide__target {
|
||||||
|
transition: all .2s ease;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.js-show-hide--collapsed > .js-show-hide__target {
|
.js-show-hide--collapsed > .js-show-hide__target {
|
||||||
display: none;
|
display: block;
|
||||||
|
height: 0;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
max-height: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,8 +13,8 @@
|
|||||||
$of _
|
$of _
|
||||||
|
|
||||||
<div .asidenav__box--dont-hide>
|
<div .asidenav__box--dont-hide>
|
||||||
<h3 .asidenav__box-title>
|
<h3 .asidenav__box-title.js-show-hide__toggle>
|
||||||
<a href="/course/W2017">WiSe 17/18
|
WiSe 17/18
|
||||||
<ul .asidenav__list>
|
<ul .asidenav__list>
|
||||||
<li .asidenav__list-item>
|
<li .asidenav__list-item>
|
||||||
<a .asidenav__link-wrapper href="/course/S2018/ixd/show">
|
<a .asidenav__link-wrapper href="/course/S2018/ixd/show">
|
||||||
|
|||||||
@ -43,6 +43,22 @@
|
|||||||
width: 300px;
|
width: 300px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
|
.js-show-hide__toggle::before {
|
||||||
|
top: 14px;
|
||||||
|
right: 12px;
|
||||||
|
left: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.js-show-hide__toggle:hover::before,
|
||||||
|
.js-show-hide--collapsed .js-show-hide__toggle::before {
|
||||||
|
top: 10px !important;
|
||||||
|
right: 8px !important;
|
||||||
|
}
|
||||||
|
.js-show-hide--collapsed .js-show-hide__toggle:hover::before {
|
||||||
|
top: 14px !important;
|
||||||
|
right: 12px !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.asidenav__box {
|
.asidenav__box {
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user