summaryrefslogtreecommitdiffstats
path: root/app/common/styles/layout
diff options
context:
space:
mode:
authorMichael Davis <michael.s.davis@ibm.com>2017-08-18 16:32:33 -0500
committerAdriana Kobylak <anoo@us.ibm.com>2017-10-09 14:17:32 -0500
commita1dcfe0c56c14506a7e0184583f784f8730b02c5 (patch)
tree827b98b757a952e74866a7c7c925615397e0c617 /app/common/styles/layout
parent7afaae7bcc8ef3847c47c558c2675de97e3be2d5 (diff)
downloadphosphor-webui-a1dcfe0c56c14506a7e0184583f784f8730b02c5.tar.gz
phosphor-webui-a1dcfe0c56c14506a7e0184583f784f8730b02c5.zip
made server info a slide out drawer at smaller resolutions
Change-Id: Ie11792db8bedbf693ba5eea87f84b282a878a16a Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
Diffstat (limited to 'app/common/styles/layout')
-rw-r--r--app/common/styles/layout/header.scss62
1 files changed, 43 insertions, 19 deletions
diff --git a/app/common/styles/layout/header.scss b/app/common/styles/layout/header.scss
index 1ca6daf..b2d90bc 100644
--- a/app/common/styles/layout/header.scss
+++ b/app/common/styles/layout/header.scss
@@ -97,11 +97,18 @@ header {
.header__functions {
position: absolute;
top: 0;
- right: 0;
+ right: -680px;
bottom: 0;
z-index: 100;
margin: .3em 0;
+ background: $white;
@include fastTransition-all;
+ &.active {
+ right: 1em;
+ }
+ @media (min-width: 1025px) {
+ right: 0;
+ }
span {
display: block;
color: $black;
@@ -126,36 +133,53 @@ header {
}
}
- // hide/show header functions based on screen size
- .header__functions > .header__server-health {
- display: none;
- @include mediaQuery(small) {
- display: block;
- }
- }
-
- .header__functions > .header__refresh {
- display: none;
- @include mediaQuery(medium) {
- display: block;
- background-color: $white;
- }
- }
-
.header__functions {
.header__server-power,
.header__page-refresh,
- .header__server-health {
+ .header__server-health,
+ .header__info {
background: $lightgrey;
@include round-corners;
margin: 0 .3em;
height: 100%;
border: 1px solid $medgrey;
+ opacity: 1;
@include fastTransition-all;
&:hover {
background: rgba(255, 255, 255, 1);
}
}
+ .header__info {
+ padding: .3em;
+ min-width: 60px;
+ text-align: center;
+ display: inline-block;
+ span {
+ padding: .7em 0 .3em;
+ font-size: 1em;
+ font-weight: 400;
+ color: $darkgrey;
+ }
+ .icon-angle {
+ margin-bottom: .9em;
+ }
+ .icon-angle::before {
+ font-size: 2em;
+ margin-left: 0;
+ display: block;
+ transform: rotate(180deg);
+ @include fastTransition-all;
+ }
+ @media (min-width: 1025px) {
+ display: none;
+ }
+ }
+
+ &.active > .header__info > .icon-angle::before {
+ transform: rotate(-360deg);
+ @include fastTransition-all;
+ }
+
.header__refresh {
color: $darkgrey;
line-height: 1.4;
@@ -174,7 +198,7 @@ header {
font-weight: 400;
color: $darkgrey;
display: block;
- margin-bottom: 1.8em;
+ margin-bottom: 1.1em;
}
svg {
stroke: $medblue;
OpenPOWER on IntegriCloud