@teft/grid

5.1.4 • Public • Published

Grid

While it is possible to override the number of columns used by the grid package, we strongly recommend using 12 columns. A lot of the functionality built upon Teft is based on 12 columns and there will be a lot of work to make everything compatible with a custom columns setup.

Installation

Install the module

npm install @teft/grid

Variables

Name Default value
--teft-grid-gap var(--teft-theme-gap)
--teft-grid-columns 12

Examples

Basic Grid Setup

CSS

.example-left-column {
	grid-column-end: 4;
	grid-column-start: 1;
}

.example-right-column {
	grid-column-end: 12;
	grid-column-start: 4;
}

Markup

<div class="teft-grid">
	<div class="example-left-column">
		<p>Left column</p>
	</div>
	<div class="example-right-column">
		<p>Right column</p>
	</div>
</div>

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @teft/grid

    Weekly Downloads

    1

    Version

    5.1.4

    License

    GPL-2.0-or-later

    Unpacked Size

    20.5 kB

    Total Files

    6

    Last publish

    Collaborators

    • stian-overasen
    • peroks
    • walbo
    • olethomas