File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 3737 flex : 0 0 auto ;
3838}
3939
40- :host ([class ^= " ion-grid-col-" ], [class *= " ion-grid-col-" ]) {
40+ :host ([class ^= " ion-grid-col-" ]),
41+ :host ([class *= " ion-grid-col-" ]) {
4142 flex : 0 0 calc (var (--ion-grid-col-span ) * var (--col-unit-size ) + (var (--ion-grid-col-span ) - 1 ) * var (--ion-grid-gap ));
4243}
4344
44- :host ([class ^= " ion-grid-offset-col-" ], [class *= " ion-grid-offset-col-" ]) {
45+ :host ([class ^= " ion-grid-offset-col-" ]),
46+ :host ([class *= " ion-grid-offset-col-" ]) {
4547 --margin-calc : calc (
4648 var (--col-unit-size ) * var (--ion-grid-col-margin ) + (var (--ion-grid-gap ) * var (--ion-grid-col-margin ))
4749 );
4850
4951 @include margin-horizontal (var (--margin-calc ), 0 );
5052}
5153
52- $max : 12 ;
54+ $grid-col-number : 12 ;
5355
54- @for $i from 1 through $max {
55- .ion-grid-col-#{$i } {
56+ @for $i from 1 through $grid-col-number {
57+ :host ( .ion-grid-col-#{$i } ) {
5658 --ion-grid-col-span : #{$i } ;
5759 }
5860
59- .ion-grid-order-col-#{$i } {
61+ :host ( .ion-grid-order-col-#{$i } ) {
6062 order : #{$i } ;
6163 }
6264
63- .ion-grid-offset-col-#{$i } {
65+ :host ( .ion-grid-offset-col-#{$i } ) {
6466 --ion-grid-col-margin : #{$i } ;
6567 }
6668}
You can’t perform that action at this time.
0 commit comments