I
I
Ilya2019-10-23 20:58:32
css
Ilya, 2019-10-23 20:58:32

LetyShops preempts styles, how can I make the styles file at the head without !important?

There was a strange problem, the "LetyShops" application is installed in the browser, the Google font material icons is used in the template, respectively, in the places of the connected icons there is the ".material-icons" class.
5db092a391ae4302696361.png
Everything works in all browsers, but suddenly I found styles were broken in FireFox
Proofs (#letyshops-notification - indicates that the styles belong to this application):

spoiler
5db0930a4cbb7134977572.png
5db0933a04b78052262046.png
5db09360e9628649582669.png

Realizing that this problem is due to the installed application, I first of all thought in the direction of !important, but such a moment may arise, in half a year I will forget about this problem and will expand the code, write a couple of lines of styles again and before I find this bug it will see several users, the question is, is it possible to somehow limit / disable the influence of external styling?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-10-23
@iliks

I ran all my css files through regular expressions, replaced ".material-icons" with ".material-icons_my", and also ran all template files to replace the class.
In general, I came to radical measures, I hope my experience will be useful to someone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question