summaryrefslogtreecommitdiffstats
path: root/app/common/styles/layout
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2019-06-24 14:35:41 -0500
committerDerick Montague <derick.montague@ibm.com>2019-07-09 16:37:46 -0500
commit6f7ec80eb14084228cd7d8dae580da4b794c2595 (patch)
treec01c0c280b0c30043d6443a93e5ec4c650095710 /app/common/styles/layout
parent309b5da3750a3a5b189362e31013d2ab9404e806 (diff)
downloadphosphor-webui-6f7ec80eb14084228cd7d8dae580da4b794c2595.tar.gz
phosphor-webui-6f7ec80eb14084228cd7d8dae580da4b794c2595.zip
Clean up color values
This update will clean up slight color variations in the code base by creating and using Sass color variables instead of hex values. Available colors are defined in colors.scss. Any usage of CSS color properties should refer to the mapped color variables in colors.scss. - Removed tags.scss file since tag components no longer used Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I045030a158469e59d07a9fa8cd8aa9f125f0d383
Diffstat (limited to 'app/common/styles/layout')
-rw-r--r--app/common/styles/layout/content.scss6
-rw-r--r--app/common/styles/layout/header.scss38
2 files changed, 22 insertions, 22 deletions
diff --git a/app/common/styles/layout/content.scss b/app/common/styles/layout/content.scss
index 79229b6..61e082b 100644
--- a/app/common/styles/layout/content.scss
+++ b/app/common/styles/layout/content.scss
@@ -6,7 +6,7 @@ $nav__seclvlWidth: 240px;
.page-header {
width: 100%;
position: relative;
- border-bottom: 1px solid $lightbg__grey;
+ border-bottom: 1px solid $border-color-02;
margin: 0.5em 0 2.2em;
padding-left: 0;
}
@@ -43,7 +43,7 @@ $nav__seclvlWidth: 240px;
.content-label,
label {
- color: $darkgrey;
+ color: $text-02;
text-transform: uppercase;
font-weight: 700;
font-size: 0.75em;
@@ -52,6 +52,6 @@ label {
.subhead {
width: 100%;
- border-bottom: 1px solid $medgrey;
+ border-bottom: 1px solid $border-color-01;
padding-bottom: 0.5em;
}
diff --git a/app/common/styles/layout/header.scss b/app/common/styles/layout/header.scss
index 034c49e..3593780 100644
--- a/app/common/styles/layout/header.scss
+++ b/app/common/styles/layout/header.scss
@@ -30,37 +30,37 @@ $logoMaxWidth: 125px;
.header__info-section {
position: relative;
- background: $black;
- color: $white;
+ background: $primary-dark;
+ color: $primary-light;
overflow: hidden;
}
.header__logout {
float: right;
- color: $white;
+ color: $primary-light;
font-size: .9em;
text-decoration: none;
padding: 1em;
font-weight: 400;
&:visited {
- color: $white;
+ color: $primary-light;
}
}
.header__functions-section {
- color: $white;
+ color: $primary-light;
padding: 0 1.1em;
box-sizing: border-box;
display: block;
position: relative;
overflow: hidden;
min-height: 5em;
- border-bottom: 1px solid $medgrey;
- background: $white;
+ border-bottom: 1px solid $border-color-01;
+ background: $primary-light;
.header__server-name {
font-size: 1.5em;
font-weight: 500;
- color: $darkgrey;
+ color: $text-02;
padding: .4em 0 0 1em;
height: 100%;
background: transparent;
@@ -68,7 +68,7 @@ $logoMaxWidth: 125px;
white-space: nowrap;
overflow: hidden;
.header__hostname {
- color: $black;
+ color: $primary-dark;
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 0;
@@ -98,7 +98,7 @@ $logoMaxWidth: 125px;
bottom: 0;
z-index: 100;
margin: .3em 0;
- background: $white;
+ background: $primary-light;
@include fastTransition-all;
&.active {
right: 1em;
@@ -108,14 +108,14 @@ $logoMaxWidth: 125px;
}
span {
display: block;
- color: $black;
+ color: $primary-dark;
font-size: 1em;
}
a, p {
display: block;
float: left;
text-decoration: none;
- color: $darkgrey;
+ color: $text-02;
padding: 1.250em;
height: 100%;
font-size: 0.875em;
@@ -135,15 +135,15 @@ $logoMaxWidth: 125px;
.header__server-health,
.header__info,
.header__multi-server {
- background: $lightgrey;
+ background: $background-02;
@include round-corners;
margin: 0 .3em;
height: 100%;
- border: 1px solid $medgrey;
+ border: 1px solid $border-color-01;
opacity: 1;
@include fastTransition-all;
&:hover {
- background: rgba(255, 255, 255, 1);
+ background: $background-01;
}
}
@@ -175,7 +175,7 @@ $logoMaxWidth: 125px;
padding: .7em 0 .3em;
font-size: 1em;
font-weight: 400;
- color: $darkgrey;
+ color: $text-02;
}
.icon-angle {
margin: 0.2em 0 0 0;
@@ -199,7 +199,7 @@ $logoMaxWidth: 125px;
}
.header__refresh {
- color: $darkgrey;
+ color: $text-02;
line-height: 1.4;
border-radius: 6px;
span {
@@ -212,7 +212,7 @@ $logoMaxWidth: 125px;
span {
font-size: 0.875em;
font-weight: 400;
- color: $darkgrey;
+ color: $text-02;
display: block;
margin-bottom: .2em;
}
@@ -224,7 +224,7 @@ $logoMaxWidth: 125px;
svg {
width: 25px;
height: auto;
- fill: $color--blue-40;
+ fill: $primary-accent;
}
}
}
OpenPOWER on IntegriCloud