Skip to content
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

calc()-grid #51

Closed
wants to merge 1 commit into from
Closed

calc()-grid #51

wants to merge 1 commit into from

Conversation

fspoettel
Copy link
Contributor

@fspoettel fspoettel commented Jul 28, 2016

  • Use calc() and margin-left() for grids
  • TODO: Add back support for collapsing grids (How?)
  • TODO: Add support for setting different gutters (How?)

To implement all of this, a bigger rewrite is needed. This PR will be a basis for that.

mention #42
cc @mmjaeger

 - Use calc() and margin-left() for grids
 - TODO: Add back support for collapsing grids (How?)
 - TODO: Add support for setting different gutters (How?)
@fspoettel fspoettel changed the title Basic calc()-grid calc()-grid Jul 28, 2016
@fspoettel fspoettel added this to the v4.0 milestone Jul 28, 2016
@fspoettel fspoettel self-assigned this Jul 28, 2016
@mmjaeger
Copy link

Thanks - I'm going to play around with it and let you know how it goes -
just out of curiosity, why did you decide to go for margin-left for the
gutter as to halve margin left and right. do you want me do concentrate on
something specific while testing

On Thu, Jul 28, 2016 at 6:24 AM, Felix Spöttel notifications@github.com
wrote:

  • Use calc() and margin-left() for grids
  • TODO: Add back support for collapsing grids (How?)
  • TODO: Add support for setting different gutters (How?)

cc @mmjaeger https://github.com/mmjaeger

You can view, comment on, or merge this pull request online at:

#51
Commit Summary

  • Basic calc()-grid

File Changes

Patch Links:


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#51, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABe4lEVikc6Knxrn_HyHF3G37k4He98sks5qaK13gaJpZM4JXNI6
.

Marco M. Jaeger
http://net4visions.com

@fspoettel
Copy link
Contributor Author

fspoettel commented Jul 28, 2016

Using a negative margin-right that overflows the visible window will cause horizontal scrollbars to appear. Consider the following:

body {
  padding: 0.5rem;
}

.grid {
  @include g;
}

One would need to set overflow-x on a container element of the grid to avoid the overflow. I'm not comfortable with setting this globally, so I'd have to implement @mixin container() or c() that does that. I'm trying to figure out how to write hagrid without using the negative margins (it is sorta possible, but not with the syntax i'm using right now) first and if that works, I'll switch to a halved based left & right approach.

@fspoettel
Copy link
Contributor Author

On another note, there is a test-setup in __test__. You can build it by running npm install and then gulp in the repository-folder. It watches the scss in /scss and /__test__ for changes and recompiles so that you can instantly check if your changes broke some of the tests. I don't think that I implemented BrowserSync / LiveReload for this, so you have to reload the browser to see changes to the scss

@fspoettel fspoettel closed this Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants