0.0.2 • Published 8 years ago
@zalari/ngx-grid v0.0.2
Grid module for Angular
CSS grids helpers
Directive [grid]
Creates a CSS grid with the provided column count using CSS custom properties.
Defining cols:
[cols]defines the base column count (alias for[cols.xs]), defaults to1.[cols.xs]defines the column count beginning with theXSbreakpoint.[cols.sm]defines the column count beginning with theSMbreakpoint.[cols.md]defines the column count beginning with theMDbreakpoint.[cols.lg]defines the column count beginning with theLGbreakpoint.[cols.xl]defines the column count beginning with theXLbreakpoint.
Defining rows:
[rows]defines the base column count (alias for[rows.xs]), defaults to1.[rows.xs]defines the column count beginning with theXSbreakpoint.[rows.sm]defines the column count beginning with theSMbreakpoint.[rows.md]defines the column count beginning with theMDbreakpoint.[rows.lg]defines the column count beginning with theLGbreakpoint.[rows.xl]defines the column count beginning with theXLbreakpoint.
Defining gaps:
[gap]defines the base gap in px (alias for[gap.xs]), defaults to10.[gap.xs]defines the column count beginning with theXSbreakpoint.[gap.sm]defines the column count beginning with theSMbreakpoint.[gap.md]defines the column count beginning with theMDbreakpoint.[gap.lg]defines the column count beginning with theLGbreakpoint.[gap.xl]defines the column count beginning with theXLbreakpoint.
Directive [gridItem]
Creates a CSS grid item with the provided column span using CSS custom properties.
Must be inside an element with the grid directive.
Defining col span:
[col.span]defines the base column span (alias for[col.span.xs]), defaults to1.[col.span.xs]defines the column span beginning with theXSbreakpoint.[col.span.sm]defines the column span beginning with theSMbreakpoint.[col.span.md]defines the column span beginning with theMDbreakpoint.[col.span.lg]defines the column span beginning with theLGbreakpoint.[col.span.xl]defines the column span beginning with theXLbreakpoint.
Defining row span:
[row.span]defines the base rowumn span (alias for[row.span.xs]), defaults to1.[row.span.xs]defines the rowumn span beginning with theXSbreakpoint.[row.span.sm]defines the rowumn span beginning with theSMbreakpoint.[row.span.md]defines the rowumn span beginning with theMDbreakpoint.[row.span.lg]defines the rowumn span beginning with theLGbreakpoint.[row.span.xl]defines the rowumn span beginning with theXLbreakpoint.
Defining col start:
[col.start]defines the base start column (alias for[col.start.xs]), defaults to1.[col.start.xs]defines the start column beginning with theXSbreakpoint.[col.start.sm]defines the start column beginning with theSMbreakpoint.[col.start.md]defines the start column beginning with theMDbreakpoint.[col.start.lg]defines the start column beginning with theLGbreakpoint.[col.start.xl]defines the start column beginning with theXLbreakpoint.
Defining row start:
[row.start]defines the base start rowumn (alias for[row.start.xs]), defaults to1.[row.start.xs]defines the start rowumn beginning with theXSbreakpoint.[row.start.sm]defines the start rowumn beginning with theSMbreakpoint.[row.start.md]defines the start rowumn beginning with theMDbreakpoint.[row.start.lg]defines the start rowumn beginning with theLGbreakpoint.[row.start.xl]defines the start rowumn beginning with theXLbreakpoint.