Skip to content

Commit

Permalink
Merge pull request #319 from Sushil010/fix/dark-mode-issue
Browse files Browse the repository at this point in the history
fix: fixed card update issue while mode switch
  • Loading branch information
Gyanthakur authored Oct 31, 2024
2 parents b16a0b3 + 781af88 commit 483b0df
Showing 1 changed file with 64 additions and 10 deletions.
74 changes: 64 additions & 10 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
--color-body-bg: #121212;
--color-profile-card-bg: #2f4054;
--color-profile-border: #e35205;
--color-text: #ffffff;
}

::-webkit-scrollbar {
Expand All @@ -41,7 +42,7 @@ html{
body {
width: 100vw;
background-color: var(--color-body-bg);
color: #ffffff;
color: var(--color-text);
font-family: Arial, sans-serif;
text-align: center;
overflow-x: hidden;
Expand Down Expand Up @@ -167,7 +168,15 @@ img#icon {
body,
.title,
h3,
footer{
footer,
.profile,
.profile .lines::after,
.social a,
#searchInput,
.about-container,
.about-section,
.about-content,
.contribution-steps li {
transition: background-color 500ms ease, color 500ms ease;
}

Expand Down Expand Up @@ -202,7 +211,7 @@ body .title {
transition: background-color 0.3s ease, transform 1s ease,
border-color 1s ease;
overflow: hidden;
background-color: var(--color-body-bg);
background-color: var(--color-profile-card-bg);
display: inline-block;
}

Expand Down Expand Up @@ -287,7 +296,7 @@ body .title {
content: "";
position: absolute;
inset: 3px;
background: var(--color-body-bg);
background: var(--color-profile-card-bg);
border-radius: 7px;
}

Expand All @@ -300,7 +309,7 @@ body .title {
height: 100px;
border-radius: 50%;
margin-bottom: 10px;
outline: 0.5rem solid var(--color-body-bg);
outline: 0.5rem solid var(--color-profile-card-bg);
}

.name {
Expand Down Expand Up @@ -371,7 +380,7 @@ body .title {
}

.social a {
color: #ffffff;
color: var(--color-text);
margin: 0 10px;
font-size: 24px;
text-decoration: none;
Expand Down Expand Up @@ -446,7 +455,7 @@ button:hover {
border: none;
border-radius: 100rem;
background-color: var(--color-profile-card-bg);
color: white;
color: var(--color-text);
font-size: 16px;
box-shadow: 0.2rem 0.4rem 2rem #2f405450;
transition: box-shadow 0.5s ease-in-out;
Expand All @@ -456,6 +465,10 @@ button:hover {
color: rgba(255, 255, 255, 0.37);
}

.light-background #searchInput::placeholder {
color: rgba(0, 0, 0, 0.37);
}

#searchInput:focus {
outline: none;
box-shadow: 0.2rem 0.4rem 2rem #2f405497;
Expand Down Expand Up @@ -522,6 +535,47 @@ header {

.light-background {
background-color: #fff;
color: #000;
}

.light-background .profile {
background-color: #f5f5f5;
color: #000;
}

.light-background .profile .lines::after {
background-color: #f5f5f5;
}

.light-background .pfp img {
outline-color: #f5f5f5;
}

.light-background .social a {
color: #000;
}

.light-background #searchInput {
background-color: #f5f5f5;
color: #000;
}

.light-background .about-container {
background-color: #f5f5f5;
color: #000;
}

.light-background .about-section {
background-color: #fff;
color: #000;
}

.light-background .about-content {
color: #000;
}

.light-background .contribution-steps li {
color: #000;
}

.icon-color {
Expand Down Expand Up @@ -638,7 +692,7 @@ footer {
--color-profile-card-bg
);
border-radius: 10px;
color: var(--color-white);
color: var(--color-text);
font-family: "Poppins", sans-serif;
}

Expand All @@ -661,7 +715,7 @@ footer {

.about-content {
font-size: 16px;
color: var(--color-white);
color: var(--color-text);
margin-bottom: 10px;
}

Expand All @@ -673,7 +727,7 @@ footer {
.contribution-steps li {
padding: 10px;
font-size: 16px;
color: var(--color-white);
color: var(--color-text);
transition: background-color 0.3s ease, transform 0.3s ease,
box-shadow 0.3s ease;
border-radius: 4px;
Expand Down

0 comments on commit 483b0df

Please sign in to comment.