banthagroup / fslightbox

An easy to use vanilla JavaScript plug-in without production dependencies for displaying images, videos, or, through custom sources, anything you want in a clean overlying box.
MIT License
351 stars 30 forks source link

Change the default font family #105

Closed gui-com-pt closed 4 years ago

gui-com-pt commented 4 years ago

Hi,

I'm trying to change the default font family used because the Roboto is only used for this library on the website i'm working on and i wanted to avoid that extra request.

From what i understood the CSS styles are injected from JS. I'm developing a WP theme with Sage Roots and importing the library but i can't find any option in the ES module to change it.

Am i able to disable the injection of the CSS using JS? That way i may be able to use a variable in Container.scss to define the font-family and replace it, then i would import the SASS styles.

What do you think about it?

Thanks in advance!

piotrzdziarski commented 4 years ago

Just released new version without Roboto font - replaced it with available in CSS Helvetica.