Created
November 8, 2019 01:05
-
-
Save tflight/49f43d599e1e0bcaf301b3378366849c to your computer and use it in GitHub Desktop.
Responsive Column Count for Bootstrap 4
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
/** | |
* Responsive Column Counts with Bootstrap 4 | |
* <div class="column-count-md-3"> | |
* <p>Very long Lorem ipsum...</p> | |
* </div> | |
*/ | |
@each $breakpoint in map-keys($grid-breakpoints) { | |
@include media-breakpoint-up($breakpoint) { | |
$infix: breakpoint-infix($breakpoint, $grid-breakpoints); | |
@for $i from 2 through $grid-columns { | |
.column-count#{$infix}-#{$i} { | |
column-count: $i; | |
// orphans: 2; | |
// widows: 3; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment