All Projects → leejordan → Reflex

leejordan / Reflex

Licence: mit
responsive flexbox grid with inline-block legacy support

Labels

Projects that are alternatives of or similar to Reflex

Sass Loader
Compiles Sass to CSS
Stars: ✭ 3,718 (+791.61%)
Mutual labels:  scss
Typesettings
A Sass or Stylus toolkit that sets type in Ems based on modular scale, vertical rhythm, and responsive ratio based headlines.
Stars: ✭ 380 (-8.87%)
Mutual labels:  scss
React 2048 Game
🎮 A fancy 2048 game build with react, redux best practices.
Stars: ✭ 401 (-3.84%)
Mutual labels:  scss
Wxapp Boilerplate
使用 webpack, babel, scss 开发的微信/支付宝小程序项目脚手架
Stars: ✭ 367 (-11.99%)
Mutual labels:  scss
Hacktoberfest2019
Happy Hacktober! This is a beginner friendly repository made specifically for Hacktoberfest that helps you get your first PR.
Stars: ✭ 378 (-9.35%)
Mutual labels:  scss
Motherplate
A bare bones responsive SCSS boilerplate for web designers
Stars: ✭ 392 (-6%)
Mutual labels:  scss
Coreui
Open Source UI Kit built on top of Bootstrap 4 and plain JavaScript without any additional libraries like jQuery
Stars: ✭ 361 (-13.43%)
Mutual labels:  scss
Vvvebjs
Drag and drop website builder javascript library.
Stars: ✭ 4,609 (+1005.28%)
Mutual labels:  scss
Repl
The Learning Hub for UoL's Online CS Students
Stars: ✭ 367 (-11.99%)
Mutual labels:  scss
Textarea Autosize
Vertically adjust a textarea based on user input without using a clone or ghost element.
Stars: ✭ 400 (-4.08%)
Mutual labels:  scss
Office Ui Fabric Core
The front-end CSS framework for building experiences for Office and Microsoft 365.
Stars: ✭ 3,678 (+782.01%)
Mutual labels:  scss
Arewegameyet
The repository for arewegameyet.rs
Stars: ✭ 372 (-10.79%)
Mutual labels:  scss
Umy Ui
umy-ui,一套为开发者准备的基于 Vue 2.0 的桌面端组件库,完美解决表格万级数据渲染卡顿,编辑表格卡顿问题
Stars: ✭ 396 (-5.04%)
Mutual labels:  scss
React Pro Sidebar
Customizable and responsive react sidebar library with dropdown menus and unlimited number of nested submenus
Stars: ✭ 359 (-13.91%)
Mutual labels:  scss
Vue Material Dashboard
Vue Material Dashboard - Open Source Material Design Admin
Stars: ✭ 403 (-3.36%)
Mutual labels:  scss
The Shell
Ghost Theme 👻
Stars: ✭ 362 (-13.19%)
Mutual labels:  scss
Trunk
Build, bundle & ship your Rust WASM application to the web.
Stars: ✭ 378 (-9.35%)
Mutual labels:  scss
Github Dark Theme
GitHub Dark Theme - Extension for Chrome, Firefox, and Microsoft Edge
Stars: ✭ 413 (-0.96%)
Mutual labels:  scss
Susy
Responsive layout toolkit for Sass
Stars: ✭ 3,922 (+840.53%)
Mutual labels:  scss
Adminkit
🧰 AdminKit is a free & open source Bootstrap 5 Admin Template
Stars: ✭ 395 (-5.28%)
Mutual labels:  scss

Reflex

Release npm downloads

A lightweight responsive flexbox grid with cross browser support, an inline-block fallback and no polyfills

Reflex gives you the ability to take advantage of flexbox for laying out a grid while having a reliable inline-block fallback for older browsers.

At the time of writing, browser support for flexbox is at 96.63% so I propose that it's time to start taking advantage of flexbox and accept that the inline-block fallback won't support everything.

Where flexbox isn't supported, your basic grid structure will remain intact and most of the layout classes still work. Try the examples page out in a browser that does not support flexbox (such as Internet Explorer 9) to see for yourself!

Why use reflex?

  • It's lightweight - 20KB in it's minified form and 2.5KB gzipped
  • Where flexbox is supported, columns are all the same height by default
  • Reflex grid cells never push each other out of the way (as with floated grids)
  • Supports semantic elements e.g. you can use ul as a grid
  • Supports nested grids
  • Good cross browser support
  • Built with Sass/SCSS
  • Easily customizable and extendable

Intended use

  • Creating complex nested flexbox grids which take advantage of flexbox layout properties
  • Using a flexbox layout inside a CSS grid page layout
  • Generating a flexbox grid with dynamic content of varying height e.g. a list of products
  • An addition or replacement for your current css layout framework
  • A set of vendor-prefixed mixins and helper classes to get your flexbox solution off the ground faster

Usage

Use as CSS

You can use the compiled css directly by downloading either the minified or non-minified version.

Clone via github

You could clone this repo which would allow you to modify the variables and build your own version of this grid. You can modify things like the number of columns or the breakpoints.

Use with npm

If you're familiar with npm you can use npm install reflex-grid to have a look around, or add it as a dependency to your node project.

Version 2 information

This is version 2 of reflex grid and is not compatible with version 1. Many things have changed in version 2 which will need addressing if you want to update. I wrote a blog post about version 2 changes if you're interested in learning more

  • All class names have dropped the grid__ and grid-- prefixes but are otherwise unchanged
  • Columns are no longer flexbox by default. They can be converted to flexbox containers with the col-grid class
  • There is far better support for older browsers, particularly the ie10 implementation of flexbox
  • Added container classes
  • Added better support for "cards" as well as some example code
  • Is now only built with SCSS. Older versions had both LESS and SCSS implementations but this was too much to support.
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].