npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

flex-helper

v2.0.0

Published

CSS3 flexbox helper classes.

Downloads

2

Readme

Flex helper

CSS3 flexbox helper classes.

The helper CSS classes mimic box layout systems of popular UI toolkits (like QT, GTK, .NET, Android, Kivy, ExtJS...).

Usage

Add flex-helper.css to your code and start using the CSS classes documented (See them in action with examples.html).

Browser Support

flex-helper.css supports IE 11, MS Edge 13+, Safari 9 and latest Chrome and Firefox.

For older browsers support, use:

legacy/flex-helper-2012.css for supporting IE 10+ and Safari 7+ as well.

or legacy/flex-helper-2009.css for supporting IE 10+, UC Browser and Safari 6+ as well.

Documentation

vbox          - Stack child items vertically (the "main axis" for child items is now
                the vertical axis)
hbox          - Stack child items horizontally (the "main axis" for child items is now
                the horizontal axis)
flex          - Stretch item along parent's main-axis

main-start    - Stack child items to the main-axis start
main-center   - Stack child items to the main-axis center
main-end      - Stack child items to the main-axis end

cross-start,
cross-center,
cross-end     - Similar to the 'main' counterparts, except that
                these decide the stacking of child items along the cross-axis.
cross-stretch - Stretch child items along the cross-axis

stretch-self  - Stretch item along parent's cross-axis. Overrides any cross-* class behavior on parent.
center-self   - Centers item along parent's cross-axis. Overrides any cross-* class behavior on parent.

wrap          - Wrap child items to next line on main-axis. hbox wraps by default so no need to add this
                classes for hbox.
nowrap        - Prevent wrapping of items to next line on main-axis.

Documentation with examples

See them in action with examples.html.

For older browser support:

See flexbox-2012.css examples here.

See flexbox-2009.css examples here.

RTL support

Setting CSS direction: rtl; on body tag should cause all rows to be reversed in order. This is part of the flexbox specification. Nothing special needs to be done. If you have any case where row shouldn't be reversed, then set dir="ltr" on the hbox div.

BUGS!

One notable bug in IE 10-11, is that using min-height/min-width along with flex box doesn't work as expected.

There are other bugs documented at flexbox-bugs. Note: However flex-helper doesn't use all of the flexbox syntax. So some of them are not relevant.