You are here

gridstack.theme.css in GridStack 8

Same filename and directory in other branches
  1. 8.2 css/gridstack.theme.css

.gridstack: module defined classes to abide its namespace. .grid-stack: JS defined classes, or managed by JS dynamically.

File

css/gridstack.theme.css
View source
  1. /**
  2. * @file
  3. *
  4. * .gridstack: module defined classes to abide its namespace.
  5. * .grid-stack: JS defined classes, or managed by JS dynamically.
  6. */
  7. .gridstack--js {
  8. overflow: hidden;
  9. margin-left: auto;
  10. margin-right: auto;
  11. max-width: 100%;
  12. min-height: 210px;
  13. position: relative;
  14. }
  15. .gridstack--js.grid-stack-rtl {
  16. direction: ltr;
  17. }
  18. .gridstack--js.grid-stack-rtl > .box {
  19. direction: rtl;
  20. }
  21. .gridstack--js .media,
  22. .gridstack--js .box__content,
  23. .gridstack--js .box__caption,
  24. .gridstack--js .blazy__caption {
  25. left: 0;
  26. margin: 0;
  27. overflow: hidden;
  28. position: absolute;
  29. top: 0;
  30. width: 100%;
  31. }
  32. .gridstack--js .box__content > a,
  33. .gridstack--js .media,
  34. .gridstack--js .box__content {
  35. display: block;
  36. height: 100%;
  37. }
  38. .gridstack--js .slide__media .media {
  39. position: relative;
  40. }
  41. .gridstack--js > .box > .box__content {
  42. left: 10px;
  43. right: 10px;
  44. bottom: 0;
  45. width: auto;
  46. z-index: 0 !important;
  47. }
  48. .gridstack--js,
  49. .gridstack--js .box {
  50. -webkit-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  51. transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
  52. }
  53. .gridstack--js .box,
  54. .gridstack--js .box__content {
  55. background-position: center center;
  56. background-size: cover;
  57. }
  58. .gridstack--js .box {
  59. min-height: 40px;
  60. }
  61. .gridstack--js .box img {
  62. height: auto;
  63. }
  64. .gridstack--js .box img,
  65. .gridstack--js .box iframe {
  66. display: block;
  67. max-width: 100%;
  68. width: 100%;
  69. }
  70. .gridstack--nomargin > .box > .box__content,
  71. .gridstack--nomargin > .box > .placeholder-content {
  72. left: 0;
  73. right: 0;
  74. }
  75. .gridstack--js .media--loading::before,
  76. .gridstack--js .media--loading .box__caption {
  77. opacity: 0;
  78. }
  79. .gridstack--js .b-loaded .box__caption,
  80. .grid-stack-static .media--loading::before,
  81. .grid-stack-static .media--loading .box__content {
  82. opacity: 1;
  83. }
  84. .grid-stack-static .media--loading .box__content {
  85. background-color: #333;
  86. }
  87. /**
  88. * Gridstack is disabled by default at 768.
  89. */
  90. .gridstack--disabled {
  91. height: auto !important;
  92. }
  93. /** Needed !important to override JS, or unexpected overrides. */
  94. .gridstack--js.gridstack--disabled > .box {
  95. float: left;
  96. height: auto !important;
  97. position: relative !important;
  98. /* width: auto !important; */
  99. left: 0 !important;
  100. top: auto !important;
  101. margin-bottom: 0;
  102. }
  103. .gridstack--js.gridstack--disabled > .box > .box__content {
  104. left: auto;
  105. position: relative;
  106. right: auto;
  107. }
  108. .gridstack--js.gridstack--disabled > .box--background > .box__content {
  109. min-height: 320px;
  110. }
  111. /**
  112. * @todo rework this temporary fix for the mess.
  113. */
  114. .gridstack--js.gridstack--disabled.grid-stack-1 > .box {
  115. width: 100%;
  116. }
  117. .gridstack--js.gridstack--disabled.grid-stack-2 > .box {
  118. width: 50%;
  119. }
  120. .gridstack--js.gridstack--disabled.grid-stack-3 > .box {
  121. width: 33.3333333333%;
  122. }
  123. .gridstack--js.gridstack--disabled.grid-stack-4 > .box {
  124. width: 25%;
  125. }
  126. .gridstack--js.gridstack--disabled.grid-stack-5 > .box {
  127. width: 20%;
  128. }
  129. .gridstack--js.gridstack--disabled.grid-stack-6 > .box {
  130. width: 16.6666666667%;
  131. }
  132. .gridstack--js.gridstack--disabled.grid-stack-7 > .box {
  133. width: 14.2857142857%;
  134. }
  135. .gridstack--js.gridstack--disabled.grid-stack-8 > .box {
  136. width: 12.5%;
  137. }
  138. .gridstack--js.gridstack--disabled.grid-stack-9 > .box {
  139. width: 11.1111111111%;
  140. }
  141. .gridstack--js.gridstack--disabled.grid-stack-10 > .box {
  142. width: 10%;
  143. }
  144. .gridstack--js.gridstack--disabled.grid-stack-10 > .box {
  145. width: 9.0909090909%;
  146. }