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

70 lines
1.2 KiB
SCSS
Raw Normal View History

.cms-middle {
padding-left: 0;
height: 100%;
position: relative;
transition: padding .2s;
&.with-preview {
@media (min-width: 992px) { /* lg */
padding-left: 316px;
.cms-campaigns {
width: 316px;
}
}
@media (min-width: 1200px) { /* xl */
padding-left: 448px;
.cms-campaigns {
width: 448px;
}
}
}
}
.cms-middle__scrollable {
overflow-y: auto;
display: block;
height: 100%;
}
// Preview panel
.pages-preview {
display: block;
position: relative;
background-color: #BBB;
border-left: 1px solid #dbdde0;
height: 100%;
iframe {
width: 100%;
2016-04-19 04:20:51 +02:00
height: calc(100% - #{$toolbar-total-height});
border: none;
}
}
2016-04-19 04:20:51 +02:00
// Toolbars
// Todo: Convert toolbar to a component with variations.
.toolbar {
width: 100%; // Todo: should use mixin @include make-container();
height: $toolbar-total-height;
padding: $spacer-y*.625 $spacer-x;
background-color: $body-bg;
.btn-toolbar {
// TODO Remove '.cms .btn-toolbar' override
margin-top: 0;
margin-bottom: 0;
}
}
2016-04-19 04:20:51 +02:00
.content-toolbar {
@extend .toolbar;
margin-bottom: $spacer-y/2;
}
.cms-south-actions {
@extend .toolbar;
position: absolute;
bottom: 0;
border-top: 1px solid $border-color;
}