Skip to content

Commit

Permalink
updated module css fiels
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai-kodehode committed Apr 10, 2024
1 parent 1819f54 commit 9e92d0b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/Calculator.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
background-color: #ff8b38 !important;
}

.theme2 .circle:hover {
background-color: #ff8b38 !important;
}

.theme3 {
--main-background: hsl(268, 75%, 9%);
--toggle-keypad-background: hsl(268, 71%, 12%);
Expand Down Expand Up @@ -84,10 +80,6 @@
background-color: #94fff9 !important;
}

.theme3 .circle:hover {
background-color: #94fff9 !important;
}

.container {
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion src/Theme.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Theme({ initialTheme, toggleTheme }) {
</div>

<button className={`themeToggle ${theme}`}>
<div onClick={handleToggle} className={styles.circle}></div>
<div onClick={handleToggle} className="circle"></div>
</button>
</div>
</div>
Expand Down
30 changes: 30 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,33 @@
.themeToggle.theme3 {
justify-content: flex-end;
}

.circle {
width: 18px;
height: 18px;
margin: 5px;
border-radius: 50%;
cursor: pointer;
background-color: var(--toggle-equalto-key-background);
}

.themeToggle.theme1 .circle:hover {
background-color: #f96c5b;
}

.themeToggle.theme2 .circle:hover {
background-color: #ff8b38;
}

.themeToggle.theme3 .circle:hover {
background-color: #94fff9;
}

@media only screen and (min-width: 1440px) {
.circle {
width: 14px;
height: 14px;
margin: 5px;
border-radius: 50%;
}
}

0 comments on commit 9e92d0b

Please sign in to comment.