|
36 | 36 | @layers-row-hover-bg: mix(#ffffff, @bc-ai-sidebar-bg, 6%); |
37 | 37 | @layers-row-select-bg: mix(@layers-accent, @bc-ai-sidebar-bg, 16%); |
38 | 38 |
|
| 39 | +.layers-icon-button() { |
| 40 | + display: flex; |
| 41 | + align-items: center; |
| 42 | + justify-content: center; |
| 43 | + width: 20px; |
| 44 | + height: 20px; |
| 45 | + padding: 0; |
| 46 | + margin: 0; |
| 47 | + border: none; |
| 48 | + border-radius: 4px; |
| 49 | + background: none; |
| 50 | + color: @project-panel-text-2; |
| 51 | + cursor: pointer; |
| 52 | + outline: none; |
| 53 | + flex: none; |
| 54 | + |
| 55 | + svg { |
| 56 | + width: 13px; |
| 57 | + height: 13px; |
| 58 | + display: block; |
| 59 | + flex: none; |
| 60 | + } |
| 61 | + |
| 62 | + &:hover { |
| 63 | + background: @layers-hover-bg; |
| 64 | + color: @project-panel-text-1; |
| 65 | + } |
| 66 | +} |
| 67 | + |
39 | 68 | .layers-tab-container { |
40 | 69 | display: flex; |
41 | 70 | flex-direction: column; |
|
47 | 76 | background-color: @bc-ai-sidebar-bg; |
48 | 77 | color: @project-panel-text-1; |
49 | 78 | font-size: @sidebar-small-font-size; |
| 79 | + letter-spacing: normal; |
| 80 | + text-shadow: none; |
50 | 81 |
|
51 | 82 | .layers-hidden { |
52 | 83 | display: none !important; |
|
226 | 257 | } |
227 | 258 |
|
228 | 259 | .layers-hdr-btn { |
229 | | - display: flex; |
230 | | - align-items: center; |
231 | | - justify-content: center; |
232 | | - width: 20px; |
233 | | - height: 20px; |
234 | | - padding: 0; |
235 | | - margin: 0; |
236 | | - border: none; |
237 | | - border-radius: 4px; |
238 | | - background: none; |
239 | | - color: @project-panel-text-2; |
240 | | - cursor: pointer; |
241 | | - outline: none; |
242 | | - |
243 | | - svg { |
244 | | - width: 13px; |
245 | | - height: 13px; |
246 | | - display: block; |
247 | | - flex: none; |
248 | | - } |
249 | | - |
250 | | - &:hover { |
251 | | - background: @layers-hover-bg; |
252 | | - color: @project-panel-text-1; |
253 | | - } |
| 260 | + .layers-icon-button(); |
254 | 261 |
|
255 | 262 | &.layers-active { |
256 | 263 | background: @layers-accent-soft; |
|
262 | 269 | } |
263 | 270 | } |
264 | 271 |
|
265 | | - |
266 | 272 | .layers-section-content { |
267 | 273 | position: relative; |
268 | 274 | flex: 1; |
|
502 | 508 | } |
503 | 509 |
|
504 | 510 | .layers-node-action { |
505 | | - display: flex; |
506 | | - align-items: center; |
507 | | - justify-content: center; |
508 | | - width: 20px; |
509 | | - height: 20px; |
510 | | - padding: 0; |
511 | | - margin: 0; |
512 | | - border: none; |
513 | | - border-radius: 3px; |
514 | | - background: none; |
515 | | - color: @project-panel-text-2; |
516 | | - cursor: pointer; |
517 | | - outline: none; |
518 | | - flex: none; |
519 | | - |
520 | | - svg { |
521 | | - width: 13px; |
522 | | - height: 13px; |
523 | | - display: block; |
524 | | - } |
525 | | - |
526 | | - &:hover { |
527 | | - background: @layers-hover-bg; |
528 | | - color: @project-panel-text-1; |
529 | | - } |
| 511 | + .layers-icon-button(); |
530 | 512 |
|
531 | 513 | &.layers-disabled { |
532 | 514 | opacity: 0.3; |
|
746 | 728 | } |
747 | 729 |
|
748 | 730 | .layers-icon-btn { |
749 | | - display: flex; |
750 | | - align-items: center; |
751 | | - justify-content: center; |
752 | | - width: 18px; |
753 | | - height: 18px; |
754 | | - padding: 0; |
755 | | - margin: 0; |
756 | | - border: none; |
757 | | - border-radius: 4px; |
758 | | - background: none; |
759 | | - color: @project-panel-text-2; |
760 | | - cursor: pointer; |
761 | | - outline: none; |
762 | | - flex: none; |
| 731 | + .layers-icon-button(); |
763 | 732 | align-self: center; |
764 | | - |
765 | | - svg { |
766 | | - width: 12px; |
767 | | - height: 12px; |
768 | | - display: block; |
769 | | - } |
770 | | - |
771 | | - &:hover { |
772 | | - background: @layers-hover-bg; |
773 | | - color: @project-panel-text-1; |
774 | | - } |
775 | 733 | } |
776 | 734 |
|
777 | 735 | .layers-decl .layers-icon-btn { |
|
0 commit comments