_dashboard_grid.scss 1.9 KB

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