hi,
I think I’m going mad. I’m trying to apply a floating shadow to the .gb-button
element, by using the ::after
pseudoelement, however no matter what I do the pseudoelement seems to be applying to the child .gb-icon
class ๐ค
the CSS I’m trying to apply to .gb-button
is:
.gb-button::after{
content: "";
position: absolute;
bottom: -35px;
background: #00bfdd;
transform: scaleY(0.2);
width: 90%;
height: 30px;
left: 5%;
border-radius: 50%;
filter: blur(10px);
}
similarly if I apply the above to .gb-button-wrapper
, the floating shadow appears on .gb-button
, but of course it’s much wider than the button because the wrapper fills the width of its parent grid, and flex-stretch: 2;
doesn’t help.
I know the pseudoelement can’t appear outside the bounds of the flex-box, but I can’t think of a way to do this within the flex button layout of GP.
(the floating shadow is supposed to be underneath the rounded buttons, however it’s appearing under the down arrows – completely the wrong element)
what am I missing?