Code Monkey home page Code Monkey logo

Comments (3)

scottkellum avatar scottkellum commented on June 17, 2024

This is what the gutter-context function is for: https://github.com/scottkellum/Singularity/blob/master/stylesheets/singularitygs/_helpers.sass#L20-21

Not sure how you are generating column styles with singularity, but you would use this in place of the gutter variable.

defaults (overall grid):

$columns: 1, 2, 3, 4
$gutter: 2%

Your vars for your nested grid spanning cols 1-3 would look like this:

$gutter: gutter-context(2%, grid-span(3, 1))
$columns: 1, 2, 3

Probably a way to simplify that, but it creates a two percent gutter for the context of the first three columns.

from singularity.

codingdesigner avatar codingdesigner commented on June 17, 2024

digging deeper. This is working for me. I'm going to use this in a real project and contrib stuff along the way. this design has to support rtl layouts, so I'm sure I'll have to address that along the way.

from singularity.

scottkellum avatar scottkellum commented on June 17, 2024

Awesome, yeah haven’t dug into rtl yet. Logic is pretty modular so might not be an issue to write the grid rtl, but lots of parts like lists you might want to flip as well. But you might not want to flip those because CSS is ltr.

from singularity.

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.