Giter VIP home page Giter VIP logo

the-flex-grid's People

Contributors

effone avatar jeroenoomsnl avatar pizzapete avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

the-flex-grid's Issues

Suggestion

Hi Jeroen,

Can you make a extension to your css so rows will fill the space when the grid is nested?
Use case:

Grid contains 2 columns.
Column 1 contains nested grid
-- Nested grid contains 2 rows with a column
Column 2 has 100vh
The nested grid has just 50vh of the screen

I should expect that rows of the nested grid will fill the space by its parent
Result will be grid with 2 columns of 100vh and nested grid space of 50vh per row

Row overlapping

Hey Jeroen,

Is it possible for you to support row span in the flex grid?
I would like to have a cell of two rows, and right 2 rows with 4 cells.
So it looks like this:

---------------------------------------------------
|                 |     CELL 2    |     CELL 3    |
|    CELL 1       |  ------------------------------
|                 |     CELL 4    |     CELL 5    |
---------------------------------------------------

Thx anyway for your great flex grid system :-) ๐Ÿ‘

Using something like colspan

@jeroenoomsNL Thx for your grid system.
Your examples are good and your CSS clean so credits for that ๐Ÿ‘

I have only one problem.
I want to make a grid like the nested grid.
However I have a column of 6, and want 2 columns of 12 nested in a 6 column

So you will get something like:
[column-6] [column-6 [column-12][column-12]]

By adding an row-equal I was hoping the column is growing correctly. But it dont seems to be.
So do you have a small example how I can achive this?

Negative inline-margin for .row can be a problem

The-flex-grid is awesome, I use it all the time.
The negative inline-margin for .row is bugging me often though. For example when using a background color for the row, it extends it's container.
The connected inline padding for the .col-x has it's drawbacks as well with regard to background color.

I think a flexbox grid should use column-gap for spacing between columns, although I'm not sure how the flex-basis for the different column widths should be set.

Bug row-reverse when responsive columns are used

I got the following code:

<div class="row row-reverse">
    <div class="col-large-6 col-small-12">
        <div class="content">1</div>
    </div>
    <div class="col-large-6 col-small-12">
        <div class="content">2</div>
    </div>
</div>

The row-reverse adds the CSS styling flex-direction:row-reverse; however when the columns are small (12) flex will put the columns under each other and results in no reverse. Changing to column-reverse works correct.

I expect when col is over full width, it should not set flex-direction to row-reverse but to column-reverse

Idea: increase responsive support

Hey Jeroen,

An other idea to the flex grid.
Can options like:

  • row-space-around
  • row-space-between
  • row-center
  • row-right
  • row-left
  • row-reverse

also supported for responsive?
Like: row-center-small or row-reverse-medium
This can be handy, for example you have a large screen and you see that col immediately, but on mobile its not directy in the viewport, by setting in case of small, reverse the columns, the col that need to be directly visibile is then on top.

Renaming

For readability is the class "row-reverse" not better to be called reverse-columns? In this case the row isnt reversed but the columns in the row are reversed.
However, is it possible to reverse rows too?

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.