@dreamworld/flex-layout

2.0.0 • Public • Published

flex-layout

The flex-layout component provides simple ways to use CSS flexible box layout, also known as flexbox. use CSS flex styles directly in your code.

The layout class stylesheet provides a simple set of class-based flexbox rules, that let you specify layout properties directly in markup. You must include this file in every element that needs to use them.

Usage

Installation

npm install --save @dreamworld/flex-layout

In a lit element

import { LitElement } from '@dreamworld/pwa-helpers/lit.js';
import { flexLayout, alignment } from '@dreamworld/flex-layout';

class SampleElement extends LitElement {
    static get styles() {
    return [
      flexLayout,
      alignment,
      css`
      :host {
        display: block;
      }
      `
    ];
  }

  static get template() {
    return html`
      <div class="layout horizontal center-center">
        <div class="test">horizontal layout center alignment</div>
      </div>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.05latest
1.2.0-remove-webkit-fex-style.21remove-webkit-fex-style
1.1.1-update-config.11update-config
1.1.0-mixins.11mixins
1.1.0-layout-mixins.11layout-mixins
1.1.0-css-mixins.11css-mixins
1.1.0-css-mixin.11css-mixin
1.1.0-css-literals.11css-literals
1.1.0-css-literal.11css-literal

Version History

VersionDownloads (Last 7 Days)Published
2.0.05
1.2.0-remove-webkit-fex-style.21
1.2.0-remove-webkit-fex-style.11
1.1.124
1.1.1-update-config.11
1.1.01
1.1.0-layout-mixins.11
1.1.0-css-literal.11
1.1.0-css-mixins.11
1.1.0-css-mixin.11
1.1.0-css-literals.11
1.1.0-mixins.11
1.0.01

Package Sidebar

Install

npm i @dreamworld/flex-layout

Weekly Downloads

40

Version

2.0.0

License

ISC

Unpacked Size

14.2 kB

Total Files

14

Last publish

Collaborators

  • chiragmoradiya
  • chetang7
  • ajay-dhameliya
  • dw-devops