diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fe3aed9e..ab094bf84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +*2.0.5* (2019-05-28) + - ✨ New implementations + - Improve the display of search and language selection for small screen devices + *2.0.4* (2019-05-13) - 🛠 Fixes & other - Set a generic name for theme light top menu (#387) diff --git a/VERSION b/VERSION index 2165f8f9b..e01025862 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.4 +2.0.5 diff --git a/assets/components/atoms/nav-lang/nav-lang.scss b/assets/components/atoms/nav-lang/nav-lang.scss index b3bfd54f9..6c6ef8bf2 100644 --- a/assets/components/atoms/nav-lang/nav-lang.scss +++ b/assets/components/atoms/nav-lang/nav-lang.scss @@ -17,6 +17,11 @@ font-size: $font-size-sm; font-weight: bold; transition: background 0.2s ease; + + @include media-breakpoint-up(sm) { + padding-top: ($spacer * 0.6); + padding-bottom: ($spacer * 0.7); + } } .dropdown-toggle { @@ -155,26 +160,18 @@ @include media-breakpoint-down(lg) { .nav-lang { - position: fixed; - right: 0; - bottom: $mm-lang-height * -1; - width: $mm-lang-width; - margin: 0; + //position: absolute; + //right: 120px; + //bottom: auto; + width: auto; + margin: 0 1rem !important; transition: bottom 0.3s ease; z-index: $zindex-mobile-lang; - - .dropdown-toggle, &.nav-lang-short ul { - height: $mm-lang-height; - padding-top: 0.67rem; - background: gray('600'); - border-color: gray('600'); - color: $white; - border-radius: 0; - - .icon { - color: $white; - } + + &.nav-lang-short { + margin: 0 .25rem !important; } + &.nav-lang-short ul{ display: flex; width: 100%; @@ -188,18 +185,19 @@ padding: 0; a, span{ display: block; - padding: 0; + padding: 0 0.4 * $spacer; line-height: $mm-lang-height; text-align: center; - color: gray('300'); + //color: gray('300'); &.active{ - color: $white; + //color: $white; } } & + li { &:before { - display: none; + //display: none; + top: 1.1 * $spacer } } } diff --git a/assets/components/atoms/nav-toggle-mobile/nav-toggle-mobile.scss b/assets/components/atoms/nav-toggle-mobile/nav-toggle-mobile.scss index ba0db8f04..d8953edbf 100644 --- a/assets/components/atoms/nav-toggle-mobile/nav-toggle-mobile.scss +++ b/assets/components/atoms/nav-toggle-mobile/nav-toggle-mobile.scss @@ -4,13 +4,27 @@ display: flex; flex-flow: row nowrap; align-items: baseline; - margin-left: 1 * $spacer; - padding: (0.7 * $spacer) (1.2 * $spacer); - font-size: 1.25 * $font-size-base; + margin: 0; + padding: (.8 * $spacer) (.9 * $spacer); + font-size: 1 * $font-size-base; font-weight: bold !important; + + @include media-breakpoint-up(sm) { + padding: (.6 * $spacer) (.9 * $spacer); + } + + .label { + + @include media-breakpoint-down(xs) { + @include sr-only(); + } + } .hamburger { - margin-left: 0.4 * $spacer; + + @include media-breakpoint-up(sm) { + margin-left: 0.4 * $spacer; + } span { display: block; diff --git a/assets/components/atoms/nav-toggle-mobile/nav-toggle-mobile.twig b/assets/components/atoms/nav-toggle-mobile/nav-toggle-mobile.twig index a72cdb138..36deb7659 100644 --- a/assets/components/atoms/nav-toggle-mobile/nav-toggle-mobile.twig +++ b/assets/components/atoms/nav-toggle-mobile/nav-toggle-mobile.twig @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/package.json b/package.json index eab35b0da..c8a9d06bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "epfl-elements", - "version": "2.0.4", + "version": "2.0.5", "license": "MIT", "main": "index.html", "repository": {