Skip to content

Commit

Permalink
fix Deprecation Warning: Sass's behavior for declarations that appear…
Browse files Browse the repository at this point in the history
… after nested rules will be changing to match the behavior specified by CSS in an upcoming version. To keep the existing behavior, move the declaration above the nested rule. (#8564)

Co-authored-by: OlgaLarina <[email protected]>
  • Loading branch information
OlgaLarina and OlgaLarina authored Jul 16, 2024
1 parent ccce5c2 commit fb239d4
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 56 deletions.
4 changes: 2 additions & 2 deletions src/common-styles/sv-brand-info.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ sv-brand-info, .sv-brand-info {
}

.sv-brand-info__logo {
display: inline-block;

img {
width: 118px;
}

display: inline-block;
}

.sv-brand-info__terms {
Expand Down
3 changes: 2 additions & 1 deletion src/common-styles/window.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
z-index: 100;
max-height: 50vh;
overflow: auto;
@include scrollRules;
box-sizing: border-box;
background: $background-dim;
width: calc(100% - calcSize(4)) !important;

@include scrollRules;
}

.sv_window_root-content {
Expand Down
3 changes: 1 addition & 2 deletions src/defaultV2-theme/blocks/sd-boolean.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,13 @@
transition-timing-function: linear;
color: $primary;
font-weight: 600;
z-index: 2;

.sv-string-viewer {
&.sv-string-viewer--multiline {
white-space: nowrap;
}
}

z-index: 2;
}

.sd-boolean--checked:not(.sd-boolean--exchanged) .sd-boolean__thumb,
Expand Down
3 changes: 1 addition & 2 deletions src/defaultV2-theme/blocks/sd-context-btn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
border-radius: calcSize(12.5);
border: none;
outline: none;
cursor: pointer;

.sv-svg-icon {
margin: 0;
Expand All @@ -20,8 +21,6 @@
fill: $foreground-light;
transition: fill $transition-duration;
}

cursor: pointer;
}

.sd-context-btn:hover,
Expand Down
18 changes: 9 additions & 9 deletions src/defaultV2-theme/blocks/sd-file.scss
Original file line number Diff line number Diff line change
Expand Up @@ -369,15 +369,6 @@
}

.sd-context-btn.sd-file__take-picture-button {
.sv-svg-icon {
height: calcSize(4);
width: calcSize(4);

use {
fill: $background;
}
}

background-color: $red;
position: absolute;
bottom: 16px;
Expand All @@ -389,6 +380,15 @@
&:focus {
box-shadow: 0 0 0 2px $red;
}

.sv-svg-icon {
height: calcSize(4);
width: calcSize(4);

use {
fill: $background;
}
}
}

.sd-file__video-container {
Expand Down
4 changes: 2 additions & 2 deletions src/defaultV2-theme/blocks/sd-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
}

.sd-list__item.sd-list__item--focused:not(.sd-list__item--selected) {
outline: none;

.sd-list__item-body {
padding-block: calcSize(1.25);
}

outline: none;
}
3 changes: 1 addition & 2 deletions src/defaultV2-theme/blocks/sd-paneldynamic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
}

& .sd-paneldynamic__panel-wrapper > .sd-panel > .sd-panel__header {
padding-top: var(--sd-base-vertical-padding);
padding-bottom: 0;

&:after {
display: none;
}

padding-top: var(--sd-base-vertical-padding);

& > .sd-panel__title {
color: $foreground-light;
}
Expand Down
4 changes: 2 additions & 2 deletions src/defaultV2-theme/blocks/sd-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -586,15 +586,15 @@
}

tr:not(.sd-table__row--has-end-actions) {
padding-bottom: calcSize(0);

&:not(:last-of-type) {
padding-bottom: calcSize(3);

&::after {
bottom: calcSize(-3);
}
}

padding-bottom: calcSize(0);
}

tfoot tr::before,
Expand Down
4 changes: 2 additions & 2 deletions src/defaultV2-theme/defaultV2.fontless.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ body {
}

