_gridstack.scss 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. .grid-stack-item > .ui-resizable-handle {
  2. filter: none;
  3. }
  4. .grid-stack {
  5. position: relative;
  6. }
  7. .grid-stack.grid-stack-rtl {
  8. direction: ltr;
  9. }
  10. .grid-stack.grid-stack-rtl > .grid-stack-item {
  11. direction: rtl;
  12. }
  13. .grid-stack .grid-stack-placeholder > .placeholder-content {
  14. background: $input-label-bg;
  15. box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px rgba(82,168,236,10.8);
  16. margin: 0;
  17. position: absolute;
  18. top: 0;
  19. left: 5px;
  20. right: 5px;
  21. bottom: 0;
  22. width: auto;
  23. z-index: 0 !important;
  24. text-align: center;
  25. }
  26. .grid-stack > .grid-stack-item {
  27. min-width: 8.3333333333%;
  28. position: absolute;
  29. padding: 0;
  30. }
  31. .grid-stack > .grid-stack-item > .grid-stack-item-content {
  32. margin: 0;
  33. position: absolute;
  34. top: 0;
  35. left: 7px;
  36. right: 7px;
  37. bottom: 0;
  38. width: auto;
  39. }
  40. .grid-stack > .grid-stack-item > .ui-resizable-handle {
  41. position: absolute;
  42. font-size: 0.1px;
  43. display: block;
  44. -ms-touch-action: none;
  45. touch-action: none;
  46. }
  47. .grid-stack > .grid-stack-item.ui-resizable-disabled > .ui-resizable-handle,
  48. .grid-stack > .grid-stack-item.ui-resizable-autohide > .ui-resizable-handle {
  49. display: none;
  50. }
  51. .grid-stack > .grid-stack-item.ui-draggable-dragging, .grid-stack > .grid-stack-item.ui-resizable-resizing {
  52. z-index: 100;
  53. }
  54. .grid-stack > .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content,
  55. .grid-stack > .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content, .grid-stack > .grid-stack-item.ui-resizable-resizing > .grid-stack-item-content,
  56. .grid-stack > .grid-stack-item.ui-resizable-resizing > .grid-stack-item-content {
  57. box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.2);
  58. opacity: 0.8;
  59. }
  60. .grid-stack > .grid-stack-item > .ui-resizable-se,
  61. .grid-stack > .grid-stack-item > .ui-resizable-sw {
  62. background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDUxMS42MjYgNTExLjYyNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTExLjYyNiA1MTEuNjI3OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZD0iTTMyOC45MDYsND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9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);
  63. background-repeat: no-repeat;
  64. background-position: center;
  65. -webkit-transform: rotate(45deg);
  66. -moz-transform: rotate(45deg);
  67. -ms-transform: rotate(45deg);
  68. -o-transform: rotate(45deg);
  69. transform: rotate(45deg);
  70. }
  71. .grid-stack > .grid-stack-item > .ui-resizable-se {
  72. -webkit-transform: rotate(-45deg);
  73. -moz-transform: rotate(-45deg);
  74. -ms-transform: rotate(-45deg);
  75. -o-transform: rotate(-45deg);
  76. transform: rotate(-45deg);
  77. }
  78. .grid-stack > .grid-stack-item > .ui-resizable-se {
  79. cursor: se-resize;
  80. width: 16px;
  81. height: 16px;
  82. right: 10px;
  83. bottom: 0;
  84. }
  85. .grid-stack > .grid-stack-item.ui-draggable-dragging > .ui-resizable-handle {
  86. display: none !important;
  87. }
  88. .grid-stack > .grid-stack-item[data-gs-width='1'] {
  89. width: 8.3333333333%;
  90. }
  91. .grid-stack > .grid-stack-item[data-gs-x='1'] {
  92. left: 8.3333333333%;
  93. }
  94. .grid-stack > .grid-stack-item[data-gs-min-width='1'] {
  95. min-width: 8.3333333333%;
  96. }
  97. .grid-stack > .grid-stack-item[data-gs-max-width='1'] {
  98. max-width: 8.3333333333%;
  99. }
  100. .grid-stack > .grid-stack-item[data-gs-width='2'] {
  101. width: 16.6666666667%;
  102. }
  103. .grid-stack > .grid-stack-item[data-gs-x='2'] {
  104. left: 16.6666666667%;
  105. }
  106. .grid-stack > .grid-stack-item[data-gs-min-width='2'] {
  107. min-width: 16.6666666667%;
  108. }
  109. .grid-stack > .grid-stack-item[data-gs-max-width='2'] {
  110. max-width: 16.6666666667%;
  111. }
  112. .grid-stack > .grid-stack-item[data-gs-width='3'] {
  113. width: 25%;
  114. }
  115. .grid-stack > .grid-stack-item[data-gs-x='3'] {
  116. left: 25%;
  117. }
  118. .grid-stack > .grid-stack-item[data-gs-min-width='3'] {
  119. min-width: 25%;
  120. }
  121. .grid-stack > .grid-stack-item[data-gs-max-width='3'] {
  122. max-width: 25%;
  123. }
  124. .grid-stack > .grid-stack-item[data-gs-width='4'] {
  125. width: 33.3333333333%;
  126. }
  127. .grid-stack > .grid-stack-item[data-gs-x='4'] {
  128. left: 33.3333333333%;
  129. }
  130. .grid-stack > .grid-stack-item[data-gs-min-width='4'] {
  131. min-width: 33.3333333333%;
  132. }
  133. .grid-stack > .grid-stack-item[data-gs-max-width='4'] {
  134. max-width: 33.3333333333%;
  135. }
  136. .grid-stack > .grid-stack-item[data-gs-width='5'] {
  137. width: 41.6666666667%;
  138. }
  139. .grid-stack > .grid-stack-item[data-gs-x='5'] {
  140. left: 41.6666666667%;
  141. }
  142. .grid-stack > .grid-stack-item[data-gs-min-width='5'] {
  143. min-width: 41.6666666667%;
  144. }
  145. .grid-stack > .grid-stack-item[data-gs-max-width='5'] {
  146. max-width: 41.6666666667%;
  147. }
  148. .grid-stack > .grid-stack-item[data-gs-width='6'] {
  149. width: 50%;
  150. }
  151. .grid-stack > .grid-stack-item[data-gs-x='6'] {
  152. left: 50%;
  153. }
  154. .grid-stack > .grid-stack-item[data-gs-min-width='6'] {
  155. min-width: 50%;
  156. }
  157. .grid-stack > .grid-stack-item[data-gs-max-width='6'] {
  158. max-width: 50%;
  159. }
  160. .grid-stack > .grid-stack-item[data-gs-width='7'] {
  161. width: 58.3333333333%;
  162. }
  163. .grid-stack > .grid-stack-item[data-gs-x='7'] {
  164. left: 58.3333333333%;
  165. }
  166. .grid-stack > .grid-stack-item[data-gs-min-width='7'] {
  167. min-width: 58.3333333333%;
  168. }
  169. .grid-stack > .grid-stack-item[data-gs-max-width='7'] {
  170. max-width: 58.3333333333%;
  171. }
  172. .grid-stack > .grid-stack-item[data-gs-width='8'] {
  173. width: 66.6666666667%;
  174. }
  175. .grid-stack > .grid-stack-item[data-gs-x='8'] {
  176. left: 66.6666666667%;
  177. }
  178. .grid-stack > .grid-stack-item[data-gs-min-width='8'] {
  179. min-width: 66.6666666667%;
  180. }
  181. .grid-stack > .grid-stack-item[data-gs-max-width='8'] {
  182. max-width: 66.6666666667%;
  183. }
  184. .grid-stack > .grid-stack-item[data-gs-width='9'] {
  185. width: 75%;
  186. }
  187. .grid-stack > .grid-stack-item[data-gs-x='9'] {
  188. left: 75%;
  189. }
  190. .grid-stack > .grid-stack-item[data-gs-min-width='9'] {
  191. min-width: 75%;
  192. }
  193. .grid-stack > .grid-stack-item[data-gs-max-width='9'] {
  194. max-width: 75%;
  195. }
  196. .grid-stack > .grid-stack-item[data-gs-width='10'] {
  197. width: 83.3333333333%;
  198. }
  199. .grid-stack > .grid-stack-item[data-gs-x='10'] {
  200. left: 83.3333333333%;
  201. }
  202. .grid-stack > .grid-stack-item[data-gs-min-width='10'] {
  203. min-width: 83.3333333333%;
  204. }
  205. .grid-stack > .grid-stack-item[data-gs-max-width='10'] {
  206. max-width: 83.3333333333%;
  207. }
  208. .grid-stack > .grid-stack-item[data-gs-width='11'] {
  209. width: 91.6666666667%;
  210. }
  211. .grid-stack > .grid-stack-item[data-gs-x='11'] {
  212. left: 91.6666666667%;
  213. }
  214. .grid-stack > .grid-stack-item[data-gs-min-width='11'] {
  215. min-width: 91.6666666667%;
  216. }
  217. .grid-stack > .grid-stack-item[data-gs-max-width='11'] {
  218. max-width: 91.6666666667%;
  219. }
  220. .grid-stack > .grid-stack-item[data-gs-width='12'] {
  221. width: 100%;
  222. }
  223. .grid-stack > .grid-stack-item[data-gs-x='12'] {
  224. left: 100%;
  225. }
  226. .grid-stack > .grid-stack-item[data-gs-min-width='12'] {
  227. min-width: 100%;
  228. }
  229. .grid-stack > .grid-stack-item[data-gs-max-width='12'] {
  230. max-width: 100%;
  231. }
  232. .grid-stack.grid-stack-animate,
  233. .grid-stack.grid-stack-animate .grid-stack-item {
  234. -webkit-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  235. -moz-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  236. -ms-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  237. -o-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  238. transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  239. }
  240. .grid-stack.grid-stack-animate .grid-stack-item.ui-draggable-dragging,
  241. .grid-stack.grid-stack-animate .grid-stack-item.ui-resizable-resizing,
  242. .grid-stack.grid-stack-animate .grid-stack-item.grid-stack-placeholder {
  243. -webkit-transition: left 0s, top 0s, height 0s, width 0s;
  244. -moz-transition: left 0s, top 0s, height 0s, width 0s;
  245. -ms-transition: left 0s, top 0s, height 0s, width 0s;
  246. -o-transition: left 0s, top 0s, height 0s, width 0s;
  247. transition: left 0s, top 0s, height 0s, width 0s;
  248. }
  249. .grid-stack.grid-stack-one-column-mode {
  250. height: auto !important;
  251. }
  252. .grid-stack.grid-stack-one-column-mode > .grid-stack-item {
  253. position: relative !important;
  254. width: auto !important;
  255. left: 0 !important;
  256. top: auto !important;
  257. margin-bottom: 20px;
  258. max-width: none !important;
  259. }
  260. .grid-stack.grid-stack-one-column-mode > .grid-stack-item > .ui-resizable-handle {
  261. display: none;
  262. }