Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/StefanKovac/flex-layout-attribute

HTML layout helper based on CSS flexbox specification —
https://github.com/StefanKovac/flex-layout-attribute

attribute css fla flexbox html layout

Last synced: 2 months ago
JSON representation

HTML layout helper based on CSS flexbox specification —

Awesome Lists containing this project

README

        

# [Flex Layout Attribute (FLA)](http://progressivered.com/fla/)

Layout helper based on CSS flexbox specification designed to serve you as **quick flexbox shorthand** by using two custom html attributes — **layout** and **self**.
### Basic example
Items distributed in a row and centered within container:
``` html


1

2

3


```

#### Try live — [interactive demo](http://progressivered.com/fla/?d=0&v=1&h=1&s=0&i=000&a=000#playground)
[![View demo](http://progressivered.com/assets/img/fla/fla-github.png)](http://progressivered.com/fla/?d=0&v=1&h=1&s=0&i=000&a=000#playground)

### Benefits
- **Dedicated HTML attribute** — separated layout markup, semantic & concise syntax.
- **Beyond grids** — ratio relationships, element sizes based on a scale.
- **Rapid prototyping** — design in browser, quick iterations, no need to write CSS for layout.
- **Solid base** — ease to extend and customize.

### Quick start
Several quick start options are available:

* [Download the latest release](https://github.com/StefanKovac/flex-layout-attribute/releases)
* Clone the repo: `git clone https://github.com/StefanKovac/flex-layout-attribute.git`.
* Install with npm: `npm install flex-layout-attribute`.

### Usage
1) Insert flex-layout-attribute.min.css in document HEAD:
```html

```

2) Add layout attribute to html elements:
```html


...

```

### Development
1. Clone the repo: `git clone https://github.com/StefanKovac/flex-layout-attribute.git`.
2. Install dependencies: `npm run setup`.
3. Build FLA: `gulp` or set watcher: `gulp watch`

### Learn more
Interactive demo, documentation and snippets — http://progressivered.com/fla/

* * *
###### License
FLA is released under [the MIT license](https://github.com/StefanKovac/flex-layout-attribute/blob/master/LICENSE).