From db2275bb48c3371e1f90bf2b83ff59e5ff8af488 Mon Sep 17 00:00:00 2001 From: Justin Reynolds Date: Fri, 20 Oct 2017 17:59:03 -0700 Subject: [PATCH] refactor(*): Fix all the postcss-color warnings except the hard one (#4304) --- app/scripts/modules/core/src/cluster/rollups.less | 2 +- .../core/src/delivery/details/executionDetails.less | 2 +- .../src/forms/mapEditor/mapEditor.component.less | 2 +- app/scripts/modules/core/src/presentation/main.less | 2 +- .../modules/core/src/search/global/globalSearch.less | 2 +- .../core/src/search/searchResult/baseTable.less | 2 +- .../core/src/search/searchResult/searchResults.less | 4 ++-- .../modules/core/src/search/widgets/filterlist.less | 4 ++-- .../modules/core/src/search/widgets/search.less | 12 ++++++------ .../modules/core/src/widgets/tags/taglist.less | 2 +- .../configure/securityGroup.configure.less | 2 +- .../securityContextSelector.component.less | 2 +- 12 files changed, 19 insertions(+), 19 deletions(-) diff --git a/app/scripts/modules/core/src/cluster/rollups.less b/app/scripts/modules/core/src/cluster/rollups.less index 27eab993ea8..7ea01df2b81 100644 --- a/app/scripts/modules/core/src/cluster/rollups.less +++ b/app/scripts/modules/core/src/cluster/rollups.less @@ -261,7 +261,7 @@ running-tasks-tag { .popover-title { background-color: var(--color-dovegray); - color: white; + color: var(--color-white); } min-width: 150px; diff --git a/app/scripts/modules/core/src/delivery/details/executionDetails.less b/app/scripts/modules/core/src/delivery/details/executionDetails.less index 31ea4dcdf2c..9058d64c3ec 100644 --- a/app/scripts/modules/core/src/delivery/details/executionDetails.less +++ b/app/scripts/modules/core/src/delivery/details/executionDetails.less @@ -89,7 +89,7 @@ tr.clickable { cursor: pointer; &:hover { - background-color: @table-bg-hover; + background-color: var(--color-alabaster); } } } diff --git a/app/scripts/modules/core/src/forms/mapEditor/mapEditor.component.less b/app/scripts/modules/core/src/forms/mapEditor/mapEditor.component.less index 5880ad26727..ddc963fcd11 100644 --- a/app/scripts/modules/core/src/forms/mapEditor/mapEditor.component.less +++ b/app/scripts/modules/core/src/forms/mapEditor/mapEditor.component.less @@ -2,7 +2,7 @@ map-editor { .table.no-border-top { - border-top: 2px solid white; + border-top: 2px solid var(--color-white); .table-label { padding: .8rem 0 0 1rem; diff --git a/app/scripts/modules/core/src/presentation/main.less b/app/scripts/modules/core/src/presentation/main.less index 3e818e65d63..dc905fdd84a 100644 --- a/app/scripts/modules/core/src/presentation/main.less +++ b/app/scripts/modules/core/src/presentation/main.less @@ -1424,7 +1424,7 @@ div.modal-header.has-sticky-headers { } table.table.no-lines th { - border-bottom: 1px solid @table-border-color; + border-bottom: 1px solid var(--color-seashell); } table.table.no-lines tr td { diff --git a/app/scripts/modules/core/src/search/global/globalSearch.less b/app/scripts/modules/core/src/search/global/globalSearch.less index 760a8760361..db710394318 100644 --- a/app/scripts/modules/core/src/search/global/globalSearch.less +++ b/app/scripts/modules/core/src/search/global/globalSearch.less @@ -13,7 +13,7 @@ } } .glyphicon-search { - color: @link-color; + color: var(--color-text-link); } .spinner-section { min-height: 30px; diff --git a/app/scripts/modules/core/src/search/searchResult/baseTable.less b/app/scripts/modules/core/src/search/searchResult/baseTable.less index 1493c4a9de5..b0b9f87eb85 100644 --- a/app/scripts/modules/core/src/search/searchResult/baseTable.less +++ b/app/scripts/modules/core/src/search/searchResult/baseTable.less @@ -43,7 +43,7 @@ } &:nth-child(even) { > div { - background-color: white; + background-color: var(--color-white); } } &:hover { diff --git a/app/scripts/modules/core/src/search/searchResult/searchResults.less b/app/scripts/modules/core/src/search/searchResult/searchResults.less index c9c5a74272d..17479863c0e 100644 --- a/app/scripts/modules/core/src/search/searchResult/searchResults.less +++ b/app/scripts/modules/core/src/search/searchResult/searchResults.less @@ -27,9 +27,9 @@ .search-group-icon { background-color: var(--color-primary); - border: 2px solid @body-bg; + border: 2px solid var(--color-white); border-radius: 50%; - color: @body-bg; + color: var(--color-white); display: inline-block; height: 32px; line-height: 29px; diff --git a/app/scripts/modules/core/src/search/widgets/filterlist.less b/app/scripts/modules/core/src/search/widgets/filterlist.less index 5cb75c76471..174a06d53ea 100644 --- a/app/scripts/modules/core/src/search/widgets/filterlist.less +++ b/app/scripts/modules/core/src/search/widgets/filterlist.less @@ -9,7 +9,7 @@ .filter-list { - background-color: @dropdown-bg; + background-color: var(--color-white); border: 1px solid @dropdown-border; border-radius: @border-radius-base; .box-shadow(0 6px 12px rgba(0, 0, 0, .175)); @@ -57,7 +57,7 @@ } &.filter--blur { - background-color: @body-bg; + background-color: var(--color-white); } &:hover { diff --git a/app/scripts/modules/core/src/search/widgets/search.less b/app/scripts/modules/core/src/search/widgets/search.less index 4bd6832f22a..e5068f8b2fc 100644 --- a/app/scripts/modules/core/src/search/widgets/search.less +++ b/app/scripts/modules/core/src/search/widgets/search.less @@ -18,8 +18,8 @@ padding: 10px 16px; font-size: 18px; line-height: 1.3333333; - color: @gray; - background: @body-bg none; + color: var(--color-mineshaft); + background: var(--color-white) none; border: 1px solid; border-radius: @border-radius-base; .transition(~"border-color ease-in-out .15s, box-shadow ease-in-out .15s"); @@ -40,14 +40,14 @@ } .search__input-control::-moz-placeholder { - color: @input-color-placeholder; + color: var(--color-concrete); opacity: 1; } .search__input-control:-ms-input-placeholder { - color: @input-color-placeholder; + color: var(--color-concrete); } .search__input-control::-webkit-input-placeholder { - color: @input-color-placeholder; + color: var(--color-concrete); } .fa.fa-times { @@ -64,7 +64,7 @@ } &.search__input--blur { - border-color: @btn-default-border; + border-color: var(--color-alto); .box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075)); } } diff --git a/app/scripts/modules/core/src/widgets/tags/taglist.less b/app/scripts/modules/core/src/widgets/tags/taglist.less index 377af1ee855..fea3c8d1bf8 100644 --- a/app/scripts/modules/core/src/widgets/tags/taglist.less +++ b/app/scripts/modules/core/src/widgets/tags/taglist.less @@ -17,7 +17,7 @@ .tag__category { background-color: var(--color-primary); border-radius: 4px 0 0 4px; - color: white; + color: var(--color-white); padding: 8px; } diff --git a/app/scripts/modules/google/src/securityGroup/configure/securityGroup.configure.less b/app/scripts/modules/google/src/securityGroup/configure/securityGroup.configure.less index 6acad47be26..57cad5148ec 100644 --- a/app/scripts/modules/google/src/securityGroup/configure/securityGroup.configure.less +++ b/app/scripts/modules/google/src/securityGroup/configure/securityGroup.configure.less @@ -4,7 +4,7 @@ } .table { - border-top: 2px solid white; + border-top: 2px solid var(--color-white); .fixed-width { width: 100%; diff --git a/app/scripts/modules/kubernetes/container/securityContext/securityContextSelector.component.less b/app/scripts/modules/kubernetes/container/securityContext/securityContextSelector.component.less index f66351aa5f2..1d60534c7e2 100644 --- a/app/scripts/modules/kubernetes/container/securityContext/securityContextSelector.component.less +++ b/app/scripts/modules/kubernetes/container/securityContext/securityContextSelector.component.less @@ -19,7 +19,7 @@ kubernetes-security-context-selector { kubernetes-capabilities-selector { .table { - border-top: 2px solid white; + border-top: 2px solid var(--color-white); .table-remove-button { padding: 0 0 1rem 1rem; }