Re:Modular CSS for Web Components ‒ the VCL Is Here
by vanthome on Saturday April 02, 2016 @08:48AM
(#11411332)
See here: https://github.com/ember-vcl
All these components make use of the VCL. The integration is bassically CSS class names. And more formally, you can add a dependncy to the required NPM packages. However, we did not do this yet in the Ember VCL.
Re:Modular CSS for Web Components ‒ the VCL Is Here
by vanthome on Saturday April 02, 2016 @08:58AM
(#11411350)
Because the whole idea of the VCL is to be JS-less and thus logicless. We want to leave this to Ember, Angular, React etc. That's why we are framework agnostic.
Re:Modular CSS for Web Components ‒ the VCL Is Here
by vanthome on Saturday April 02, 2016 @09:00AM
(#11411356)
Because they not neither modular and thus it's not possible to integrate them with sound package management systems like NPM, bower etc. You can only get the whole blob, with the VCL you can depend on a set of fine grained CSS modules.
Re:Modular CSS for Web Components ‒ the VCL Is Here
by colinramsay on Wednesday March 30, 2016 @09:00AM
(#11388900)
This looks fine. I have a few observations:
- Uses camelCase for classes; Foundation and Bootstrap are hyphen separated, as is FontAwesome. This leads to weird examples like the notification one [1] where you have mixed naming conventions.
- All classes in the docs are prefixed with vcl. I guess this is some kind of namespacing, but again BS and Foundation don't have this, and you end up with slightly uglier and slightly more verbose class names.
It doesn't seem like the tabs or drawer examples work for me so it's not clear how it's handling those but it seems that it's not tied to jQuery, which I definitely do like.
Re:Modular CSS for Web Components ‒ the VCL Is Here
by anonyfox on Wednesday March 30, 2016 @09:38AM
(#11389130)
But with the namespace, you can avoid name collisions. As I see it, VCL components can be used standalone, even when you already use a different UI framework, so this makes sense for me.
Re:Modular CSS for Web Components ‒ the VCL Is Here
by SyneRyder on Wednesday March 30, 2016 @02:23PM
(#11391678)
I think they were pointing out that VCL (Visual Component Library) is already a name used by Borland / Embarcadero Delphi Pascal for their cross-platform UI toolkit.
Re:Modular CSS for Web Components ‒ the VCL Is Here
by tarikjn on Wednesday March 30, 2016 @08:09PM
(#11394029)
At first, I thought this was something similar to CSS Modules (which, btw solved mostly all my grievances with packaging CSS in a large application), but this is something much more akin to Bootstrap or Foundation.
- Uses camelCase for classes; Foundation and Bootstrap are hyphen separated, as is FontAwesome. This leads to weird examples like the notification one [1] where you have mixed naming conventions.
- All classes in the docs are prefixed with vcl. I guess this is some kind of namespacing, but again BS and Foundation don't have this, and you end up with slightly uglier and slightly more verbose class names.
It doesn't seem like the tabs or drawer examples work for me so it's not clear how it's handling those but it seems that it's not tied to jQuery, which I definitely do like.
[1] http://vcl.github.io/#vcl-notification
You can namespace Bootstrap though [1] so perhaps you can change this VCL convention somehow too.
[1] http://stackoverflow.com/questions/13966259/how-to-namespace...
One question: does it have an easy way to implement a responsive off-canvas menu or do I need to roll it by myself?
http://vcl.github.io/#vcl-drawer
In the drawer content, I would use this:
http://vcl.github.io/#vcl-navigation
Just add some JS to control the state and toggle the `vclOpen` class.
>The documentation client needs shadow DOM to render the examples. Please use a browser that supports shadow DOM to view this.
On Firefox 45.0.1
There is an option to try a polyfil version, which seems to be working.
e.g. "vcl css" google suggests "vlc css"
bootstrap, foundation, polymer, pure css, that are names you can remember.
Shameless self-plug: https://medium.com/@Hisako1337/very-fast-naming-process-417f...