Giter Site home page Giter Site logo

dan503 / gutter-grid Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 0.0 4.66 MB

A Sass flexbox based grid system that is able to replicate CSS grid-gap in IE11

Home Page: http://gutter-grid.net

License: MIT License

JavaScript 34.03% CSS 0.81% HTML 3.90% SCSS 27.95% Pug 33.30%
grid-system grid mq-scss flexbox backup legacy-browsers gutter-grid responsive responsive-grid

gutter-grid's Introduction

Gutter Grid logo

npm install gutter-grid --save

Documenation website: https://dan503.github.io/gutter-grid/

Why use Gutter Grid?

The problem

CSS Grid is now implemented in all modern browsers. All of our layout dreams have come true! ... Well almost all of them.

Unfortunately IE11 still holds a fairly significant market share and it doesn't support the modern implementation of CSS Grid. It can be difficult to get people on board with the idea of allowing IE to look different to modern browsers. That is especially the case if the site you are building is an intranet with a 90% IE user base.

Autoprefixer is able to help out a lot in terms of getting IE11's version of CSS Grid to behave almost like modern browsers do. Unfortunately we are still stuck with IE11 not supporting CSS Grid auto-placement. That is a major pain point for this industry and Gutter Grid sets out to fix that.

The solution

Gutter Grid is a flexbox based grid system for building fully responsive grid layouts with highly customisable gutters. These gutters are highly reminiscent of the CSS grid-gap property. So reminiscent in fact that that Gutter Grid gutters will line up perfectly with real CSS Grid gaps! Since this grid system is powered by flexbox and not CSS Grid, it works perfectly in IE11. Through Gutter Grid, IE11 has access to simple auto-placement grids with gaps (albeit with a different syntax). It even comes with a default set of media queries that may save you from having to write out some custom styles for mobile devices.

Even though Gutter Grid is powered by flexbox, it features a legacy mode that, when enabled, adds display:table, float:left and display:inline-block backups that legacy browsers can fall back on. This will help prevent your site from blowing up even when viewed in those decrepit old IE8 and 9 browsers!

To read the full documentation go to https://dan503.github.io/gutter-grid/.

You can view the change log on the GitHub releases page or the Gutter Grid website.

gutter-grid's People

Contributors

dan503 avatar

Stargazers

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

Watchers

 avatar

gutter-grid's Issues

Legacy mode should not stretch by default if wrapping is enabled and columns are defined

In modern mode, grid cells will not stretch if a column count has been defined and wrapping is enabled.

In legacy mode however, grid cells will stretch if a column count has been defined and wrapping is enabled.

The decision to do this was to make the transition from version 3 to version 4 easier.

In hindsight I feel like this was the wrong call.

If you would like legacy mode to align with modern mode in terms of cell stretching, up vote this issue.

If there is enough interest then I will release a small version 5 patch that fixes this inconsistency.

Major IE 8 & 9 issues in version 4

Version 5 is coming soon which aims to fix all the IE8 & 9 issues.

Version 4 was primarily made to make IE11 more enjoyable to build on.

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.