Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alexander-schranz/scss-grid

Simple dynamic grid written in scss
https://github.com/alexander-schranz/scss-grid

Last synced: 7 days ago
JSON representation

Simple dynamic grid written in scss

Awesome Lists containing this project

README

        

# Dynamic CSS Grid Generator

Simple to modified with scss/sass variables. Used to add dynamic breakpoints to your grid system.

# Features
- Multiple Grid Types: Float, Inline-Block
- Dynamic Grid Steps (12, 18, 24, ...)
- No Breakpoint limits

## How to use

#### Setup

Copy `src/grid-variables.scss`, `src/grid.scss` and `src/grid-ie.scss` into your project and edit the variables for your own use:
``` scss
$grid_defaultPadding: 2%;
$grid_defaultFontSize: $defaultFontSize; // needed for inlineBlock Grid
$grid_size: 12; // 12, 18, 24, ...
$grid_type: 'float'; // float, inlineBlock
$grid_breakPoints: (
(
'prefix': 'tab',
'maxWidth': '1023px',
'padding': $grid_defaultPadding,
'fontSize': $grid_defaultFontSize // needed for inlineBlock Grid
),
(
'prefix': 'pal',
'maxWidth': '679px',
'padding': $grid_defaultPadding,
'fontSize': $grid_defaultFontSize // needed for inlineBlock Grid
),
(
'prefix': 'mob',
'maxWidth': '479px',
'padding': $grid_defaultPadding,
'fontSize': $grid_defaultFontSize // needed for inlineBlock Grid
)
);
```

#### Using
Use the grid in your HTML:

``` html



Element 1


Element 2


Element 3


Element 4


```

# Changelog

## 0.1
- Create dynamic grid system generator