diff --git a/index.html b/index.html index f61ba36..3e8def8 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - GoLang + GoDocs diff --git a/script.js b/script.js index 597ce39..ea65d60 100644 --- a/script.js +++ b/script.js @@ -13,13 +13,14 @@ darkmodeBtn.addEventListener('click', () => { }) function changeToDark(){ + // Body and Nav section body.classList.remove('light-mode') body.classList.add('dark-mode') - nav.style.color = 'white' nav.style.backgroundColor = 'black' nav.style.borderColor = 'white' + // Nav Links for (let i = 0, len = link.length; i < len; i++) { link[i].style.color = 'white' link[i].style.backgroundColor = 'black' @@ -34,18 +35,18 @@ function changeToDark(){ } function changeToLight(){ + // Body and Nav section body.classList.remove('dark-mode') body.classList.add('light-mode') - - nav.style.color = 'black' nav.style.backgroundColor = 'white' nav.style.borderColor = 'black' - for (let i = 0, len = link.length; i < len; i++) { + // Nav Links + for (let i = 0, len = link.length; i < len; i++) { link[i].style.color = 'black' link[i].style.backgroundColor = 'white' - link[i].style.borderColor = 'white' + link[i].style.borderColor = 'black' } // Dark mode button diff --git a/style.css b/style.css index d4382ed..796dc20 100644 --- a/style.css +++ b/style.css @@ -52,6 +52,7 @@ a { min-width: 300px; max-height: 500px; padding: 0px 10px; + margin-bottom: 3rem; } .nav-link { @@ -143,10 +144,10 @@ pre { position: sticky; top: 0; border-right: 2px solid black; + margin-bottom: 2rem; } .nav-link { - color: black; font-size: 1.5rem; } @@ -157,5 +158,4 @@ pre { pre { margin-left: 2rem; } - -} \ No newline at end of file +}