Skip to content

Commit 067cd86

Browse files
devvaannshabose
authored andcommitted
style: unify the layers icon buttons and drop the inherited text shadow
1 parent b8cccf5 commit 067cd86

1 file changed

Lines changed: 34 additions & 76 deletions

File tree

‎src/styles/Extn-LayersPanel.less‎

Lines changed: 34 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,35 @@
3636
@layers-row-hover-bg: mix(#ffffff, @bc-ai-sidebar-bg, 6%);
3737
@layers-row-select-bg: mix(@layers-accent, @bc-ai-sidebar-bg, 16%);
3838

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+
3968
.layers-tab-container {
4069
display: flex;
4170
flex-direction: column;
@@ -47,6 +76,8 @@
4776
background-color: @bc-ai-sidebar-bg;
4877
color: @project-panel-text-1;
4978
font-size: @sidebar-small-font-size;
79+
letter-spacing: normal;
80+
text-shadow: none;
5081

5182
.layers-hidden {
5283
display: none !important;
@@ -226,31 +257,7 @@
226257
}
227258

228259
.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();
254261

255262
&.layers-active {
256263
background: @layers-accent-soft;
@@ -262,7 +269,6 @@
262269
}
263270
}
264271

265-
266272
.layers-section-content {
267273
position: relative;
268274
flex: 1;
@@ -502,31 +508,7 @@
502508
}
503509

504510
.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();
530512

531513
&.layers-disabled {
532514
opacity: 0.3;
@@ -746,32 +728,8 @@
746728
}
747729

748730
.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();
763732
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-
}
775733
}
776734

777735
.layers-decl .layers-icon-btn {

0 commit comments

Comments
 (0)