Skip to content

Commit

Permalink
Merge pull request #179 from Kartikey2011yadav/main
Browse files Browse the repository at this point in the history
dark mode cards on blogs page
  • Loading branch information
Kritika30032002 authored Oct 4, 2024
2 parents b8731ea + 7984736 commit be1ff59
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions public/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ body {
}

.card {
border: 1px solid #e0e0e0;
/* border: 1px solid #e0e0e0; */
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition:
Expand All @@ -242,7 +242,7 @@ body {
.card:hover {
transform: scale(1.01);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
background-color: #f8f8f8;
/* background-color: #f8f8f8; */
}

.card-image {
Expand Down Expand Up @@ -278,6 +278,24 @@ body {
margin-left: 29px;
margin-right: 30px;
}
/* Dark Mode Styles */
.dark-mode .card {
background-color: #333;
color: #e0e0e0;
box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.dark-mode .card:hover {
box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.dark-mode .card-title {
color: #90caf9;
}

.dark-mode .card-content {
color: #bbb;
}

.detail-container{
width: 80%;
Expand Down Expand Up @@ -446,4 +464,4 @@ body.dark-mode .moon-icon {
}
.contact.dark-mode {
box-shadow: 0 0 10px rgba(255, 255, 255, 0.36);
}
}

0 comments on commit be1ff59

Please sign in to comment.