Add collapsing animation for 2nd level nav menu
Change-Id: Ie60d6c9d0aaff1e6db785a678e38c626925c8799
Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
diff --git a/app/common/styles/base/foundation.scss b/app/common/styles/base/foundation.scss
index 0247f7f..910be7a 100644
--- a/app/common/styles/base/foundation.scss
+++ b/app/common/styles/base/foundation.scss
@@ -814,7 +814,7 @@
display: block !important; } }
.row {
- max-width: 100rem;
+ max-width: 90rem;
margin-right: auto;
margin-left: auto; }
.row::before, .row::after {
diff --git a/app/common/styles/base/typography.scss b/app/common/styles/base/typography.scss
index 9d498da..dfad5a4 100644
--- a/app/common/styles/base/typography.scss
+++ b/app/common/styles/base/typography.scss
@@ -46,20 +46,6 @@
letter-spacing: -.05rem;
}
-.content-header {
- font-weight: 700;
- margin-bottom: 0;
- margin-top: 2em;
-}
-
-.content-label {
- color: darken($lightgrey, 10%);
- text-transform: uppercase;
- font-weight: 700;
- font-size: .75em;
- margin-bottom: 3px;
-}
-
.courier-normal {
font-family: "Courier New", Helvetica, arial, sans-serif;
}
diff --git a/app/common/styles/directives/app-navigation.scss b/app/common/styles/directives/app-navigation.scss
index 99fef2b..5b755e8 100644
--- a/app/common/styles/directives/app-navigation.scss
+++ b/app/common/styles/directives/app-navigation.scss
@@ -91,19 +91,12 @@
z-index: 97;
padding: 0;
margin: 0;
- display: none;
list-style-type: none;
- @include fastTransition-all;
- @include mediaQuery(medium) {
- left: $nav__toplvlWidth;
- &.btn-overview {
- display: block;
- }
- }
+ @include slowTransition-all;
&.opened {
left: $nav__toplvlWidth;
- display: block;
- @include fastTransition-all;
+ box-shadow: 7px 0 28px -10px $darkgrey;
+ @include slowTransition-all;
}
a {
diff --git a/app/common/styles/elements/content-search.scss b/app/common/styles/elements/content-search.scss
index 3bb3ffa..af14e05 100644
--- a/app/common/styles/elements/content-search.scss
+++ b/app/common/styles/elements/content-search.scss
@@ -9,6 +9,8 @@
position: relative;
margin-right: 1em;
margin-top: .5em;
+ margin-bottom: .5em;
+
#content__search-input {
margin: 0;
border: 1px solid $lightgrey;
diff --git a/app/common/styles/elements/status.scss b/app/common/styles/elements/status.scss
index 7d9b57a..22d99b8 100644
--- a/app/common/styles/elements/status.scss
+++ b/app/common/styles/elements/status.scss
@@ -3,7 +3,6 @@
content: '\25CF';
display: inline-block;
font-size: 2em;
- color: $status-ok;
margin-right: .1em;
transform: translateY(2px);
@include slowTransition-all;
@@ -41,6 +40,7 @@
}
.status-light__good {
+ color: $status-ok;
&::before {
@include status-light__good;
}
diff --git a/app/common/styles/layout/content.scss b/app/common/styles/layout/content.scss
index e36fa66..84b613c 100644
--- a/app/common/styles/layout/content.scss
+++ b/app/common/styles/layout/content.scss
@@ -1,11 +1,23 @@
// Content layout styles
+// Page header
+.page-header {
+ position: relative;
+ border-bottom: 1px solid $lightbg__grey;
+ margin: 1.625em 0 1.2em 0;
+ .h4 {
+ padding: 0;
+ margin: 0 0 .5em 0;
+ font-weight: bold;
+ }
+}
+
.content__container {
margin-left: $nav__toplvlWidth;
padding: 1em .1em;
transition: left 1s ease;
@include mediaQuery(x-small){
- margin-left: $nav__toplvlWidth + $nav__seclvlWidth;
+ //margin-left: $nav__toplvlWidth + $nav__seclvlWidth;
padding: 1rem 2rem;
}
}
@@ -13,4 +25,22 @@
section.row {
padding-left: 0;
padding-right: 0;
-}
\ No newline at end of file
+}
+
+.content-header {
+ font-weight: 700;
+ margin-bottom: 0;
+ margin-top: 2em;
+}
+
+.content-label {
+ color: darken($lightgrey, 10%);
+ text-transform: uppercase;
+ font-weight: 700;
+ font-size: .75em;
+ margin-bottom: 0;
+}
+
+.content__container h1 {
+ margin-left: -.3em;
+}
diff --git a/app/common/styles/layout/navigation.scss b/app/common/styles/layout/navigation.scss
index 6a2bbfe..2568637 100644
--- a/app/common/styles/layout/navigation.scss
+++ b/app/common/styles/layout/navigation.scss
@@ -14,6 +14,7 @@
margin: 0;
padding: 0;
width: $nav__toplvlWidth;
+ display: block;
li {
margin: 0;
}
@@ -30,6 +31,7 @@
margin-bottom: 0;
white-space: normal;
border-radius: 0;
+ text-decoration: none;
.nav__icon {
color: $white;
max-height: 40px;
@@ -86,22 +88,23 @@
background: $nav__second-level-color;
top: 0;
bottom: 0;
- left: -$nav__toplvlWidth;
+ left: 0;
width: $nav__seclvlWidth;
- z-index: 97;
+ z-index: 0;
padding: 0;
margin: 0;
display: none;
list-style-type: none;
@include fastTransition-all;
@include mediaQuery(medium) {
- left: $nav__toplvlWidth;
+ left: 0;
&.btn-overview {
- display: block;
+ display: none;
}
}
&.opened {
left: $nav__toplvlWidth;
+ z-index: 100;
display: block;
@include fastTransition-all;
}
@@ -114,7 +117,6 @@
position: relative;
font-weight: 400;
}
-
li {
a:after{
content: '\203A';