ORIENT/modules/backend/assets/less/layout/sidenav.less

111 lines
2.8 KiB
Plaintext
Raw Normal View History

2014-05-14 13:24:20 +00:00
//
// Side navigation bar
// --------------------------------------------------
#layout-sidenav {
background-color: @color-sidebarnav-bg;
position: absolute;
height: 100%;
width: 100%;
.box-sizing(border-box);
2016-02-24 05:44:05 +00:00
.sidenav-shadow-element() {
content: '';
2014-05-14 13:24:20 +00:00
position: absolute;
height: 100%;
top: 0;
2016-02-24 05:44:05 +00:00
right: 0;
width: 10px;
height: 100%;
.box-shadow(inset -5px 0 3px rgba(0,0,0,.1));
2014-05-14 13:24:20 +00:00
}
ul {
position: relative;
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
&, li:first-child a {
.box-shadow(inset 0 6px 3px -3px rgba(0,0,0,.1));
}
2016-02-24 05:44:05 +00:00
&:after {
.sidenav-shadow-element();
}
2014-05-14 13:24:20 +00:00
li {
display: block;
text-align: center;
position: relative;
a {
padding: 20px 10px;
2014-05-14 13:24:20 +00:00
display: block;
font-size: 14px;
2014-05-14 13:24:20 +00:00
color: @color-sidebarnav-inactive-text;
font-weight: normal;
2016-02-24 05:44:05 +00:00
position: relative;
2014-05-14 13:24:20 +00:00
&:hover {
text-decoration: none;
background-color: transparent;
}
&:focus {
background: transparent;
}
i {
color: @color-sidebarnav-inactive-icon;
display: block;
margin-bottom: 5px;
font-size: 28px;
}
}
&.active a, a:hover {
color: @color-sidebarnav-active-text;
i { color: @color-sidebarnav-active-icon; }
2014-05-14 13:24:20 +00:00
}
&.active a {
background: @color-sidebarnav-active-bg;
text-shadow: 1px 1px 0 rgba(0,0,0,.2);
> i {
text-shadow: none;
}
}
2014-05-14 13:24:20 +00:00
span.counter {
display: block;
position: absolute;
top: 15px;
right: 15px;
padding: 2px 6px 3px 4px;
background-color: @color-sidebarnav-counter-bg;
color: @color-sidebarnav-counter-text;
font-size: 11px;
line-height: 100%;
.border-radius(3px);
.opacity(1);
.scale(1);
.transition(all 0.3s);
&.empty {
.opacity(0);
.scale(0);
}
}
}
}
}
#layout-sidenav.layout-sidenav ul.drag li:not(.active) a:hover,
.touch #layout-sidenav.layout-sidenav li:not(.active) a:hover {
color: @color-sidebarnav-inactive-text !important;
i { color: @color-sidebarnav-inactive-icon !important; }
&:after { display: none !important; }
2014-05-14 13:24:20 +00:00
}