gridstack.theme.css in GridStack 8.2
Same filename and directory in other branches
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.cssView source
- /**
- * @file
- * Provides basic theme to avoid broken display OOTB for js-driven layouts.
- *
- * At most cases, might need to re-touch this file.
- *
- * @see css/gridstack.css for details
- */
-
- /* .gridstack--js .media, .gridstack--js .blazy__caption */
- .gridstack--js .box__caption,
- .gridstack--js .box__category,
- .is-gs-enabled .box__content {
- margin: 0;
- top: 0;
- }
-
- .gridstack--js .box__category,
- .gridstack--js .box__caption {
- position: absolute;
- }
-
- .gridstack--js .box__caption {
- width: 100%;
- }
-
- .gridstack--js .box__category {
- left: auto;
- padding: 5px 15px;
- right: 0;
- text-align: right;
- width: auto;
- }
-
- .gridstack--js .box--stamp .box__content {
- background-color: rgba(0, 0, 0, .8);
- color: #fff;
- }
-
- .gridstack--js .box__stamp > * {
- padding: 15px;
- }
-
- /**
- * When gridstack is packing/ preparing its layout for ~100ms.
- * Do not use display: none. Use visibility, or opacity, and some transitions.
- * This assumes a theme which outputs .js class on HTML element, else useless.
- */
- .js .is-gs-packing:not(.ungridstack) {
- opacity: 0;
- visibility: hidden;
- }