Giter Club home page Giter Club logo

Comments (4)

leejordan avatar leejordan commented on August 29, 2024

I've added this to this branch: https://github.com/leejordan/reflex/tree/autoCols

Can you confirm it's what you were expecting. The only issue with auto columns is that it doesn't fully work in the inline-block fallback:

Flexbox:

screen shot 2015-08-18 at 16 35 22

Inline-block:

screen shot 2015-08-18 at 16 35 34

from reflex.

argyleink avatar argyleink commented on August 29, 2024

that's it! works great =)

from reflex.

argyleink avatar argyleink commented on August 29, 2024

after double checking, i think we need to expand this feature! right now, grid__col-auto operates like the other non-collapsable columns like grid__col-3, but it would behoove the grid to have a "liquid responsive" layout system, and it could be as easy as supporting the following naming convention:

grid__col-xs
grid__col-sm
grid__col-md
grid__col-lg

auto width at each sizes respective viewports, the lack of a number (col-3, col-2, etc) to indicate column width means it's auto. if you find this naming convention viable, we may consider changing the non-collapsable column name to grid__col to be consistent.

this would let me make a responsive liquid grid with auto widths. and just like with grid__col-auto there is no good inline-block fallback, so the grid would rag right for inline-block. it would be on the dev to write some js to resolve that.

from reflex.

leejordan avatar leejordan commented on August 29, 2024

implemented in release 1.0.3

from reflex.

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.