.sd-root-modern {
@include scrollRules;

-webkit-font-smoothing: antialiased;
--sd-mobile-width: 600px;
--sd-timer-size: calc(18 * #{$base-unit});
Expand All @@ -70,6 +68,8 @@ body {
background-color: $background-dim;
position: relative;

@include scrollRules;

form {
// z-index: 1;
position: relative;
Expand Down
26 changes: 11 additions & 15 deletions src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,20 @@ body {
}

.sv_q_dropdown__hint-prefix {
opacity: 0.5;

span {
word-break: unset;
}

opacity: 0.5;
}

.sv_q_dropdown__hint-suffix {
display: flex;
opacity: 0.5;

span {
word-break: unset;
}

opacity: 0.5;
}

.sv_q_dropdown_control__input-field-component {
Expand Down Expand Up @@ -337,11 +336,8 @@ body {
}
}

.sv_q_rating__item-star>svg {
&.sv-star-2 {
display: none;
}

.sv_q_rating__item-star > svg {
fill: var(--text-color, $text-color);
height: 32px;
width: 32px;
display: inline-block;
Expand All @@ -351,15 +347,17 @@ body {
&:hover {
border: 1px solid var(--main-hover-color, $main-hover-color);
}

fill: var(--text-color, $text-color);
&.sv-star-2 {
display: none;
}
}

.sv_q_rating__item-star--selected>svg {
.sv_q_rating__item-star--selected > svg {
fill: var(--main-color, $main-color);
}

.sv_q_rating__item-smiley>svg {
.sv_q_rating__item-smiley > svg {
fill: var(--text-color, $text-color);
height: 24px;
width: 24px;
padding: 4px;
Expand All @@ -374,8 +372,6 @@ body {
&:hover {
border: 1px solid var(--main-hover-color, $main-hover-color);
}

fill: var(--text-color, $text-color);
}

.sv_q_rating__item-smiley--selected>svg {
Expand Down
7 changes: 3 additions & 4 deletions src/modern/blocks/sv-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
}

.sv-container-modern__title {
color: var(--main-color, $main-color);
padding-left: 0.55em;
padding-top: 5em;
padding-bottom: 0.9375em;

@media only screen and (min-width: 1000px) {
margin-right: 5%;
Expand All @@ -16,10 +19,6 @@
margin-right: 10px;
margin-left: 10px;
}

color: var(--main-color, $main-color);
padding-top: 5em;
padding-bottom: 0.9375em;
}

.sv-container-modern__title h3 {
Expand Down
7 changes: 3 additions & 4 deletions src/modern/blocks/sv-dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,22 @@
}

.sv-dropdown__hint-prefix {
opacity: 0.5;

span {
word-break: unset;
line-height: 28px;
}

opacity: 0.5;
}

.sv-dropdown__hint-suffix {
display: flex;
opacity: 0.5;

span {
word-break: unset;
line-height: 28px;
}

opacity: 0.5;
}
.sv-dropdown_clean-button {
padding: 3px 12px;
Expand Down
15 changes: 6 additions & 9 deletions src/modern/blocks/sv-rating.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@
}
}

.sv-rating__item-star>svg {
&.sv-star-2 {
display: none;
}

.sv-rating__item-star > svg {
fill: var(--text-color, $text-color);
height: 32px;
width: 32px;
display: inline-block;
Expand All @@ -66,8 +63,9 @@
&:hover {
border: 1px solid var(--main-hover-color, $main-hover-color);
}

fill: var(--text-color, $text-color);
&.sv-star-2 {
display: none;
}
}

.sv-rating__item-star--selected>svg {
Expand All @@ -83,6 +81,7 @@
border: 3px solid var(--border-color, $border-color);
margin: 3px 0;
margin-right: 0.26em;
fill: var(--main-hover-color, $main-hover-color);

&>use {
display: block;
Expand All @@ -92,8 +91,6 @@
border: 3px solid var(--main-hover-color, $main-hover-color);
background-color: var(--main-hover-color, $main-hover-color);
}

fill: var(--main-hover-color, $main-hover-color);
}

.sv-rating__item-smiley--selected>svg {
Expand Down

0 comments on commit fb239d4

Please sign in to comment.