diff --git a/static/css/custom.css b/static/css/custom.css index e69de29b..adb10661 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -0,0 +1,55 @@ +/* Top, right navigation button */ +input[type="checkbox"]#btn-navbar-checkbox { + display: none; +} + +input[type="checkbox"]#btn-navbar-checkbox:not(:checked) ~ .collapse { + height: auto; +} + +/* fix label settings for accordion */ +.accordion-toggle label { + font-size: unset; + font-weight: unset; + line-height: unset; + margin-bottom: unset; +} + +.accordion .accordion-group .accordion-heading label { + margin-bottom: initial; +} + +/* radio type accordion */ +.accordion .accordion-group input[type="radio"] { + display: none; +} + +.accordion .accordion-group input[type="radio"] ~ .collapse { + height: 0; +} + +.accordion .accordion-group input[type="radio"]:checked ~ .collapse { + height: auto; +} + +/* checkbox type accordion */ +.accordion .accordion-group input[type="checkbox"] { + display: none; +} + +.accordion .accordion-group input[type="checkbox"]:not(:checked) ~ .collapse { + height: auto; +} + +/* Disqus comment text */ +input[type="checkbox"]#comment-accordion-toggle-checkbox:not(:checked) + ~ .accordion-heading + #comment-accordion-toggle::before { + content: "Click here to hide comments"; +} + +input[type="checkbox"]#comment-accordion-toggle-checkbox:checked + ~ .accordion-heading + #comment-accordion-toggle::before { + content: "Comments"; +} diff --git a/templates/_includes/comments.html b/templates/_includes/comments.html index 5d4de863..cf942127 100644 --- a/templates/_includes/comments.html +++ b/templates/_includes/comments.html @@ -28,17 +28,15 @@
Comments
+
@@ -64,26 +62,10 @@
Comments
{% macro comments_script() %} {% endmacro %} diff --git a/templates/base.html b/templates/base.html index c9f032fb..5ddf1874 100644 --- a/templates/base.html +++ b/templates/base.html @@ -55,11 +55,12 @@