Skip to content

Commit

Permalink
Change style on browse thubmnail design hover
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne authored and corylown committed Dec 16, 2024
1 parent ab60a53 commit e26e601
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions app/assets/stylesheets/spotlight/_browse.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $image-overlay-max-height: 300px;
margin-bottom: $spacer;

.nav-link {
margin-bottom: $spacer * .75;
margin-bottom: $spacer * 0.75;
}
}

Expand All @@ -61,8 +61,13 @@ $image-overlay-max-height: 300px;
overflow: hidden;
position: relative;

img {
.img-responsive {
transition: all 0.5s ease;
width: 100%;

&:hover {
filter: brightness(70%);
}
}
}

Expand All @@ -71,7 +76,11 @@ $image-overlay-max-height: 300px;
bottom: 0;
left: 0;
width: 100%;
background: linear-gradient(0deg, rgba(46, 45, 41, 0.7) 70%, rgba(46, 45, 41, 0) 100%);
background: linear-gradient(
0deg,
rgba(46, 45, 41, 0.7) 70%,
rgba(46, 45, 41, 0) 100%
);
color: $white;
padding: 50px 20px 20px 20px;
text-align: center;
Expand All @@ -93,10 +102,6 @@ $image-overlay-max-height: 300px;
text-transform: uppercase;
}
}

&:hover {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}
}

@media screen and (max-width: breakpoint-max("sm")) {
Expand All @@ -106,19 +111,29 @@ $image-overlay-max-height: 300px;
max-height: $image-overlay-max-height;
max-width: 350px;
}
.text-overlay .browse-category-title {font-size: $h3-font-size;}
.text-overlay .browse-category-title {
font-size: $h3-font-size;
}
}
@media screen and (min-width: breakpoint-min("sm")) and (max-width: breakpoint-max("md")) {
$image-overlay-max-height: 240px;
.image-overlay {max-height: $image-overlay-max-height;}
.image-overlay {
max-height: $image-overlay-max-height;
}
}
@media screen and (min-width: breakpoint-min("md")) and (max-width: breakpoint-max("lg")) {
$image-overlay-max-height: 250px;
.text-overlay .browse-category-title {font-size: $h4-font-size;}
.image-overlay {max-height: $image-overlay-max-height;}
.text-overlay .browse-category-title {
font-size: $h4-font-size;
}
.image-overlay {
max-height: $image-overlay-max-height;
}
}
@media screen and (min-width: breakpoint-min("lg")) {
.image-overlay {max-height: $image-overlay-max-height;}
.image-overlay {
max-height: $image-overlay-max-height;
}
}
}

Expand Down

0 comments on commit e26e601

Please sign in to comment.