mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #1037 from chrisgarrity/patch-column-count
fix column count for IE and Edge
This commit is contained in:
parent
ecbf138333
commit
b58163c420
1 changed files with 5 additions and 5 deletions
|
@ -7,18 +7,18 @@
|
|||
-webkit-perspective: 1;
|
||||
}
|
||||
|
||||
// working around Firefox issue that requires column-count, using explicit -moz-column-count
|
||||
// column-count required for Firefox, IE and Edge
|
||||
//4 columns
|
||||
@media only screen and (max-width: $mobile - 1) {
|
||||
.masonry {
|
||||
-moz-column-count: 1;
|
||||
column-count: 1;
|
||||
}
|
||||
}
|
||||
|
||||
//6 columns
|
||||
@media only screen and (min-width: $mobile) and (max-width: $tablet - 1) {
|
||||
.masonry {
|
||||
-moz-column-count: 1;
|
||||
column-count: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,13 +26,13 @@
|
|||
//8 columns
|
||||
@media only screen and (min-width: $tablet) and (max-width: $desktop - 1) {
|
||||
.masonry {
|
||||
-moz-column-count: 2;
|
||||
column-count: 2;
|
||||
}
|
||||
}
|
||||
|
||||
// 12 columns
|
||||
@media only screen and (min-width: $desktop) {
|
||||
.masonry {
|
||||
-moz-column-count: 3;
|
||||
column-count: 3;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue