From 776920ad028440ddcbb0a6f64dde515323768216 Mon Sep 17 00:00:00 2001 From: Andy Strain Date: Thu, 22 Aug 2019 13:07:38 -0400 Subject: [PATCH 01/14] Got rid of bootstrap.min.js --- static/css/custom.css | 45 +++++++++++++++++++++++++++++++ templates/_includes/comments.html | 23 ++++++++-------- templates/base.html | 6 ++--- templates/categories.html | 45 ++++++++++++++++--------------- 4 files changed, 82 insertions(+), 37 deletions(-) diff --git a/static/css/custom.css b/static/css/custom.css index e69de29b..1fec058f 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -0,0 +1,45 @@ +.container-fluid input, .accordion-heading input, accordion-heading input { + position: absolute; + opacity: 0; + z-index: -1; +} + +form.navbar-search input.search-query { + position: unset; + opacity: unset; + z-index: unset; +} +.disqus-comments { + font-family: "Trebuchet MS", Trebuchet, "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, Sans-Serif; + font-size: 0.9em; +} + +.disqus-comment-count span { + position: relative; + content: 'Comments'; +} + +input:checked + .disqus-comment-count span { + display: none; +} + +input:checked + .disqus-comment-count::after { + content: 'Click here to hide comments'; +} + +input:checked ~ .collapse { + height: auto; +} + +@media screen and (max-width: 979px) { + .nav-collapse .navbar-search { + padding-top: 0px; + padding-bottom: 0px; + margin-top: 0px; + margin-bottom: 0px; + } + input:checked ~ .nav-collapse { + height: 100%; + } +} + diff --git a/templates/_includes/comments.html b/templates/_includes/comments.html index 6b46bc91..1bfe0511 100644 --- a/templates/_includes/comments.html +++ b/templates/_includes/comments.html @@ -17,22 +17,21 @@
-
-
-
- {% from '_includes/disqus_scripts.html' import disqus_comments_script with context %} - {{ disqus_comments_script(article) }} + {% endif %}> + Comments + +
+
+
+ {% from '_includes/disqus_scripts.html' import disqus_comments_script with context %} + {{ disqus_comments_script(article) }} +
diff --git a/templates/base.html b/templates/base.html index 397a1e62..d54f8fef 100644 --- a/templates/base.html +++ b/templates/base.html @@ -56,11 +56,12 @@