Code Monkey home page Code Monkey logo

Comments (6)

micahgodbolt avatar micahgodbolt commented on June 17, 2024

So the grid span function returns a column-span using it's given attributes. We could let grid-span accept multiple sets of attributes along with breakpoints, and then walk through them creating all of the media queries. Similar to grid-objects. It would certainly make sense to have a similar syntax for the function and object.

Am I understanding this issue correctly?

from singularity.

Snugug avatar Snugug commented on June 17, 2024

There are a bunch of functions that need to be updated to to work with $grids, so I'm going to do a bit of refactoring today to get that to work.

from singularity.

scottkellum avatar scottkellum commented on June 17, 2024

FYI, doing a lot of restructuring in my branch: https://github.com/scottkellum/Singularity/tree/grid-output-api

mostly breaking things down into separate files.

from singularity.

scottkellum avatar scottkellum commented on June 17, 2024

Also, I really love the logic you set up for this, possibly break this into a separate function that returns nth($grids, 1)?

Maybe structured like this? that way it can be easily injected into other functions/mixins?

@function find-grid() {
  @if $length > 0 {
    @return nth($grids, 1);
  @else {
    @return $columns;
  }
}

from singularity.

Snugug avatar Snugug commented on June 17, 2024

Yah, I was going to spend some time today breaking the logic in grid-span into find-columns, find-gutter, and find-padding.

On Oct 28, 2012, at 11:26 AM, Scott Kellum [email protected] wrote:

Also, I really love the logic you set up for this, possibly break this into a separate function that returns nth($grids, 1)?

Maybe structured like this? that way it can be easily injected into other functions/mixins?

@function find-grid() {
@if $length > 0 {
@return nth($grids, 1);
@else {
@return $columns;
}
}

Reply to this email directly or view it on GitHub.

from singularity.

Snugug avatar Snugug commented on June 17, 2024

Closing this as I'm about to push the update to make this work!

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.