From a39d71389ca05be4e7577df1a200dc03b526b045 Mon Sep 17 00:00:00 2001 From: Vito Albano Date: Sat, 10 Feb 2024 02:30:31 +0000 Subject: [PATCH] Fixed lint files and exclude some needing migration --- ...content-node-selector-panel.component.scss | 214 +++++++++--------- ...rch-chip-autocomplete-input.component.scss | 1 + .../sites-dropdown.component.scss | 0 .../version-list.component.scss | 1 + .../inplace-form-input.component.scss | 5 +- .../widgets/date/date-cloud.widget.scss | 2 + 6 files changed, 112 insertions(+), 111 deletions(-) delete mode 100644 lib/content-services/src/lib/site-dropdown/sites-dropdown.component.scss diff --git a/lib/content-services/src/lib/content-node-selector/content-node-selector-panel.component.scss b/lib/content-services/src/lib/content-node-selector/content-node-selector-panel.component.scss index 989b98a6a6..aa6c76a791 100644 --- a/lib/content-services/src/lib/content-node-selector/content-node-selector-panel.component.scss +++ b/lib/content-services/src/lib/content-node-selector/content-node-selector-panel.component.scss @@ -48,69 +48,85 @@ h2.adf-search-results-label { } .adf-site-dropdown-container { - display: block; - margin-bottom: 15px; - } + display: block; + margin-bottom: 15px; } + } - .adf-site-dropdown-list-element { - width: 100%; - margin-bottom: 0; + .adf-site-dropdown-list-element { + width: 100%; + margin-bottom: 0; - .adf-sites-dropdown-select-trigger { - font-size: var(--theme-body-1-font-size); - } + .adf-sites-dropdown-select-trigger { + font-size: var(--theme-body-1-font-size); } + } - &-breadcrumb { - .adf-dropdown-breadcrumb-trigger { - outline: none; + &-breadcrumb { + .adf-dropdown-breadcrumb-trigger { + outline: none; - .adf-dropdown-breadcrumb-icon { - color: var(--adf-theme-foreground-base-color-045); - - &:hover { - color: var(--adf-theme-foreground-base-color-065); - } - } - - &:focus .adf-dropdown-breadcrumb-icon { - color: var(--theme-primary-color); - } - } - - .adf-dropdown-breadcrumb-item-chevron { + .adf-dropdown-breadcrumb-icon { color: var(--adf-theme-foreground-base-color-045); + + &:hover { + color: var(--adf-theme-foreground-base-color-065); + } + } + + &:focus .adf-dropdown-breadcrumb-icon { + color: var(--theme-primary-color); } } - &-list { - height: 40vh; - overflow: auto; - border: 1px solid var(--adf-theme-foreground-text-color-007); - border-top: 0; - position: relative; + .adf-dropdown-breadcrumb-item-chevron { + color: var(--adf-theme-foreground-base-color-045); + } + } - &-empty + adf-infinite-pagination { - position: absolute; - bottom: 0; + &-list { + height: 40vh; + overflow: auto; + border: 1px solid var(--adf-theme-foreground-text-color-007); + border-top: 0; + position: relative; + + &-empty + adf-infinite-pagination { + position: absolute; + bottom: 0; + width: 100%; + } + + .adf-highlight { + color: var(--theme-primary-color); + } + + .adf-datatable-list { + border: none; + + .adf-datatable-selected { + height: 100%; width: 100%; } - .adf-highlight { - color: var(--theme-primary-color); + .adf-datatable-selected > svg { + fill: var(--theme-primary-color); } - .adf-datatable-list { - border: none; + .adf-no-content-container { + text-align: center; + border: none !important; + } - .adf-datatable-selected { - height: 100%; - width: 100%; + .adf-datatable-cell { + &--image { + min-width: $content-node-selector-thumbnail-width; + width: $content-node-selector-thumbnail-width; + max-width: $content-node-selector-thumbnail-max-width; } - .adf-datatable-selected > svg { - fill: var(--theme-primary-color); + &:nth-child(2) { + flex: 1 0 95px; } .adf-no-content-container.adf-datatable-cell { @@ -118,80 +134,62 @@ h2.adf-search-results-label { border: none; } - .adf-datatable-cell { - &--image { - min-width: $content-node-selector-thumbnail-width; - width: $content-node-selector-thumbnail-width; - max-width: $content-node-selector-thumbnail-max-width; - } + &.adf-content-selector-visibility-cell { + flex: 0 1 auto; + min-width: 1px; - &:nth-child(2) { - flex: 1 0 95px; - } - - .adf-name-location-cell-location { - display: none; - } - - &.adf-content-selector-visibility-cell { - flex: 0 1 auto; - min-width: 1px; - - .adf-datatable-cell-value { - padding: 0; - } - } - } - - .adf-datatable-body .adf-datatable-row { - min-height: 40px; - - @media screen and (-ms-high-contrast: active), - screen and (-ms-high-contrast: none) { - padding-top: 15px; - } - - &:first-child { - .adf-datatable-cell { - border-top: none; - } - } - - &:last-child { - .adf-datatable-cell { - border-bottom: none; - } + .adf-datatable-cell-value { + padding: 0; } } } - &-searchLayout { - .adf-datatable-list .adf-datatable-body .adf-datatable-row { - min-height: 65px; + .adf-datatable-body .adf-datatable-row { + min-height: 40px; + @media screen and (-ms-high-contrast: active), + screen and (-ms-high-contrast: none) { + padding-top: 15px; + } + + &:first-child { .adf-datatable-cell { - .adf-name-location-cell-location { - padding: 0 10px; - display: block; - } + border-top: none; + } + } - .adf-name-location-cell-name { - padding: 5px 10px 2px; - } - - &.adf-content-selector-modified-cell { - display: none; - } - - &.adf-content-selector-modifier-cell { - display: none; - } - - &.adf-content-selector-visibility-cell { - display: none; - } + &:last-child { + .adf-datatable-cell { + border-bottom: none; } } } } + + &-searchLayout { + .adf-datatable-list .adf-datatable-row { + min-height: 65px !important; + + .adf-datatable-cell { + .adf-name-location-cell-location { + padding: 0 10px; + display: block; + } + + .adf-name-location-cell-name { + padding: 5px 10px 2px; + } + + &.adf-content-selector-modified-cell { + display: none; + } + + + &.adf-content-selector-visibility-cell { + display: none; + } + } + } + } + } } diff --git a/lib/content-services/src/lib/search/components/search-chip-autocomplete-input/search-chip-autocomplete-input.component.scss b/lib/content-services/src/lib/search/components/search-chip-autocomplete-input/search-chip-autocomplete-input.component.scss index 6ab867cedf..b79a87f9d3 100644 --- a/lib/content-services/src/lib/search/components/search-chip-autocomplete-input/search-chip-autocomplete-input.component.scss +++ b/lib/content-services/src/lib/search/components/search-chip-autocomplete-input/search-chip-autocomplete-input.component.scss @@ -1,3 +1,4 @@ +/* stylelint-disable selector-class-pattern */ adf-search-chip-autocomplete-input { .adf-chip-list { width: 100%; diff --git a/lib/content-services/src/lib/site-dropdown/sites-dropdown.component.scss b/lib/content-services/src/lib/site-dropdown/sites-dropdown.component.scss deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/lib/content-services/src/lib/version-manager/version-list.component.scss b/lib/content-services/src/lib/version-manager/version-list.component.scss index 7e5761fe1d..35d94ae7df 100644 --- a/lib/content-services/src/lib/version-manager/version-list.component.scss +++ b/lib/content-services/src/lib/version-manager/version-list.component.scss @@ -1,3 +1,4 @@ +/* stylelint-disable selector-class-pattern */ .adf-version-list { &-viewport { height: 100%; diff --git a/lib/core/src/lib/form/components/inplace-form-input/inplace-form-input.component.scss b/lib/core/src/lib/form/components/inplace-form-input/inplace-form-input.component.scss index ff7d0a6012..659ed85c53 100644 --- a/lib/core/src/lib/form/components/inplace-form-input/inplace-form-input.component.scss +++ b/lib/core/src/lib/form/components/inplace-form-input/inplace-form-input.component.scss @@ -2,18 +2,17 @@ $adf-inplace-input-padding: 7px; .adf-inplace-input-container { - /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */ .mat-form-field-underline { display: none; } - /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */ + /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */ .mat-mdc-form-field-infix { display: flex; border-top: 0; } - /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */ + /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */ .mat-form-field-label { padding: $adf-inplace-input-padding; diff --git a/lib/process-services-cloud/src/lib/form/components/widgets/date/date-cloud.widget.scss b/lib/process-services-cloud/src/lib/form/components/widgets/date/date-cloud.widget.scss index 5e457e746b..9fefab32d6 100644 --- a/lib/process-services-cloud/src/lib/form/components/widgets/date/date-cloud.widget.scss +++ b/lib/process-services-cloud/src/lib/form/components/widgets/date/date-cloud.widget.scss @@ -1,4 +1,6 @@ +/* stylelint-disable selector-class-pattern */ .adf { + // eslint-disable-selector-class-pattern &-date-widget { /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */ .mat-mdc-form-field-text-suffix {