_gridstack.scss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. .grid-stack-item > .ui-resizable-handle {
  2. filter: none;
  3. }
  4. .grid-stack {
  5. position: relative;
  6. min-height: 150px;
  7. }
  8. .grid-stack.grid-stack-rtl {
  9. direction: ltr;
  10. }
  11. .grid-stack.grid-stack-rtl > .grid-stack-item {
  12. direction: rtl;
  13. }
  14. .grid-stack .grid-stack-placeholder > .placeholder-content {
  15. background: $input-label-bg;
  16. box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px rgba(82,168,236,10.8);
  17. margin: 0;
  18. position: absolute;
  19. top: 0;
  20. left: 5px;
  21. right: 5px;
  22. bottom: 0;
  23. width: auto;
  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. display: block;
  43. -ms-touch-action: none;
  44. touch-action: none;
  45. font-size: 10px;
  46. color: $text-color-weak;
  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. font-family: 'grafana-icons' !important;
  64. speak: none;
  65. font-style: normal;
  66. font-weight: normal;
  67. font-variant: normal;
  68. text-transform: none;
  69. line-height: 1;
  70. -webkit-font-smoothing: antialiased;
  71. -moz-osx-font-smoothing: grayscale;
  72. &::before {
  73. content: "\e90b";
  74. }
  75. }
  76. .grid-stack > .grid-stack-item > .ui-resizable-se {
  77. cursor: se-resize;
  78. width: 16px;
  79. height: 16px;
  80. right: 6px;
  81. bottom: -2px;
  82. }
  83. .grid-stack > .grid-stack-item.ui-draggable-dragging > .ui-resizable-handle {
  84. display: none !important;
  85. }
  86. .grid-stack > .grid-stack-item[data-gs-width='1'] {
  87. width: 8.3333333333%;
  88. }
  89. .grid-stack > .grid-stack-item[data-gs-x='1'] {
  90. left: 8.3333333333%;
  91. }
  92. .grid-stack > .grid-stack-item[data-gs-min-width='1'] {
  93. min-width: 8.3333333333%;
  94. }
  95. .grid-stack > .grid-stack-item[data-gs-max-width='1'] {
  96. max-width: 8.3333333333%;
  97. }
  98. .grid-stack > .grid-stack-item[data-gs-width='2'] {
  99. width: 16.6666666667%;
  100. }
  101. .grid-stack > .grid-stack-item[data-gs-x='2'] {
  102. left: 16.6666666667%;
  103. }
  104. .grid-stack > .grid-stack-item[data-gs-min-width='2'] {
  105. min-width: 16.6666666667%;
  106. }
  107. .grid-stack > .grid-stack-item[data-gs-max-width='2'] {
  108. max-width: 16.6666666667%;
  109. }
  110. .grid-stack > .grid-stack-item[data-gs-width='3'] {
  111. width: 25%;
  112. }
  113. .grid-stack > .grid-stack-item[data-gs-x='3'] {
  114. left: 25%;
  115. }
  116. .grid-stack > .grid-stack-item[data-gs-min-width='3'] {
  117. min-width: 25%;
  118. }
  119. .grid-stack > .grid-stack-item[data-gs-max-width='3'] {
  120. max-width: 25%;
  121. }
  122. .grid-stack > .grid-stack-item[data-gs-width='4'] {
  123. width: 33.3333333333%;
  124. }
  125. .grid-stack > .grid-stack-item[data-gs-x='4'] {
  126. left: 33.3333333333%;
  127. }
  128. .grid-stack > .grid-stack-item[data-gs-min-width='4'] {
  129. min-width: 33.3333333333%;
  130. }
  131. .grid-stack > .grid-stack-item[data-gs-max-width='4'] {
  132. max-width: 33.3333333333%;
  133. }
  134. .grid-stack > .grid-stack-item[data-gs-width='5'] {
  135. width: 41.6666666667%;
  136. }
  137. .grid-stack > .grid-stack-item[data-gs-x='5'] {
  138. left: 41.6666666667%;
  139. }
  140. .grid-stack > .grid-stack-item[data-gs-min-width='5'] {
  141. min-width: 41.6666666667%;
  142. }
  143. .grid-stack > .grid-stack-item[data-gs-max-width='5'] {
  144. max-width: 41.6666666667%;
  145. }
  146. .grid-stack > .grid-stack-item[data-gs-width='6'] {
  147. width: 50%;
  148. }
  149. .grid-stack > .grid-stack-item[data-gs-x='6'] {
  150. left: 50%;
  151. }
  152. .grid-stack > .grid-stack-item[data-gs-min-width='6'] {
  153. min-width: 50%;
  154. }
  155. .grid-stack > .grid-stack-item[data-gs-max-width='6'] {
  156. max-width: 50%;
  157. }
  158. .grid-stack > .grid-stack-item[data-gs-width='7'] {
  159. width: 58.3333333333%;
  160. }
  161. .grid-stack > .grid-stack-item[data-gs-x='7'] {
  162. left: 58.3333333333%;
  163. }
  164. .grid-stack > .grid-stack-item[data-gs-min-width='7'] {
  165. min-width: 58.3333333333%;
  166. }
  167. .grid-stack > .grid-stack-item[data-gs-max-width='7'] {
  168. max-width: 58.3333333333%;
  169. }
  170. .grid-stack > .grid-stack-item[data-gs-width='8'] {
  171. width: 66.6666666667%;
  172. }
  173. .grid-stack > .grid-stack-item[data-gs-x='8'] {
  174. left: 66.6666666667%;
  175. }
  176. .grid-stack > .grid-stack-item[data-gs-min-width='8'] {
  177. min-width: 66.6666666667%;
  178. }
  179. .grid-stack > .grid-stack-item[data-gs-max-width='8'] {
  180. max-width: 66.6666666667%;
  181. }
  182. .grid-stack > .grid-stack-item[data-gs-width='9'] {
  183. width: 75%;
  184. }
  185. .grid-stack > .grid-stack-item[data-gs-x='9'] {
  186. left: 75%;
  187. }
  188. .grid-stack > .grid-stack-item[data-gs-min-width='9'] {
  189. min-width: 75%;
  190. }
  191. .grid-stack > .grid-stack-item[data-gs-max-width='9'] {
  192. max-width: 75%;
  193. }
  194. .grid-stack > .grid-stack-item[data-gs-width='10'] {
  195. width: 83.3333333333%;
  196. }
  197. .grid-stack > .grid-stack-item[data-gs-x='10'] {
  198. left: 83.3333333333%;
  199. }
  200. .grid-stack > .grid-stack-item[data-gs-min-width='10'] {
  201. min-width: 83.3333333333%;
  202. }
  203. .grid-stack > .grid-stack-item[data-gs-max-width='10'] {
  204. max-width: 83.3333333333%;
  205. }
  206. .grid-stack > .grid-stack-item[data-gs-width='11'] {
  207. width: 91.6666666667%;
  208. }
  209. .grid-stack > .grid-stack-item[data-gs-x='11'] {
  210. left: 91.6666666667%;
  211. }
  212. .grid-stack > .grid-stack-item[data-gs-min-width='11'] {
  213. min-width: 91.6666666667%;
  214. }
  215. .grid-stack > .grid-stack-item[data-gs-max-width='11'] {
  216. max-width: 91.6666666667%;
  217. }
  218. .grid-stack > .grid-stack-item[data-gs-width='12'] {
  219. width: 100%;
  220. }
  221. .grid-stack > .grid-stack-item[data-gs-x='12'] {
  222. left: 100%;
  223. }
  224. .grid-stack > .grid-stack-item[data-gs-min-width='12'] {
  225. min-width: 100%;
  226. }
  227. .grid-stack > .grid-stack-item[data-gs-max-width='12'] {
  228. max-width: 100%;
  229. }
  230. .grid-stack.grid-stack-animate,
  231. .grid-stack.grid-stack-animate .grid-stack-item {
  232. -webkit-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  233. -moz-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  234. -ms-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  235. -o-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  236. transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  237. }
  238. .grid-stack.grid-stack-animate .grid-stack-item.ui-draggable-dragging,
  239. .grid-stack.grid-stack-animate .grid-stack-item.ui-resizable-resizing,
  240. .grid-stack.grid-stack-animate .grid-stack-item.grid-stack-placeholder {
  241. -webkit-transition: left 0s, top 0s, height 0s, width 0s;
  242. -moz-transition: left 0s, top 0s, height 0s, width 0s;
  243. -ms-transition: left 0s, top 0s, height 0s, width 0s;
  244. -o-transition: left 0s, top 0s, height 0s, width 0s;
  245. transition: left 0s, top 0s, height 0s, width 0s;
  246. }
  247. .grid-stack.grid-stack-one-column-mode {
  248. height: auto !important;
  249. }
  250. .grid-stack.grid-stack-one-column-mode > .grid-stack-item {
  251. position: relative !important;
  252. width: auto !important;
  253. left: 0 !important;
  254. top: auto !important;
  255. margin-bottom: 20px;
  256. max-width: none !important;
  257. }
  258. .grid-stack.grid-stack-one-column-mode > .grid-stack-item > .ui-resizable-handle {
  259. display: none;
  260. }