From 2554000d85b8c404229ac783b531ccfd7f288e78 Mon Sep 17 00:00:00 2001 From: Lucy Cifferello <12953208+elvece@users.noreply.github.com> Date: Wed, 3 Mar 2021 13:51:52 -0700 Subject: [PATCH] ause better icon for menu close --- source/_static/default.css | 6 +++++- source/_static/js/main.js | 13 +++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/source/_static/default.css b/source/_static/default.css index 24ebebf..4e64c42 100644 --- a/source/_static/default.css +++ b/source/_static/default.css @@ -69,7 +69,7 @@ h1, h2 { @media (min-width: 768px) { .bd-sidebar { - border-right: 1px solid #f8f8ff; + border-right: 0.5px solid #f8f8ff; background: none; } } @@ -175,4 +175,8 @@ nav.bd-links > ul.nav { .set-padding { padding-top: 75px!important; +} + +.hidden { + display: none!important; } \ No newline at end of file diff --git a/source/_static/js/main.js b/source/_static/js/main.js index 877a572..be848af 100644 --- a/source/_static/js/main.js +++ b/source/_static/js/main.js @@ -1,6 +1,8 @@ $(document).ready(function () { // open external links in separate tab $('a[href^="http://"], a[href^="https://"]').not('a[class*=internal]').attr('target', '_blank'); + $(".fa-arrow-left").attr("class", "fas fa-times"); + $(".fa-arrow-up").attr("class", "fas fa-times"); // toggle hidable sections $(".toggle > *").hide(); $(".toggle .admonition-title").show(); @@ -8,12 +10,7 @@ $(document).ready(function () { $(this).parent().children().not(".admonition-title").toggle(400); $(this).parent().children(".admonition-title").toggleClass("open"); }) + $('#navbar-toggler').click(function() { + $('.fa-times').toggleClass('hidden'); + }); }); -// $(window).on('load', function () { -// console.log("loaded") - -// $('a').click(function () { -// console.log('tag clicked') -// $("body.scrolled").addClass("set-padding") -// }) -// })