grafana/public/sass/components/_dashboard_grid.scss

100 lines
2.1 KiB
SCSS
Raw Normal View History

@import 'react-grid-layout/css/styles';
@import 'react-resizable/css/styles';
.react-resizable-handle {
// this needs to use visibility and not display none in order not to cause resize flickering
visibility: hidden;
}
.react-grid-item,
#grafana-portal-container {
touch-action: initial !important;
&:hover {
.react-resizable-handle {
visibility: visible;
}
}
}
.panel-in-fullscreen {
.react-grid-layout {
height: auto !important;
}
2017-10-11 09:32:05 -05:00
.react-grid-item {
display: none !important;
2017-10-11 09:32:05 -05:00
transition-property: none !important;
&--fullscreen {
display: block !important;
position: unset !important;
transform: translate(0px, 0px) !important;
}
}
// Disable grid interaction indicators in fullscreen panels
.panel-header:hover {
background-color: inherit;
}
.panel-title-container {
cursor: pointer;
}
.react-resizable-handle {
display: none;
}
2018-08-25 09:21:00 -05:00
// the react-grid has a height transition
.react-grid-layout {
transition-property: none;
}
}
2017-10-11 09:32:05 -05:00
@include media-breakpoint-down(sm) {
.react-grid-item {
display: block !important;
2018-12-10 05:20:14 -06:00
transition-property: none !important;
position: unset !important;
transform: translate(0px, 0px) !important;
2019-03-21 04:43:06 -05:00
margin-bottom: $space-md;
}
}
.react-grid-item.react-grid-placeholder {
box-shadow: $panel-grid-placeholder-shadow;
background: $panel-grid-placeholder-bg;
z-index: -1;
opacity: unset;
}
2017-10-11 14:36:03 -05:00
.theme-dark {
.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;
}
}
.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
// 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.
.react-grid-item.cssTransforms {
2017-12-08 05:17:09 -06:00
transition-property: none;
}
.animated .react-grid-item.cssTransforms {
2017-12-08 05:17:09 -06:00
transition-property: transform;
}