silverstripe-framework/admin/client/src/styles/_layout.scss

125 lines
2.1 KiB
SCSS
Raw Normal View History

.cms-content__inner {
height: 100%;
}
.cms-content__right,
.cms-content__left {
height: 100%;
overflow: hidden;
background-color: $body-bg;
transition: width .2s;
}
// .cms-content can be split into different left/right zones
// Exampale modifier: --left-sm = small left side panel with right panel width set to auto.
.cms-content__split {
height: 100%;
}
.cms-content__split--left-sm {
.cms-content__right {
position: relative;
2016-04-27 04:09:57 +02:00
display: none;
}
.cms-content__left {
width: 100%;
position: absolute;
left: 0;
}
2016-04-27 04:09:57 +02:00
// Overlay preview if there isn't enough space for both items and preview
.cms-content--selected {
display: block;
}
// Back button for smaller screens, closes preview
.cms-content__back-btn {
width: 36px;
height: 36px;
background-color: rgba($gray-dark, 0.8);
display: block;
position: absolute;
top: 8px;
left: 12px;
content: "5";
font-size: 16px;
line-height: 20px;
color: $white;
2016-04-27 04:09:57 +02:00
padding: 8px;
border-radius: 50%;
font-family: silverstripe;
z-index: 1;
cursor: pointer;
2016-04-27 04:09:57 +02:00
&:hover {
background-color: $gray-dark;
text-decoration: none;
}
}
2016-05-01 22:50:29 +02:00
@include media-breakpoint-up(lg) {
padding-left: $cms-panel-sm;
.cms-content__left {
width: $cms-panel-sm;
}
2016-04-27 04:09:57 +02:00
.cms-content__right {
display: block;
border-left: 1px solid $border-color;
}
2016-04-27 04:09:57 +02:00
.cms-content__back-btn {
display: none;
}
}
2016-05-01 22:50:29 +02:00
@include media-breakpoint-up(xl) {
padding-left: $cms-panel-md;
.cms-content__left {
width: $cms-panel-md;
}
}
}
2016-04-27 04:09:57 +02:00
// Scrolling panels
.panel-scrollable {
2016-04-27 04:09:57 +02:00
overflow-y: auto;
height: 100%;
}
2016-04-27 04:09:57 +02:00
.panel-scrollable--single-toolbar {
height: calc(100% - #{$toolbar-total-height});
}
2016-04-27 04:09:57 +02:00
.panel-scrollable--double-toolbar {
height: calc(100% - #{$toolbar-total-height * 2});
}
.panel-scrollable--triple-toolbar {
height: calc(100% - #{$toolbar-total-height * 3});
}
// Component helpers
// Shadows
.z-depth-1 {
box-shadow: $z-depth-1;
}
.z-depth-2 {
box-shadow: $z-depth-2;
}
.z-depth-3 {
box-shadow: $z-depth-3;
}
.z-depth-4 {
box-shadow: $z-depth-4;
}