From: RafiBomb Date: Thu, 18 May 2017 18:55:05 +0000 (-0700) Subject: sets up mobiile nav styles X-Git-Tag: v6.4.0-rc1~26^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baceb42b9831af2ead9dfe0d5655321e69a11e5f;p=thirdparty%2Ffoundation%2Ffoundation-sites.git sets up mobiile nav styles --- diff --git a/docs/assets/img/icons/menu-grey.png b/docs/assets/img/icons/menu-grey.png new file mode 100644 index 000000000..41be1ae90 Binary files /dev/null and b/docs/assets/img/icons/menu-grey.png differ diff --git a/docs/assets/scss/docs.scss b/docs/assets/scss/docs.scss index 2c9eb8370..e1685aa9d 100644 --- a/docs/assets/scss/docs.scss +++ b/docs/assets/scss/docs.scss @@ -100,6 +100,7 @@ a#notice { } } /* COUNTDOWN END */ + $transition-slow: all 0.5s ease-in-out; $transition: all 0.25s ease-in-out; $transition-fast: all 0.15s ease-in-out; @@ -110,12 +111,12 @@ $global-nav-hover-color: lighten($global-nav-bg, 10%); .global-nav { background: $global-nav-bg !important; - display: flex; font-size: rem-calc(13); font-weight: bold; height: rem-calc(45); justify-content: space-between; position: relative; + display: none; .dropdown { width: auto; @@ -133,6 +134,12 @@ $global-nav-hover-color: lighten($global-nav-bg, 10%); } } + &.show-for-smedium { + @media screen and (min-width: 775px) { + display: flex; + } + } + .dropdown.menu > li.is-dropdown-submenu-parent > a { padding-left: 1rem; padding-right: 1rem; @@ -259,6 +266,41 @@ $global-nav-hover-color: lighten($global-nav-bg, 10%); } } +// --- Mobile Top Bar +.global-nav-mobile-wrapper { + background: $global-nav-bg; + position: relative; + + @media screen and (min-width: 775px) { + display: none; + } + + .global-nav-mobile { + .global-nav-title { + margin-left: 1.5rem; + } + } + + // hamburger-menu + + .hamburger-icon { + @include vertical-center; + height: 12px; + left: 10px; + } + + // zurb logo + .title-bar-title { + img { + @include vertical-center; + height: 14px; + left: 2.25rem; + opacity: 0.9; + width: 76px; + } + } +} + .docs-newsletter { padding: 1rem 0; diff --git a/docs/partials/mobile-navigation.html b/docs/partials/mobile-navigation.html index 39bea534a..4e68dd10a 100644 --- a/docs/partials/mobile-navigation.html +++ b/docs/partials/mobile-navigation.html @@ -1,6 +1,10 @@ -
-
- - Foundation -
+ diff --git a/docs/partials/navigation.html b/docs/partials/navigation.html index ef4c07a4f..d8db7a775 100644 --- a/docs/partials/navigation.html +++ b/docs/partials/navigation.html @@ -1,4 +1,4 @@ -