_gridstack.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  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. border: 1px dashed lightgray;
  15. margin: 0;
  16. position: absolute;
  17. top: 0;
  18. left: 5px;
  19. right: 5px;
  20. bottom: 0;
  21. width: auto;
  22. z-index: 0 !important;
  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. overflow-x: hidden;
  39. overflow-y: auto;
  40. }
  41. .grid-stack > .grid-stack-item > .ui-resizable-handle {
  42. position: absolute;
  43. font-size: 0.1px;
  44. display: block;
  45. -ms-touch-action: none;
  46. touch-action: none;
  47. }
  48. .grid-stack > .grid-stack-item.ui-resizable-disabled > .ui-resizable-handle,
  49. .grid-stack > .grid-stack-item.ui-resizable-autohide > .ui-resizable-handle {
  50. display: none;
  51. }
  52. .grid-stack > .grid-stack-item.ui-draggable-dragging, .grid-stack > .grid-stack-item.ui-resizable-resizing {
  53. z-index: 100;
  54. }
  55. .grid-stack > .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content,
  56. .grid-stack > .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content, .grid-stack > .grid-stack-item.ui-resizable-resizing > .grid-stack-item-content,
  57. .grid-stack > .grid-stack-item.ui-resizable-resizing > .grid-stack-item-content {
  58. box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.2);
  59. opacity: 0.8;
  60. }
  61. .grid-stack > .grid-stack-item > .ui-resizable-se,
  62. .grid-stack > .grid-stack-item > .ui-resizable-sw {
  63. background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDUxMS42MjYgNTExLjYyNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTExLjYyNiA1MTEuNjI3OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+C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z4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);
  64. background-repeat: no-repeat;
  65. background-position: center;
  66. -webkit-transform: rotate(45deg);
  67. -moz-transform: rotate(45deg);
  68. -ms-transform: rotate(45deg);
  69. -o-transform: rotate(45deg);
  70. transform: rotate(45deg);
  71. }
  72. .grid-stack > .grid-stack-item > .ui-resizable-se {
  73. -webkit-transform: rotate(-45deg);
  74. -moz-transform: rotate(-45deg);
  75. -ms-transform: rotate(-45deg);
  76. -o-transform: rotate(-45deg);
  77. transform: rotate(-45deg);
  78. }
  79. .grid-stack > .grid-stack-item > .ui-resizable-nw {
  80. cursor: nw-resize;
  81. width: 16px;
  82. height: 16px;
  83. left: 10px;
  84. top: 0;
  85. }
  86. .grid-stack > .grid-stack-item > .ui-resizable-n {
  87. cursor: n-resize;
  88. height: 10px;
  89. top: 0;
  90. left: 25px;
  91. right: 25px;
  92. }
  93. .grid-stack > .grid-stack-item > .ui-resizable-ne {
  94. cursor: ne-resize;
  95. width: 16px;
  96. height: 16px;
  97. right: 10px;
  98. top: 0;
  99. }
  100. .grid-stack > .grid-stack-item > .ui-resizable-e {
  101. cursor: e-resize;
  102. width: 10px;
  103. right: 10px;
  104. top: 15px;
  105. bottom: 15px;
  106. }
  107. .grid-stack > .grid-stack-item > .ui-resizable-se {
  108. cursor: se-resize;
  109. width: 16px;
  110. height: 16px;
  111. right: 10px;
  112. bottom: 0;
  113. }
  114. .grid-stack > .grid-stack-item > .ui-resizable-s {
  115. cursor: s-resize;
  116. height: 10px;
  117. left: 25px;
  118. bottom: 0;
  119. right: 25px;
  120. }
  121. .grid-stack > .grid-stack-item > .ui-resizable-sw {
  122. cursor: sw-resize;
  123. width: 16px;
  124. height: 16px;
  125. left: 10px;
  126. bottom: 0;
  127. }
  128. .grid-stack > .grid-stack-item > .ui-resizable-w {
  129. cursor: w-resize;
  130. width: 10px;
  131. left: 10px;
  132. top: 15px;
  133. bottom: 15px;
  134. }
  135. .grid-stack > .grid-stack-item.ui-draggable-dragging > .ui-resizable-handle {
  136. display: none !important;
  137. }
  138. .grid-stack > .grid-stack-item[data-gs-width='1'] {
  139. width: 8.3333333333%;
  140. }
  141. .grid-stack > .grid-stack-item[data-gs-x='1'] {
  142. left: 8.3333333333%;
  143. }
  144. .grid-stack > .grid-stack-item[data-gs-min-width='1'] {
  145. min-width: 8.3333333333%;
  146. }
  147. .grid-stack > .grid-stack-item[data-gs-max-width='1'] {
  148. max-width: 8.3333333333%;
  149. }
  150. .grid-stack > .grid-stack-item[data-gs-width='2'] {
  151. width: 16.6666666667%;
  152. }
  153. .grid-stack > .grid-stack-item[data-gs-x='2'] {
  154. left: 16.6666666667%;
  155. }
  156. .grid-stack > .grid-stack-item[data-gs-min-width='2'] {
  157. min-width: 16.6666666667%;
  158. }
  159. .grid-stack > .grid-stack-item[data-gs-max-width='2'] {
  160. max-width: 16.6666666667%;
  161. }
  162. .grid-stack > .grid-stack-item[data-gs-width='3'] {
  163. width: 25%;
  164. }
  165. .grid-stack > .grid-stack-item[data-gs-x='3'] {
  166. left: 25%;
  167. }
  168. .grid-stack > .grid-stack-item[data-gs-min-width='3'] {
  169. min-width: 25%;
  170. }
  171. .grid-stack > .grid-stack-item[data-gs-max-width='3'] {
  172. max-width: 25%;
  173. }
  174. .grid-stack > .grid-stack-item[data-gs-width='4'] {
  175. width: 33.3333333333%;
  176. }
  177. .grid-stack > .grid-stack-item[data-gs-x='4'] {
  178. left: 33.3333333333%;
  179. }
  180. .grid-stack > .grid-stack-item[data-gs-min-width='4'] {
  181. min-width: 33.3333333333%;
  182. }
  183. .grid-stack > .grid-stack-item[data-gs-max-width='4'] {
  184. max-width: 33.3333333333%;
  185. }
  186. .grid-stack > .grid-stack-item[data-gs-width='5'] {
  187. width: 41.6666666667%;
  188. }
  189. .grid-stack > .grid-stack-item[data-gs-x='5'] {
  190. left: 41.6666666667%;
  191. }
  192. .grid-stack > .grid-stack-item[data-gs-min-width='5'] {
  193. min-width: 41.6666666667%;
  194. }
  195. .grid-stack > .grid-stack-item[data-gs-max-width='5'] {
  196. max-width: 41.6666666667%;
  197. }
  198. .grid-stack > .grid-stack-item[data-gs-width='6'] {
  199. width: 50%;
  200. }
  201. .grid-stack > .grid-stack-item[data-gs-x='6'] {
  202. left: 50%;
  203. }
  204. .grid-stack > .grid-stack-item[data-gs-min-width='6'] {
  205. min-width: 50%;
  206. }
  207. .grid-stack > .grid-stack-item[data-gs-max-width='6'] {
  208. max-width: 50%;
  209. }
  210. .grid-stack > .grid-stack-item[data-gs-width='7'] {
  211. width: 58.3333333333%;
  212. }
  213. .grid-stack > .grid-stack-item[data-gs-x='7'] {
  214. left: 58.3333333333%;
  215. }
  216. .grid-stack > .grid-stack-item[data-gs-min-width='7'] {
  217. min-width: 58.3333333333%;
  218. }
  219. .grid-stack > .grid-stack-item[data-gs-max-width='7'] {
  220. max-width: 58.3333333333%;
  221. }
  222. .grid-stack > .grid-stack-item[data-gs-width='8'] {
  223. width: 66.6666666667%;
  224. }
  225. .grid-stack > .grid-stack-item[data-gs-x='8'] {
  226. left: 66.6666666667%;
  227. }
  228. .grid-stack > .grid-stack-item[data-gs-min-width='8'] {
  229. min-width: 66.6666666667%;
  230. }
  231. .grid-stack > .grid-stack-item[data-gs-max-width='8'] {
  232. max-width: 66.6666666667%;
  233. }
  234. .grid-stack > .grid-stack-item[data-gs-width='9'] {
  235. width: 75%;
  236. }
  237. .grid-stack > .grid-stack-item[data-gs-x='9'] {
  238. left: 75%;
  239. }
  240. .grid-stack > .grid-stack-item[data-gs-min-width='9'] {
  241. min-width: 75%;
  242. }
  243. .grid-stack > .grid-stack-item[data-gs-max-width='9'] {
  244. max-width: 75%;
  245. }
  246. .grid-stack > .grid-stack-item[data-gs-width='10'] {
  247. width: 83.3333333333%;
  248. }
  249. .grid-stack > .grid-stack-item[data-gs-x='10'] {
  250. left: 83.3333333333%;
  251. }
  252. .grid-stack > .grid-stack-item[data-gs-min-width='10'] {
  253. min-width: 83.3333333333%;
  254. }
  255. .grid-stack > .grid-stack-item[data-gs-max-width='10'] {
  256. max-width: 83.3333333333%;
  257. }
  258. .grid-stack > .grid-stack-item[data-gs-width='11'] {
  259. width: 91.6666666667%;
  260. }
  261. .grid-stack > .grid-stack-item[data-gs-x='11'] {
  262. left: 91.6666666667%;
  263. }
  264. .grid-stack > .grid-stack-item[data-gs-min-width='11'] {
  265. min-width: 91.6666666667%;
  266. }
  267. .grid-stack > .grid-stack-item[data-gs-max-width='11'] {
  268. max-width: 91.6666666667%;
  269. }
  270. .grid-stack > .grid-stack-item[data-gs-width='12'] {
  271. width: 100%;
  272. }
  273. .grid-stack > .grid-stack-item[data-gs-x='12'] {
  274. left: 100%;
  275. }
  276. .grid-stack > .grid-stack-item[data-gs-min-width='12'] {
  277. min-width: 100%;
  278. }
  279. .grid-stack > .grid-stack-item[data-gs-max-width='12'] {
  280. max-width: 100%;
  281. }
  282. .grid-stack.grid-stack-animate,
  283. .grid-stack.grid-stack-animate .grid-stack-item {
  284. -webkit-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  285. -moz-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  286. -ms-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  287. -o-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  288. transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  289. }
  290. .grid-stack.grid-stack-animate .grid-stack-item.ui-draggable-dragging,
  291. .grid-stack.grid-stack-animate .grid-stack-item.ui-resizable-resizing,
  292. .grid-stack.grid-stack-animate .grid-stack-item.grid-stack-placeholder {
  293. -webkit-transition: left 0s, top 0s, height 0s, width 0s;
  294. -moz-transition: left 0s, top 0s, height 0s, width 0s;
  295. -ms-transition: left 0s, top 0s, height 0s, width 0s;
  296. -o-transition: left 0s, top 0s, height 0s, width 0s;
  297. transition: left 0s, top 0s, height 0s, width 0s;
  298. }
  299. .grid-stack.grid-stack-one-column-mode {
  300. height: auto !important;
  301. }
  302. .grid-stack.grid-stack-one-column-mode > .grid-stack-item {
  303. position: relative !important;
  304. width: auto !important;
  305. left: 0 !important;
  306. top: auto !important;
  307. margin-bottom: 20px;
  308. max-width: none !important;
  309. }
  310. .grid-stack.grid-stack-one-column-mode > .grid-stack-item > .ui-resizable-handle {
  311. display: none;
  312. }