Skip to content

Commit

Permalink
fix(styling): fix SASS warnings for declarations mixed with nested rules
Browse files Browse the repository at this point in the history
- adresses future breaking changes for SASS Breaking Change: Mixed Declarations
- ref: https://sass-lang.com/documentation/breaking-changes/mixed-decls/
  • Loading branch information
ghiscoding committed Jul 13, 2024
1 parent d647f6f commit de9460d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
6 changes: 3 additions & 3 deletions packages/common/src/styles/slick-editors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,12 @@
&.outside {
@media only screen and (min-width: 769px) {
color: var(--slick-editor-modal-close-btn-outside-color, $slick-editor-modal-close-btn-outside-color);
&:hover {
color: var(--slick-editor-modal-close-btn-outside-color-hover, $slick-editor-modal-close-btn-outside-color-hover);
}
font-size: var(--slick-editor-modal-close-btn-outside-font-size, $slick-editor-modal-close-btn-outside-font-size);
right: var(--slick-editor-modal-close-btn-outside-right, $slick-editor-modal-close-btn-outside-right);
top: var(--slick-editor-modal-close-btn-outside-top, $slick-editor-modal-close-btn-outside-top);
&:hover {
color: var(--slick-editor-modal-close-btn-outside-color-hover, $slick-editor-modal-close-btn-outside-color-hover);
}
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions packages/common/src/styles/slick-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@
}
}
&.odd .slick-cell {
background: inherit;
&.selected {
background-color: var(--slick-row-selected-color, $slick-row-selected-color);
}
&.copied {
background: var(--slick-copied-cell-bg-color-transition, $slick-copied-cell-bg-color-transition);
transition: var(--slick-copied-cell-transition, $slick-copied-cell-transition);
}
background: inherit;
}
&.highlight {
background: var(--slick-row-highlight-background-color, $slick-row-highlight-background-color);
Expand Down Expand Up @@ -629,11 +629,13 @@

@mixin ResetColumns () {
/* like TH */
background: var(--slick-header-background-color, $slick-header-background-color);
font-family: var(--slick-font-family, $slick-font-family);
color: var(--slick-header-text-color, $slick-header-text-color);
font-size: var(--slick-header-font-size, $slick-header-font-size);
font-weight: var(--slick-header-font-weight, $slick-header-font-weight);
& {
background: var(--slick-header-background-color, $slick-header-background-color);
font-family: var(--slick-font-family, $slick-font-family);
color: var(--slick-header-text-color, $slick-header-text-color);
font-size: var(--slick-header-font-size, $slick-header-font-size);
font-weight: var(--slick-header-font-weight, $slick-header-font-weight);
}
a, a:visited {
color: var(--slick-text-color, $slick-text-color);
}
Expand Down
33 changes: 16 additions & 17 deletions packages/common/src/styles/slick-plugins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ li.hidden {
min-width: var(--slick-column-picker-min-width, $slick-column-picker-min-width);
padding: var(--slick-column-picker-padding, $slick-column-picker-padding);
scrollbar-color: var(--slick-scrollbar-color, $slick-scrollbar-color);
box-shadow: var(--slick-column-picker-box-shadow, $slick-column-picker-box-shadow);
z-index: var(--slick-column-picker-z-index, $slick-column-picker-z-index);
@-moz-document url-prefix() {
/* add right padding to avoid scrollback showing over text, that is for Firefox since WebKit is ok */
padding: var(--slick-column-picker-padding-firefox, $slick-column-picker-padding-firefox);
}
box-shadow: var(--slick-column-picker-box-shadow, $slick-column-picker-box-shadow);
z-index: var(--slick-column-picker-z-index, $slick-column-picker-z-index);

.close {
float: right;
Expand Down Expand Up @@ -174,13 +174,13 @@ li.hidden {
&.mdi-icon-picker-uncheck {
@include generateSvgStyle('slick-column-picker-icon-unchecked-svg', $slick-column-picker-icon-unchecked-svg-path);
opacity: var(--slick-column-picker-unchecked-opacity, $slick-column-picker-unchecked-opacity); /* unchecked icon */
&:hover {
opacity: var(--slick-column-picker-opacity-hover, $slick-column-picker-opacity-hover);
}

// since we use the div container with a border, we don't actually need an icon for unchecked
// BUT since we want to keep the same size, we can simply hide the mask to keep the same size
visibility: var(--slick-column-picker-icon-unchecked-color-visibility, $slick-column-picker-icon-unchecked-color-visibility);
&:hover {
opacity: var(--slick-column-picker-opacity-hover, $slick-column-picker-opacity-hover);
}
}
}
& + span.checkbox-label {
Expand Down Expand Up @@ -407,16 +407,16 @@ li.hidden {
border-radius: var(--slick-menu-border-radius, $slick-menu-border-radius);
min-width: var(--slick-menu-min-width, $slick-menu-min-width);
padding: var(--slick-menu-padding, $slick-menu-padding);
@-moz-document url-prefix() {
/* add right padding to avoid scrollback showing over text, that is for Firefox since WebKit is ok */
padding: var(--slick-menu-padding-firefox, $slick-menu-padding-firefox);
}
z-index: 100000;
cursor: default;
display: inline-block;
overflow-x: hidden;
overflow-y: auto;
resize: both;
z-index: 100000;
@-moz-document url-prefix() {
/* add right padding to avoid scrollback showing over text, that is for Firefox since WebKit is ok */
padding: var(--slick-menu-padding-firefox, $slick-menu-padding-firefox);
}

/* make sure that other UI frameworks aren't overriding our properties (Bulma was one of them affecting this) */
&.dropdown,
Expand Down Expand Up @@ -624,13 +624,13 @@ li.hidden {
&.mdi-icon-uncheck {
@include generateSvgStyle('slick-checkbox-icon-unchecked-svg', $slick-checkbox-icon-unchecked-svg-path);
opacity: var(--slick-checkbox-unchecked-opacity, $slick-checkbox-unchecked-opacity); /* unchecked icon */
&:hover {
opacity: var(--slick-checkbox-opacity-hover, $slick-checkbox-opacity-hover);
}

// since we use the div container with a border, we don't actually need an icon for unchecked
// BUT since we want to keep the same size, we can simply hide the mask to keep the same size
visibility: var(--slick-checkbox-icon-unchecked-color-visibility, $slick-checkbox-icon-unchecked-color-visibility);
&:hover {
opacity: var(--slick-checkbox-opacity-hover, $slick-checkbox-opacity-hover);
}
}
}
}
Expand Down Expand Up @@ -1036,6 +1036,9 @@ input.search-filter {
height: var(--slick-slider-filter-height, $slick-slider-filter-height);
padding: var(--slick-slider-filter-runnable-track-padding, $slick-slider-filter-runnable-track-padding);

/*fix for FF unable to apply focus style bug */
border: var(--slick-slider-filter-border, $slick-slider-filter-border);

/* change runnable track color while in focus on all browsers */
&:focus {
outline: none;
Expand All @@ -1061,10 +1064,6 @@ input.search-filter {
}

/* Mozilla Firefox specific */

/*fix for FF unable to apply focus style bug */
border: var(--slick-slider-filter-border, $slick-slider-filter-border);

&::-moz-range-track {
height: var(--slick-slider-filter-runnable-track-height, $slick-slider-filter-runnable-track-height);
border: none;
Expand Down

0 comments on commit de9460d

Please sign in to comment.