| 1 |
/** |
| 2 |
* gridstack SASS styles 12.3.1 |
| 3 |
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license |
| 4 |
*/ |
| 5 |
.grid-stack { |
| 6 |
position: relative; |
| 7 |
} |
| 8 |
|
| 9 |
.grid-stack-rtl { |
| 10 |
direction: ltr; |
| 11 |
} |
| 12 |
.grid-stack-rtl > .grid-stack-item { |
| 13 |
direction: rtl; |
| 14 |
} |
| 15 |
|
| 16 |
.grid-stack-placeholder > .placeholder-content { |
| 17 |
background-color: rgba(0, 0, 0, 0.1); |
| 18 |
margin: 0; |
| 19 |
position: absolute; |
| 20 |
width: auto; |
| 21 |
z-index: 0 !important; |
| 22 |
} |
| 23 |
|
| 24 |
.grid-stack > .grid-stack-item { |
| 25 |
position: absolute; |
| 26 |
padding: 0; |
| 27 |
top: 0; |
| 28 |
left: 0; |
| 29 |
width: var(--gs-column-width); |
| 30 |
height: var(--gs-cell-height); |
| 31 |
} |
| 32 |
.grid-stack > .grid-stack-item > .grid-stack-item-content { |
| 33 |
margin: 0; |
| 34 |
position: absolute; |
| 35 |
width: auto; |
| 36 |
overflow-x: hidden; |
| 37 |
overflow-y: auto; |
| 38 |
} |
| 39 |
.grid-stack > .grid-stack-item.size-to-content:not(.size-to-content-max) > .grid-stack-item-content { |
| 40 |
overflow-y: hidden; |
| 41 |
} |
| 42 |
|
| 43 |
.grid-stack > .grid-stack-item > .grid-stack-item-content, |
| 44 |
.grid-stack > .grid-stack-placeholder > .placeholder-content { |
| 45 |
top: var(--gs-item-margin-top); |
| 46 |
right: var(--gs-item-margin-right); |
| 47 |
bottom: var(--gs-item-margin-bottom); |
| 48 |
left: var(--gs-item-margin-left); |
| 49 |
} |
| 50 |
|
| 51 |
.grid-stack-item > .ui-resizable-handle { |
| 52 |
position: absolute; |
| 53 |
font-size: 0.1px; |
| 54 |
display: block; |
| 55 |
-ms-touch-action: none; |
| 56 |
touch-action: none; |
| 57 |
} |
| 58 |
.grid-stack-item.ui-resizable-disabled > .ui-resizable-handle, .grid-stack-item.ui-resizable-autohide > .ui-resizable-handle { |
| 59 |
display: none; |
| 60 |
} |
| 61 |
.grid-stack-item > .ui-resizable-ne, |
| 62 |
.grid-stack-item > .ui-resizable-nw, |
| 63 |
.grid-stack-item > .ui-resizable-se, |
| 64 |
.grid-stack-item > .ui-resizable-sw { |
| 65 |
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23666" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 20 20"><path d="m10 3 2 2H8l2-2v14l-2-2h4l-2 2"/></svg>'); |
| 66 |
background-repeat: no-repeat; |
| 67 |
background-position: center; |
| 68 |
} |
| 69 |
.grid-stack-item > .ui-resizable-sw { |
| 70 |
transform: rotate(45deg); |
| 71 |
cursor: sw-resize; |
| 72 |
width: 20px; |
| 73 |
height: 20px; |
| 74 |
bottom: var(--gs-item-margin-bottom); |
| 75 |
left: var(--gs-item-margin-left); |
| 76 |
} |
| 77 |
.grid-stack-item > .ui-resizable-nw { |
| 78 |
transform: rotate(-45deg); |
| 79 |
cursor: nw-resize; |
| 80 |
width: 20px; |
| 81 |
height: 20px; |
| 82 |
top: var(--gs-item-margin-top); |
| 83 |
left: var(--gs-item-margin-left); |
| 84 |
} |
| 85 |
.grid-stack-item > .ui-resizable-n { |
| 86 |
cursor: n-resize; |
| 87 |
height: 10px; |
| 88 |
top: var(--gs-item-margin-top); |
| 89 |
left: 25px; |
| 90 |
right: 25px; |
| 91 |
} |
| 92 |
.grid-stack-item > .ui-resizable-ne { |
| 93 |
cursor: ne-resize; |
| 94 |
width: 20px; |
| 95 |
height: 20px; |
| 96 |
top: var(--gs-item-margin-top); |
| 97 |
right: var(--gs-item-margin-right); |
| 98 |
transform: rotate(45deg); |
| 99 |
} |
| 100 |
.grid-stack-item > .ui-resizable-e { |
| 101 |
cursor: e-resize; |
| 102 |
width: 10px; |
| 103 |
top: 15px; |
| 104 |
bottom: 15px; |
| 105 |
right: var(--gs-item-margin-right); |
| 106 |
} |
| 107 |
.grid-stack-item > .ui-resizable-se { |
| 108 |
cursor: se-resize; |
| 109 |
width: 20px; |
| 110 |
height: 20px; |
| 111 |
bottom: var(--gs-item-margin-bottom); |
| 112 |
right: var(--gs-item-margin-right); |
| 113 |
transform: rotate(-45deg); |
| 114 |
} |
| 115 |
.grid-stack-item > .ui-resizable-s { |
| 116 |
cursor: s-resize; |
| 117 |
height: 10px; |
| 118 |
left: 25px; |
| 119 |
bottom: var(--gs-item-margin-bottom); |
| 120 |
right: 25px; |
| 121 |
} |
| 122 |
.grid-stack-item > .ui-resizable-w { |
| 123 |
cursor: w-resize; |
| 124 |
width: 10px; |
| 125 |
top: 15px; |
| 126 |
bottom: 15px; |
| 127 |
left: var(--gs-item-margin-left); |
| 128 |
} |
| 129 |
.grid-stack-item.ui-draggable-dragging > .ui-resizable-handle { |
| 130 |
display: none !important; |
| 131 |
} |
| 132 |
.grid-stack-item.ui-draggable-dragging { |
| 133 |
will-change: left, top; |
| 134 |
} |
| 135 |
.grid-stack-item.ui-resizable-resizing { |
| 136 |
will-change: width, height; |
| 137 |
} |
| 138 |
|
| 139 |
.ui-draggable-dragging, |
| 140 |
.ui-resizable-resizing { |
| 141 |
z-index: 10000; |
| 142 |
} |
| 143 |
.ui-draggable-dragging > .grid-stack-item-content, |
| 144 |
.ui-resizable-resizing > .grid-stack-item-content { |
| 145 |
box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.2); |
| 146 |
opacity: 0.8; |
| 147 |
} |
| 148 |
|
| 149 |
.grid-stack-animate, |
| 150 |
.grid-stack-animate .grid-stack-item { |
| 151 |
transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s; |
| 152 |
} |
| 153 |
|
| 154 |
.grid-stack-animate .grid-stack-item.ui-draggable-dragging, |
| 155 |
.grid-stack-animate .grid-stack-item.ui-resizable-resizing, |
| 156 |
.grid-stack-animate .grid-stack-item.grid-stack-placeholder { |
| 157 |
transition: left 0s, top 0s, height 0s, width 0s; |
| 158 |
} |
| 159 |
|
| 160 |
.grid-stack > .grid-stack-item[gs-y="0"] { |
| 161 |
top: 0px; |
| 162 |
} |
| 163 |
|
| 164 |
.grid-stack > .grid-stack-item[gs-x="0"] { |
| 165 |
left: 0%; |
| 166 |
} |