summaryrefslogtreecommitdiffstats
path: root/app/common/styles/layout
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2019-06-05 12:30:30 -0500
committerYoshie Muranaka <yoshiemuranaka@gmail.com>2019-06-21 14:27:51 -0500
commitc86ce3c9c7736ef199d885596b6fc745c7d8c86e (patch)
treed8ce85478e7436298e328e91f0997d03747530b3 /app/common/styles/layout
parente4194ce0dc8a941c4f30fd0995f9ba4c13cec560 (diff)
downloadphosphor-webui-c86ce3c9c7736ef199d885596b6fc745c7d8c86e.tar.gz
phosphor-webui-c86ce3c9c7736ef199d885596b6fc745c7d8c86e.zip
Consolidate button styles
This patchset will create consistent button styling according to the styleguide and remove redundant button styles by creating reusable button classes. This patchset also implements a consistent strategy for including icon assets. Currently, svg icons are imported as CSS background images or inlined into the markup. Inlining an svg is preferred, especially when used with buttons or links so the colors can be easily changed for different states (hover, focus, disabled) without having to request variants. The icon provider allows us to inline svgs without cluttering the markup. Webpack config was adjusted to use svg-inline-loader when resolving svgs that are used by the icon provider directive. - All svgs were optimized to remove unncessary information. - Removed unused svg color variants - Moved icons used by icon provider to separate directory to avoid Webpack parsing the files twice - Small changes to navigation icons Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I1ca214b74fc502e6b6e760cfee88b48110237c43
Diffstat (limited to 'app/common/styles/layout')
-rw-r--r--app/common/styles/layout/header.scss28
1 files changed, 11 insertions, 17 deletions
diff --git a/app/common/styles/layout/header.scss b/app/common/styles/layout/header.scss
index 56460c6..034c49e 100644
--- a/app/common/styles/layout/header.scss
+++ b/app/common/styles/layout/header.scss
@@ -79,9 +79,6 @@ $logoMaxWidth: 125px;
}
.logo__wrapper {
padding-top: .5em;
- //position: absolute;
- //top: 50%;
- //transform: translateY(-50%);
}
.header__logo {
@@ -128,7 +125,7 @@ $logoMaxWidth: 125px;
display: block;
font-size: 1rem;
font-weight: bold;
- margin-top: .3em;
+ margin-top: .5em;
}
}
}
@@ -211,26 +208,23 @@ $logoMaxWidth: 125px;
}
}
.header__page-refresh {
- padding: 0 0.5rem 0.6rem;
- position: relative;
+ padding-top: 1em;
span {
font-size: 0.875em;
font-weight: 400;
color: $darkgrey;
display: block;
- margin-bottom: 1.1em;
+ margin-bottom: .2em;
}
- svg {
- stroke: $medblue;
- fill: $medblue;
- height: 20px;
- width: 20px;
+ .icon {
display: block;
- margin: 0 auto;
- position: absolute;
- left: 50%;
- top: 55%;
- transform: translateX(-50%);
+ margin-left: auto;
+ margin-right: auto;
+ }
+ svg {
+ width: 25px;
+ height: auto;
+ fill: $color--blue-40;
}
}
}
OpenPOWER on IntegriCloud