|
7 | 7 | padding: 0;
|
8 | 8 | }
|
9 | 9 |
|
10 |
| -.grid-stack-item .grid-stack-item-content, |
11 |
| -.grid-stack-item .placeholder-content { |
| 10 | +.grid-stack-item > .grid-stack-item-content, |
| 11 | +.grid-stack-item > .placeholder-content { |
12 | 12 | margin: 0;
|
13 | 13 | position: absolute;
|
14 | 14 | top: 0;
|
|
20 | 20 | overflow: auto;
|
21 | 21 | }
|
22 | 22 |
|
23 |
| -.grid-stack-placeholder .placeholder-content { |
| 23 | +.grid-stack-placeholder > .placeholder-content { |
24 | 24 | border: 1px dashed lightgray;
|
25 | 25 | }
|
26 | 26 |
|
|
29 | 29 | z-index: 100;
|
30 | 30 | }
|
31 | 31 |
|
32 |
| -.grid-stack-item.ui-draggable-dragging .grid-stack-item-content, |
33 |
| -.grid-stack-item.ui-resizable-resizing .grid-stack-item-content { |
| 32 | +.grid-stack-item.ui-draggable-dragging > .grid-stack-item-content, |
| 33 | +.grid-stack-item.ui-resizable-resizing > .grid-stack-item-content { |
34 | 34 | box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.2);
|
35 | 35 | opacity: 0.8;
|
36 | 36 | }
|
37 | 37 |
|
38 |
| -.grid-stack-item .ui-resizable-handle { |
39 |
| - padding: 3px; |
40 |
| - margin: 3px 0; |
41 |
| - cursor: nwse-resize; |
42 |
| - color: gray; |
| 38 | +.grid-stack-item > .ui-resizable-handle { |
| 39 | +} |
43 | 40 |
|
44 |
| - position: absolute; |
45 |
| - bottom: 0; |
46 |
| - right: 15px; |
| 41 | +:root .grid-stack-item > .ui-resizable-handle { |
| 42 | + filter: none; |
| 43 | +} |
47 | 44 |
|
48 |
| - font-size: 10px; |
| 45 | +.grid-stack-item > .ui-resizable-se { |
| 46 | + text-align: right; |
| 47 | + color: gray; |
| 48 | + |
| 49 | + padding: 2px 3px 0 0; |
| 50 | + margin: 0; |
49 | 51 |
|
50 | 52 | display: inline-block;
|
51 |
| - font: normal normal normal 14px/1 FontAwesome; |
| 53 | + font: normal normal normal 10px/1 FontAwesome; |
52 | 54 | font-size: inherit;
|
53 | 55 | text-rendering: auto;
|
54 | 56 | -webkit-font-smoothing: antialiased;
|
|
60 | 62 | transform: rotate(90deg);
|
61 | 63 | }
|
62 | 64 |
|
63 |
| -:root .grid-stack-item .ui-resizable-handle { |
64 |
| - filter: none; |
| 65 | +/** Uncomment this to show bottom-left resize handle **/ |
| 66 | +/* |
| 67 | +.grid-stack-item > .ui-resizable-sw { |
| 68 | + text-align: right; |
| 69 | + color: gray; |
| 70 | +
|
| 71 | + padding: 2px 3px 0 0; |
| 72 | + margin: 0; |
| 73 | +
|
| 74 | + display: inline-block; |
| 75 | + font: normal normal normal 10px/1 FontAwesome; |
| 76 | + font-size: inherit; |
| 77 | + text-rendering: auto; |
| 78 | + -webkit-font-smoothing: antialiased; |
| 79 | + -moz-osx-font-smoothing: grayscale; |
| 80 | +
|
| 81 | + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); |
| 82 | + -webkit-transform: rotate(180deg); |
| 83 | + -ms-transform: rotate(180deg); |
| 84 | + transform: rotate(180deg); |
| 85 | +} |
| 86 | +
|
| 87 | +.grid-stack-item .ui-resizable-sw::before { |
| 88 | + content: "\f065"; |
65 | 89 | }
|
| 90 | +*/ |
66 | 91 |
|
67 |
| -.grid-stack-item .ui-resizable-handle::before { |
| 92 | +.grid-stack-item > .ui-resizable-se::before { |
68 | 93 | content: "\f065";
|
69 | 94 | }
|
70 | 95 |
|
| 96 | +.ui-resizable-handle { |
| 97 | + position: absolute; |
| 98 | + font-size: 0.1px; |
| 99 | + display: block; |
| 100 | + -ms-touch-action: none; |
| 101 | + touch-action: none; |
| 102 | +} |
| 103 | + |
| 104 | +.grid-stack-item.ui-resizable-disabled > .ui-resizable-handle, |
| 105 | +.grid-stack-item.ui-resizable-autohide > .ui-resizable-handle { |
| 106 | + display: none; |
| 107 | +} |
| 108 | + |
| 109 | +.grid-stack-item > .ui-resizable-nw { cursor: nw-resize; width: 20px; height: 20px; left: 10px; top: 0; } |
| 110 | +.grid-stack-item > .ui-resizable-n { cursor: n-resize; height: 10px; top: 0; left: 25px; right: 25px; } |
| 111 | +.grid-stack-item > .ui-resizable-ne { cursor: ne-resize; width: 20px; height: 20px; right: 10px; top: 0; } |
| 112 | +.grid-stack-item > .ui-resizable-e { cursor: e-resize; width: 10px; right: 10px; top: 15px; bottom: 15px; } |
| 113 | +.grid-stack-item > .ui-resizable-se { cursor: se-resize; width: 20px; height: 20px; right: 10px; bottom: 0; } |
| 114 | +.grid-stack-item > .ui-resizable-s { cursor: s-resize; height: 10px; left: 25px; bottom: 0; right: 25px; } |
| 115 | +.grid-stack-item > .ui-resizable-sw { cursor: sw-resize; width: 20px; height: 20px; left: 10px; bottom: 0; } |
| 116 | +.grid-stack-item > .ui-resizable-w { cursor: w-resize; width: 10px; left: 10px; top: 15px; bottom: 15px; } |
| 117 | + |
71 | 118 | .grid-stack-item { min-width: 8.33333333% }
|
72 | 119 |
|
73 | 120 | .grid-stack-item[data-gs-width="12"] { width: 100% }
|
|
0 commit comments