From 25394160f2621bc701bbb635fb53572a44574847 Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Tue, 2 Aug 2016 22:04:17 +0200 Subject: don't collapse the menu if javascript is disabled thanks to Adrian Aulbach for the code snippet gist: https://gist.github.com/AdrianAulbach/9bb79f6e5d9b1ed0cff3 --- pelican-bootstrap3/static/css/noscript.css | 10 ++++++++++ pelican-bootstrap3/templates/base.html | 8 +++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 pelican-bootstrap3/static/css/noscript.css diff --git a/pelican-bootstrap3/static/css/noscript.css b/pelican-bootstrap3/static/css/noscript.css new file mode 100644 index 0000000..47f2aed --- /dev/null +++ b/pelican-bootstrap3/static/css/noscript.css @@ -0,0 +1,10 @@ +.collapse { + display: block; + visibility: visible; +} + +.dropdown-menu { + display: block; + position: relative; + float: none; +} diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html index d1a75e5..e7ebc33 100644 --- a/pelican-bootstrap3/templates/base.html +++ b/pelican-bootstrap3/templates/base.html @@ -77,9 +77,11 @@ {% if CUSTOM_CSS %} {% endif %} - {% if SHARIFF %} - - {% endif %} + + + {% if FEED_ALL_ATOM %}