From: Enno Gotthold Date: Mon, 29 Jun 2020 11:46:06 +0000 (+0200) Subject: mgr/dashboard: SCSS cleanup X-Git-Tag: v16.1.0~1476^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cdae818b5f3bbde64e039c62b41bba4605c939ce;p=ceph.git mgr/dashboard: SCSS cleanup Removes unnecessary variables and uses already existing bootstrap variables instead. Also we removed uneffective SCSS, as well as moved the Navtabs SCSS code into a module Bootstrap style Last but not least we cleaned up toast & tooltip SCSS. Fixes: https://tracker.ceph.com/issues/46382 Signed-off-by: Sebastian Krah Signed-off-by: Enno Gotthold --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-directories/cephfs-directories.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-directories/cephfs-directories.component.scss index 040c588dc8656..b1da0a7b0f4ec 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-directories/cephfs-directories.component.scss +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-directories/cephfs-directories.component.scss @@ -12,6 +12,6 @@ cursor: pointer; &:hover { - color: bd.$color-gray13; + color: bd.$gray-900; } } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.scss index d916170dc9764..dc9a049602043 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.scss +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.scss @@ -27,15 +27,15 @@ p { } .err { - color: bd.$color-pink; + color: bd.$danger; } .warn { - color: bd.$color-bright-yellow; + color: bd.$warning; } .info { - color: bd.$color-brand-teal; + color: bd.$info; } } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.scss index c89a4c1541da5..f5afb8b968ef4 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.scss +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.scss @@ -27,7 +27,7 @@ cd-info-card { } .card-text-error { - color: bd.$color-solid-red; + color: bd.$danger; display: inline; } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.scss index d1426d61bf8a5..bc83d8b2865ff 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.scss +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.scss @@ -13,9 +13,9 @@ $card-font-max-size: 21px; $card-font-min-size, $card-font-max-size ); - border: 0.5px solid bd.$color-info-card-border; + border: 0.5px solid bd.$gray-300; border-radius: 3px; - box-shadow: 0 1px 1px bd.$color-shadow-gray; + box-shadow: 0 1px 1px rgba(3, 3, 3, 0.175); height: 100%; .card-body { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.scss index 168b878e6cb8e..2fc086ab56a0f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.scss +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.scss @@ -1,17 +1,17 @@ @use './src/styles/defaults/bootstrap-defaults' as bd; ::ng-deep .pg-clean { - color: bd.$color-bright-green; + color: bd.$success; } ::ng-deep .pg-working { - color: bd.$color-primary; + color: bd.$primary; } ::ng-deep .pg-warning { - color: bd.$color-bright-yellow; + color: bd.$warning; } ::ng-deep .pg-unknown { - color: bd.$color-solid-red; + color: bd.$danger; } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.html index 14c9fc2fee359..bc821fba7c8ef 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.html @@ -146,7 +146,7 @@
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/login/login.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/login/login.component.scss index 85b3ac5534e85..bdf354352d251 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/login/login.component.scss +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/login/login.component.scss @@ -1,3 +1,4 @@ +@use "sass:map"; @use './src/styles/defaults/bootstrap-defaults' as bd; ::ng-deep cd-login { @@ -8,7 +9,7 @@ margin-bottom: 2rem; &:focus-within { - border-left: 4px solid bd.$color-accent; + border-left: 4px solid map.get(bd.$theme-colors, "accent"); } .invalid-feedback { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-details/role-details.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-details/role-details.component.scss index 1eeaca9149a08..1ba7b731ffba9 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-details/role-details.component.scss +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-details/role-details.component.scss @@ -1,13 +1,8 @@ @use './src/styles/defaults/bootstrap-defaults' as bd; -thead { - background-color: bd.$color-table-header-bg; -} - .fa { font-size: large; - &.fa-square-o { - color: bd.$color-light-gray; + color: bd.$gray-400; } } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.html b/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.html index 389e8e1d5e22a..fd57176a4c79c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.html @@ -1,6 +1,6 @@
-