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:
Brandy Carney
2018-06-18 11:33:26 -04:00
parent 0f5601b3ae
commit 71faf3681a
11 changed files with 954 additions and 267 deletions

View File

@ -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
}
};
}
}