_dashboard_grid.scss 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. @import '~react-grid-layout/css/styles.css';
  2. @import '~react-resizable/css/styles.css';
  3. .panel-in-fullscreen {
  4. .react-grid-layout {
  5. height: calc(100% - 20px) !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. .panel {
  19. margin: 0 !important;
  20. }
  21. // Disable grid interaction indicators in fullscreen panels
  22. .panel-header:hover {
  23. background-color: inherit;
  24. }
  25. .panel-title-container {
  26. cursor: pointer;
  27. }
  28. .react-resizable-handle {
  29. display: none;
  30. }
  31. // the react-grid has a height transition
  32. .react-grid-layout {
  33. transition-property: none;
  34. }
  35. }
  36. @include media-breakpoint-down(sm) {
  37. .react-grid-layout {
  38. height: 100% !important;
  39. }
  40. .react-grid-item {
  41. display: none;
  42. transition-property: none !important;
  43. }
  44. .panel {
  45. display: block !important;
  46. position: unset !important;
  47. width: 100% !important;
  48. transform: translate(0px, 0px) !important;
  49. margin-bottom: 1rem;
  50. }
  51. }
  52. .theme-dark {
  53. .react-grid-item > .react-resizable-handle::after {
  54. border-right: 2px solid $gray-1;
  55. border-bottom: 2px solid $gray-1;
  56. }
  57. }
  58. .theme-light {
  59. .react-grid-item > .react-resizable-handle::after {
  60. border-right: 2px solid $gray-3;
  61. border-bottom: 2px solid $gray-3;
  62. }
  63. }
  64. // Hack for preventing panel menu overlapping.
  65. .react-grid-item.resizing.panel,
  66. .react-grid-item.panel.dropdown-menu-open,
  67. .react-grid-item.react-draggable-dragging.panel {
  68. z-index: $zindex-dropdown;
  69. }
  70. // Disable animation on initial rendering and enable it when component has been mounted.
  71. .react-grid-item.cssTransforms.panel {
  72. transition-property: none;
  73. }
  74. .animated .react-grid-item.cssTransforms.panel {
  75. transition-property: transform;
  76. }