ndiego / icon-block

Effortlessly add SVG icons and graphics to your website.
https://nickdiego.com/projects/icon-block/
GNU General Public License v2.0
104 stars 14 forks source link

Allow more units for icon width #17

Closed Jugibur closed 1 year ago

Jugibur commented 1 year ago

It would be great if you allowed more units than pixels. I'm a fan of "em" / "rem" so that the width adjusts to current font sizes. Of course it is always easier to use pixel units in a slider, but just allow the values to change in 0.1 steps and also add an input field so that you can really enter all values.

ndiego commented 1 year ago

Thanks for the feature request @Jugibur. Overhauling the width controls is on my list for the next release. This has been bothering me as well!

Gierand commented 1 year ago

Hi @ndiego, Do you plan to add a field for custom units? It would be great to be able to add eg clamp(1rem, 5vw, 3rem).

Thank you for the well-thought-out plugin.