Closed avelinet closed 9 years ago
Some thoughts:
$spinner__spacer
variables are setting the x position of the individual dots? And they are kind of private vars… should we declare this kind of variable with the same naming convention as public configurable vars?Looking good though. Awesome to see tests and everything in place!
@ry5n The performance seems fine on device. So long as you don't set opacity 0 and have it going in perpetuity ;)
Yes the animation is simpler by using elements, however I like how clean the html is with the 1 element. I've tried both approaches, and I prefer working with the 1 element approach in the project itself.
A different naming convention for private vars sounds good, did you have something in mind?
@avelinet Rationale seems solid on performance and markup. Nice that it wouldn’t need a template in builds. +1.
I have some very tentative thoughts about private vars. Would be ideal if they did not pollute the global variable space as they normally do when defined at the root level. AFAIK the only way to get that is to wrap the styles (but not the public variables) in basically a null block, like @if true { /* private vars */ /* styles */ }
. Seems gross, but maybe if it’s declared with some kind of mixin that made sense to everyone, it could work.
I’m not sure about any of that, but if it worked out, we shouldn’t need a new naming convention at, which would be a plus.
Couldn't we solve the private variable issue by declaring the variables inside the component blocks?
Example...
.c-component {
$component__size: 16px;
font-size: $component__size;
}
.c-elsewhere {
font-size: $component__size;
}
Working example here, notice that the variable is undefined in the c-elsewhere
block.
The only downside is that the variables would be declared across the stylesheet. Doesn't sound so bad...
Only if we nest everything inside .c-component
, which would mean generating selectors like .c-component .c-component__child
. Not something we should do IMO.
@alyseadlard just shared this with me: https://github.com/tobiasahlin/SpinKit – maybe we can crib some stuff from it?
Ah, thanks @avelinet!
Sorry to leave this for so long. It’s solid. Just a couple of things, picking up from where we left off:
c--scale
variation off the bat? I think we can merge this either way.class="c-fixture-body"
otherwise it’s full-width.+1, let’s get this in!
Thanks for the feedback @ry5n, I've made the updates.
+1, awesome work @avelinet!
Status: Ready to Merge
Reviewers: @jeffkamo @cole-sanderson @mlworks @nastiatikk @kpeatt @ry5n JIRA: CSOPS-1106