.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; display: none; } .cms-content__left { width: 100%; position: absolute; left: 0; } // 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; padding: 8px; border-radius: 50%; font-family: silverstripe; z-index: 1; cursor: pointer; &:hover { background-color: $gray-dark; text-decoration: none; } } @include media-breakpoint-up(lg) { padding-left: $cms-panel-sm; .cms-content__left { width: $cms-panel-sm; } .cms-content__right { display: block; border-left: 1px solid $border-color; } .cms-content__back-btn { display: none; } } @include media-breakpoint-up(xl) { padding-left: $cms-panel-md; .cms-content__left { width: $cms-panel-md; } } } // Scrolling panels .panel-scrollable { overflow-y: auto; height: 100%; } .panel-scrollable--single-toolbar { height: calc(100% - #{$toolbar-total-height}); } .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; }