|
1 | 1 | /*! |
2 | | - * gridstack extra CSS for [1-11] columns (non default) |
| 2 | + * gridstack 0.6.2-dev extra CSS for [2-11] columns (non default) |
3 | 3 | * https://gridstackjs.com/ |
4 | 4 | * (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov |
5 | 5 | * gridstack.js may be freely distributed under the MIT license. |
6 | 6 | */ |
7 | 7 |
|
8 | | -$gridstack-columns: 12 !default; |
| 8 | +$gridstack-columns: 11 !default; |
9 | 9 |
|
10 | | -@mixin grid-stack-items($gridstack-columns) { |
11 | | - .grid-stack.grid-stack-#{$gridstack-columns} { |
| 10 | +@mixin grid-stack-items($columns) { |
| 11 | + .grid-stack.grid-stack-#{$columns} { |
12 | 12 |
|
13 | 13 | > .grid-stack-item { |
14 | | - min-width: 100% / $gridstack-columns; |
| 14 | + min-width: 100% / $columns; |
15 | 15 |
|
16 | | - @for $i from 1 through $gridstack-columns { |
17 | | - &[data-gs-width='#{$i}'] { width: (100% / $gridstack-columns) * $i; } |
18 | | - &[data-gs-x='#{$i}'] { left: (100% / $gridstack-columns) * $i; } |
19 | | - &[data-gs-min-width='#{$i}'] { min-width: (100% / $gridstack-columns) * $i; } |
20 | | - &[data-gs-max-width='#{$i}'] { max-width: (100% / $gridstack-columns) * $i; } |
| 16 | + @for $i from 1 through $columns { |
| 17 | + &[data-gs-width='#{$i}'] { width: (100% / $columns) * $i; } |
| 18 | + &[data-gs-x='#{$i}'] { left: (100% / $columns) * $i; } |
| 19 | + &[data-gs-min-width='#{$i}'] { min-width: (100% / $columns) * $i; } |
| 20 | + &[data-gs-max-width='#{$i}'] { max-width: (100% / $columns) * $i; } |
21 | 21 | } |
22 | 22 | } |
23 | 23 | } |
24 | 24 | } |
25 | 25 |
|
26 | | -@for $j from 1 through $gridstack-columns { |
| 26 | +@for $j from 2 through $gridstack-columns { |
27 | 27 | @include grid-stack-items($j) |
28 | 28 | } |
0 commit comments