Skip to content

Commit d67a750

Browse files
committed
Extract Grid Style 9 pseudo-element overlay with gradient
- Add :before pseudo-element with 70% height gradient overlay from transparent to black - Include cross-browser gradient support (moz/webkit/o/ms) and IE filter fallback - Position absolutely at bottom with z-index 1 for proper layering - Apply .pp-content-post-grid parent scoping to prevent global conflicts
1 parent 6d598c1 commit d67a750

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

themes/beaver/assets/css/utilities/components/powerpack/content-grid.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,4 +254,22 @@
254254
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=1.1, M12=0, M21=0, M22=1.1, SizingMethod='auto expand')";
255255
filter: progid:DXImageTransform.Microsoft.Matrix(M11=1.1, M12=0, M21=0, M22=1.1, SizingMethod='auto expand');
256256
transform: scale(1.1);
257+
}
258+
259+
/* Grid Style 9 Pseudo-element Overlay with Gradient */
260+
.pp-content-post-grid .pp-content-post.pp-grid-style-9 .pp-post-featured-img a:last-child:before {
261+
content: "";
262+
display: block;
263+
height: 70%;
264+
width: 100%;
265+
position: absolute;
266+
bottom: 0;
267+
z-index: 1;
268+
background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7) 100%);
269+
background: -webkit-gradient(linear, left top, left bottom, color-stop(40%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, .7)));
270+
background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7) 100%);
271+
background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7) 100%);
272+
background: -ms-linear-gradient(top, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7) 100%);
273+
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7) 100%);
274+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#b3000000', GradientType=0);
257275
}

0 commit comments

Comments
 (0)