You are here

gridstack.static.css in GridStack 8.2

Provides basic static layout for GridStack JS layout, Outlayer Isotope, etc.

This is not needed by native CSS Grid, nor CSS Bootstrap/Foundation. This file is also loaded at admin UI pages, so beware to not break it. This file can be loaded along with gridstack.library.css, or if using Outlayer Isotope to support both native CSS Grid and dynamic sortable layout.

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

See also

css/gridstack.css for details

File

css/gridstack.static.css
View source
  1. /**
  2. * @file
  3. * Provides basic static layout for GridStack JS layout, Outlayer Isotope, etc.
  4. *
  5. * This is not needed by native CSS Grid, nor CSS Bootstrap/Foundation.
  6. * This file is also loaded at admin UI pages, so beware to not break it.
  7. * This file can be loaded along with gridstack.library.css, or if using
  8. * Outlayer Isotope to support both native CSS Grid and dynamic sortable layout.
  9. *
  10. * At most cases, no need to re-touch this file.
  11. *
  12. * @see css/gridstack.css for details
  13. */
  14. .is-gs-layout .box {
  15. left: 0;
  16. }
  17. .is-gs-enabled.is-gs-layout > .box {
  18. padding: 0;
  19. position: absolute;
  20. }
  21. .is-gs-enabled.is-gs-layout > .box,
  22. .is-gs-enabled.is-gs-layout > .box[data-gs-width='12'] {
  23. width: 100%;
  24. }
  25. /** @todo use mediaqueries to avoid !important rule somewhere. */
  26. .is-gs-enabled.is-gs-layout > .box[data-gs-width='1'] {
  27. width: 8.3333333333%;
  28. }
  29. .is-gs-enabled.is-gs-layout > .box[data-gs-width='2'] {
  30. width: 16.6666666667%;
  31. }
  32. .is-gs-enabled.is-gs-layout > .box[data-gs-width='3'] {
  33. width: 25%;
  34. }
  35. .is-gs-enabled.is-gs-layout > .box[data-gs-width='4'] {
  36. width: 33.3333333333%;
  37. }
  38. .is-gs-enabled.is-gs-layout > .box[data-gs-width='5'] {
  39. width: 41.6666666667%;
  40. }
  41. .is-gs-enabled.is-gs-layout > .box[data-gs-width='6'] {
  42. width: 50%;
  43. }
  44. .is-gs-enabled.is-gs-layout > .box[data-gs-width='7'] {
  45. width: 58.3333333333%;
  46. }
  47. .is-gs-enabled.is-gs-layout > .box[data-gs-width='8'] {
  48. width: 66.6666666667%;
  49. }
  50. .is-gs-enabled.is-gs-layout > .box[data-gs-width='9'] {
  51. width: 75%;
  52. }
  53. .is-gs-enabled.is-gs-layout > .box[data-gs-width='10'] {
  54. width: 83.3333333333%;
  55. }
  56. .is-gs-enabled.is-gs-layout > .box[data-gs-width='11'] {
  57. width: 91.6666666667%;
  58. }
  59. /**
  60. * The following rules are front-end only, note the .gridstack--gs class.
  61. * The above rules are also affecting admin UI pages.
  62. * Gridstack is disabled by default at 768.
  63. * @todo remove once the library stops outputting inline styles.
  64. * @todo remove if JS fixes do address it all.
  65. */
  66. .gridstack--gs.is-gs-disabled {
  67. /* Also to fix ungridstack with Masonry/ Packery layout inline styles. */
  68. height: auto !important; /* csslint allow: known-properties, important */
  69. }
  70. /* @todo re-enable here if JS fixes don't address it all, yet. */
  71. /* Needed !important to override JS inline styles, or unexpected overrides. */
  72. /* Also to fix ungridstack with Masonry/ Packery layout inline styles. */
  73. /* Masonry/ Packery during resizing.
  74. .gridstack--gs.is-gs-disabled > .box {
  75. float: none;
  76. height: auto !important;
  77. position: relative !important;
  78. left: auto !important;
  79. top: auto !important;
  80. margin-bottom: 0;
  81. width: 100% !important;
  82. transform: none !important;
  83. }
  84. */