Closed hippogriffic closed 8 years ago
👍 This looks clever and fun, nice one @hippogriffic 🎈
I think that the mixin should be renamed, as I immediately thought this was a mixin for grid layouts/structures.
Ahh, @perry has a good point (dammit)
I think it might be nice and make sense to have a "background patterns" mixins file, where we can put useful things like this, but then maybe have various ones in it (or I guess it could be a folder, maybe mixins - bg-patterns, or something. Not sure what you could rename it to though.. if it was a sass file rather than a folder (eg mixins > bg-patterns.sass) you could just comment that this one is a grid, and the actual mixin could be something like @include bg-pattern-grid
I think that would avoid confusion with grids in the generally used sense of the word.
hmm yeah I didn't think of that, definitely renaming it to specify it's a background seems reasonable
would bg-grid
suffice? putting pattern in there seems really wordy to me but idk, thoughts?
and yeah @pandalion I like the idea of having more mixins like this, maybe I can just rename the file to bg-patterns
or bg-mixins
for now and if we get loads then we can make it a folder instead?
I would go with renaming the file bg-patterns
and rename the mixin bg-grid
inside that, is that okay? :) I mean personally I still prefer bg-grid-pattern
because I think clarity of what it does is more important than how long it is, but.. I don't mind too much. I'm just thinking if you see it in another css file down the line then seeing @include bg-grid-pattern
is clearer to what it does for somebody with no prior knowledge where as seeing @include bg-grid
could look like "oh it's doing some actual css grid cleverness"
yeah ok you've won me over
renamed all the things @incuna/frontend @perry :D
nice :D
@hippogriffic minor gripe, could we maybe change the changelog too "Add mixin for creating grid pattern backgrounds with css gradients"
@incuna/frontend please review