Skip to content

Commit

Permalink
feat: limit height of featured image
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimds committed Oct 25, 2023
1 parent 6bd0c5c commit aa3ed8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
2 changes: 1 addition & 1 deletion web/app/themes/awasqa/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// WPML logic
require_once(__DIR__ . '/src/wpml.php');

$ver = "1.0";
$ver = "1.1";
add_action('wp_enqueue_scripts', function () use ($ver) {
wp_enqueue_style(
'awasqa',
Expand Down
11 changes: 1 addition & 10 deletions web/app/themes/awasqa/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -616,19 +616,10 @@ footer .wp-block-image img {
height: 100%;
position: relative;
}
.awasqa-post-heading .wp-block-post-featured-image::before {
content: "";
background: linear-gradient(180deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.00) 28.52%);
display: block;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
.awasqa-post-heading .wp-block-post-featured-image img {
border-radius: 0;
height: 100%;
max-height: 300px;
-o-object-fit: cover;
object-fit: cover;
}
Expand Down
12 changes: 1 addition & 11 deletions web/app/themes/awasqa/styles/blocks/post-heading.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,10 @@
height: 100%;
position: relative;

&::before {
content: "";
background: linear-gradient(180deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.00) 28.52%);
display: block;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}

img {
border-radius: 0;
height: 100%;
max-height: 300px;
object-fit: cover;
}
}
Expand Down

0 comments on commit aa3ed8e

Please sign in to comment.