Skip to content

Commit

Permalink
updated the ui of toggle dark theme kognise#347
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwithbug committed Oct 2, 2024
1 parent efc97a0 commit 1b20851
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-carrots-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"water.css": patch
---

updated the ui of toggle dark theme
13 changes: 9 additions & 4 deletions docs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ body > footer {
justify-content: space-between;
}

/* toggle dark mode */
/* toggle theme */
#theme-container {
position: fixed;
top: 20px;
Expand All @@ -73,10 +73,12 @@ body > footer {
}

#theme-toggle {
padding: 10px 15px;
background-color: #bebebe;
width: 50px; /* Equal width and height for a perfect circle */
height: 50px;
padding: 0; /* No padding so that the circle shape is maintained */
background-color: #dddbdb;
border: none;
border-radius: 5px;
border-radius: 50%; /* Makes it a circle */
cursor: pointer;
box-shadow: 0 2px 5px #0003;
color: #000;
Expand All @@ -88,4 +90,7 @@ body > footer {

#themeIcon {
height: 25px;
width: 25px;
display: block;
margin: 0 auto; /* Centers the icon within the circle */
}

0 comments on commit 1b20851

Please sign in to comment.