Skip to content

Commit

Permalink
Merge pull request #261 from narayan954/deepsource-transform-864d84e7
Browse files Browse the repository at this point in the history
  • Loading branch information
narayan954 authored Mar 14, 2023
2 parents c7bf8b1 + 61a1fe1 commit fae0e4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 9 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const useStyles = makeStyles((theme) => ({
position: "absolute",
width: 250,
borderRadius: theme.shape.borderRadius,
boxShadow:"var(--color-shadow) 0px 5px 15px",
boxShadow: "var(--color-shadow) 0px 5px 15px",
padding: theme.spacing(2, 4, 3),
color: "var(--color)",
},
Expand Down Expand Up @@ -103,14 +103,20 @@ function App() {
useEffect(() => {
if (document.body.classList.contains("darkmode--activated")) {
window.document.body.style.setProperty("--bg-color", "black");
window.document.body.style.setProperty("--color-shadow", "rgba(255, 255, 255, 0.35)");
window.document.body.style.setProperty(
"--color-shadow",
"rgba(255, 255, 255, 0.35)"
);
window.document.body.style.setProperty("--color", "white");
window.document.body.style.setProperty("--val", 1);
document.getElementsByClassName("app__header__img").item(0).style.filter =
"invert(100%)";
} else {
window.document.body.style.setProperty("--bg-color", "white");
window.document.body.style.setProperty("--color-shadow", "rgba(0, 0, 0, 0.35)");
window.document.body.style.setProperty(
"--color-shadow",
"rgba(0, 0, 0, 0.35)"
);
window.document.body.style.setProperty("--color", "#2B1B17");
window.document.body.style.setProperty("--val", 0);
document.getElementsByClassName("app__header__img").item(0).style.filter =
Expand Down
7 changes: 3 additions & 4 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,13 @@ input {
width: 50px;
height: 50px;
}
.have-account{
.have-account {
color: var(--color);
font-size: 13px;
margin: 10px 0;

}
.have-account span {
color: rgb(104, 85, 224);
border-bottom: 2px solid rgb(104, 85, 224);
cursor:pointer;
}
cursor: pointer;
}

0 comments on commit fae0e4a

Please sign in to comment.