Skip to content

Commit

Permalink
Merge pull request #110 from SamikshaSankar/issue-52
Browse files Browse the repository at this point in the history
Update style of cards when hover
  • Loading branch information
Harshal0902 authored Jun 29, 2021
2 parents 9d0db54 + d6a42b5 commit db23339
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion English/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ p + p {
.card-wrap:hover .card-info {
-webkit-transform: translateY(0);
transform: translateY(0);
background-color: black;
opacity: 0.8;
}
.card-wrap:hover .card-info p {
opacity: 1;
Expand Down Expand Up @@ -161,6 +163,7 @@ p + p {
inset rgba(255, 255, 255, 0.5) 0 0 0 6px;
-webkit-transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
border: 5px solid #0000007a;
}

.card-bg {
Expand All @@ -181,7 +184,7 @@ p + p {
}

.card-info {
padding: 20px;
padding: 15px;
position: absolute;
bottom: 0;
-webkit-transform: translateY(40%);
Expand Down Expand Up @@ -220,6 +223,10 @@ p + p {
font-size: 36px;
font-weight: 700;
text-shadow: rgba(0, 0, 0, 0.5) 0 10px 10px;
background-color: black;
border-radius: 5px;
width: max-content;
padding: 5px;
}

@media (max-width: 920px) {
Expand Down
9 changes: 8 additions & 1 deletion Kannada/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ p + p {
.card-wrap:hover .card-info {
-webkit-transform: translateY(0);
transform: translateY(0);
background-color: black;
opacity: 0.8;
}
.card-wrap:hover .card-info p {
opacity: 1;
Expand Down Expand Up @@ -161,6 +163,7 @@ p + p {
inset rgba(255, 255, 255, 0.5) 0 0 0 6px;
-webkit-transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
border: 5px solid #0000007a;
}

.card-bg {
Expand All @@ -181,7 +184,7 @@ p + p {
}

.card-info {
padding: 20px;
padding: 15px;
position: absolute;
bottom: 0;
-webkit-transform: translateY(40%);
Expand Down Expand Up @@ -220,6 +223,10 @@ p + p {
font-size: 36px;
font-weight: 700;
text-shadow: rgba(0, 0, 0, 0.5) 0 10px 10px;
background-color: black;
border-radius: 5px;
width: max-content;
padding: 5px;
}

@media (max-width: 920px) {
Expand Down

0 comments on commit db23339

Please sign in to comment.