Skip to content

feat(chore): LESS maps instead of css overrides #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 9, 2022

Conversation

lubber-de
Copy link
Member

Description

This change switches from hardcoded icon selectors in icon.overrides to LESS maps in icon.variables so they are easily changeable in a different theme

The previously extra handling of the "500px" class is not needed (in this script) anymore as it would break the LESS map generation and the conversion to "\35 00px" is now done in FUIs 2.9.0 icon.less file itself.

lubber-de added a commit to fomantic/Fomantic-UI that referenced this pull request Sep 30, 2022
This PR moves all icon declarations out of the overrides file and into LESS maps, so the icon selectors are not hardcoded anymore but rendered at compile time.

This now offers easy adjustment of (un)-wanted icons by simpy adjusting the related @icon-map maplist in a possible custom themes icon.variables

Previously that wasn't really possible, as the default theme overrides were always included, so even if your custom theme only needed a handful of icons you always got the whole set anyway.

I did the same for emoji and flag already.

The related script for self creation is adjusted in fomantic/create-fomantic-icons#184
@lubber-de lubber-de merged commit 85fc434 into fomantic:develop Oct 9, 2022
@lubber-de lubber-de deleted the movefromOverridesToVariables branch October 9, 2022 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant