mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
refactor(grid): update to support dynamic number of columns
- adds size, offset, push, and pull (including specific breakpoints) as properties of ion-col - removes old css mixins to instead style the element itself - updates sass variables to use css variables for grid padding and width
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { Component } from '@stencil/core';
|
||||
import { Component, Prop } from '@stencil/core';
|
||||
|
||||
|
||||
@Component({
|
||||
@ -11,4 +11,17 @@ import { Component } from '@stencil/core';
|
||||
theme: 'grid'
|
||||
}
|
||||
})
|
||||
export class Grid {}
|
||||
export class Grid {
|
||||
/**
|
||||
* If true, the grid will have a fixed width based on the screen size. Defaults to `false`.
|
||||
*/
|
||||
@Prop() fixed?: boolean;
|
||||
|
||||
hostData() {
|
||||
return {
|
||||
class: {
|
||||
'grid-fixed': this.fixed
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user