picturepan2 / spectre

Spectre.css - A Lightweight, Responsive and Modern CSS Framework
https://picturepan2.github.io/spectre/
MIT License
11.31k stars 804 forks source link

make loading element position important #650

Open endorama opened 3 years ago

endorama commented 3 years ago

When the .loading class is applied to a .tooltip, the loading element is wrongly positioned. This is due to the left and top rules in the .tooltip::after class.

Solution to this issue is to set !important to left and top rules in the .loading::after class.

Fixes #649

endorama commented 3 years ago

If !important should be removed a possible solution may be to use a specific selector targetting the .tooltip + .loading combination. Let me know if that is a preferred solution.