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

Commit 65efed7

Browse files
Updated grider.scss
1 parent fa37eb0 commit 65efed7

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
![GitHub release (latest by date)](https://img.shields.io/github/v/release/codeforms/Grider)
66
[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](https://github.com/codeforms/Grider/releases)
77

8+
***Take a look at*** [https://codepen.io/underlinewords/pen/pogooob](https://codepen.io/underlinewords/pen/pogooob)
9+
810
### Features
911
* Clean code, Simple enough and Fully customizable (grid number, class names, breakpoints etc.)
1012
* CSS Grid based, no longer Flexbox (since v1.3.0)
@@ -13,11 +15,8 @@
1315
* Equal height columns
1416

1517
### TODO
16-
- [ ] Fix offset columns
17-
- [x] Fix responsive columns
18-
- [x] Remove spaces between columns
18+
- [x] Column Offsets
19+
- [x] Responsive Columns
1920
- [x] Equal height columns
2021
- [x] Viewport breakpoints
2122
- [x] Customizable
22-
23-
[Take a Look](https://codepen.io/underlinewords/pen/pogooob)

grider.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,20 @@ $viewports: (
5959
min-height: $column-min-height;
6060
}
6161
&.#{$equal} > [class^="#{$column-name}"] {
62-
height: auto;
63-
grid-auto-rows: 1fr;
62+
height: auto;
6463
}
6564
}
6665
@each $label, $breakpoint, $width in $viewports {
6766
@include breakpoints($breakpoint) {
6867
@for $i from 1 through $grid {
69-
.#{$column-name}-#{$i} {
70-
grid-column: span #{$i};
71-
}
68+
.#{$column-name}-#{$i},
7269
.#{$column-name}-#{$label}-#{$i} {
73-
grid-column-start: span #{$i};
70+
grid-column: span #{$i};
7471
}
75-
.#{$column-name}-#{$label}-#{$i}.#{$offset}-#{$label}-#{$i} {
76-
grid-column: #{$i} / span #{$i};
72+
@for $y from 1 through $grid {
73+
.#{$column-name}-#{$label}-#{$i}.#{$offset}-#{$label}-#{$y} {
74+
grid-column: #{$y} / span #{$i};
75+
}
7776
}
7877
}
7978
}

0 commit comments

Comments
 (0)