All Projects → KolceBackyard → Atgrid.css

KolceBackyard / Atgrid.css

Licence: mit
CSS Grid System with attribute selectors

Projects that are alternatives of or similar to Atgrid.css

Flexible Grid
Flexible grid layouts to get you familiar with building within the flexible grid system.(HTML, CSS, SASS, SCSS)
Stars: ✭ 154 (+316.22%)
Mutual labels:  grid, flexbox-grid, flexbox
Katana
Katana is CSS Layout System made with Flexbox
Stars: ✭ 57 (+54.05%)
Mutual labels:  grid, flexbox, flexbox-grid
Pintsize
Customisable 💪 Flexbox grid system
Stars: ✭ 330 (+791.89%)
Mutual labels:  grid, flexbox-grid, flexbox
tetris-grid
◼️Lightweight and simple CSS grid
Stars: ✭ 16 (-56.76%)
Mutual labels:  grid, flexbox, flexbox-grid
gridy
A Flexbox Grid System powered by SASS
Stars: ✭ 28 (-24.32%)
Mutual labels:  grid, flexbox
workshop-css-grid
Workshop made for freecodecamp meetup
Stars: ✭ 12 (-67.57%)
Mutual labels:  grid, flexbox
gymnast
🤸 Configurable grid and layout engine for React
Stars: ✭ 35 (-5.41%)
Mutual labels:  grid, flexbox
Feather Flex
Ultralight flexbox based grid system.
Stars: ✭ 11 (-70.27%)
Mutual labels:  grid, flexbox
tailwind-bootstrap-grid
Tailwind CSS plugin that generates Bootstrap's flexbox grid
Stars: ✭ 96 (+159.46%)
Mutual labels:  flexbox, flexbox-grid
gutter-grid
A Sass flexbox based grid system that is able to replicate CSS grid-gap in IE11
Stars: ✭ 18 (-51.35%)
Mutual labels:  grid, flexbox
Vue Flexboxgrid
Vue components made with Flexboxgrid
Stars: ✭ 37 (+0%)
Mutual labels:  flexbox-grid, flexbox
vue-grid
A powerful flexbox grid system for Vue.js 2.x, built with inline-styles
Stars: ✭ 23 (-37.84%)
Mutual labels:  grid, flexbox
ReactSimpleFlexGrid
A way to quickly add a Grid Layout to your React app 🚀
Stars: ✭ 185 (+400%)
Mutual labels:  grid, flexbox
grd-sass
Sass port of 1000ch/grd that is a CSS grid framework using Flexbox.
Stars: ✭ 12 (-67.57%)
Mutual labels:  grid, flexbox
React Native Responsive Grid
Bringing the Web's Responsive Design to React Native
Stars: ✭ 369 (+897.3%)
Mutual labels:  grid, flexbox
React Styled Flexboxgrid
Grid system based on styled-components and flexbox for React
Stars: ✭ 515 (+1291.89%)
Mutual labels:  grid, flexbox
zeus
A novel mobile first flexbox BEM css grid.
Stars: ✭ 14 (-62.16%)
Mutual labels:  flexbox, flexbox-grid
Flex Layout
Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API
Stars: ✭ 5,705 (+15318.92%)
Mutual labels:  grid, flexbox
fortune
🔮Fortune is your friendly CSS properties framework.
Stars: ✭ 16 (-56.76%)
Mutual labels:  grid, flexbox
40-lines-of-Sass
Full featured flexbox grid in 40 lines of Sass
Stars: ✭ 20 (-45.95%)
Mutual labels:  flexbox, flexbox-grid

atGrid.css - CSS Grid System with attribute selectors

npm version

atGrid is a Flexbox-based CSS Grid System that uses attributes instead of classes.

## Examples

Columns with the same width

<div grid>
  <section column>
    <p>Auto</p>
  </section>

  <section column>
    <p>Auto</p>
  </section>
</div>

Columns with a determined width

<div grid>
  <section column="8">
    <p>8</p>
  </section>

  <section column="4">
    <p>4</p>
  </section>
</div>

Columns without gutters

<div grid="ng">
  <section column="8">
    <p>8</p>
  </section>

  <section column="4">
    <p>4</p>
  </section>
</div>

Columns with offsets

<div grid>
  <section column="3">
    <p>3</p>
  </section>

  <section column="3 +6">
    <p>3 +6</p>
  </section>
</div>

Columns with offsets and without gutters

<div grid="ng">
  <section column="5">
    <p>5</p>
  </section>

  <section column="5 +2">
    <p>5 +2</p>
  </section>
</div>

### Nested grids

<div grid>
  <section column="4">
    <p>4</p>
  </section>

  <section column="8">
    <div grid>
      <section column="6">
        <p>6 > 8</p>
      </section>

      <section column="6">
        <p>6 > 8</p>
      </section>
    </div>
  </section>
</div>

Nested grids without gutters

<div grid="ng">
  <section column="4">
    <p>4</p>
  </section>

  <section column="8">
    <div grid="ng">
      <section column="6">
        <p>6 > 8</p>
      </section>

      <section column="6">
        <p>6 > 8</p>
      </section>
    </div>
  </section>
</div>

Installation

$ npm install atgrid.css

Browser Compatibility

Since version 4.0.0, atGrid.css is based on Flexbox, you can see the table of compatibility in the Can I Use site.

HTML Attributes

container Sets the element as a container, the container element will have a fixed max-width and will be centered on the page.

grid Sets the element as a grid element. This is a required element, and should be direct parent of the column elements.

column Sets the element as a column, should always be used inside a grid element. A column can also contain a grid element to nest grids.

Attribute values

Container

The container element doesn't accept any values.

Grid

ng Will create a grid where the columns doesn't have gutters.

top Aligns all the columns inside vertically to the top of the grid.

center Aligns all the columns inside vertically to the center of the grid.

bottom Aligns all the columns inside vertically to the bottom of the grid.

Column

<width> The width of the column, by default from 1 to 12.

+<offset> The offset of the column, by default from 1 to 11.

top Aligns the column vertically to the top of the grid.

center Aligns the column vertically to the center of the grid.

bottom Aligns the column vertically to the bottom of the grid.

Sass configuration

container-width
Default: 1200px
Description: Maximum width of the container element.

gutter
Default: 2em
Description: Space between columns.

num-columns
Default: 12
Description: Number of columns.

prefix
Default: ''
Description: Prefix for the attributes, use data- if you need valid HTML.

breakpoint
Default: 420px
Description: Below this point the columns are expanded to 100%.

License

The MIT License - James Kolce

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].