_dashboard_grid.scss 1.8 KB

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