-
Notifications
You must be signed in to change notification settings - Fork 71
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
Offsets #12
Comments
You're right that it would increase the size greatly but it is something I have considered adding (I just haven't found the time yet). I realise it doesn't help your use case with Concrete5 but one thing you can do is use empty columns to offset things, or just add horizontal padding to the |
I figured you could use an empty column - although, if you're a purist, the semantic side of things gets a bit let down ! I wonder if Concrete5 would accept it though - probably worth a try. |
Yea I agree totally. I'd like to add offsets one day as an optional extra for sure. |
I think I've cracked the offset question !! Mostly by trial and error...
(the magic is simply adding "- 1" to give "@reflex-columns - 1 ") in grid.less add:
I don't know about auto-columns, but it'll be a similar process. Having said that I can't remember how flex plays with margins... (I sort of dip into site building every six months or so... I'm not a full time swimmer !) |
Just been looking here [(http://codepen.io/goerk/pen/uFkny)] Do we want to go there...? Although |
With flexbox you can controll ordering => https://developer.mozilla.org/en-US/docs/Web/CSS/order. Are you wanting offsets just for visual indention? |
Yea, just for visual indentation but I'm not entirely sure it's required. |
Actually I don't think it's order that would control offsets it's more justify-content that would help. However this might not give the precision you want. |
This was raised in another issue but I am not sure I want to add it to the core as it will bloat it out and it's fairly trivial to add it as you have found. I may reconsider though. |
I think the best procedure may well be to add the code in the .LESS files but commented out. The user could activate it if necessary (after due warning about bloat!). |
I created a pull request for this feature #35 |
Perhaps use the pattern of variables controlling inclusion? - i.e. $use-offsets: false!default; and wrap the code in question in an if statement? its cleaner than commenting in/out. |
Having tried this out, I am going to add @andreasisaak proposal to the core library as after gzip it only adds 1k to filesize and is very useful. |
I like this grid system - particularly that you can write semantic html rather than
<div class="row">
etc.However, I'm developing for a site using Concrete5 which has the capacity to do on-the-fly layouts but, to set this up, you have to provide "offset" classes. I suppose I could basically copy the bootstrap offset system, but there may be a better way to do it.
I realize including offset classes would go a good way to doubling the size of the file - but perhaps have it in a less file which could be commented out by default and included if wished ?
The text was updated successfully, but these errors were encountered: