{"id":15061288,"url":"https://github.com/polymerelements/iron-flex-layout","last_synced_at":"2025-08-25T03:32:32.195Z","repository":{"id":30578661,"uuid":"34133681","full_name":"PolymerElements/iron-flex-layout","owner":"PolymerElements","description":"Style mixins for cross-platform flex-box layouts","archived":false,"fork":false,"pushed_at":"2023-10-16T14:02:55.000Z","size":341,"stargazers_count":84,"open_issues_count":16,"forks_count":73,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-12-14T18:44:01.875Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.webcomponents.org/element/PolymerElements/iron-flex-layout","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PolymerElements.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-04-17T18:40:10.000Z","updated_at":"2024-11-12T19:28:08.000Z","dependencies_parsed_at":"2024-06-18T12:30:45.670Z","dependency_job_id":"11eed210-6fb7-4713-acf9-23fa54efc8bb","html_url":"https://github.com/PolymerElements/iron-flex-layout","commit_stats":{"total_commits":157,"total_committers":31,"mean_commits":5.064516129032258,"dds":0.7834394904458599,"last_synced_commit":"24279a26a9ce42e4be741d2ba6124b7e221ae90c"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Firon-flex-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Firon-flex-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Firon-flex-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Firon-flex-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PolymerElements","download_url":"https://codeload.github.com/PolymerElements/iron-flex-layout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230873036,"owners_count":18293207,"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":[],"created_at":"2024-09-24T23:17:52.770Z","updated_at":"2024-12-22T19:12:56.430Z","avatar_url":"https://github.com/PolymerElements.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Published on NPM](https://img.shields.io/npm/v/@polymer/iron-flex-layout.svg)](https://www.npmjs.com/package/@polymer/iron-flex-layout)\n[![Build status](https://travis-ci.org/PolymerElements/iron-flex-layout.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-flex-layout)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://webcomponents.org/element/@polymer/iron-flex-layout)\n\n## \u0026lt;iron-flex-layout\u0026gt;\nThe `\u003ciron-flex-layout\u003e` component provides simple ways to use\n[CSS flexible box layout](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Flexible_boxes),\nalso known as flexbox. Note that this is an old element, that was written\nbefore all modern browsers had non-prefixed flex styles. As such, nowadays you\ndon't really need to use this element anymore, and can use CSS flex styles\ndirectly in your code.\n\nSee: [Documentation](https://www.webcomponents.org/element/@polymer/iron-flex-layout),\n  [Demo](https://www.webcomponents.org/element/@polymer/iron-flex-layout/demo/demo/index.html).\n\nThis component provides two different ways to use flexbox:\n\n1. [Layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/master/iron-flex-layout-classes.html).\nThe layout class stylesheet provides a simple set of class-based flexbox rules, that\nlet you specify layout properties directly in markup. You must include this file\nin every element that needs to use them.\n\n1. [Custom CSS mixins](https://github.com/PolymerElements/iron-flex-layout/blob/master/iron-flex-layout.html).\nThe mixin stylesheet includes custom CSS mixins that can be applied inside a CSS rule using the `@apply` function.\n\n## Usage\n\n### Installation\n```\nnpm install --save @polymer/iron-flex-layout\n```\n\n### In a Polymer 3 element\n```js\nimport {PolymerElement, html} from '@polymer/polymer';\nimport '@polymer/iron-flex-layout/iron-flex-layout-classes.js';\n\nclass SampleElement extends PolymerElement {\n  static get template() {\n    return html`\n      \u003cstyle is=\"custom-style\" include=\"iron-flex iron-flex-alignment\"\u003e\u003c/style\u003e\n      \u003cstyle\u003e\n        .test { width: 100px; }\n      \u003c/style\u003e\n      \u003cdiv class=\"layout horizontal center-center\"\u003e\n        \u003cdiv class=\"test\"\u003ehorizontal layout center alignment\u003c/div\u003e\n      \u003c/div\u003e\n    `;\n  }\n}\ncustomElements.define('sample-element', SampleElement);\n```\n\n## Contributing\nIf you want to send a PR to this element, here are\nthe instructions for running the tests and demo locally:\n\n### Installation\n```sh\ngit clone https://github.com/PolymerElements/iron-flex-layout\ncd iron-flex-layout\nnpm install\nnpm install -g polymer-cli\n```\n\n### Running the demo locally\n```sh\npolymer serve --npm\nopen http://127.0.0.1:\u003cport\u003e/demo/\n```\n\n### Running the tests\n```sh\npolymer test --npm\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolymerelements%2Firon-flex-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolymerelements%2Firon-flex-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolymerelements%2Firon-flex-layout/lists"}