-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All about the styles: Stylesheet organization / Sass migration / third party themes. #1492
Comments
You know the answer!
Bundle the default skin together for convenience.
@fat best practices LGTM. In particular I have some ideas about reducing nesting and specificity. The one beef I've got with that doc is the idea of handling all vendor prefixes with mixins, which I really object to. I think Autoprefixer is the way to go here. The whole idea of having to learning a new syntax abstraction to handle backwards compatibility is just wrong in principle. Whenever possible, the spec should be the syntax--it's enough to learn as is. Authors should be able to write plain CSS as much as possible using the spec, and have prefixes added as appropriate based on the depth of backwards compatibility specified in an editable JSON config tucked away in
Redundancy in the dist is ok if there's clear file naming, e.g.:
my 2 cents. |
Well to be clear, the default skin would always be bundled with Video.js from a |
Yes, the css source files should be in the main repo. Any alternate skins or alternate formats of the default skin should be in separate repos. |
My two cents for a clean sass introduction :
|
@nervo LGTM. I would only add that the mixin file should be kept lean, and not used for handling prefixing. One of the beauties of autoprefixer is that dropping CSS support for a browser (IE8 someday!) is as simple as deleting a few characters from the gruntfile. |
prefixing would be nice to be handled automatically via autoprefixer or similar project. |
👍 We already use autoprefixer with success |
@nervo did you take a look at the example repo? Everything except for the variable prefixing are already implemented there. |
Oh, sorry, i misunderstood code was already there, nice job. |
I think that's a fair argument, will implement. |
Yep, with base theme merged this is done. — On Fri, May 1, 2015 at 2:16 PM, Gary Katsevman [email protected]
|
We've been talking about doing this for quite some time, but I think it's finally time to actually start a conversation. We've always stuck to a single Less file for three main reasons:
As the time is getting nigh for version 5, one of the big things we'd like to tackle is standardizing practices for creating third party themes. Before we can start talking about third party themes, I think we need to lead by example with our default theme.
stealingusing a lot of @fat's high level Less practices. Is that ok with us? Do we want to use more? Less?I have my own opinions on a lot of these things, but I'm going to keep quiet for now (other than Sass > Less ). Over the weekend I did a fast and dirty conversion to Sass while also breaking the files up a bit into a way that I thought made sense. It's in my personal repos right now and will stay there until we decide otherwise to avoid confusion, but opinions welcome: mmcc/videojs-default-skin. I went ahead and made a codepen as well that shows how this could all potentially work together.
The text was updated successfully, but these errors were encountered: