Box Shadow - Library Color With Transparency - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Box Shadow - Library Color With Transparency

GB

Gregory Belaus

SP Page Builder 2 months ago

Hi, I'm trying to use the Box Shadow feature with the Color Library in Page Builder. I can pick a library color fine, but the transparency won't change from 100%. If I set it to 50% for instance, it doesn't take effect and shows 100% when I reopen the dialog. Setting the color manually with transparency works fine, but that defeats the purpose of the Color Library. Also, if I set up an RBGA color in the library I can't select that either.

Can this be worked around with custom CSS for the add-on?

Test URL: https://new.defrankcenter.org

0
11 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 months ago #202021

Hi

Thanks for contacting us and sorry for your issue. Yes, you can solve it via custom CSS. Are you talking about this portion?

-Regards.

0
GB
Gregory Belaus
Accepted Answer
2 months ago #202024

Your screenshot in Loom is not opening. It just spins.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 months ago #202099

Hi

Use this CSS in your custom.css file and modify the shadow to your desired setting.

#sppb-dynamic-content-df838226-36ea-4a12-8828-f309e38e9a75 > .sppb-dynamic-content-collection__item{
      box-shadow: 5px 5px 10px 0px rgb(89 151 179 / 50%) !important;
}
0
GB
Gregory Belaus
Accepted Answer
2 months ago #202123

I think you are missing my point. The Shadow Box is just one example of where you can't use the color library with a transparent color. The Image Overlay button color settings are another. What is the right way to reference the color library variable (for a color with transparency) in CSS such that the color is not hard coded?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 month ago #202260

You can set it from settings, if it does not work then you can solve it via custom CSS.

0
GB
Gregory Belaus
Accepted Answer
1 month ago #202295

Transparency does not work from settings if using a solid library color. And you can't select a library color that has transparency from the picker. Can you provide an example of how to reference a color library variable in CSS? I don't need you to write my CSS, but not sure how to reference library variables in CSS. Thx

0
GB
Gregory Belaus
Accepted Answer
1 month ago #202683

The ability to use Library Colors with many of the transparency settings in multiple add-ins should be a feature request, or at least as it stand now is a bug. Putting in special CSS defeats the purpose of the Color Library.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 month ago #202812

I will add it to our feature request list, so that our DEV team can take care of it.

0
GB
Gregory Belaus
Accepted Answer
1 month ago #202825

Just be clear, you can have a library color with transparency. The problem is that in many places, e.g. Box Shadow, you cannot use it.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 month ago #202920

Ok noted.

0