1
//##############################################################################
4
.cms-structure-dynamic {
11
z-index: z(structure, content, droppable);
15
box-shadow: 0 0 0 2px $color-primary;
16
transform: translateY(2px);
18
transform: translateY(-2px);
27
border-top: 8px solid transparent;
28
border-bottom: 8px solid transparent;
29
border-left: 8px solid $color-primary;
32
.cms-draggables > .cms-droppable:first-child {
33
transform: translateY(-2px);
35
.cms-draggables > .cms-droppable:only-child {
36
transform: translateY(2px);
44
z-index: z(structure, base);
47
background: $structure-bgcolor;
49
.cms-structure-content {
53
z-index: z(structure, content, base);
56
transform: translateZ(0);
58
-webkit-overflow-scrolling: touch;
61
//###########################################################
63
// basically a cms placeholder representation
66
margin: 0 0 $structure-dragarea-space;
67
padding: $structure-dragarea-padding $structure-dragarea-padding-horizontal;
70
.cms-dragarea-static {
71
.cms-dragarea-static-icon {
77
// subclasses for the simple structure borad without absolute positioning
78
.cms-structure-content-simple {
82
padding: ($toolbar-height + 40px) 5%;
83
@media (max-width: 480px) {
88
.cms-dragarea-simple {
90
max-width: $structure-max-width;
91
margin: $structure-dragarea-margin-vertical auto;
94
//###########################################################
97
// Placeholder box title
102
font-size: $font-size-normal;
103
line-height: $line-height-normal;
104
padding-left: $border-radius-normal + 2px;
105
border-radius: $border-radius-base;
108
display: inline-block;
110
color: $structure-dragbar-color;
111
font-size: $font-size-large;
113
line-height: $structure-dragbar-height;
114
height: $structure-dragbar-height;
115
margin-right: $submenu-icon-area-size;
117
.cms-dragbar-toggler {
119
text-transform: uppercase;
123
color: $color-primary !important;
124
font-size: $font-size-small !important;
126
color: darken($color-primary, 10%) !important;
130
.cms-dragbar-collapse-all {
133
.cms-dragbar-expand-all {
136
.cms-dragbar-title-expanded {
137
.cms-dragbar-collapse-all {
140
.cms-dragbar-expand-all {
148
font-size: $font-size-small;
149
text-transform: uppercase;
154
.cms-dragarea-empty {
155
.cms-dragbar-empty-wrapper {
156
display: block !important;
158
.cms-dragbar-toggler {
163
//###########################################################
168
list-style-type: none;
170
.cms-draggables.cms-hidden {
171
display: none !important;
173
.cms-draggables .cms-draggables {
174
padding-left: $structure-draggable-inner-padding;
176
.cms-dragarea-empty .cms-draggables-root {
179
border: 2px solid $btn-default-border;
180
border-radius: $border-radius-base;
183
// #DRAGGABLES/general#
185
display: block !important; // fixes hide/show with jqueryui so the scroll doesn't jump
188
margin-left: 0 !important;
190
border-radius: $border-radius-base;
192
list-style-type: none;
193
-ms-touch-action: none;
198
border-color: $gray-lighter;
200
border-color: $gray-light;
205
.cms-submenu-dropdown-top {
206
top: $structure-dragitem-height + $structure-dragarea-padding * 2;
208
.cms-submenu-dropdown-bottom {
209
bottom: $structure-dragitem-height + $structure-dragarea-padding * 2;
213
line-height: $structure-dragitem-height;
214
border: 2px solid $structure-bgcolor;
220
text-overflow: ellipsis;
222
padding: $structure-dragarea-padding $structure-dragarea-padding-horizontal;
223
margin-right: $submenu-icon-area-size * 3 + $submenu-right * 4;
225
.cms-dragitem-collapsable .cms-dragitem-text {
226
padding-left: $structure-dragitem-icon-space;
230
.cms-collapsable-container.cms-hidden > .cms-draggable {
231
display: none !important;
234
.cms-draggable-success {
238
.cms-draggables-empty {
241
.cms-dragarea-empty {
248
z-index: z(structure, content, empty, droppable);
250
line-height: $structure-dragitem-height;
253
border: 2px solid $color-primary;
254
border-radius: $border-radius-base;
255
background-color: mix(white, $color-primary, 90%);
257
transform: translateY(0) !important;
261
&.cms-draggable-disallowed {
262
border: 2px solid saturate($color-danger, 80%);
263
background: rgba($color-danger, 0.1);
266
.cms-draggables-empty {
273
z-index: z(structure, content, empty, empty);
280
// #DRAGGABLES/specific#
284
.cms-draggable-is-dragging {
286
width: $structure-draggable-width-while-dragging !important;
287
height: $structure-dragitem-fullheight !important;
289
transform: translateZ(0);
291
color: $white !important;
294
background-color: $color-primary !important;
295
background-image: none !important;
304
padding-left: $structure-dragarea-padding-horizontal;
310
&.cms-draggable-from-clipboard .cms-dragitem-text {
311
margin-right: $padding-large;
313
&.cms-draggable-disabled > .cms-draggable {
314
display: none !important;
317
.cms-draggable-stack {
319
height: $structure-dragitem-fullheight !important;
320
box-shadow: 1px 1px 1px rgba($black ,0.2),
321
4px 4px 0 0 $color-primary;
326
border-radius: $border-radius-normal;
329
@if ($structure-dragarea-use-background == 1) {
330
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABCCAAAAAB73glBAAAAAnRSTlMAAHaTzTgAAAAeSURBVHgBY7gCBgxAAGHRRoAKYOi5dNSloy4ddSkA3VChcDH0cxcAAAAASUVORK5CYII=");
331
background-repeat: no-repeat;
332
background-position: 10px 50%;
333
background-size: 8px 33px;
336
box-shadow: inset 0 0 0 1px $gray-light;
339
.cms-dragitem-collapsable {
340
@include icon(arrow-wide);
346
left: $structure-dragitem-icon-space - $structure-dragarea-padding-horizontal - 10px;
347
color: $submenu-icon-color;
348
font-size: $structure-dragitem-icon-size;
349
margin-top: -$structure-dragitem-icon-size/2;
350
margin-left: $structure-dragarea-padding-horizontal - 10px;
351
transform: rotate(180deg);
357
.cms-dragitem-expanded:before {
358
transform: rotate(-90deg);
360
.cms-dragitem-success {
366
z-index: z(structure, content, droppable);
367
border-radius: $border-radius-base;
371
// #DRAGGABLES/states#
373
.cms-draggable-selected .cms-dragitem,
374
.cms-draggable-selected .cms-dragitem strong {
375
color: adjust-hue($color-primary, 15deg);
377
.cms-draggable-selected .cms-draggable .cms-dragitem,
378
.cms-draggable-selected .cms-draggable .cms-dragitem strong {
382
.cms-draggable-allowed,
383
.cms-draggable-hover-allowed,
384
.cms-draggable-placeholder {
385
color: lighten($color-primary, 40%);
386
border-color: lighten($color-primary, 40%);
388
.cms-draggable-hover-allowed,
389
.cms-draggable-placeholder {
391
background: rgba($color-primary, 0.2);
393
.cms-dragitem-success {
394
border: 1px solid $color-primary;
395
background: mix(white, $color-primary, 80%);
398
.cms-draggable-disallowed,
399
.cms-draggable-hover-disallowed {
400
color: saturate($color-danger, 80%);
401
background: rgba($color-danger, 0.1);
402
box-shadow: 0 0 0 2px saturate($color-danger, 80%);
408
// hide arrow when adding plugin-in-plugin within disabled item
409
.cms-draggable-disabled {
414
> .cms-dragitem-collapsable,
422
margin-left: $structure-draggable-inner-padding !important;
424
background-image: none;
433
display: none !important;
436
.cms-plugin-disabled {
439
right: $submenu-right;
440
width: $submenu-icon-area-size;
441
height: $submenu-icon-area-size;
442
margin-top: -($submenu-icon-area-size / 2);
444
$submenu-icon-size: 20px;
448
color: $submenu-icon-color;
449
font-size: $submenu-icon-size;
450
margin-top: -($submenu-icon-size / 2);
451
margin-left: -($submenu-icon-size / 2);
457
display: block !important;
462
@at-root .cms-structure-mode-structure {
464
// min-height is necessary for iOS9
465
// when we have a page that has content
466
// that takes less than a screen structureboard
467
// becomes unusable because it tries to fit
468
// in the size of the content and not the size
469
// of the device screen
473
// hide elements when dragging
474
@at-root .ui-sortable-helper.cms-draggable .cms-submenu-btn {
475
display: none !important;
477
@at-root .ui-sortable-helper.cms-draggable .cms-draggables {
478
display: none !important;