gridstack.ui.css in GridStack 8
This file is a modified version of the library one.
Two reasons: BEM syntax and clear separation between front and back ends.
File
css/gridstack.ui.cssView source
- /**
- * @file
- * This file is a modified version of the library one.
- *
- * Two reasons: BEM syntax and clear separation between front and back ends.
- */
-
- :root .gridstack__box > .ui-resizable-handle {
- filter: none;
- }
-
- .gridstack--js .gridstack-placeholder > .placeholder-content {
- border: 1px dashed lightgray;
- margin: 0;
- position: absolute;
- top: 0;
- left: 10px;
- right: 10px;
- bottom: 0;
- width: auto;
- z-index: 0 !important;
- text-align: center;
- }
-
- .gridstack--js > .box > .ui-resizable-handle {
- position: absolute;
- font-size: 0.1px;
- display: block;
- -ms-touch-action: none;
- touch-action: none;
- }
-
- .gridstack--js > .box.ui-resizable-disabled > .ui-resizable-handle,
- .gridstack--js > .box.ui-resizable-autohide > .ui-resizable-handle {
- display: none;
- }
-
- .gridstack--js > .box.ui-draggable-dragging,
- .gridstack--js > .box.ui-resizable-resizing {
- z-index: 100;
- }
-
- .gridstack--js > .box.ui-draggable-dragging > .box__content,
- .gridstack--js > .box.ui-draggable-dragging > .box__content,
- .gridstack--js > .box.ui-resizable-resizing > .box__content,
- .gridstack--js > .box.ui-resizable-resizing > .box__content {
- box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.2);
- opacity: 0.8;
- }
-
- .gridstack--js > .box > .ui-resizable-se,
- .gridstack--js > .box > .ui-resizable-sw {
- background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy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S40MjQsMTIuODQ3LDUuNDI0YzQuOTUsMCw5LjIzNC0xLjgwNywxMi44NDktNS40MjQgICBsNzMuMDg3LTczLjA4OGMzLjYxMy0zLjYyLDUuNDIxLTcuOTAxLDUuNDIxLTEyLjg0N2MwLTQuOTQ4LTEuODA4LTkuMjMyLTUuNDIxLTEyLjg1NCAgIEMzMzguMTQyLDQwMy44MDIsMzMzLjg1Nyw0MDEuOTk0LDMyOC45MDYsNDAxLjk5NHoiIGZpbGw9IiM2NjY2NjYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);
- background-repeat: no-repeat;
- background-position: center;
- -webkit-transform: rotate(45deg);
- -moz-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- -o-transform: rotate(45deg);
- transform: rotate(45deg);
- }
-
- .gridstack--js > .box > .ui-resizable-se {
- display: inline-block;
- -webkit-transform: rotate(-45deg);
- -moz-transform: rotate(-45deg);
- -ms-transform: rotate(-45deg);
- -o-transform: rotate(-45deg);
- transform: rotate(-45deg);
- }
-
- .gridstack--js > .box > .ui-resizable-nw {
- cursor: nw-resize;
- width: 20px;
- height: 20px;
- left: 10px;
- top: 0;
- }
-
- .gridstack--js > .box > .ui-resizable-n {
- cursor: n-resize;
- height: 10px;
- top: 0;
- left: 25px;
- right: 25px;
- }
-
- .gridstack--js > .box > .ui-resizable-ne {
- cursor: ne-resize;
- width: 20px;
- height: 20px;
- right: 10px;
- top: 0;
- }
-
- .gridstack--js > .box > .ui-resizable-e {
- cursor: e-resize;
- width: 10px;
- right: 10px;
- top: 15px;
- bottom: 15px;
- }
-
- .gridstack--js > .box > .ui-resizable-se {
- cursor: se-resize;
- width: 20px;
- height: 20px;
- right: 10px;
- bottom: 0;
- }
-
- .gridstack--js > .box > .ui-resizable-s {
- cursor: s-resize;
- height: 10px;
- left: 25px;
- bottom: 0;
- right: 25px;
- }
-
- .gridstack--js > .box > .ui-resizable-sw {
- cursor: sw-resize;
- width: 20px;
- height: 20px;
- left: 10px;
- bottom: 0;
- }
-
- .gridstack--js > .box > .ui-resizable-w {
- cursor: w-resize;
- width: 10px;
- left: 10px;
- top: 15px;
- bottom: 15px;
- }
-
- .gridstack--js.gridstack--nested > .box > .ui-resizable-sw,
- .gridstack--js.gridstack--nested > .box > .ui-resizable-w {
- bottom: 20px;
- left: 20px;
- }
-
- .gridstack--js.gridstack--nested > .box > .ui-resizable-e,
- .gridstack--js.gridstack--nested > .box > .ui-resizable-se {
- bottom: 20px;
- right: 20px;
- }
-
- .gridstack.grid-stack-animate .box.ui-draggable-dragging,
- .gridstack.grid-stack-animate .box.ui-resizable-resizing,
- .gridstack.grid-stack-animate .box.gridstack-placeholder {
- -webkit-transition: left 0s, top 0s, height 0s, width 0s;
- -moz-transition: left 0s, top 0s, height 0s, width 0s;
- -ms-transition: left 0s, top 0s, height 0s, width 0s;
- -o-transition: left 0s, top 0s, height 0s, width 0s;
- transition: left 0s, top 0s, height 0s, width 0s;
- }
-
- /**
- * Customized.
- */
- .gridstack.gridstack--ui > .box > .box__content {
- overflow-x: hidden;
- overflow-y: auto;
- }
-
- .gridstack .ui-draggable-handle {
- cursor: grab;
- cursor: -webkit-grab;
- }
-
- .gridstack .ui-draggable-disabled > .ui-draggable-handle {
- cursor: default;
- }
-
- .gridstack .ui-draggable-dragging .ui-draggable-handle {
- cursor: grabbing;
- cursor: -webkit-grabbing;
- }
-
- .gridstack--disabled .box .ui-resizable-handle {
- display: none;
- }