{"id":13656410,"url":"https://github.com/StefanKovac/flex-layout-attribute","last_synced_at":"2025-04-23T22:30:49.856Z","repository":{"id":46594920,"uuid":"58823123","full_name":"StefanKovac/flex-layout-attribute","owner":"StefanKovac","description":"HTML layout helper based on CSS flexbox specification  — ","archived":false,"fork":false,"pushed_at":"2016-06-21T10:16:39.000Z","size":46,"stargazers_count":714,"open_issues_count":2,"forks_count":57,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-05-22T16:32:36.130Z","etag":null,"topics":["attribute","css","fla","flexbox","html","layout"],"latest_commit_sha":null,"homepage":"http://progressivered.com/fla/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StefanKovac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-14T18:17:27.000Z","updated_at":"2024-01-13T23:55:18.000Z","dependencies_parsed_at":"2022-08-26T15:11:48.430Z","dependency_job_id":null,"html_url":"https://github.com/StefanKovac/flex-layout-attribute","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanKovac%2Fflex-layout-attribute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanKovac%2Fflex-layout-attribute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanKovac%2Fflex-layout-attribute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanKovac%2Fflex-layout-attribute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefanKovac","download_url":"https://codeload.github.com/StefanKovac/flex-layout-attribute/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250526405,"owners_count":21445174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attribute","css","fla","flexbox","html","layout"],"created_at":"2024-08-02T05:00:19.977Z","updated_at":"2025-04-23T22:30:49.542Z","avatar_url":"https://github.com/StefanKovac.png","language":"CSS","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"# [Flex Layout Attribute (FLA)](http://progressivered.com/fla/)\n\nLayout helper based on CSS flexbox specification designed to serve you as **quick flexbox shorthand** by using two custom html attributes — **layout** and **self**.\n### Basic example\nItems distributed in a row and centered within container:\n``` html\n\u003cdiv layout=\"row center-center\"\u003e\n    \u003cdiv\u003e1\u003c/div\u003e\n    \u003cdiv\u003e2\u003c/div\u003e\n    \u003cdiv\u003e3\u003c/div\u003e\n\u003c/div\u003e\n```\n\n#### Try live — [interactive demo](http://progressivered.com/fla/?d=0\u0026v=1\u0026h=1\u0026s=0\u0026i=000\u0026a=000#playground)\n[![View demo](http://progressivered.com/assets/img/fla/fla-github.png)](http://progressivered.com/fla/?d=0\u0026v=1\u0026h=1\u0026s=0\u0026i=000\u0026a=000#playground)\n\n### Benefits\n- **Dedicated HTML attribute** — separated layout markup, semantic \u0026 concise syntax.\n- **Beyond grids** — ratio relationships, element sizes based on a scale.\n- **Rapid prototyping** — design in browser, quick iterations, no need to write CSS for layout.\n- **Solid base** — ease to extend and customize.\n\n### Quick start\nSeveral quick start options are available:\n\n* [Download the latest release](https://github.com/StefanKovac/flex-layout-attribute/releases)\n* Clone the repo: `git clone https://github.com/StefanKovac/flex-layout-attribute.git`.\n* Install with npm: `npm install flex-layout-attribute`.\n\n### Usage\n1) Insert flex-layout-attribute.min.css in document HEAD:\n```html\n\u003clink href=\"path/to/css/flex-layout-attribute.min.css\" rel=\"stylesheet\"\u003e\n```\n\n2) Add layout attribute to html elements:\n```html\n\u003cdiv layout=\"row center-justify\"\u003e\n    ...\n\u003c/div\u003e\n```\n\n### Development\n1. Clone the repo: `git clone https://github.com/StefanKovac/flex-layout-attribute.git`.\n2. Install dependencies: `npm run setup`.\n3. Build FLA: `gulp` or set watcher: `gulp watch`\n\n### Learn more\nInteractive demo, documentation and snippets — http://progressivered.com/fla/\n\n\n* * *\n###### License\nFLA is released under [the MIT license](https://github.com/StefanKovac/flex-layout-attribute/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStefanKovac%2Fflex-layout-attribute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FStefanKovac%2Fflex-layout-attribute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStefanKovac%2Fflex-layout-attribute/lists"}