mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-05 23:17:33 +08:00
128 lines
2.4 KiB
SCSS
128 lines
2.4 KiB
SCSS
/*!
|
|
* Start Bootstrap - Simple Sidebar HTML Template (http://startbootstrap.com)
|
|
* Code licensed under the Apache License v2.0.
|
|
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
|
|
*/
|
|
|
|
@import 'constants';
|
|
@import "mixins";
|
|
|
|
$wrapper-width: 280px;
|
|
$toggle-btn-size: 50px;
|
|
|
|
@mixin sidebar-shown {
|
|
// This rule is always overriden (show()) in JS
|
|
// after document is loaded
|
|
display: none;
|
|
padding-left: $wrapper-width;
|
|
padding-right: 0;
|
|
-webkit-transition: all 0.5s ease;
|
|
-moz-transition: all 0.5s ease;
|
|
-o-transition: all 0.5s ease;
|
|
transition: all 0.5s ease;
|
|
|
|
#sidebar-arrow {
|
|
background-color: $brand-default;
|
|
border-bottom-right-radius: 10px;
|
|
border-top-right-radius: 10px;
|
|
bottom: 50%;
|
|
box-shadow: 2px 0 4px $color-alto;
|
|
display: block;
|
|
position: absolute;
|
|
right: -18px;
|
|
|
|
span {
|
|
padding: 9px 5px;
|
|
}
|
|
}
|
|
|
|
#sidebar-arrow:hover {
|
|
background-color: $color-concrete;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#sidebar-arrow > span {
|
|
transform: rotateY(0deg);
|
|
transition: .6s; }
|
|
|
|
#sidebar-arrow[data-shown] > span {
|
|
padding-left: 7px;
|
|
padding-right: 3px;
|
|
transform: rotateY(180deg);
|
|
transition: .6s;
|
|
}
|
|
|
|
#sidebar-wrapper {
|
|
background-color: $color-white;
|
|
box-shadow: 1px 3px 6px $color-alto;
|
|
height: 100%;
|
|
margin-left: -$wrapper-width;
|
|
position: fixed;
|
|
-moz-transition: all 0.5s ease;
|
|
-o-transition: all 0.5s ease;
|
|
-webkit-transition: all 0.5s ease;
|
|
transition: all 0.5s ease;
|
|
width: $wrapper-width;
|
|
z-index: 999;
|
|
|
|
#slide-panel {
|
|
height: 100%;
|
|
|
|
.tree {
|
|
margin-bottom: 0;
|
|
opacity: 1;
|
|
overflow-y: auto;
|
|
padding: 20px 0;
|
|
|
|
// Animations
|
|
@include transition(opacity 0.5s ease);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@mixin sidebar-hidden {
|
|
padding-left: 0;
|
|
|
|
#sidebar-wrapper {
|
|
margin-left: 0;
|
|
width: 0;
|
|
|
|
#slide-panel {
|
|
.tree {
|
|
opacity: 0;
|
|
|
|
@include transition(opacity 0.5s ease);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.my-module-group-element::before {
|
|
border-left: 1px dotted $color-emperor;
|
|
bottom: 20px;
|
|
content: "";
|
|
position: absolute;
|
|
top: 25px;
|
|
left: 34px;
|
|
}
|
|
|
|
#wrapper {
|
|
@include sidebar-shown;
|
|
}
|
|
|
|
#wrapper.no-animation * {
|
|
@include no-animation;
|
|
}
|
|
|
|
#wrapper.toggled {
|
|
@include sidebar-hidden;
|
|
}
|
|
|
|
#wrapper.hidden2 {
|
|
@include sidebar-hidden;
|
|
}
|
|
|
|
.sidebar-no-module-group {
|
|
color: $color-silver-chalice;
|
|
}
|