Skip to content

Commit a8d12d8

Browse files
devvaannshabose
authored andcommitted
fix: semi colons overflowing in styles section
1 parent 18f0443 commit a8d12d8

1 file changed

Lines changed: 41 additions & 18 deletions

File tree

‎src/styles/Extn-LayersPanel.less‎

Lines changed: 41 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,28 +73,34 @@
7373
padding: 0 6px;
7474
margin: 0;
7575
border: 1px solid transparent;
76-
border-radius: 6px;
76+
border-radius: 4px;
7777
outline: none;
7878
box-shadow: none;
7979
background: transparent;
8080
color: @project-panel-text-1;
8181
font-family: @layers-mono;
8282
font-size: @sidebar-xs-font-size;
8383
line-height: 20px;
84+
transition: none;
8485

8586
&::placeholder {
8687
color: @project-panel-text-2;
8788
opacity: 0.6;
8889
}
8990

91+
&::selection {
92+
background: fade(@layers-accent, 28%);
93+
}
94+
9095
&:hover:not([readonly]) {
9196
border-color: @layers-border;
9297
background: @layers-input-bg;
9398
}
9499

95-
&:focus {
100+
&:focus:not([readonly]) {
96101
border-color: @layers-accent;
97102
background: @layers-input-bg-focus;
103+
box-shadow: none;
98104
}
99105
}
100106

@@ -681,7 +687,7 @@
681687
}
682688
}
683689

684-
.layers-prop-input[type="text"] {
690+
input.layers-prop-input[type="text"] {
685691
.layers-field-input();
686692
flex: 1;
687693
min-width: 0;
@@ -776,8 +782,12 @@
776782
}
777783

778784
.layers-decl {
785+
position: relative;
779786
display: flex;
780787
align-items: center;
788+
box-sizing: border-box;
789+
min-width: 100%;
790+
width: max-content;
781791
min-height: 26px;
782792
padding: 0 4px 0 8px;
783793
font-family: @layers-mono;
@@ -801,18 +811,15 @@
801811
}
802812

803813
.layers-decl-value {
804-
flex: 0 1 auto;
805-
min-width: 0;
814+
flex: none;
806815
margin-left: 5px;
807816
color: @layers-prop-value;
808-
word-break: break-all;
809817
}
810818

811-
.layers-decl-input[type="text"] {
819+
input.layers-decl-input[type="text"] {
812820
.layers-field-input();
813-
flex: 0 1 auto;
821+
flex: none;
814822
min-width: 3ch;
815-
max-width: 100%;
816823
padding: 0 4px;
817824
border-color: @layers-border;
818825
background: @layers-input-bg;
@@ -833,12 +840,35 @@
833840
}
834841

835842
.layers-decl-actions {
843+
display: none;
844+
position: absolute;
845+
top: 0;
846+
right: 0;
847+
bottom: 0;
848+
left: 0;
849+
pointer-events: none;
850+
}
851+
852+
.layers-decl-tools {
836853
display: flex;
837854
align-items: center;
838855
gap: 2px;
839-
flex: none;
856+
position: sticky;
857+
right: 0;
858+
height: 100%;
840859
margin-left: auto;
841-
padding-left: 8px;
860+
padding: 0 4px 0 8px;
861+
pointer-events: auto;
862+
background: @layers-row-hover-bg;
863+
}
864+
865+
.layers-decl:hover .layers-decl-actions,
866+
.layers-decl-actions:focus-within {
867+
display: flex;
868+
}
869+
870+
.layers-decl.layers-editing .layers-decl-actions {
871+
display: none;
842872
}
843873

844874
.layers-decl.layers-overridden {
@@ -853,13 +883,10 @@
853883
align-self: center;
854884
}
855885

856-
.layers-decl .layers-icon-btn,
857886
.layers-rule-add {
858887
opacity: 0;
859888
}
860889

861-
.layers-decl:hover .layers-icon-btn,
862-
.layers-decl .layers-icon-btn:focus,
863890
.layers-rule:hover .layers-rule-add,
864891
.layers-rule-add:focus {
865892
opacity: 1;
@@ -874,10 +901,6 @@
874901
margin-bottom: 0;
875902
border-bottom: none;
876903
}
877-
878-
&.layers-inactive {
879-
opacity: 0.6;
880-
}
881904
}
882905

883906
.layers-rule-header {

0 commit comments

Comments
 (0)