Code Monkey home page Code Monkey logo

flexbox-utility's Introduction

FLEXBOX UTILITY

Flexbox utility classes ...

To install with bower run:

bower install flexbox-utility --save

For Development run

npm install

Then to start the build process run

gulp

UTILITY CLASSES

Add Display Flex To Item

.fu-flex {
  display: flex;
}

Set Flex Items To Display In A Row ... This Is The Default So This Would Only Be Used As An Override ...

.fu-flex-row {
  flex-direction: row;
}

Sets The Flex Items To Display In A Column So They Will Be Stacked Vertically

.fu-flex-column {
  flex-direction: column;
}

Vertical Centering Without Pre Flexbox Hacks :)

.fu-flex-center {
  align-items: center;
  justify-content: center;
}

Vertical Centering For Flex Items If The Main Axis Is Set To Row Or Horizontal Centering If The Main Axis Is Set To Column

.fu-flex-align-items-center {
  align-items: center;
}

Horizontal Centering For Flex Items If The Main Axis Is Set To Row Or Vertical Centering If The Main Axis Is Set To Column

.fu-flex-justify-content-center {
  justify-content: center;
}

Will Align The Flex Items Vertically To The Top Of The Container If The Main Axis Is Set To Row

.fu-flex-row-top {
  align-items: flex-start;
}

Will Align The Flex Items Vertically To The Top Of The Container If The Main Axis Is Set To Column

.fu-flex-column-top {
  justify-content: flex-start;
}

Will Align The Flex Items Vertically To The Bottom Of The Container If The Main Axis Is Set To Row

.fu-flex-row-bottom {
  align-items: flex-end;
}

Will Align The Flex Items Vertically To The Bottom Of The Container If The Main Axis Is Set To Column

.fu-flex-column-bottom {
  justify-content: flex-end;
}

Will Align The Flex Items Horizontally To The Left Of The Container If The Main Axis Is Set To Row

.fu-flex-row-left {
  justify-content: flex-start;
}

Will Align The Flex Items Horizontally To The Left Of The Container If The Main Axis Is Set To Column

.fu-flex-column-left {
  align-items: flex-start;
}

Will Align The Flex Items Horizontally To The Right Of The Container If The Main Axis Is Set To Row

.fu-flex-row-right {
  justify-content: flex-end;
}

Will Align The Flex Items Horizontally To The Right Of The Container If The Main Axis Is Set To Column

.fu-flex-column-right {
  align-items: flex-end;
}

flexbox-utility's People

Contributors

trenthogan avatar

Stargazers

Karl Horky avatar

Watchers

James Cloos avatar  avatar

Forkers

felixblue hapara

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.