Coder Social home page Coder Social logo

The Grid about base HOT 9 CLOSED

getbase avatar getbase commented on May 28, 2024
The Grid

from base.

Comments (9)

hejamartin avatar hejamartin commented on May 28, 2024

Hi,

I am just starting up with this base - so this is awesome. But the docs does not really tell me so much - you got row-3 and so which seems to be useful, but they are gone from the SASS file.

Well, i will probably manage that by my self, but I guess you are working on many things as well, and not only this.

from base.

matthewhartman avatar matthewhartman commented on May 28, 2024

Hey Hejamartin,

I took out the row classes because I was trying to minimise the base ;)

I just added one .row helper to keep it lean and clean.

Let me know what you think.

Cheers.

Matt

from base.

hejamartin avatar hejamartin commented on May 28, 2024

It works good without the extra row-helpers, I see that it is better to take a look inside style.scss than in the documentation at the moment. Good move.

I just discovered the class .container-full, in which I think should be instead of the container really.
The container has its padding, in which makes the 960->940 to be 930. And the 940px is already what I would assume is a good width, and having 10px extra of margins.

Here is a screenshot.
image

You see that the three col-1-3 and the col-12 does not add up in width, and that seems cumbersome to me. Am I dealing with this the wrong way?

from base.

hejamartin avatar hejamartin commented on May 28, 2024

Oh, I guess it has to deal with the 33% *3 = 99% of course.
And I am not to blame you, more perhaps that there are some round-of errors and other browser-issues.

But nevertheless, what is your thoughts. Some designs needs the layout as the one above, and to have it "pixel-perfect" with alignment and so. But maybe there is no solution in a neat way to solve this?

You do use decimals on other columns, but on the col-4/col-1-3 there is only 33% given?

from base.

hderaps avatar hderaps commented on May 28, 2024

Love your work Matt, I have been using Base for quite a while. So what made you change the grid system and move away from col seven to col col-7? Why did you opted for a padding instead of an actual gap between columns? I can see the addition of Push and Pull which is nice.

from base.

matthewhartman avatar matthewhartman commented on May 28, 2024

Hey Hugues,

Thank you for your positive feedback.

A few people made the comment that it was hard to visualise building there grid using words and said it would be a lot easier to use number (which makes sense) - hence the change.

I've changed from margin to padding as the grid is using box-border sizing, hence it's easier to calculate column widths.

Let me know if you have any further concerns.

Cheers,

Matt

from base.

matthewhartman avatar matthewhartman commented on May 28, 2024

Hey Guys,

Apologies for the late reply. I have not been getting emails when people are commenting on the issues (even though I have email notifications turned on).

Anyway, it looks like you guys found a few issues with the grid columns not rounding correctly.

I can work around this problem with the following:

  1. Change desktop columns to be hard coded px sizes
  2. Make the last column float right to fill the space, but keep in mind the margin space will be slightly larger for the last column

Let me know your thoughts for the above.

Also, keep in mind that due to the nature of responsive web design, the pixel perfection approach is out of the window ;)

Cheers!

Matt

from base.

matthewhartman avatar matthewhartman commented on May 28, 2024

Hey Guys,

I've found out how to fix the percentage issue cross browser with pure CSS!

Going to do some more testing to ensure it's 100% and push the changes through.

Cheers!

Matt

from base.

filljoyner avatar filljoyner commented on May 28, 2024

Great work!

On Friday, April 4, 2014, Matthew Hartman [email protected] wrote:

Hey Guys,

I've found out how to fix the percentage issue cross browser with pure CSS!

Going to do some more testing to ensure it's 100% and push the changes
through.

Cheers!

Matt

Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-39621066
.

Philip Joyner
[email protected]
@filljoyner

from base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.