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

97 lines
2.0 KiB
Plaintext
Raw Normal View History

2014-05-14 13:24:20 +00:00
//
// Side panel
// --------------------------------------------------
#layout-side-panel {
.fix-button {
position: absolute;
2016-02-29 03:52:21 +00:00
right: -25px;
top: 0;
display: none;
width: 25px;
height: 25px;
2014-05-14 13:24:20 +00:00
font-size: 13px;
2016-02-29 03:52:21 +00:00
background: #ecf0f1;
z-index: 120;
.opacity(0.5);
.border-radius(~'0 4px 4px 0');
2014-05-14 13:24:20 +00:00
i {
display: block;
text-align: center;
margin-top: 5px;
color: @color-scrollpanel-fix-button;
}
&:hover {
text-decoration: none;
2016-02-29 03:52:21 +00:00
display: block;
2014-05-14 13:24:20 +00:00
.opacity(1)!important;
}
}
2016-02-29 03:52:21 +00:00
&:hover {
.fix-button {
display: block;
}
}
2016-02-29 03:52:21 +00:00
.fix-button-content-header .fix-button {
top: 46px;
}
.sidepanel-content-header {
2015-09-11 03:45:07 +00:00
background: #d35400;
color: white;
2016-02-29 03:52:21 +00:00
font-size: 15px;
padding: 12px 20px 13px;
position: relative;
&:after {
2015-09-11 03:45:07 +00:00
.triangle(down, 15px, 8px, #d35400);
position: absolute;
left: 14px;
bottom: -8px;
}
}
2014-05-14 13:24:20 +00:00
}
body.side-panel-not-fixed {
#layout-side-panel {
display: none;
.fix-button {
.opacity(0.5);
}
}
}
body.display-side-panel {
#layout-side-panel {
display: block;
position: absolute;
// This needs to be higher than the dropdown overlay, otherwise the
// mouseout event fires and sidebar hides when opening a dropdown.
z-index: @zindex-dropdown;
2016-02-25 05:24:31 +00:00
width: 350px;
.box-shadow(3px 0px 3px 0 rgba(0, 0, 0, 0.1));
}
}
@media (min-width: @screen-md-min) {
body.side-panel-fix-shadow {
#layout-side-panel {
.box-shadow(none);
}
2014-05-14 13:24:20 +00:00
}
}
.touch #layout-side-panel .fix-button {
display: none;
}
@media (max-width: @screen-sm) {
#layout-side-panel .fix-button {
display: none;
}
}