Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Aug 26, 2021
1 parent d40cbc0 commit f66cccd
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
14 changes: 9 additions & 5 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -8471,12 +8471,17 @@ body.archive .note .btn, body.archive .card .btn {
padding: 5px;
margin: 1px;
position: relative;
-webkit-transition: -webkit-filter 0.3s;
transition: -webkit-filter 0.3s;
-o-transition: filter 0.3s;
transition: filter 0.3s;
transition: filter 0.3s, -webkit-filter 0.3s;
overflow: hidden; }
.post-thumbnail, .post-thumbnail .post-thumbnail-img {
min-height: 320px; }
.post-thumbnail:hover .post-thumbnail-img {
-webkit-filter: brightness(40%) opacity(1);
filter: brightness(40%) opacity(1);
-webkit-filter: brightness(45%) opacity(1);
filter: brightness(45%) opacity(1);
-webkit-transition: -webkit-filter 0.3s;
transition: -webkit-filter 0.3s;
-o-transition: filter 0.3s;
Expand All @@ -8491,8 +8496,8 @@ body.archive .note .btn, body.archive .card .btn {
left: 0;
right: 0;
bottom: 0;
-webkit-filter: brightness(55%) opacity(0.95);
filter: brightness(55%) opacity(0.95);
-webkit-filter: brightness(40%) opacity(0.95);
filter: brightness(40%) opacity(0.95);
-webkit-transition: -webkit-filter 0.3s;
transition: -webkit-filter 0.3s;
-o-transition: filter 0.3s;
Expand All @@ -8506,7 +8511,6 @@ body.archive .note .btn, body.archive .card .btn {
position: absolute;
bottom: 0;
color: #fff;
background: rgba(25, 25, 25, 0.8);
min-height: 9.5rem;
padding: 5px;
font-weight: bold; }
Expand Down
2 changes: 1 addition & 1 deletion css/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion loop-blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$dominant_color_css = str_replace( ']', ' )', $dominant_color_css );

?>
<div class="post-thumbnail post-thumbnail-<?php echo $page; ?>-<?php echo $index; ?>" style="<?php echo $dominant_color_css; ?>">
<div class="blog-post-thumbnail post-thumbnail post-thumbnail-<?php echo $page; ?>-<?php echo $index; ?>" style="<?php echo $dominant_color_css; ?>">
<a href="<?php echo $link_url; ?>" title="<?php get_the_title(); ?>">
<img class="post-thumbnail-img lazy-load"
src="<?php echo get_the_post_thumbnail_url( $post_thumbnail_id, 'medium_large' ); ?>"
Expand Down
12 changes: 9 additions & 3 deletions src/styles/blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,31 @@
min-height: 320px;
}

transition: filter 0.3s;

&:hover{
.post-thumbnail-img{
filter: brightness(40%) opacity(1);
filter: brightness(45%) opacity(1);
transition: filter 0.3s;

}
}

overflow: hidden;
}

.blog-post-thumbnail{
// background: linear-gradient(0deg, rgba(2,0,36,1) 0%, rgba(0,0,0,0) 100%);
}

.post-thumbnail-img{
position: absolute;
object-fit: cover;
top: 0;
left: 0;
right: 0;
bottom: 0;
filter: brightness(55%) opacity(0.95);
filter: brightness(40%) opacity(0.95);
transition: filter 0.3s;
}

Expand All @@ -68,7 +75,6 @@
position: absolute;
bottom: 0;
color: #fff;
background: rgba(25,25,25,0.8);
min-height: 9.5rem;
padding: 5px;
font-weight: bold;
Expand Down

0 comments on commit f66cccd

Please sign in to comment.