2018-05-29 13:23:07 +02:00
|
|
|
@import '~react-grid-layout/css/styles.css';
|
2018-01-22 16:49:45 +01:00
|
|
|
@import '~react-resizable/css/styles.css';
|
2017-10-11 11:42:49 +02:00
|
|
|
|
2019-12-18 11:15:59 +01:00
|
|
|
.react-resizable-handle {
|
2019-12-21 08:01:26 +01:00
|
|
|
// this needs to use visibility and not display none in order not to cause resize flickering
|
|
|
|
|
visibility: hidden;
|
2019-12-18 11:15:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.react-grid-item {
|
2021-01-29 17:55:11 +01:00
|
|
|
touch-action: initial !important;
|
|
|
|
|
|
2019-12-18 11:15:59 +01:00
|
|
|
&:hover {
|
|
|
|
|
.react-resizable-handle {
|
2019-12-21 08:01:26 +01:00
|
|
|
visibility: visible;
|
2019-12-18 11:15:59 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-11 11:42:49 +02:00
|
|
|
.panel-in-fullscreen {
|
2017-10-11 16:32:05 +02:00
|
|
|
.react-grid-layout {
|
2020-06-16 16:33:25 +02:00
|
|
|
height: 90% !important;
|
2017-10-11 16:32:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.react-grid-item {
|
2017-12-06 16:55:12 +01:00
|
|
|
display: none !important;
|
2017-10-11 16:32:05 +02:00
|
|
|
transition-property: none !important;
|
|
|
|
|
|
2018-11-20 16:00:19 +01:00
|
|
|
&--fullscreen {
|
|
|
|
|
display: block !important;
|
|
|
|
|
position: unset !important;
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
height: 100% !important;
|
|
|
|
|
transform: translate(0px, 0px) !important;
|
|
|
|
|
}
|
2018-11-09 13:17:41 +01:00
|
|
|
}
|
|
|
|
|
|
2018-05-30 12:07:51 +02:00
|
|
|
// Disable grid interaction indicators in fullscreen panels
|
|
|
|
|
.panel-header:hover {
|
|
|
|
|
background-color: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.panel-title-container {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.react-resizable-handle {
|
2019-12-21 08:01:26 +01:00
|
|
|
display: none;
|
2018-05-30 12:07:51 +02:00
|
|
|
}
|
2018-08-25 07:21:00 -07:00
|
|
|
|
|
|
|
|
// the react-grid has a height transition
|
|
|
|
|
.react-grid-layout {
|
|
|
|
|
transition-property: none;
|
|
|
|
|
}
|
2017-10-11 11:42:49 +02:00
|
|
|
}
|
2017-10-11 16:32:05 +02:00
|
|
|
|
2017-12-01 20:11:55 +01:00
|
|
|
@include media-breakpoint-down(sm) {
|
2017-11-28 11:38:35 +03:00
|
|
|
.react-grid-layout {
|
|
|
|
|
height: 100% !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.react-grid-item {
|
|
|
|
|
display: block !important;
|
2018-12-10 12:20:14 +01:00
|
|
|
transition-property: none !important;
|
2017-11-28 11:38:35 +03:00
|
|
|
position: unset !important;
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
transform: translate(0px, 0px) !important;
|
2019-03-21 10:43:06 +01:00
|
|
|
margin-bottom: $space-md;
|
2017-11-28 11:38:35 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-30 05:14:23 -08:00
|
|
|
.react-grid-item.react-grid-placeholder {
|
|
|
|
|
box-shadow: $panel-grid-placeholder-shadow;
|
|
|
|
|
background: $panel-grid-placeholder-bg;
|
|
|
|
|
z-index: 0;
|
|
|
|
|
opacity: unset;
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-11 21:36:03 +02:00
|
|
|
.theme-dark {
|
2018-01-22 16:49:45 +01:00
|
|
|
.react-grid-item > .react-resizable-handle::after {
|
2018-02-15 12:42:17 +01:00
|
|
|
border-right: 2px solid $gray-1;
|
|
|
|
|
border-bottom: 2px solid $gray-1;
|
2018-02-10 20:11:11 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.theme-light {
|
|
|
|
|
.react-grid-item > .react-resizable-handle::after {
|
|
|
|
|
border-right: 2px solid $gray-3;
|
|
|
|
|
border-bottom: 2px solid $gray-3;
|
2017-10-11 21:36:03 +02:00
|
|
|
}
|
|
|
|
|
}
|
2017-10-11 16:32:05 +02:00
|
|
|
|
2017-12-08 10:21:00 +03:00
|
|
|
// Hack for preventing panel menu overlapping.
|
|
|
|
|
.react-grid-item.resizing.panel,
|
|
|
|
|
.react-grid-item.panel.dropdown-menu-open,
|
|
|
|
|
.react-grid-item.react-draggable-dragging.panel {
|
|
|
|
|
z-index: $zindex-dropdown;
|
|
|
|
|
}
|
2017-12-08 12:17:09 +01:00
|
|
|
|
|
|
|
|
// Disable animation on initial rendering and enable it when component has been mounted.
|
2018-11-20 16:00:19 +01:00
|
|
|
.react-grid-item.cssTransforms {
|
2017-12-08 12:17:09 +01:00
|
|
|
transition-property: none;
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-20 16:00:19 +01:00
|
|
|
.animated .react-grid-item.cssTransforms {
|
2017-12-08 12:17:09 +01:00
|
|
|
transition-property: transform;
|
|
|
|
|
}
|