3 ms·
I put together a micro-pattern for working with WebComponents that I really wish were cross browser compatible as it is. It works in Firefox and Chrome and it i
by ehnto 8y ago
I put together a micro-pattern for working with WebComponents that I really wish were cross browser compatible as it is. It works in Firefox and Chrome and it is partly how I wish the web would move forward.
There is no technical limitations to making encapsulated portable pieces of html, css and js, yet it seems a very uncommon practice to make libraries of small re-usable components, even if they are boutique to you or your company. I think that is partly down to how we go about specing out and producing websites, and partly down to the fact that many don't realise you can already do it.
https://polylab.co/projects/polyblocks.html https://polylab.co/projects/polyblocks.html
An important part of that is well encapsulated CSS, and theming on top of that, something I have written a little bit about as well.
https://polylab.co/articles/ccm-contexts-and-components-css.html https://polylab.co/articles/ccm-contexts-and-components-css....