From 93e3329c58312916b8231cf2dea331a40bfc5d24 Mon Sep 17 00:00:00 2001 From: Simounet Date: Thu, 7 Dec 2017 23:46:29 +0100 Subject: Fix nav title nowrap on mobile --- app/Resources/static/themes/material/css/nav.scss | 33 ++++++++++++++++------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'app/Resources/static/themes/material/css') diff --git a/app/Resources/static/themes/material/css/nav.scss b/app/Resources/static/themes/material/css/nav.scss index 7898f662..f986b785 100644 --- a/app/Resources/static/themes/material/css/nav.scss +++ b/app/Resources/static/themes/material/css/nav.scss @@ -2,10 +2,13 @@ /* ========================================================================== Nav ========================================================================== */ - -nav { +nav, +.nav-wrapper { height: auto; + line-height: initial; +} +nav { input { color: #aaa; } @@ -17,15 +20,25 @@ nav { .nav-wrapper { display: flex; + padding: 0.6rem 0.4rem 0.6rem 0.75rem; flex-wrap: wrap; justify-content: space-between; - min-height: 64px; + align-items: center; .button-collapse { - padding: 0 15px; + margin-left: 0; + margin-right: 0.5rem; + padding: 0 0.5rem; + height: auto; + line-height: 1; } } +nav .nav-wrapper i { + height: 46px; + line-height: 46px; +} + .nav-input { display: none; } @@ -34,10 +47,6 @@ nav { display: flex; flex-grow: 1; justify-content: flex-end; - - li { - max-height: 64px; - } } .nav-panel-add .add, @@ -50,9 +59,8 @@ nav { transition: background 0.2s ease; .action { - padding-left: 0.75rem; + margin: 0; font-size: 2.1rem; - white-space: nowrap; } .input-field input { @@ -71,6 +79,11 @@ nav { } } +.nav-panel-top { + display: flex; + align-items: center; +} + .input-field { &.nav-panel-add label, &.nav-panel-search label { -- cgit v1.2.3 From da2a5fe222b8900899b7d879e4de5ecacfd86b86 Mon Sep 17 00:00:00 2001 From: Simounet Date: Thu, 7 Dec 2017 23:47:53 +0100 Subject: Toggle menu anchor replaced by a button --- app/Resources/static/themes/material/css/nav.scss | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/Resources/static/themes/material/css') diff --git a/app/Resources/static/themes/material/css/nav.scss b/app/Resources/static/themes/material/css/nav.scss index f986b785..99a048b0 100644 --- a/app/Resources/static/themes/material/css/nav.scss +++ b/app/Resources/static/themes/material/css/nav.scss @@ -31,6 +31,8 @@ nav { padding: 0 0.5rem; height: auto; line-height: 1; + background-color: transparent; + border: none; } } @@ -122,3 +124,9 @@ nav .nav-wrapper i { #button_export { display: none; } + +@media (min-width: 993px) { + .button-collapse { + display: none; + } +} -- cgit v1.2.3 From f072829ce38e6daac46c84cce58af5f67087a30f Mon Sep 17 00:00:00 2001 From: Simounet Date: Fri, 8 Dec 2017 21:10:36 +0100 Subject: More space for navbar actions on mobile --- app/Resources/static/themes/material/css/media_queries.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Resources/static/themes/material/css') diff --git a/app/Resources/static/themes/material/css/media_queries.scss b/app/Resources/static/themes/material/css/media_queries.scss index 48f3aefc..69e3d47d 100644 --- a/app/Resources/static/themes/material/css/media_queries.scss +++ b/app/Resources/static/themes/material/css/media_queries.scss @@ -27,7 +27,7 @@ } .nav-panel-buttom { - justify-content: space-around; + justify-content: space-between; } #article { -- cgit v1.2.3