Fix transition color problem on darkmode button
This commit is contained in:
parent
51f85208dd
commit
62f696d4e0
1 changed files with 13 additions and 6 deletions
19
index.css
19
index.css
|
@ -86,19 +86,22 @@ body.light-mode nav ul li a:hover {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
background-color: rgb(40, 45, 48);
|
background-color: rgb(40, 45, 48);
|
||||||
color: white;
|
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
.dark-mode-toggle i {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
.dark-mode-toggle:hover {
|
.dark-mode-toggle:hover {
|
||||||
background-color: rgb(28, 33, 37);
|
background-color: rgb(28, 33, 37);
|
||||||
}
|
}
|
||||||
|
|
||||||
body.light-mode .dark-mode-toggle {
|
body.light-mode .dark-mode-toggle {
|
||||||
color: #242424;
|
|
||||||
background-color: #f7f7f7;
|
background-color: #f7f7f7;
|
||||||
}
|
}
|
||||||
|
body.light-mode .dark-mode-toggle i {
|
||||||
|
color: #242424;
|
||||||
|
}
|
||||||
body.light-mode .dark-mode-toggle:hover {
|
body.light-mode .dark-mode-toggle:hover {
|
||||||
background-color: #e0e0e0;
|
background-color: #e0e0e0;
|
||||||
}
|
}
|
||||||
|
@ -535,23 +538,27 @@ footer a {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
background-color: rgb(40, 45, 48);
|
background-color: rgb(40, 45, 48);
|
||||||
color: white;
|
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
.dark-mode-toggle-mobile i {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
.dark-mode-toggle-mobile:hover {
|
.dark-mode-toggle-mobile:hover {
|
||||||
background-color: rgb(28, 33, 37);
|
background-color: rgb(28, 33, 37);
|
||||||
}
|
}
|
||||||
|
|
||||||
body.light-mode .dark-mode-toggle-mobile {
|
body.light-mode .dark-mode-toggle-mobile {
|
||||||
color: #242424;
|
|
||||||
background-color: #f7f7f7;
|
background-color: #f7f7f7;
|
||||||
}
|
}
|
||||||
|
body.light-mode .dark-mode-toggle-mobile i {
|
||||||
|
color: #242424;
|
||||||
|
}
|
||||||
body.light-mode .dark-mode-toggle-mobile:hover {
|
body.light-mode .dark-mode-toggle-mobile:hover {
|
||||||
background-color: #e0e0e0;
|
background-color: #e0e0e0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Content */
|
/* Content */
|
||||||
.home-container {
|
.home-container {
|
||||||
padding-left: 0.75rem;
|
padding-left: 0.75rem;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue