gridstack.css 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. @charset "UTF-8";
  2. :root .grid-stack-item > .ui-resizable-handle {
  3. -webkit-filter: none;
  4. filter: none; }
  5. .grid-stack {
  6. position: relative; }
  7. .grid-stack .grid-stack-placeholder > .placeholder-content {
  8. position: absolute;
  9. top: 0;
  10. right: 10px;
  11. bottom: 0;
  12. left: 10px;
  13. z-index: 0 !important;
  14. width: auto;
  15. margin: 0;
  16. border: 1px dashed lightgray; }
  17. .grid-stack > .grid-stack-item {
  18. position: absolute;
  19. min-width: 8.3333333333%;
  20. padding: 0; }
  21. .grid-stack > .grid-stack-item[data-gs-width='1'] {
  22. width: 8.3333333333%; }
  23. .grid-stack > .grid-stack-item[data-gs-x='1'] {
  24. left: 8.3333333333%; }
  25. .grid-stack > .grid-stack-item[data-gs-min-width='1'] {
  26. min-width: 8.3333333333%; }
  27. .grid-stack > .grid-stack-item[data-gs-max-width='1'] {
  28. max-width: 8.3333333333%; }
  29. .grid-stack > .grid-stack-item[data-gs-width='2'] {
  30. width: 16.6666666667%; }
  31. .grid-stack > .grid-stack-item[data-gs-x='2'] {
  32. left: 16.6666666667%; }
  33. .grid-stack > .grid-stack-item[data-gs-min-width='2'] {
  34. min-width: 16.6666666667%; }
  35. .grid-stack > .grid-stack-item[data-gs-max-width='2'] {
  36. max-width: 16.6666666667%; }
  37. .grid-stack > .grid-stack-item[data-gs-width='3'] {
  38. width: 25%; }
  39. .grid-stack > .grid-stack-item[data-gs-x='3'] {
  40. left: 25%; }
  41. .grid-stack > .grid-stack-item[data-gs-min-width='3'] {
  42. min-width: 25%; }
  43. .grid-stack > .grid-stack-item[data-gs-max-width='3'] {
  44. max-width: 25%; }
  45. .grid-stack > .grid-stack-item[data-gs-width='4'] {
  46. width: 33.3333333333%; }
  47. .grid-stack > .grid-stack-item[data-gs-x='4'] {
  48. left: 33.3333333333%; }
  49. .grid-stack > .grid-stack-item[data-gs-min-width='4'] {
  50. min-width: 33.3333333333%; }
  51. .grid-stack > .grid-stack-item[data-gs-max-width='4'] {
  52. max-width: 33.3333333333%; }
  53. .grid-stack > .grid-stack-item[data-gs-width='5'] {
  54. width: 41.6666666667%; }
  55. .grid-stack > .grid-stack-item[data-gs-x='5'] {
  56. left: 41.6666666667%; }
  57. .grid-stack > .grid-stack-item[data-gs-min-width='5'] {
  58. min-width: 41.6666666667%; }
  59. .grid-stack > .grid-stack-item[data-gs-max-width='5'] {
  60. max-width: 41.6666666667%; }
  61. .grid-stack > .grid-stack-item[data-gs-width='6'] {
  62. width: 50%; }
  63. .grid-stack > .grid-stack-item[data-gs-x='6'] {
  64. left: 50%; }
  65. .grid-stack > .grid-stack-item[data-gs-min-width='6'] {
  66. min-width: 50%; }
  67. .grid-stack > .grid-stack-item[data-gs-max-width='6'] {
  68. max-width: 50%; }
  69. .grid-stack > .grid-stack-item[data-gs-width='7'] {
  70. width: 58.3333333333%; }
  71. .grid-stack > .grid-stack-item[data-gs-x='7'] {
  72. left: 58.3333333333%; }
  73. .grid-stack > .grid-stack-item[data-gs-min-width='7'] {
  74. min-width: 58.3333333333%; }
  75. .grid-stack > .grid-stack-item[data-gs-max-width='7'] {
  76. max-width: 58.3333333333%; }
  77. .grid-stack > .grid-stack-item[data-gs-width='8'] {
  78. width: 66.6666666667%; }
  79. .grid-stack > .grid-stack-item[data-gs-x='8'] {
  80. left: 66.6666666667%; }
  81. .grid-stack > .grid-stack-item[data-gs-min-width='8'] {
  82. min-width: 66.6666666667%; }
  83. .grid-stack > .grid-stack-item[data-gs-max-width='8'] {
  84. max-width: 66.6666666667%; }
  85. .grid-stack > .grid-stack-item[data-gs-width='9'] {
  86. width: 75%; }
  87. .grid-stack > .grid-stack-item[data-gs-x='9'] {
  88. left: 75%; }
  89. .grid-stack > .grid-stack-item[data-gs-min-width='9'] {
  90. min-width: 75%; }
  91. .grid-stack > .grid-stack-item[data-gs-max-width='9'] {
  92. max-width: 75%; }
  93. .grid-stack > .grid-stack-item[data-gs-width='10'] {
  94. width: 83.3333333333%; }
  95. .grid-stack > .grid-stack-item[data-gs-x='10'] {
  96. left: 83.3333333333%; }
  97. .grid-stack > .grid-stack-item[data-gs-min-width='10'] {
  98. min-width: 83.3333333333%; }
  99. .grid-stack > .grid-stack-item[data-gs-max-width='10'] {
  100. max-width: 83.3333333333%; }
  101. .grid-stack > .grid-stack-item[data-gs-width='11'] {
  102. width: 91.6666666667%; }
  103. .grid-stack > .grid-stack-item[data-gs-x='11'] {
  104. left: 91.6666666667%; }
  105. .grid-stack > .grid-stack-item[data-gs-min-width='11'] {
  106. min-width: 91.6666666667%; }
  107. .grid-stack > .grid-stack-item[data-gs-max-width='11'] {
  108. max-width: 91.6666666667%; }
  109. .grid-stack > .grid-stack-item[data-gs-width='12'] {
  110. width: 100%; }
  111. .grid-stack > .grid-stack-item[data-gs-x='12'] {
  112. left: 100%; }
  113. .grid-stack > .grid-stack-item[data-gs-min-width='12'] {
  114. min-width: 100%; }
  115. .grid-stack > .grid-stack-item[data-gs-max-width='12'] {
  116. max-width: 100%; }
  117. .grid-stack > .grid-stack-item > .grid-stack-item-content {
  118. position: absolute;
  119. top: 0;
  120. right: 10px;
  121. bottom: 0;
  122. left: 10px;
  123. z-index: 0 !important;
  124. width: auto;
  125. margin: 0;
  126. overflow-x: hidden;
  127. overflow-y: auto; }
  128. .grid-stack > .grid-stack-item > .ui-resizable-handle {
  129. position: absolute;
  130. display: block;
  131. font-size: .1px;
  132. -ms-touch-action: none;
  133. touch-action: none; }
  134. .grid-stack > .grid-stack-item.ui-resizable-disabled > .ui-resizable-handle, .grid-stack > .grid-stack-item.ui-resizable-autohide > .ui-resizable-handle {
  135. display: none; }
  136. .grid-stack > .grid-stack-item.ui-draggable-dragging, .grid-stack > .grid-stack-item.ui-resizable-resizing {
  137. z-index: 100; }
  138. .grid-stack > .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content, .grid-stack > .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content, .grid-stack > .grid-stack-item.ui-resizable-resizing > .grid-stack-item-content, .grid-stack > .grid-stack-item.ui-resizable-resizing > .grid-stack-item-content {
  139. box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.2);
  140. opacity: .8; }
  141. .grid-stack > .grid-stack-item > .ui-resizable-se, .grid-stack > .grid-stack-item > .ui-resizable-sw {
  142. padding: 2px 3px 0 0;
  143. margin: 0;
  144. font: normal normal normal 10px/1 "Web Icons";
  145. font-size: inherit;
  146. color: gray;
  147. text-align: right;
  148. text-rendering: auto;
  149. -webkit-font-smoothing: antialiased;
  150. -moz-osx-font-smoothing: grayscale; }
  151. .grid-stack > .grid-stack-item > .ui-resizable-se::before, .grid-stack > .grid-stack-item > .ui-resizable-sw::before {
  152. content: ""; }
  153. .grid-stack > .grid-stack-item > .ui-resizable-sw {
  154. -webkit-transform: rotate(90deg);
  155. transform: rotate(90deg);
  156. display: inline-block;
  157. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); }
  158. .grid-stack > .grid-stack-item > .ui-resizable-nw {
  159. top: 0;
  160. left: 10px;
  161. width: 20px;
  162. height: 20px;
  163. cursor: nw-resize; }
  164. .grid-stack > .grid-stack-item > .ui-resizable-n {
  165. top: 0;
  166. right: 25px;
  167. left: 25px;
  168. height: 10px;
  169. cursor: n-resize; }
  170. .grid-stack > .grid-stack-item > .ui-resizable-ne {
  171. top: 0;
  172. right: 10px;
  173. width: 20px;
  174. height: 20px;
  175. cursor: ne-resize; }
  176. .grid-stack > .grid-stack-item > .ui-resizable-e {
  177. top: 15px;
  178. right: 10px;
  179. bottom: 15px;
  180. width: 10px;
  181. cursor: e-resize; }
  182. .grid-stack > .grid-stack-item > .ui-resizable-se {
  183. right: 10px;
  184. bottom: 0;
  185. width: 20px;
  186. height: 20px;
  187. cursor: se-resize; }
  188. .grid-stack > .grid-stack-item > .ui-resizable-s {
  189. right: 25px;
  190. bottom: 0;
  191. left: 25px;
  192. height: 10px;
  193. cursor: s-resize; }
  194. .grid-stack > .grid-stack-item > .ui-resizable-sw {
  195. bottom: 0;
  196. left: 10px;
  197. width: 20px;
  198. height: 20px;
  199. cursor: sw-resize; }
  200. .grid-stack > .grid-stack-item > .ui-resizable-w {
  201. top: 15px;
  202. bottom: 15px;
  203. left: 10px;
  204. width: 10px;
  205. cursor: w-resize; }
  206. .grid-stack.grid-stack-animate, .grid-stack.grid-stack-animate .grid-stack-item {
  207. transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s; }
  208. .grid-stack.grid-stack-animate .grid-stack-item.ui-draggable-dragging, .grid-stack.grid-stack-animate .grid-stack-item.ui-resizable-resizing, .grid-stack.grid-stack-animate .grid-stack-item.grid-stack-placeholder {
  209. transition: left 0s, top 0s, height 0s, width 0s; }
  210. /** Uncomment this to show bottom-left resize handle **/
  211. /*
  212. .grid-stack > .grid-stack-item > .ui-resizable-sw {
  213. display: inline-block;
  214. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
  215. @include vendor(transform, rotate(180deg));
  216. }
  217. */
  218. @media (max-width: 767.98px) {
  219. .grid-stack-item {
  220. position: relative !important;
  221. top: auto !important;
  222. left: 0 !important;
  223. width: auto !important;
  224. margin-bottom: 20px; }
  225. .grid-stack-item .ui-resizable-handle {
  226. display: none; }
  227. .grid-stack {
  228. height: auto !important; } }