Coder Social home page Coder Social logo

flexboxgrid-helpers's Introduction

Flexboxgrid helper classes

About

  • Helper classes for awesome flexboxgrid

  • Last minified version could be found in dist/flexboxgrid-helpers.min.css

  • About classnames: i tried to follow BEM(block-element__modifier), but for compability with bootstrap classnames-style i changed visible/hidden classnames

Classes:

Visible & Hidden

  Phones (< 48em) Tablets (≥ 48em) Desktops (≥ 64em) Desktops (≥ 75em)
.visible-xs-* Visible Hidden Hidden Hidden
.visible-sm-* Hidden Visible Hidden Hidden
.visible-md-* Hidden Hidden Visible Hidden
.visible-lg-* Hidden Hidden Hidden Visible
         
.hidden-xs Hidden Visible Visible Visible
.hidden-sm Visible Hidden Visible Visible
.hidden-md Visible Visible Hidden Visible
.hidden-lg Visible Visible Visible Hidden

Group of classes CSS display
.visible-* display: flex;
.visible-*-block display: block;
.visible-*-inline display: inline;
.visible-*-inline-block display: inline-block;

flex-column

Set block's flex-direction to column

Group of classes Screen size
.flex-column always
.flex-column__xs Phones (< 48em)
.flex-column__sm Tablets (≥ 48em)
.flex-column__md Desktops (≥ 64em)
.flex-column__lg Desktops (≥ 75em)

flex-center

Set block's content align to center

Group of classes Behaviour CSS rules
.flex-center Center on horizontal and vertical axes both below
.flex-center__x Center on horizontal axe justify-content: center
.flex-center__y Center on vertical axe align-items: center

Installation

npm i -S flexboxgrid-helpers

npm page

License

MIT

flexboxgrid-helpers's People

Contributors

lgg avatar

Watchers

James Cloos avatar Eric avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.