1.0.1 • Published 7 years ago

adam-css-flex v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

Download

git clone https://github.com/fondadam/adam-css-flex.git

npm

npm install adam-css-flex --save

support

Flex Layout probably has 3 version:

old version: display: box;
transitional version: display:flexbox;
present standard version: display:flex;



The browser support for the latest flexbox specification is:

Chrome 29+
Firefox 28+
Internet Explorer 11+
Opera 17+
Safari 6.1+ (prefixed with -webkit-)
Android 4.4+
iOS 7.1+ (prefixed with -webkit-)

caniuse

Example

// div {flex-direction: row-reverse;}
<div flex="rowReverse"></div>

// div {flex-direction: row;}
<div flex="row"></div>

// div {justify-content: flex-start;}
<div flex="justifyStart"></div>

// flex item
// div {align-self: flex-start;}
<div flex-box="alignStart"></div>

// div {flex-grow: 1; flex-shrink: 1;}
<div flex-box="1"></div>
import 'adam-css-flex';
// used by React
// import 'adam-css-flex/dist/data-flex.css'
// use attribute `data-flex` instead of attribute `flex` in React

<div flex="justifyCenter alignItemsCenter" style="width: 300px; height: 300px; border: 1px solid #F00;">
    <div style="width: 10px; height: 10px; border: 1px solid #000;"></div>
</div>

MIT License

Copyright (c) 2018-2019 fondadam

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1.0.1

7 years ago

1.0.0

7 years ago