-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Miklos Szanyi
committed
Jun 14, 2021
1 parent
97ce377
commit 33dab25
Showing
9 changed files
with
162 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"/Users/miklos/Documents/GitHub/grid-bootstrap/scss/_utilities.scss":"1","/Users/miklos/Documents/GitHub/grid-bootstrap/scss/_variables.scss":"2","/Users/miklos/Documents/GitHub/grid-bootstrap/scss/grid-bootstrap-import.scss":"3","/Users/miklos/Documents/GitHub/grid-bootstrap/scss/grid-bootstrap.scss":"4","/Users/miklos/Documents/GitHub/grid-bootstrap/scss/grid/_grid.scss":"5"},{"size":957,"mtime":1623703707460,"hashOfConfig":"6"},{"size":73,"mtime":1623703707460,"hashOfConfig":"6"},{"size":63,"mtime":1623703707460,"hashOfConfig":"6"},{"size":216,"mtime":1623703707460,"hashOfConfig":"6"},{"size":2146,"mtime":1623703707477,"hashOfConfig":"6"},"16giffr"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
{ | ||
"extends": "stylelint-config-standard" | ||
"extends": "stylelint-config-standard", | ||
"plugins": [ | ||
"stylelint-scss" | ||
], | ||
"rules": { | ||
"at-rule-no-unknown": null, | ||
"scss/at-rule-no-unknown": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
$max-columns: $grid-columns !default; | ||
$max-rows: $grid-columns !default; | ||
$max-rows: $grid-columns !default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@import 'variables'; | ||
@import 'grid/grid'; | ||
@import 'utilities'; | ||
@import 'utilities'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,93 @@ | ||
// Guess what... | ||
.d-grid { | ||
display: grid; | ||
display: grid; | ||
} | ||
|
||
// Add classes based on max-columns | ||
@for $c from 1 to $max-columns+1 { | ||
.grid-col-start-#{$c} { | ||
grid-column-start: $c !important; | ||
.grid-col-start-#{$c} { | ||
grid-column-start: $c !important; | ||
} | ||
|
||
.grid-col-end-#{$c} { | ||
grid-column-end: $c !important; | ||
} | ||
|
||
.grid-cols-#{$c} { | ||
-ms-grid-template-columns: repeat($c, 1fr); | ||
grid-template-columns: repeat($c, 1fr); | ||
} | ||
// grid col span | ||
.grid-cs-#{$c} { | ||
grid-column-end: span $c !important; | ||
} | ||
} | ||
|
||
@for $r from 1 to $max-rows+1 { | ||
// grid row span | ||
.grid-rs-#{$r} { | ||
grid-row-end: span $r !important; | ||
} | ||
} | ||
|
||
// Generate breakpoint based variants | ||
@each $breakpoint in map-keys($grid-breakpoints) { | ||
@include media-breakpoint-up($breakpoint) { | ||
$infix: breakpoint-infix($breakpoint, $grid-breakpoints); | ||
|
||
.d-#{$breakpoint}-grid { | ||
display: grid !important; | ||
} | ||
.grid-col-end-#{$c} { | ||
grid-column-end: $c !important; | ||
|
||
.d-#{$infix}-grid { | ||
display: grid !important; | ||
} | ||
.grid-cols-#{$c} { | ||
// grid columns even | ||
@for $c from 1 to $max-columns+1 { | ||
.grid-cols-#{$breakpoint}-#{$c} { | ||
-ms-grid-template-columns: repeat($c, 1fr); | ||
grid-template-columns: repeat($c, 1fr); | ||
} | ||
} | ||
// grid col span | ||
.grid-cs-#{$c} { | ||
// grid column start/end responsive classes | ||
@for $c from 1 to $max-columns+1 { | ||
.grid-col-#{$breakpoint}-#{$c} { | ||
grid-column: $c !important; | ||
} | ||
|
||
.grid-col-#{$breakpoint}-start-#{$c} { | ||
grid-column-start: $c !important; | ||
} | ||
|
||
.grid-col-#{$breakpoint}-end-#{$c} { | ||
grid-column-end: $c !important; | ||
} | ||
} | ||
// grid row start/end responsive classes | ||
@for $r from 1 to $max-rows+1 { | ||
.grid-row-#{$breakpoint}-#{$r} { | ||
grid-row: $r !important; | ||
} | ||
|
||
.grid-row-#{$breakpoint}-start-#{$r} { | ||
grid-row-start: $r !important; | ||
} | ||
|
||
.grid-row-#{$breakpoint}-end-#{$r} { | ||
grid-row-end: $r !important; | ||
} | ||
} | ||
// grid col/row span responsive classes | ||
@for $c from 1 to $max-columns+1 { | ||
.grid-cs-#{$breakpoint}-#{$c} { | ||
grid-column-end: span $c !important; | ||
} | ||
} | ||
} | ||
|
||
@for $r from 1 to $max-rows+1 { | ||
// grid row span | ||
.grid-rs-#{$r} { | ||
@for $r from 1 to $max-rows+1 { | ||
.grid-rs-#{$breakpoint}-#{$r} { | ||
grid-row-end: span $r !important; | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Generate breakpoint based variants | ||
@each $breakpoint in map-keys($grid-breakpoints) { | ||
@include media-breakpoint-up($breakpoint) { | ||
$infix: breakpoint-infix($breakpoint, $grid-breakpoints); | ||
.d-#{$breakpoint}-grid { | ||
display: grid !important; | ||
} | ||
.d-#{$infix}-grid { | ||
display: grid !important; | ||
} | ||
// grid columns even | ||
@for $c from 1 to $max-columns+1 { | ||
.grid-cols-#{$breakpoint}-#{$c} { | ||
-ms-grid-template-columns: repeat($c, 1fr); | ||
grid-template-columns: repeat($c, 1fr); | ||
} | ||
} | ||
// grid column start/end responsive classes | ||
@for $c from 1 to $max-columns+1 { | ||
.grid-col-#{$breakpoint}-#{$c} { | ||
grid-column: $c !important; | ||
} | ||
.grid-col-#{$breakpoint}-start-#{$c} { | ||
grid-column-start: $c !important; | ||
} | ||
.grid-col-#{$breakpoint}-end-#{$c} { | ||
grid-column-end: $c !important; | ||
} | ||
} | ||
// grid row start/end responsive classes | ||
@for $r from 1 to $max-rows+1 { | ||
.grid-row-#{$breakpoint}-#{$r} { | ||
grid-row: $r !important; | ||
} | ||
.grid-row-#{$breakpoint}-start-#{$r} { | ||
grid-row-start: $r !important; | ||
} | ||
.grid-row-#{$breakpoint}-end-#{$r} { | ||
grid-row-end: $r !important; | ||
} | ||
} | ||
// grid col/row span responsive classes | ||
@for $c from 1 to $max-columns+1 { | ||
.grid-cs-#{$breakpoint}-#{$c} { | ||
grid-column-end: span $c !important; | ||
} | ||
} | ||
@for $r from 1 to $max-rows+1 { | ||
.grid-rs-#{$breakpoint}-#{$r} { | ||
grid-row-end: span $r !important; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters