_gridstack.scss 9.2 KB

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