From d9a68f6ced3f510e5a52d5f857ca9c19aed8924b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 21 Apr 2020 07:58:44 +0200 Subject: Enhanced navigation menu in material theme --- app/Resources/static/themes/material/css/nav.scss | 12 ++++++++++++ app/Resources/static/themes/material/index.js | 2 ++ 2 files changed, 14 insertions(+) (limited to 'app') diff --git a/app/Resources/static/themes/material/css/nav.scss b/app/Resources/static/themes/material/css/nav.scss index b7288278..c84f7957 100644 --- a/app/Resources/static/themes/material/css/nav.scss +++ b/app/Resources/static/themes/material/css/nav.scss @@ -141,3 +141,15 @@ nav { display: none; } } + +.dropdown-content { + min-width: 300px; + + .material-icons { + line-height: initial !important; + } + + li > a { + padding: 10px; + } +} diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js index 1c28401d..d8f5628c 100755 --- a/app/Resources/static/themes/material/index.js +++ b/app/Resources/static/themes/material/index.js @@ -63,6 +63,8 @@ $(document).ready(() => { container: 'body', }); + $('.dropdown-trigger').dropdown({ hover: false }); + initFilters(); initExport(); initRandom(); -- cgit v1.2.3