@avalanche/utility-align-self

Align self utility classes.

Install

npm install @avalanche/utility-align-self --save-dev

Basic usage

// Import the main file.
@import 'node_modules/@avalanche/utility-align-self/scss/index.scss';

Usage with node-sass-magic-importer

Using node-sass (or a plugin for Grunt, gulp or webpack which is using node-sass) in combination with the node-sass-magic-importer custom importer, can make importing CSS dependencies from node_modules a much nicer experience.

// Import the main file.
@import '~@avalanche/utility-align-self';

// Import just the classes you need.
@import '{ .u-align-self-center, .u-align-self-center\@m } from ~@avalanche/utility-align-self';

// Not a fan of the "u-" prefix?
@import '{ .u-align-self-center as .align-self-center } from ~@avalanche/utility-align-self';

Demo

flex-end
center
```html
flex-end
center
```

Mixins

@import 'node_modules/@avalanche/utility-align-self/scss/mixins';

// Usage.
.align-self-center {
  @include u-align-self(center);
}

About

Author

Markus Oberlehner
Website: https://markus.oberlehner.net
Twitter: https://twitter.com/MaOberlehner
PayPal.me: https://paypal.me/maoberlehner

License

MIT

Do you want to support avalanche?

Star the project on GitHub