Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Commit

Permalink
Added offset and equal height features
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderlineWords committed Jun 7, 2020
1 parent f33c91b commit d1f3d69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Grider
***Grider*** is a simple enough and fully customizable SCSS-based grid generator. Create your own responsive CSS grid system easily.
***Grider*** is a simple enough and fully customizable SCSS-based grid generator. Create your own responsive CSS grid system easily with offset and equal height features.

[![GitHub license](https://img.shields.io/github/license/codeforms/Grider)](https://github.com/codeforms/Grider/blob/master/LICENSE)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/codeforms/Grider)
Expand Down
8 changes: 8 additions & 0 deletions grider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
$container-name: 'container';
$column-name: 'col';
$offset: 'offset';
$equal: 'equal';

/*** CONTAINER ***/
$container-width: 97%;
Expand Down Expand Up @@ -61,7 +62,14 @@
[class^="#{$column-name}"] {
float: left;
padding: $column-padding;
height: 100%;
min-height: $column-min-height;
flex-direction: column;
}
&.#{$equal} {
[class^="#{$column-name}"] {
height: auto;
}
}
@for $i from 1 through $grid {
.#{$column-name}-#{$i} {
Expand Down

0 comments on commit d1f3d69

Please sign in to comment.