Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/justinmacneil/neat-bootstrap-grid


https://github.com/justinmacneil/neat-bootstrap-grid

bourbon-neat css-grid sass

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# neat-bootstrap-grid

neat-bootstrap-grid is a lightweight Sass plugin to generate [Bootstrap](https://github.com/twbs/bootstrap)-style column classes using native CSS grids using the Neat CSS grid as a fallback.

# Requirements
[Sass](https://github.com/sass/sass) 3.4+ or [LibSass](https://github.com/sass/libsass) 3.3+

[Neat](https://github.com/thoughtbot/neat) 2.1.0+

# Installation

Install neat-bootstrap-grid using Bower or Yarn. Alternatively, copy ```_neat-boostrap-grid-standalone.scss``` and ```_grid.scss``` into your project's working directory. Change the ```@import``` path in ```_neat-boostrap-grid-standalone.scss``` to point to your local copy of Neat.

## Bower

```bash
bower install neat-bootstrap-grid --save-dev
```
## Yarn

```bash
yarn add neat-bootstrap-grid
```

# Usage

Include any of the Bootstrap grid classes in your markup.

```html





```
To use native CSS grids, ensure ``` $include-css-grids ``` is set to ```true```. By default, neat-bootstrap-grid uses CSS grid classes and applies native grid classes to HTML with the ```.cssgrid``` class and Neat grid classes to HTML with the ```.no-cssgrid``` class. Use [Modernizr's](https://modernizr.com/) grid detection to manage these classes automatically.