Skip to content

Commit cec2549

Browse files
authored
refactor: resolve sass nested rules warning (#2579)
1 parent e3dc367 commit cec2549

File tree

6 files changed

+14
-17
lines changed

6 files changed

+14
-17
lines changed

src/packages/elevator/elevator.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,12 @@
9999
&-item {
100100
display: block;
101101
padding: $elevator-bars-inner-item-padding;
102+
cursor: pointer;
102103

103104
&-active {
104105
font-weight: $font-weight-bold;
105106
color: $elevator-bars-active-color;
106107
}
107-
108-
cursor: pointer;
109108
}
110109
}
111110
}

src/packages/popover/popover.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@
163163
}
164164

165165
&-top-end {
166+
right: 0;
166167
.nut-popover-arrow-top-end {
167168
right: 16px;
168169
transform: translateX(0%);
169170
}
170-
right: 0;
171171
}
172172

173173
&-top-start {
@@ -187,12 +187,12 @@
187187
}
188188

189189
&-bottom-end {
190+
right: 0;
191+
190192
.nut-popover-arrow-bottom-end {
191193
right: 16px;
192194
transform: translateX(0%);
193195
}
194-
195-
right: 0;
196196
}
197197

198198
&-bottom-start {

src/packages/tabs/tabs.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,10 @@
424424
}
425425

426426
.nut-tabs-content {
427+
display: flex;
428+
box-sizing: border-box;
429+
427430
&-wrap {
428431
overflow: hidden;
429432
}
430-
431-
display: flex;
432-
box-sizing: border-box;
433433
}

src/packages/uploader/uploader.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@
196196
width: 90%;
197197
font-size: 12px;
198198
color: $color-text;
199+
@include moreline-ellipsis();
199200

200201
&.error {
201202
color: red !important;
@@ -208,8 +209,6 @@
208209
.nut-icon-Link {
209210
flex-shrink: 0;
210211
}
211-
212-
@include moreline-ellipsis();
213212
}
214213
}
215214
}

src/sites/doc/components/nav/nav.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
}
6868

6969
a {
70+
height: 100%;
71+
7072
&.router-link-active,
7173
&.active {
7274
color: $doc-default-color !important;
@@ -85,8 +87,6 @@
8587
}
8688
}
8789

88-
height: 100%;
89-
9090
b {
9191
font-weight: normal;
9292
font-size: 12px;

src/sites/mobile/App.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,16 @@ body {
6464

6565
.demo {
6666
min-height: 100vh;
67-
68-
&.no-overflow {
69-
overflow: unset;
70-
}
71-
7267
height: 100%;
7368
background: #f7f8fa;
7469
overflow-x: hidden;
7570
overflow-y: auto;
7671
padding: 57px 17px 0 17px;
7772

73+
&.no-overflow {
74+
overflow: unset;
75+
}
76+
7877
&.full {
7978
padding: 57px 0 0 0;
8079

0 commit comments

Comments
 (0)