From 7bf072134cde688ac6c1e81fa88ae814c25e767d Mon Sep 17 00:00:00 2001 From: nek0 Date: Sun, 12 Jun 2016 12:22:11 +0200 Subject: [PATCH] bake my own dropdown menu --- Foundation.hs | 3 ++- static/css/dropdown.css | 14 ++++++++++++++ templates/default-layout.hamlet | 15 +++++++-------- 3 files changed, 23 insertions(+), 9 deletions(-) create mode 100644 static/css/dropdown.css diff --git a/Foundation.hs b/Foundation.hs index 6458f3d..9d1299e 100755 --- a/Foundation.hs +++ b/Foundation.hs @@ -117,7 +117,8 @@ renderLayout widget = do , js_picturefill_js ]) $(combineStylesheets 'StaticR - [ css_bootstrap_min_css + [ css_dropdown_css + , css_bootstrap_min_css , css_style_global_css ]) $(widgetFile "default-layout") diff --git a/static/css/dropdown.css b/static/css/dropdown.css new file mode 100644 index 0000000..b717615 --- /dev/null +++ b/static/css/dropdown.css @@ -0,0 +1,14 @@ +.nav { + list-style: none; + font-weight: bold; + margin-bottom: 10px; + z-index: 5; +} + +.nav ul { + display: none; +} + +.nav li:hover ul { + display: inline-block; +} diff --git a/templates/default-layout.hamlet b/templates/default-layout.hamlet index bd525a3..aaaaa2b 100755 --- a/templates/default-layout.hamlet +++ b/templates/default-layout.hamlet @@ -2,15 +2,14 @@