You are here

gridstack.ui.css in GridStack 8

This file is a modified version of the library one.

Two reasons: BEM syntax and clear separation between front and back ends.

File

css/gridstack.ui.css
View source
  1. /**
  2. * @file
  3. * This file is a modified version of the library one.
  4. *
  5. * Two reasons: BEM syntax and clear separation between front and back ends.
  6. */
  7. :root .gridstack__box > .ui-resizable-handle {
  8. filter: none;
  9. }
  10. .gridstack--js .gridstack-placeholder > .placeholder-content {
  11. border: 1px dashed lightgray;
  12. margin: 0;
  13. position: absolute;
  14. top: 0;
  15. left: 10px;
  16. right: 10px;
  17. bottom: 0;
  18. width: auto;
  19. z-index: 0 !important;
  20. text-align: center;
  21. }
  22. .gridstack--js > .box > .ui-resizable-handle {
  23. position: absolute;
  24. font-size: 0.1px;
  25. display: block;
  26. -ms-touch-action: none;
  27. touch-action: none;
  28. }
  29. .gridstack--js > .box.ui-resizable-disabled > .ui-resizable-handle,
  30. .gridstack--js > .box.ui-resizable-autohide > .ui-resizable-handle {
  31. display: none;
  32. }
  33. .gridstack--js > .box.ui-draggable-dragging,
  34. .gridstack--js > .box.ui-resizable-resizing {
  35. z-index: 100;
  36. }
  37. .gridstack--js > .box.ui-draggable-dragging > .box__content,
  38. .gridstack--js > .box.ui-draggable-dragging > .box__content,
  39. .gridstack--js > .box.ui-resizable-resizing > .box__content,
  40. .gridstack--js > .box.ui-resizable-resizing > .box__content {
  41. box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.2);
  42. opacity: 0.8;
  43. }
  44. .gridstack--js > .box > .ui-resizable-se,
  45. .gridstack--js > .box > .ui-resizable-sw {
  46. background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzd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AgYzAsNC45NDUsMS44MDcsOS4yMjcsNS40MjQsMTIuODQ3bDczLjA4OSw3My4wODhjMy42MTcsMy42MTcsNy44OTgsNS40MjQsMTIuODQ3LDUuNDI0YzQuOTUsMCw5LjIzNC0xLjgwNywxMi44NDktNS40MjQgICBsNzMuMDg3LTczLjA4OGMzLjYxMy0zLjYyLDUuNDIxLTcuOTAxLDUuNDIxLTEyLjg0N2MwLTQuOTQ4LTEuODA4LTkuMjMyLTUuNDIxLTEyLjg1NCAgIEMzMzguMTQyLDQwMy44MDIsMzMzLjg1Nyw0MDEuOTk0LDMyOC45MDYsNDAxLjk5NHoiIGZpbGw9IiM2NjY2NjYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);
  47. background-repeat: no-repeat;
  48. background-position: center;
  49. -webkit-transform: rotate(45deg);
  50. -moz-transform: rotate(45deg);
  51. -ms-transform: rotate(45deg);
  52. -o-transform: rotate(45deg);
  53. transform: rotate(45deg);
  54. }
  55. .gridstack--js > .box > .ui-resizable-se {
  56. display: inline-block;
  57. -webkit-transform: rotate(-45deg);
  58. -moz-transform: rotate(-45deg);
  59. -ms-transform: rotate(-45deg);
  60. -o-transform: rotate(-45deg);
  61. transform: rotate(-45deg);
  62. }
  63. .gridstack--js > .box > .ui-resizable-nw {
  64. cursor: nw-resize;
  65. width: 20px;
  66. height: 20px;
  67. left: 10px;
  68. top: 0;
  69. }
  70. .gridstack--js > .box > .ui-resizable-n {
  71. cursor: n-resize;
  72. height: 10px;
  73. top: 0;
  74. left: 25px;
  75. right: 25px;
  76. }
  77. .gridstack--js > .box > .ui-resizable-ne {
  78. cursor: ne-resize;
  79. width: 20px;
  80. height: 20px;
  81. right: 10px;
  82. top: 0;
  83. }
  84. .gridstack--js > .box > .ui-resizable-e {
  85. cursor: e-resize;
  86. width: 10px;
  87. right: 10px;
  88. top: 15px;
  89. bottom: 15px;
  90. }
  91. .gridstack--js > .box > .ui-resizable-se {
  92. cursor: se-resize;
  93. width: 20px;
  94. height: 20px;
  95. right: 10px;
  96. bottom: 0;
  97. }
  98. .gridstack--js > .box > .ui-resizable-s {
  99. cursor: s-resize;
  100. height: 10px;
  101. left: 25px;
  102. bottom: 0;
  103. right: 25px;
  104. }
  105. .gridstack--js > .box > .ui-resizable-sw {
  106. cursor: sw-resize;
  107. width: 20px;
  108. height: 20px;
  109. left: 10px;
  110. bottom: 0;
  111. }
  112. .gridstack--js > .box > .ui-resizable-w {
  113. cursor: w-resize;
  114. width: 10px;
  115. left: 10px;
  116. top: 15px;
  117. bottom: 15px;
  118. }
  119. .gridstack--js.gridstack--nested > .box > .ui-resizable-sw,
  120. .gridstack--js.gridstack--nested > .box > .ui-resizable-w {
  121. bottom: 20px;
  122. left: 20px;
  123. }
  124. .gridstack--js.gridstack--nested > .box > .ui-resizable-e,
  125. .gridstack--js.gridstack--nested > .box > .ui-resizable-se {
  126. bottom: 20px;
  127. right: 20px;
  128. }
  129. .gridstack.grid-stack-animate .box.ui-draggable-dragging,
  130. .gridstack.grid-stack-animate .box.ui-resizable-resizing,
  131. .gridstack.grid-stack-animate .box.gridstack-placeholder {
  132. -webkit-transition: left 0s, top 0s, height 0s, width 0s;
  133. -moz-transition: left 0s, top 0s, height 0s, width 0s;
  134. -ms-transition: left 0s, top 0s, height 0s, width 0s;
  135. -o-transition: left 0s, top 0s, height 0s, width 0s;
  136. transition: left 0s, top 0s, height 0s, width 0s;
  137. }
  138. /**
  139. * Customized.
  140. */
  141. .gridstack.gridstack--ui > .box > .box__content {
  142. overflow-x: hidden;
  143. overflow-y: auto;
  144. }
  145. .gridstack .ui-draggable-handle {
  146. cursor: grab;
  147. cursor: -webkit-grab;
  148. }
  149. .gridstack .ui-draggable-disabled > .ui-draggable-handle {
  150. cursor: default;
  151. }
  152. .gridstack .ui-draggable-dragging .ui-draggable-handle {
  153. cursor: grabbing;
  154. cursor: -webkit-grabbing;
  155. }
  156. .gridstack--disabled .box .ui-resizable-handle {
  157. display: none;
  158. }