|
161 | 161 |
|
162 | 162 | .w-e-modal { |
163 | 163 | .w-e-table-property-modal { |
| 164 | + min-width: 310px; |
| 165 | + |
164 | 166 | .babel-container { |
165 | 167 | display: flex; |
166 | | - align-items: flex-start; |
167 | | - margin-bottom: 14px; |
| 168 | + align-items: center; |
| 169 | + margin-bottom: 10px; |
168 | 170 |
|
169 | 171 | > span { |
170 | 172 | margin-bottom: 0; |
171 | 173 | } |
172 | 174 | } |
173 | 175 |
|
174 | 176 | .w-e-table-property-label { |
175 | | - flex: 0 0 72px; |
| 177 | + flex: 0 0 82px; |
176 | 178 | min-height: 32px; |
177 | | - padding-top: 6px; |
178 | 179 | color: @toolbar-color; |
179 | 180 | line-height: 20px; |
| 181 | + white-space: nowrap; |
180 | 182 | } |
181 | 183 |
|
182 | 184 | .w-e-table-property-controls { |
|
185 | 187 | } |
186 | 188 |
|
187 | 189 | span.babel-container-width, |
188 | | - span.babel-container-border { |
189 | | - display: grid; |
190 | | - column-gap: 8px; |
191 | | - |
192 | | - & > * { |
193 | | - min-height: 32px; |
194 | | - border: 1px solid var(--w-e-modal-button-border-color); |
195 | | - border-radius: 4px; |
196 | | - } |
197 | | - |
198 | | - select { |
199 | | - width: 100%; |
200 | | - height: 32px; |
201 | | - padding: 4px 8px; |
202 | | - color: @toolbar-color; |
203 | | - background-color: @toolbar-bg-color; |
204 | | - } |
| 190 | + span.babel-container-select, |
| 191 | + span.babel-container-number { |
| 192 | + display: block; |
205 | 193 | } |
206 | 194 |
|
207 | 195 | span.babel-container-width { |
208 | | - grid-template-columns: minmax(108px, 1fr); |
| 196 | + width: 100%; |
209 | 197 | } |
210 | 198 |
|
211 | | - span.babel-container-border { |
212 | | - grid-template-columns: minmax(108px, 1fr) 32px 86px; |
| 199 | + span.babel-container-select select { |
| 200 | + width: 100%; |
| 201 | + height: 32px; |
| 202 | + padding: 4px 8px; |
| 203 | + color: @toolbar-color; |
| 204 | + background-color: @toolbar-bg-color; |
| 205 | + border: 1px solid @modal-button-border-color; |
| 206 | + border-radius: 4px; |
213 | 207 | } |
214 | 208 |
|
215 | 209 | .w-e-table-property-number { |
216 | 210 | position: relative; |
217 | 211 | display: block; |
| 212 | + width: 128px; |
| 213 | + height: 32px; |
| 214 | + border: 1px solid @modal-button-border-color; |
| 215 | + border-radius: 4px; |
218 | 216 |
|
219 | 217 | input[type='number'] { |
220 | 218 | width: 100%; |
221 | 219 | height: 30px; |
222 | 220 | padding-right: 28px; |
223 | 221 | border: 0; |
| 222 | + background-color: transparent; |
224 | 223 | } |
225 | 224 | } |
226 | 225 |
|
|
235 | 234 | transform: translateY(-50%); |
236 | 235 | } |
237 | 236 |
|
238 | | - span.babel-container-background { |
| 237 | + span.babel-container-color { |
239 | 238 | display: flex; |
240 | 239 | min-height: 32px; |
241 | 240 | } |
|
252 | 251 | .w-e-table-property-segment { |
253 | 252 | display: inline-flex; |
254 | 253 | overflow: hidden; |
255 | | - border: 1px solid var(--w-e-modal-button-border-color); |
| 254 | + width: fit-content; |
| 255 | + border: 1px solid @modal-button-border-color; |
256 | 256 | border-radius: 4px; |
257 | 257 | } |
258 | 258 |
|
| 259 | + .w-e-table-property-segment-fill { |
| 260 | + display: grid; |
| 261 | + width: 100%; |
| 262 | + grid-template-columns: repeat(2, minmax(0, 1fr)); |
| 263 | + |
| 264 | + .w-e-table-property-segment-button { |
| 265 | + min-width: 0; |
| 266 | + } |
| 267 | + } |
| 268 | + |
259 | 269 | .w-e-table-property-align-button, |
260 | 270 | .w-e-table-property-segment-button { |
261 | 271 | display: inline-flex; |
|
264 | 274 | height: 32px; |
265 | 275 | padding: 0; |
266 | 276 | border: 0; |
267 | | - border-right: 1px solid var(--w-e-modal-button-border-color); |
| 277 | + border-right: 1px solid @modal-button-border-color; |
268 | 278 | border-radius: 0; |
269 | | - background-color: @toolbar-bg-color; |
| 279 | + color: @toolbar-color; |
| 280 | + background-color: @modal-button-bg-color; |
| 281 | + transition: background-color .2s ease, color .2s ease; |
270 | 282 |
|
271 | 283 | &:last-child { |
272 | 284 | border-right: 0; |
273 | 285 | } |
274 | 286 |
|
| 287 | + &:hover { |
| 288 | + background-color: @toolbar-active-bg-color; |
| 289 | + } |
| 290 | + |
275 | 291 | &.active { |
276 | 292 | color: @toolbar-active-color; |
277 | 293 | background-color: @toolbar-active-bg-color; |
| 294 | + box-shadow: inset 0 -2px 0 @toolbar-active-color; |
278 | 295 | } |
279 | 296 |
|
280 | 297 | svg { |
|
289 | 306 | } |
290 | 307 |
|
291 | 308 | .w-e-table-property-segment-button { |
292 | | - min-width: 44px; |
| 309 | + min-width: 48px; |
293 | 310 | padding: 0 10px; |
294 | 311 | } |
295 | 312 |
|
296 | 313 | .color-group { |
297 | 314 | position: relative; |
298 | | - width: 32px; |
| 315 | + display: inline-flex; |
| 316 | + align-items: center; |
| 317 | + width: 100%; |
| 318 | + max-width: 168px; |
299 | 319 | height: 32px; |
300 | 320 | margin-bottom: 0; |
301 | | - border: 1px solid var(--w-e-modal-button-border-color); |
| 321 | + padding: 4px 22px 4px 6px; |
| 322 | + border: 1px solid @modal-button-border-color; |
302 | 323 | border-radius: 4px; |
| 324 | + background-color: @modal-button-bg-color; |
303 | 325 | cursor: pointer; |
304 | 326 |
|
| 327 | + &::after { |
| 328 | + position: absolute; |
| 329 | + right: 8px; |
| 330 | + top: 50%; |
| 331 | + width: 0; |
| 332 | + height: 0; |
| 333 | + border-top: 4px solid @toolbar-disabled-color; |
| 334 | + border-right: 4px solid transparent; |
| 335 | + border-left: 4px solid transparent; |
| 336 | + content: ''; |
| 337 | + transform: translateY(-50%); |
| 338 | + } |
| 339 | + |
| 340 | + &[data-mixed='true'] { |
| 341 | + .color-group-block { |
| 342 | + opacity: .28; |
| 343 | + } |
| 344 | + |
| 345 | + .color-group-label { |
| 346 | + color: @toolbar-disabled-color; |
| 347 | + } |
| 348 | + } |
| 349 | + |
| 350 | + &:hover { |
| 351 | + background-color: @toolbar-active-bg-color; |
| 352 | + } |
| 353 | + |
305 | 354 | .w-e-drop-panel { |
306 | | - margin-top: 32px; |
| 355 | + margin-top: 30px; |
307 | 356 | } |
308 | 357 | } |
309 | 358 |
|
| 359 | + .color-group-wide { |
| 360 | + width: 100%; |
| 361 | + } |
| 362 | + |
310 | 363 | .color-group-block { |
311 | | - display: block; |
312 | | - width: 80%; |
313 | | - height: 80%; |
314 | | - margin: 10%; |
| 364 | + display: inline-flex; |
| 365 | + flex: 0 0 18px; |
| 366 | + width: 18px; |
| 367 | + height: 18px; |
| 368 | + min-height: 18px; |
| 369 | + margin-right: 8px; |
| 370 | + border: 1px solid @textarea-slight-border-color; |
| 371 | + border-radius: 3px; |
| 372 | + background-clip: padding-box; |
315 | 373 |
|
316 | 374 | svg { |
317 | | - width: 20px; |
318 | | - height: 20px; |
319 | | - margin: 2px 1px; |
| 375 | + width: 14px; |
| 376 | + height: 14px; |
| 377 | + margin: 1px; |
| 378 | + } |
| 379 | + } |
| 380 | + |
| 381 | + .color-group-label { |
| 382 | + overflow: hidden; |
| 383 | + color: @toolbar-color; |
| 384 | + line-height: 20px; |
| 385 | + text-overflow: ellipsis; |
| 386 | + white-space: nowrap; |
| 387 | + } |
| 388 | + |
| 389 | + .button-container { |
| 390 | + display: flex; |
| 391 | + justify-content: flex-end; |
| 392 | + margin-top: 2px; |
| 393 | + margin-bottom: 0; |
| 394 | + padding-top: 10px; |
| 395 | + border-top: 1px solid @textarea-slight-border-color; |
| 396 | + |
| 397 | + button { |
| 398 | + min-width: 72px; |
| 399 | + color: @toolbar-active-color; |
| 400 | + background-color: @toolbar-active-bg-color; |
320 | 401 | } |
321 | 402 | } |
322 | 403 | } |
|
0 commit comments