Coder Social home page Coder Social logo

Grid helpers & gutter about susy HOT 4 CLOSED

oddbird avatar oddbird commented on July 20, 2024
Grid helpers & gutter

from susy.

Comments (4)

mirisuzanne avatar mirisuzanne commented on July 20, 2024

I think I would simplify that to:

// pull(<columns> | "gutter" [, <context>]);
@include pull(1, $main); // 1 column pull
@include pull(gutter, $main); // 1 gutter pull

There is no common need for pull/pushing an arbitrary number of gutters.

from susy.

silvenon avatar silvenon commented on July 20, 2024

Yeah, you're right, but I suggested that for the sake of consistency. So you think it would be a good idea? Then I can start working on that...

from susy.

silvenon avatar silvenon commented on July 20, 2024

Actually, I'm trying to figure out is there really a need for this feature, because now I remembered you can set the gutter width to 0, which can help you achieve more complex designs...

Maybe using this feature would only screw up your workflow, because if you push/pull something by $gutter-width, you have to make up for it somewhere else, meaning you probably have to add padding of $gutter-width somewhere.

What do you think?

from susy.

mirisuzanne avatar mirisuzanne commented on July 20, 2024

Yes, that's why it isn't in place currently. I made it possible to do any math you want using the functions, but I only provide shortcuts for the simple cases. Most likely you are doing something like this:

margin-left: - gutter($main);
padding-left: gutter($main);

If you use it regularly, it's probably best to create a mixin of your own. Closing for now, unless there's a strong argument for making it happen.

from susy.

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.