|
|
@@ -1,23 +1,4 @@
|
|
|
-$easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1);
|
|
|
-
|
|
|
-%transitionForCompactMode {
|
|
|
- // set transition-duration (normal -> compact)
|
|
|
- transition: all 300ms $easeInOutCubic;
|
|
|
-}
|
|
|
-
|
|
|
.grw-subnav {
|
|
|
- /*
|
|
|
- * Fixed ver
|
|
|
- */
|
|
|
- &.grw-subnav-fixed {
|
|
|
- top: $grw-navbar-border-width;
|
|
|
- z-index: $zindex-fixed;
|
|
|
-
|
|
|
- box-shadow: 0px 6px 6px -3px rgba(black, 0.15);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.grw-subnav-content {
|
|
|
min-height: 115px;
|
|
|
padding: 10px 30px;
|
|
|
|
|
|
@@ -78,7 +59,34 @@ $easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1);
|
|
|
/*
|
|
|
* Compact Mode
|
|
|
*/
|
|
|
- &.grw-subnav-content-compact {
|
|
|
+ &.grw-subnav-compact {
|
|
|
min-height: 85px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+/*
|
|
|
+ * Fixed ver
|
|
|
+ */
|
|
|
+$easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1);
|
|
|
+
|
|
|
+.grw-subnav-fixed-container {
|
|
|
+ top: $grw-navbar-border-width;
|
|
|
+ z-index: $zindex-sticky - 5;
|
|
|
+
|
|
|
+ .grw-subnav {
|
|
|
+ box-shadow: 0px 6px 6px -3px rgba(black, 0.15);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.grw-subnav-switcher {
|
|
|
+ .grw-subnav-fixed-container {
|
|
|
+ transition: transform 150ms $easeInOutCubic;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.grw-subnav-switcher-hidden {
|
|
|
+ .grw-subnav-fixed-container {
|
|
|
+ transition: unset;
|
|
|
+ transform: translateY(-100%);
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|