From dd17f1e4eca8b213020f3715d4e102f970939189 Mon Sep 17 00:00:00 2001 From: Jayesh Pandey <116277383+jayeshpandey01@users.noreply.github.com> Date: Fri, 10 May 2024 20:20:50 +0530 Subject: [PATCH 1/2] Add Dark Mode and light Mode by using Html, CSS and JavaScript --- assests/style.css | 26 ++++++++++++++++++++++++++ index.html | 17 +++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/assests/style.css b/assests/style.css index 0c24eed..b9d8815 100644 --- a/assests/style.css +++ b/assests/style.css @@ -222,4 +222,30 @@ body{ } .fa-linkedin-square:hover{ color : rgb(0, 119, 181); +} + + +/* Dark and Light Mode */ +.switch { + align-self: flex-end; + margin: 0.9375rem; +} +.inner-switch { + display: inline-block; + cursor: pointer; + border: 1px solid #555; + border-radius: 1.25rem; + width: 3.125rem; + text-align: center; + font-size: 1rem; + padding: 0.1875rem; + margin-left: 0.3125rem; +} + +.dark, +.dark .nav, +.footer { + background-color: #222; + color: #e6e6e6; + border-color: #e6e6e6; } \ No newline at end of file diff --git a/index.html b/index.html index d9bebf8..15982a1 100644 --- a/index.html +++ b/index.html @@ -35,8 +35,25 @@