You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yzl
93958d0fb0
|
1 year ago | |
---|---|---|
.. | ||
dist | 1 year ago | |
images | 1 year ago | |
svg | 1 year ago | |
templates | 1 year ago | |
.gitignore | 1 year ago | |
README.md | 1 year ago | |
package-lock.json | 1 year ago | |
package.json | 1 year ago |
README.md
Zabbix UI icon set
Having a sprite file is not a terrible idea in general, but it has its set of problems.
- Different icon colors or icon sizes create duplicates in the sprite file:
- Sprite file becomes a junkyard of icons because of the lack of grids:
- Many icons are referenced multiple times with different names. This makes really hard to find the right icon in a set:
Icon font
To mitigate the problems of the sprite files it was decided to create an icon font that could be used across the Zabbix Frontend.
Build process
- Execute
npm install
to initialize the project. - Add icons into the
svg
directory (if needed). Existing icons have the 4.8mm x 4.8mm max size and are centered into a 6mm x 6mm image. - Execute
npm run generate
to create icon font. - Execute
npm run cleanup
to remove extra files created by the generation process.
That's it! Now dist
directory contains all the required files including the index.html
file with the icon list demo.