_dashboard_grid.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. @import '~react-grid-layout-grafana/css/styles.css';
  2. @import '~react-resizable/css/styles.css';
  3. .panel-in-fullscreen {
  4. .react-grid-layout {
  5. height: 100% !important;
  6. }
  7. .react-grid-item {
  8. display: none !important;
  9. transition-property: none !important;
  10. }
  11. .panel--fullscreen {
  12. display: block !important;
  13. position: unset !important;
  14. width: 100% !important;
  15. height: 100% !important;
  16. transform: translate(0px, 0px) !important;
  17. }
  18. }
  19. @include media-breakpoint-down(sm) {
  20. .react-grid-layout {
  21. height: 100% !important;
  22. }
  23. .react-grid-item {
  24. display: none;
  25. transition-property: none !important;
  26. }
  27. .panel {
  28. display: block !important;
  29. position: unset !important;
  30. width: 100% !important;
  31. transform: translate(0px, 0px) !important;
  32. margin-bottom: 1rem;
  33. }
  34. }
  35. .theme-dark {
  36. .react-grid-item > .react-resizable-handle::after {
  37. border-right: 2px solid $gray-1;
  38. border-bottom: 2px solid $gray-1;
  39. }
  40. // temp fix since we use old commit of grid component
  41. // this can be removed when we revert to non fork grid component
  42. .react-grid-item > .react-resizable-handle {
  43. background-image: url('../img/resize-handle-white.svg');
  44. }
  45. }
  46. .theme-light {
  47. .react-grid-item > .react-resizable-handle::after {
  48. border-right: 2px solid $gray-3;
  49. border-bottom: 2px solid $gray-3;
  50. }
  51. }
  52. // Hack for preventing panel menu overlapping.
  53. .react-grid-item.resizing.panel,
  54. .react-grid-item.panel.dropdown-menu-open,
  55. .react-grid-item.react-draggable-dragging.panel {
  56. z-index: $zindex-dropdown;
  57. }
  58. // Disable animation on initial rendering and enable it when component has been mounted.
  59. .react-grid-item.cssTransforms.panel {
  60. transition-property: none;
  61. }
  62. .animated .react-grid-item.cssTransforms.panel {
  63. transition-property: transform;
  64. }