|
2 | 2 | @import '_colorScheme'; |
3 | 3 | @import '_variables'; |
4 | 4 |
|
5 | | - |
6 | | - |
7 | 5 | .properties-panel { |
8 | 6 | position: fixed; |
9 | 7 | background: #7b7b7b; |
10 | 8 | color: #000; |
11 | | - top: 50px; |
| 9 | + top: 4rem; |
12 | 10 | right: 0; |
13 | | - bottom: 10px; |
14 | | - width: calc(#{$notification-center-width} + 4.6875rem); |
| 11 | + bottom: 0; |
| 12 | + width: $properties-panel-width; |
15 | 13 | z-index: 292; |
16 | 14 |
|
17 | | - transform: translateX(100%); |
18 | | - transition: transform 0.2s ease-out; |
19 | | - |
20 | | - // Add a class that will be applied when the component mounts |
21 | | - &.is-mounted { |
22 | | - transform: translateX(0%); |
23 | | - } |
| 15 | + transform: translateX(100%); |
| 16 | + transition: transform 0.2s ease-out; |
| 17 | + |
| 18 | + // Add a class that will be applied when the component mounts |
| 19 | + &.is-mounted { |
| 20 | + transform: translateX(0%); |
| 21 | + } |
24 | 22 |
|
25 | 23 | &::before { |
26 | 24 | content: ' '; |
|
34 | 32 | } |
35 | 33 |
|
36 | 34 | .propertiespanel-pop-up { |
37 | | - background: #252525; |
| 35 | + background: #2e2e2e; |
38 | 36 | border-radius: 1px; |
39 | 37 | box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); |
40 | | - margin: 1px; |
41 | | - height: 98.2%; |
42 | | - width: 87%; |
43 | | - |
44 | | - &:first-child { |
45 | | - margin-top: 0.9375rem; |
46 | | - } |
| 38 | + height: 100%; |
| 39 | + width: calc(100% - 3.75rem); |
| 40 | + position: relative; |
47 | 41 |
|
48 | | - &:last-child { |
49 | | - margin-bottom: 0.9375rem; |
50 | | - } |
51 | | - |
52 | | - > .propertiespanel-pop-up_close { |
53 | | - position: absolute; |
54 | | - top: 25px; |
55 | | - right: 70px; |
56 | | - color: white; |
57 | | - } |
| 42 | + display: flex; |
| 43 | + flex-direction: column; |
58 | 44 |
|
59 | 45 | > .propertiespanel-pop-up__header { |
60 | | - background: #3d3d3d; |
| 46 | + background: #0a20ed; |
61 | 47 | color: #ddd; |
62 | 48 |
|
63 | | - min-width: 2.5rem; |
64 | | - height: 2.5rem; |
65 | | - font-size: 1.2em; |
| 49 | + // min-width: 2.5rem; |
| 50 | + // height: 2.5rem; |
| 51 | + max-width: 100%; |
66 | 52 |
|
67 | | - text-align: left; |
68 | | - padding-left: 1rem; |
69 | 53 | display: flex; |
| 54 | + padding: 1em; |
70 | 55 | align-items: center; |
71 | | - gap: 0.5rem; |
| 56 | + gap: 0.2em; |
| 57 | + align-self: stretch; |
| 58 | + |
| 59 | + // text-align: left; |
| 60 | + // padding-left: 1rem; |
| 61 | + // display: flex; |
| 62 | + // align-items: center; |
| 63 | + // gap: 0.5rem; |
| 64 | + |
| 65 | + text-shadow: 0.5px 0.5px 8px rgba(0, 0, 0, 0.8); |
| 66 | + font-family: Roboto; |
| 67 | + font-size: 1em; |
| 68 | + font-style: normal; |
| 69 | + font-weight: 500; |
| 70 | + line-height: normal; |
| 71 | + letter-spacing: 0.5px; |
72 | 72 |
|
73 | 73 | > .svg { |
74 | | - filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.15)); |
75 | | - width: 1.1em; |
76 | | - height: 1.1em; |
| 74 | + // filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.15)); |
| 75 | + width: 1em; |
| 76 | + height: 1.2em; |
| 77 | + flex-shrink: 0; |
| 78 | + } |
| 79 | + > .title { |
| 80 | + flex-grow: 1; |
| 81 | + flex-shrink: 1; |
| 82 | + text-overflow: ellipsis; |
| 83 | + white-space: nowrap; |
| 84 | + overflow: hidden; |
| 85 | + min-width: 0; |
| 86 | + } |
| 87 | + > .properties { |
| 88 | + color: #fff; |
| 89 | + font-family: Roboto; |
| 90 | + font-size: 16px; |
| 91 | + font-style: normal; |
| 92 | + font-weight: 300; |
| 93 | + line-height: normal; |
| 94 | + letter-spacing: -0.1px; |
| 95 | + flex-shrink: 0; |
| 96 | + } |
| 97 | + > .propertiespanel-pop-up_close { |
| 98 | + height: 1em; |
| 99 | + cursor: pointer; |
| 100 | + margin-left: 1em; |
77 | 101 | } |
78 | 102 | } |
79 | 103 |
|
80 | 104 | > .propertiespanel-pop-up__footer { |
81 | 105 | flex: 1; |
82 | | - position: absolute; |
83 | | - left: 0; |
84 | | - right: 0; |
85 | | - bottom: 10px; |
| 106 | + // position: absolute; |
| 107 | + // left: 0; |
| 108 | + // right: 0; |
| 109 | + // bottom: 0; |
| 110 | + flex: 0 0 0; |
| 111 | + padding: 10px; |
86 | 112 | display: flex; |
87 | | - justify-content: center; |
88 | | - align-items: center; |
89 | | - margin-right: 50px; |
| 113 | + justify-content: space-between; |
| 114 | + // align-items: center; |
| 115 | + gap: 12px; |
90 | 116 |
|
91 | | - > .propertiespanel-pop-up__button { |
92 | | - background: #636363; |
93 | | - padding: 5px 5px 5px 5px; |
94 | | - gap: 10px; |
95 | | - border-radius: 5px; |
96 | | - border: 1px; |
97 | | - border: 1px solid #7F7F7F; |
98 | | - color: #ddd; |
| 117 | + // margin-right: 50px; |
| 118 | + |
| 119 | + > .propertiespanel-pop-up__button-group { |
| 120 | + display: inherit; |
| 121 | + gap: inherit; |
| 122 | + } |
| 123 | + |
| 124 | + > .propertiespanel-pop-up__button, |
| 125 | + .propertiespanel-pop-up__button-group .propertiespanel-pop-up__button { |
| 126 | + // background: #636363; |
| 127 | + // padding: 5px 5px 5px 5px; |
| 128 | + // gap: 10px; |
| 129 | + // border-radius: 5px; |
| 130 | + // border: 1px; |
| 131 | + // border: 1px solid #7f7f7f; |
| 132 | + // color: #ddd; |
| 133 | + // margin: 10px auto; |
99 | 134 | display: block; |
100 | | - margin: 10px auto; |
| 135 | + |
| 136 | + border-radius: 5px; |
| 137 | + border: 1px solid #7f7f7f; |
| 138 | + background: #636363; |
| 139 | + padding: 10px; |
| 140 | + |
| 141 | + color: #dfdfdf; |
| 142 | + font-size: 0.875em; |
| 143 | + font-weight: 500; |
101 | 144 |
|
102 | 145 | &:active { |
103 | 146 | transform: scale(0.95); |
|
107 | 150 | &:disabled { |
108 | 151 | cursor: not-allowed; |
109 | 152 | opacity: 0.3; |
110 | | - |
| 153 | + |
111 | 154 | &:active { |
112 | 155 | transform: none; |
113 | 156 | top: 0; |
|
128 | 171 | margin-top: 2px; |
129 | 172 | line-height: inherit; |
130 | 173 | } |
| 174 | + |
| 175 | + &.start { |
| 176 | + justify-self: start; |
| 177 | + } |
| 178 | + &.end { |
| 179 | + justify-self: end; |
| 180 | + } |
131 | 181 | } |
132 | 182 | } |
133 | 183 |
|
134 | 184 | > .propertiespanel-pop-up__contents { |
135 | 185 | flex: 1; |
136 | | - padding: 0.625rem 0.9375rem; |
137 | 186 | padding: 0.525rem 0.6375rem; |
138 | 187 | cursor: default; |
139 | | - |
| 188 | + overflow: hidden auto; |
140 | 189 | overflow-wrap: break-word; |
141 | 190 |
|
| 191 | + flex: 1 0; |
| 192 | + |
142 | 193 | > hr { |
143 | 194 | margin-left: 0px; |
144 | 195 | width: 100%; |
145 | | - border-color: #7F7F7F; |
| 196 | + border-color: #7f7f7f; |
146 | 197 | } |
147 | 198 |
|
148 | 199 | > .propertiespanel-pop-up__groupselector { |
149 | 200 | display: flex; |
150 | 201 | flex-wrap: wrap; |
151 | 202 | margin-top: 0.5em; |
152 | 203 | margin-bottom: 0.5em; |
153 | | - |
| 204 | + |
154 | 205 | > .propertiespanel-pop-up__groupselector__button { |
155 | 206 | @include item-type-colors(); |
156 | 207 |
|
|
161 | 212 | gap: 10px; |
162 | 213 | color: #ddd; |
163 | 214 | opacity: 0.2; |
164 | | - } |
165 | 215 |
|
166 | | - > .propertiespanel-pop-up__groupselector__button-active { |
167 | | - @include item-type-colors(); |
| 216 | + &.splits { |
| 217 | + background: linear-gradient( |
| 218 | + to right, |
| 219 | + $segment-layer-background-camera 50%, |
| 220 | + $segment-layer-background-remote 50.0001% |
| 221 | + ); |
| 222 | + } |
168 | 223 |
|
169 | | - width: 50px; |
170 | | - height: 30px; |
171 | | - border: 0px; |
172 | | - margin: 3px; |
173 | | - gap: 10px; |
174 | | - color: #fff; |
175 | | - opacity: 1; |
| 224 | + &.active { |
| 225 | + color: #fff; |
| 226 | + opacity: 1; |
| 227 | + } |
176 | 228 | } |
177 | | - |
178 | 229 | } |
179 | 230 |
|
180 | 231 | > .propertiespanel-pop-up__action { |
|
191 | 242 | display: flex; |
192 | 243 | align-items: flex-start; |
193 | 244 | gap: 8px; |
194 | | - |
| 245 | + |
195 | 246 | // Add positioning for the pencil icon |
196 | 247 | > svg { |
197 | | - margin-top: 4px; |
198 | | - flex-shrink: 0; |
| 248 | + margin-top: 4px; |
| 249 | + flex-shrink: 0; |
199 | 250 | } |
200 | | - |
| 251 | + |
201 | 252 | > .properties-panel-pop-up__form__schema { |
202 | | - border-color: pink; |
203 | | - border-width: 0px; |
204 | | - flex-grow: 1; |
| 253 | + border-color: pink; |
| 254 | + border-width: 0px; |
| 255 | + flex-grow: 1; |
205 | 256 | } |
206 | 257 | } |
207 | | - |
| 258 | + |
208 | 259 | > .properties-panel-pop-up__has-been-edited { |
209 | 260 | background-color: #ffffff16; |
210 | 261 | border-radius: 8px; |
211 | 262 | padding: 4px 4px; |
212 | 263 | } |
213 | 264 |
|
214 | | - |
215 | 265 | > .propertiespanel-pop-up__label { |
216 | 266 | color: #ddd; |
217 | 267 | } |
218 | 268 |
|
219 | | - > .propertiespanel-pop-up__select{ |
| 269 | + > .propertiespanel-pop-up__select { |
220 | 270 | margin-top: 10px; |
221 | 271 | width: 100%; |
222 | 272 | height: 3em; |
|
232 | 282 | gap: 10px; |
233 | 283 | border-radius: 5px; |
234 | 284 | border: 1px; |
235 | | - border: 1px solid #7F7F7F; |
| 285 | + border: 1px solid #7f7f7f; |
236 | 286 | color: #ddd; |
237 | 287 |
|
238 | 288 | &:active { |
|
0 commit comments