All Projects β†’ suitcss β†’ Components Grid

suitcss / Components Grid

Licence: mit
Component CSS for grids

Projects that are alternatives of or similar to Components Grid

Functional Data Grid
Data grids in functional style with ReactJS
Stars: ✭ 125 (-20.38%)
Mutual labels:  grid
Tui.grid
πŸžπŸ”‘ The Powerful Component to Display and Edit Data. Experience the Ultimate Data Transformer!
Stars: ✭ 1,859 (+1084.08%)
Mutual labels:  grid
Niui
Lightweight, feature-rich, accessible front-end library
Stars: ✭ 152 (-3.18%)
Mutual labels:  grid
Baseguide
Lightweight and robust CSS framework for prototyping and production code.
Stars: ✭ 127 (-19.11%)
Mutual labels:  grid
Dashboards
Responsive dashboard templates πŸ“Šβœ¨
Stars: ✭ 10,914 (+6851.59%)
Mutual labels:  grid
Grid
Declarative React Canvas Grid primitive for Data table, Pivot table, Excel Worksheets and more πŸ’₯
Stars: ✭ 573 (+264.97%)
Mutual labels:  grid
The Grid
Grid layout custom element with drag and drop capabilities
Stars: ✭ 122 (-22.29%)
Mutual labels:  grid
Selenoid
Selenium Hub successor running browsers within containers. Scalable, immutable, self hosted Selenium-Grid on any platform with single binary.
Stars: ✭ 2,065 (+1215.29%)
Mutual labels:  grid
Hugrid
Hugrid (Hugo+grid) is a simple grid theme for Hugo. It's a kind of boilerplate to perform anyone or anything quickly. Portfolio, collection, bookmarks, contacts and so on.
Stars: ✭ 136 (-13.38%)
Mutual labels:  grid
Gridextra
Custom panel controls for WPF/UWP.
Stars: ✭ 149 (-5.1%)
Mutual labels:  grid
Popo
PoPo is the grid layout tool, the best choice for runtime layout.
Stars: ✭ 130 (-17.2%)
Mutual labels:  grid
Yuki
❄️ Responsive masonry style theme for Tumblr.
Stars: ✭ 134 (-14.65%)
Mutual labels:  grid
Mvc5.grid
Grid controls for ASP.NET MVC 5 projects
Stars: ✭ 140 (-10.83%)
Mutual labels:  grid
Css Grid Flex
πŸ“–An introduction about grid and flex of css.
Stars: ✭ 127 (-19.11%)
Mutual labels:  grid
Flexible Grid
Flexible grid layouts to get you familiar with building within the flexible grid system.(HTML, CSS, SASS, SCSS)
Stars: ✭ 154 (-1.91%)
Mutual labels:  grid
Greedo Layout For Android
Full aspect ratio grid LayoutManager for Android's RecyclerView
Stars: ✭ 1,588 (+911.46%)
Mutual labels:  grid
Easystarjs
An asynchronous A* pathfinding API written in Javascript.
Stars: ✭ 1,743 (+1010.19%)
Mutual labels:  grid
Ngrid
A angular grid for the enterprise
Stars: ✭ 157 (+0%)
Mutual labels:  grid
Yii2 Export
A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)
Stars: ✭ 153 (-2.55%)
Mutual labels:  grid
Postcss Ant
Size-getting function masquerading as a grid system.
Stars: ✭ 145 (-7.64%)
Mutual labels:  grid

SUIT CSS components-grid

Build Status

A CSS grid component. The grid makes use of flexbox and box-sizing to provide features that float-based layouts cannot.

N.B. This component relies on particular dimensions being applied to cells in the grid via other classes. For example, suitcss-utils-size.

Read more about SUIT CSS.

Installation

  • npm: npm install suitcss-components-grid
  • Download: zip

Features

  • Fluid layout.
  • Intelligent cell wrapping.
  • Evenly fill cell spacing
  • Equal height columns
  • Horizontal centering of cells.
  • Custom vertical alignment of cells (top, bottom, or middle).
  • Cell width is controlled independently of grid gutter.
  • Infinite nesting.

Available classes

  • Grid: core component
  • Grid--alignCenter: center-align all child cells
  • Grid--alignRight: right-align all child cells
  • Grid--alignMiddle: middle-align all child cells
  • Grid--alignBottom: bottom-align all child cells
  • Grid--fill: evenly distribute space amongst all child cells
  • Grid--fit: fit cells to their content
  • Grid--equalHeight: all child cells match height of the tallest
  • Grid--withGutter: adds a gutter between cells

Configurable variables

  • --Grid-gutterSize: the width of the gutter applied by the Grid--withGutter modifier class.

Use

A simple grid is easy to create. A grid container can have any number of child cells. When used with Grid--fill space is evenly distributed without need for sizing utilities.

Note Elements that are direct descendants of Grid will be flex items. It's recommended to use an element that can easily have classes attached later if needed, such as u-sizeFill or u-flexJustifyCenter

<div class="Grid Grid--fill Grid--withGutter">
  <div><!-- cell content --></div>
  <div><!-- cell content --></div>
  <div><!-- cell content --></div>
  <div><!-- cell content --></div>
</div>

For more granular control over layout make use of modifiers and sizing utilities.

<div class="Grid [Grid--alignCenter|Grid--alignRight|Grid--alignMiddle|Grid--alignBottom|Grid--fill|Grid--fit|Grid--equalHeight]">
  <div class="u-size1of2 u-lg-size6of12"></div>
  <div class="u-size1of2 u-lg-size4of12"></div>
  <div class="u-size1of3 u-lg-size2of12"></div>
  <div class="u-size1of3"></div>
</div>

Fit cells to their content and allow others to fill the remaining space.

<div class="Grid">
  <div class="u-sizeFit">Fit to content</div>
  <div class="u-sizeFill">Take up remaining space</div>
</div>

Widths and offsets

Cell widths and offsets can be controlled using the responsive sizing utilities and responsive offset utilities, respectively.

One limitation of creating grid gutters in the manner shown above is that it prevents any offset utilities applied directly to the Grid component from functioning as expected.

GOOD:

<div class="Grid Grid--withGutter">
  <div class="u-size1of2 u-before1of4 u-after1of4">
    {{>partial}}
  </div>
</div>

BAD:

<div class="Grid Grid--withGutter u-before1of4 u-after1of4">
  <div>
    {{>partial}}
  </div>
</div>

You can nest grids in any context, including one that uses dimension or offset utilities, but keep in mind that the dimensions will be relative to the grid's width, and not the width of the whole application.

<div class="u-before1of4 u-after1of4">
  <div class="Grid Grid--withGutter">
    <div class="u-size1of2"> <!-- 50% of the width of the Grid -->
      {{>partial}}
    </div>
  </div>
</div>

Testing

Install Node (comes with npm).

npm install

To generate a build:

npm run build

To lint code with postcss-bem-linter and stylelint

npm run lint

To generate the testing build:

npm run build-test

To watch the files for making changes to test:

npm run watch

Basic visual tests are in test/index.html.

Browser support

  • Google Chrome (latest)
  • Opera (latest)
  • Firefox (latest)
  • Safari 6.2+
  • Internet Explorer 10+
  • iOS 7+
  • Android 4.4+
  • Windows Phone 8.1+

Refer to the caniuse page for flexbox

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].