Skip to content

Commit

Permalink
refactor: resolve sass nested rules warning (#2579)
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud authored Sep 10, 2024
1 parent e3dc367 commit cec2549
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 17 deletions.
3 changes: 1 addition & 2 deletions src/packages/elevator/elevator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,12 @@
&-item {
display: block;
padding: $elevator-bars-inner-item-padding;
cursor: pointer;

&-active {
font-weight: $font-weight-bold;
color: $elevator-bars-active-color;
}

cursor: pointer;
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/packages/popover/popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@
}

&-top-end {
right: 0;
.nut-popover-arrow-top-end {
right: 16px;
transform: translateX(0%);
}
right: 0;
}

&-top-start {
Expand All @@ -187,12 +187,12 @@
}

&-bottom-end {
right: 0;

.nut-popover-arrow-bottom-end {
right: 16px;
transform: translateX(0%);
}

right: 0;
}

&-bottom-start {
Expand Down
6 changes: 3 additions & 3 deletions src/packages/tabs/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,10 @@
}

.nut-tabs-content {
display: flex;
box-sizing: border-box;

&-wrap {
overflow: hidden;
}

display: flex;
box-sizing: border-box;
}
3 changes: 1 addition & 2 deletions src/packages/uploader/uploader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
width: 90%;
font-size: 12px;
color: $color-text;
@include moreline-ellipsis();

&.error {
color: red !important;
Expand All @@ -208,8 +209,6 @@
.nut-icon-Link {
flex-shrink: 0;
}

@include moreline-ellipsis();
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/sites/doc/components/nav/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
}

a {
height: 100%;

&.router-link-active,
&.active {
color: $doc-default-color !important;
Expand All @@ -85,8 +87,6 @@
}
}

height: 100%;

b {
font-weight: normal;
font-size: 12px;
Expand Down
9 changes: 4 additions & 5 deletions src/sites/mobile/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,16 @@ body {

.demo {
min-height: 100vh;

&.no-overflow {
overflow: unset;
}

height: 100%;
background: #f7f8fa;
overflow-x: hidden;
overflow-y: auto;
padding: 57px 17px 0 17px;

&.no-overflow {
overflow: unset;
}

&.full {
padding: 57px 0 0 0;

Expand Down

0 comments on commit cec2549

Please sign in to comment.