From c735ac56231137b9d1167b7adaf1ecff16ad7d0c Mon Sep 17 00:00:00 2001 From: Anshuman Singh Date: Wed, 4 Nov 2020 09:00:57 +0530 Subject: [PATCH] Revert "Added Light Theme (#5)" This reverts commit 746367da24a5b805fa10faeb358626f2ed0abb31. --- assets/css/index.css | 49 +++++++------------------------------------- assets/js/index.js | 13 ------------ index.html | 9 +------- 3 files changed, 8 insertions(+), 63 deletions(-) diff --git a/assets/css/index.css b/assets/css/index.css index 57bceae..0b38624 100644 --- a/assets/css/index.css +++ b/assets/css/index.css @@ -1,42 +1,7 @@ -html[data-theme='dark'] { - --text: #fff; - --background: #000; - --linkTag: #0bc; - --linkA: #0f0; - --linkB: #ff0096; - --linkC: #0bc; -} - -html[data-theme='light'] { - --text: #000; - --background: #fff; - --linkTag: #00a8b7; - --linkA: #00cc00; - --linkB: #e50087; - --linkC: #00a8b7; -} - body { background-color: #000; } -.header { - margin: auto; - max-width: 800px; - display: flex; - align-items: center; - justify-content: space-between; -} - -.theme-toggle { - font-size: 1.5rem; - color: var(--text); - border: none; - background: none; - cursor: pointer; - outline: none; -} - #console { font-family: courier, monospace; color: #fff; @@ -48,20 +13,20 @@ body { } a { - color: var(--linkTag); + color: #0bc; text-decoration: none; } #a { - color: var(--linkA); + color: #0f0; } #c { - color: var(--linkC); + color: #0bc; } #b { - color: var(--linkB); + color: #ff0096; } #k { @@ -74,12 +39,12 @@ a { @keyframes change { 0% { - color: var(--linkA); + color: #0f0; } 50% { - color: var(--linkA); + color: #0f0; } 99% { - color: var(--background); + color: black; } } diff --git a/assets/js/index.js b/assets/js/index.js index a9cb7e9..70283c5 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -1,16 +1,3 @@ -var themeToggle = document.getElementById('themeToggle'); - var doc = document.documentElement; - - themeToggle.addEventListener('click', function () { - if (doc.getAttribute('data-theme') === 'dark') { - doc.setAttribute('data-theme', 'light') - themeToggle.innerHTML = ''; - } else { - doc.setAttribute('data-theme', 'dark'); - themeToggle.innerHTML = ''; - } - }) - var Typer = { text: "", accessCountimer: null, diff --git a/index.html b/index.html index 0abbb88..b6c35b4 100644 --- a/index.html +++ b/index.html @@ -1,20 +1,13 @@ - + (put name here) - - -
-

(put name here)

- -
-