saeedalipoor / icono

One tag One icon, no font or svg, Pure CSS
http://git.io/icono
MIT License
4k stars 301 forks source link

Should explicitly set `border-box: content-box` for :before/:after, if needed #52

Open jkjustjoshing opened 5 years ago

jkjustjoshing commented 5 years ago

I'm trying to use icono-chain with a Bootstrap-style CSS reset. One part of this is:

* {
    box-sizing: border-box;
}

However, it seems that icono assumes the box sizing on the :before and :after elements will be content-box (browser default). Since setting the box-sizing of every element to border-box is fairly common, content-box should explicitly be set on [class*="icono-"]:before, [class*="icono-"]:after.