You are here

gridstack.theme.css in GridStack 8.2

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

Provides basic theme to avoid broken display OOTB for js-driven layouts.

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

See also

css/gridstack.css for details

File

css/gridstack.theme.css
View source
  1. /**
  2. * @file
  3. * Provides basic theme to avoid broken display OOTB for js-driven layouts.
  4. *
  5. * At most cases, might need to re-touch this file.
  6. *
  7. * @see css/gridstack.css for details
  8. */
  9. /* .gridstack--js .media, .gridstack--js .blazy__caption */
  10. .gridstack--js .box__caption,
  11. .gridstack--js .box__category,
  12. .is-gs-enabled .box__content {
  13. margin: 0;
  14. top: 0;
  15. }
  16. .gridstack--js .box__category,
  17. .gridstack--js .box__caption {
  18. position: absolute;
  19. }
  20. .gridstack--js .box__caption {
  21. width: 100%;
  22. }
  23. .gridstack--js .box__category {
  24. left: auto;
  25. padding: 5px 15px;
  26. right: 0;
  27. text-align: right;
  28. width: auto;
  29. }
  30. .gridstack--js .box--stamp .box__content {
  31. background-color: rgba(0, 0, 0, .8);
  32. color: #fff;
  33. }
  34. .gridstack--js .box__stamp > * {
  35. padding: 15px;
  36. }
  37. /**
  38. * When gridstack is packing/ preparing its layout for ~100ms.
  39. * Do not use display: none. Use visibility, or opacity, and some transitions.
  40. * This assumes a theme which outputs .js class on HTML element, else useless.
  41. */
  42. .js .is-gs-packing:not(.ungridstack) {
  43. opacity: 0;
  44. visibility: hidden;
  45. }