You are here

gridstack.library.css in GridStack 8.2

This is a modified version of the original GridStack library CSS.

Not needed by native CSS Grid, nor static Bootstrap/Foundation. This is a counterpart of gridstack.native.css. This file depends on gridstack.static.css so to re-use at Outlayer Isotope. This file is also loaded at admin UI pages, so beware to not break it.

At most cases, no need to re-touch this file.

See also

css/gridstack.css for details

File

css/gridstack.library.css
View source
  1. /**
  2. * @file
  3. * This is a modified version of the original GridStack library CSS.
  4. *
  5. * Not needed by native CSS Grid, nor static Bootstrap/Foundation.
  6. * This is a counterpart of gridstack.native.css.
  7. * This file depends on gridstack.static.css so to re-use at Outlayer Isotope.
  8. * This file is also loaded at admin UI pages, so beware to not break it.
  9. *
  10. * At most cases, no need to re-touch this file.
  11. *
  12. * @see css/gridstack.css for details
  13. */
  14. .is-gs-enabled.is-gs-layout > .box {
  15. min-width: 8.3333333333%;
  16. }
  17. .is-gs-enabled.is-gs-layout > .box[data-gs-x='1'] {
  18. left: 8.3333333333%;
  19. }
  20. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='1'] {
  21. min-width: 8.3333333333%;
  22. }
  23. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='1'] {
  24. max-width: 8.3333333333%;
  25. }
  26. .is-gs-enabled.is-gs-layout > .box[data-gs-x='2'] {
  27. left: 16.6666666667%;
  28. }
  29. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='2'] {
  30. min-width: 16.6666666667%;
  31. }
  32. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='2'] {
  33. max-width: 16.6666666667%;
  34. }
  35. .is-gs-enabled.is-gs-layout > .box[data-gs-x='3'] {
  36. left: 25%;
  37. }
  38. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='3'] {
  39. min-width: 25%;
  40. }
  41. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='3'] {
  42. max-width: 25%;
  43. }
  44. .is-gs-enabled.is-gs-layout > .box[data-gs-x='4'] {
  45. left: 33.3333333333%;
  46. }
  47. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='4'] {
  48. min-width: 33.3333333333%;
  49. }
  50. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='4'] {
  51. max-width: 33.3333333333%;
  52. }
  53. .is-gs-enabled.is-gs-layout > .box[data-gs-x='5'] {
  54. left: 41.6666666667%;
  55. }
  56. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='5'] {
  57. min-width: 41.6666666667%;
  58. }
  59. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='5'] {
  60. max-width: 41.6666666667%;
  61. }
  62. .is-gs-enabled.is-gs-layout > .box[data-gs-x='6'] {
  63. left: 50%;
  64. }
  65. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='6'] {
  66. min-width: 50%;
  67. }
  68. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='6'] {
  69. max-width: 50%;
  70. }
  71. .is-gs-enabled.is-gs-layout > .box[data-gs-x='7'] {
  72. left: 58.3333333333%;
  73. }
  74. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='7'] {
  75. min-width: 58.3333333333%;
  76. }
  77. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='7'] {
  78. max-width: 58.3333333333%;
  79. }
  80. .is-gs-enabled.is-gs-layout > .box[data-gs-x='8'] {
  81. left: 66.6666666667%;
  82. }
  83. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='8'] {
  84. min-width: 66.6666666667%;
  85. }
  86. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='8'] {
  87. max-width: 66.6666666667%;
  88. }
  89. .is-gs-enabled.is-gs-layout > .box[data-gs-x='9'] {
  90. left: 75%;
  91. }
  92. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='9'] {
  93. min-width: 75%;
  94. }
  95. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='9'] {
  96. max-width: 75%;
  97. }
  98. .is-gs-enabled.is-gs-layout > .box[data-gs-x='10'] {
  99. left: 83.3333333333%;
  100. }
  101. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='10'] {
  102. min-width: 83.3333333333%;
  103. }
  104. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='10'] {
  105. max-width: 83.3333333333%;
  106. }
  107. .is-gs-enabled.is-gs-layout > .box[data-gs-x='11'] {
  108. left: 91.6666666667%;
  109. }
  110. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='11'] {
  111. min-width: 91.6666666667%;
  112. }
  113. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='11'] {
  114. max-width: 91.6666666667%;
  115. }
  116. .is-gs-enabled.is-gs-layout > .box[data-gs-x='12'] {
  117. left: 100%;
  118. }
  119. .is-gs-enabled.is-gs-layout > .box[data-gs-min-width='12'] {
  120. min-width: 100%;
  121. }
  122. .is-gs-enabled.is-gs-layout > .box[data-gs-max-width='12'] {
  123. max-width: 100%;
  124. }
  125. .is-gs-enabled.is-gs-layout .box__content {
  126. bottom: 0;
  127. left: 8px;
  128. right: 8px;
  129. position: absolute;
  130. width: auto;
  131. z-index: 0;
  132. }
  133. /* verticalMargin 10 / 2 = 5 */
  134. .is-gs-enabled.is-gs-layout[data-gs-vm="5"] .box__content {
  135. left: 5px;
  136. right: 5px;
  137. }
  138. /* verticalMargin 20 / 2 = 10 */
  139. .is-gs-enabled.is-gs-layout[data-gs-vm="10"] .box__content {
  140. left: 10px;
  141. right: 10px;
  142. }
  143. /* verticalMargin 30 / 2 = 15 */
  144. .is-gs-enabled.is-gs-layout[data-gs-vm="15"] .box__content {
  145. left: 15px;
  146. right: 15px;
  147. }
  148. /* verticalMargin 0 + noMargin being enabled. Admin UI requires absolute. */
  149. .gridstack.is-gs-nomargin > .box > .box__content,
  150. .gridstack.is-gs-nomargin > .box > .placeholder-content {
  151. left: 0;
  152. right: 0;
  153. }
  154. /* @todo re-check to use relative when having no margin. */
  155. /* Overrides default rules with over-specified. */
  156. .is-gs-disabled.is-gs-layout .box .box__content,
  157. .gridstack--gs.is-gs-nomargin .box__content {
  158. left: auto;
  159. position: relative;
  160. right: auto;
  161. width: 100%;
  162. }
  163. /** Destroyed. */
  164. .is-gs-destroyed > .gridstack__box.box {
  165. float: left;
  166. left: auto;
  167. position: relative;
  168. }
  169. .is-gs-destroyed > .box > .box__content,
  170. .gridstack--gs.is-gs-disabled .box__content {
  171. position: relative;
  172. }