2022-10-05 05:10:29 -05:00
|
|
|
@import 'react-grid-layout/css/styles';
|
|
|
|
@import 'react-resizable/css/styles';
|
2017-10-11 04:42:49 -05:00
|
|
|
|
2019-12-18 04:15:59 -06:00
|
|
|
.react-resizable-handle {
|
2019-12-21 01:01:26 -06:00
|
|
|
// this needs to use visibility and not display none in order not to cause resize flickering
|
|
|
|
visibility: hidden;
|
2019-12-18 04:15:59 -06:00
|
|
|
}
|
|
|
|
|
2022-05-04 14:15:07 -05:00
|
|
|
.react-grid-item,
|
|
|
|
#grafana-portal-container {
|
2021-01-29 10:55:11 -06:00
|
|
|
touch-action: initial !important;
|
|
|
|
|
2019-12-18 04:15:59 -06:00
|
|
|
&:hover {
|
|
|
|
.react-resizable-handle {
|
2019-12-21 01:01:26 -06:00
|
|
|
visibility: visible;
|
2019-12-18 04:15:59 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-11 04:42:49 -05:00
|
|
|
.panel-in-fullscreen {
|
2022-07-14 06:28:50 -05:00
|
|
|
.react-grid-layout {
|
|
|
|
height: auto !important;
|
|
|
|
}
|
2017-10-11 09:32:05 -05:00
|
|
|
.react-grid-item {
|
2017-12-06 09:55:12 -06:00
|
|
|
display: none !important;
|
2017-10-11 09:32:05 -05:00
|
|
|
transition-property: none !important;
|
|
|
|
|
2018-11-20 09:00:19 -06:00
|
|
|
&--fullscreen {
|
|
|
|
display: block !important;
|
|
|
|
position: unset !important;
|
|
|
|
transform: translate(0px, 0px) !important;
|
|
|
|
}
|
2018-11-09 06:17:41 -06:00
|
|
|
}
|
|
|
|
|
2018-05-30 05:07:51 -05: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 01:01:26 -06:00
|
|
|
display: none;
|
2018-05-30 05:07:51 -05:00
|
|
|
}
|
2018-08-25 09:21:00 -05:00
|
|
|
|
|
|
|
// the react-grid has a height transition
|
|
|
|
.react-grid-layout {
|
|
|
|
transition-property: none;
|
|
|
|
}
|
2017-10-11 04:42:49 -05:00
|
|
|
}
|
2017-10-11 09:32:05 -05:00
|
|
|
|
2017-12-01 13:11:55 -06:00
|
|
|
@include media-breakpoint-down(sm) {
|
2017-11-28 02:38:35 -06:00
|
|
|
.react-grid-item {
|
|
|
|
display: block !important;
|
2018-12-10 05:20:14 -06:00
|
|
|
transition-property: none !important;
|
2017-11-28 02:38:35 -06:00
|
|
|
position: unset !important;
|
|
|
|
transform: translate(0px, 0px) !important;
|
2019-03-21 04:43:06 -05:00
|
|
|
margin-bottom: $space-md;
|
2017-11-28 02:38:35 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-30 07:14:23 -06:00
|
|
|
.react-grid-item.react-grid-placeholder {
|
|
|
|
box-shadow: $panel-grid-placeholder-shadow;
|
|
|
|
background: $panel-grid-placeholder-bg;
|
2021-12-13 10:27:08 -06:00
|
|
|
z-index: -1;
|
2018-11-30 07:14:23 -06:00
|
|
|
opacity: unset;
|
|
|
|
}
|
|
|
|
|
2017-10-11 14:36:03 -05:00
|
|
|
.theme-dark {
|
2018-01-22 09:49:45 -06:00
|
|
|
.react-grid-item > .react-resizable-handle::after {
|
2018-02-15 05:42:17 -06:00
|
|
|
border-right: 2px solid $gray-1;
|
|
|
|
border-bottom: 2px solid $gray-1;
|
2018-02-10 13:11:11 -06: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 14:36:03 -05:00
|
|
|
}
|
|
|
|
}
|
2017-10-11 09:32:05 -05:00
|
|
|
|
2017-12-08 01:21:00 -06: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 05:17:09 -06:00
|
|
|
|
|
|
|
// Disable animation on initial rendering and enable it when component has been mounted.
|
2018-11-20 09:00:19 -06:00
|
|
|
.react-grid-item.cssTransforms {
|
2017-12-08 05:17:09 -06:00
|
|
|
transition-property: none;
|
|
|
|
}
|
|
|
|
|
2018-11-20 09:00:19 -06:00
|
|
|
.animated .react-grid-item.cssTransforms {
|
2017-12-08 05:17:09 -06:00
|
|
|
transition-property: transform;
|
|
|
|
}
|