From d128b833289b7a4715c84d183bf4519326d9727e Mon Sep 17 00:00:00 2001 From: Monica Dinculescu Date: Mon, 22 Aug 2016 15:06:06 -0700 Subject: [PATCH 01/19] port iron-flex-layout to 2.0 --- CONTRIBUTING.md | 77 ------- README.md | 55 ----- bower.json | 11 +- classes/iron-flex-layout.html | 317 --------------------------- classes/iron-shadow-flex-layout.html | 313 -------------------------- demo/index.html | 92 ++++---- index.html | 24 -- iron-flex-layout-classes.html | 11 - iron-flex-layout.html | 28 +-- test/iron-flex-layout.html | 50 ++--- 10 files changed, 83 insertions(+), 895 deletions(-) delete mode 100644 CONTRIBUTING.md delete mode 100644 README.md delete mode 100644 classes/iron-flex-layout.html delete mode 100644 classes/iron-shadow-flex-layout.html delete mode 100644 index.html diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 093090d..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,77 +0,0 @@ - - -# Polymer Elements -## Guide for Contributors - -Polymer Elements are built in the open, and the Polymer authors eagerly encourage any and all forms of community contribution. When contributing, please follow these guidelines: - -### Filing Issues - -**If you are filing an issue to request a feature**, please provide a clear description of the feature. It can be helpful to describe answers to the following questions: - - 1. **Who will use the feature?** _“As someone filling out a form…”_ - 2. **When will they use the feature?** _“When I enter an invalid value…”_ - 3. **What is the user’s goal?** _“I want to be visually notified that the value needs to be corrected…”_ - -**If you are filing an issue to report a bug**, please provide: - - 1. **A clear description of the bug and related expectations.** Consider using the following example template for reporting a bug: - - ```markdown - The `paper-foo` element causes the page to turn pink when clicked. - - ## Expected outcome - - The page stays the same color. - - ## Actual outcome - - The page turns pink. - - ## Steps to reproduce - - 1. Put a `paper-foo` element in the page. - 2. Open the page in a web browser. - 3. Click the `paper-foo` element. - ``` - - 2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [https://jsbin.com/cagaye/edit?html,output](https://jsbin.com/cagaye/edit?html,output). - - 3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers. - -### Submitting Pull Requests - -**Before creating a pull request**, please ensure that an issue exists for the corresponding change in the pull request that you intend to make. **If an issue does not exist, please create one per the guidelines above**. The goal is to discuss the design and necessity of the proposed change with Polymer authors and community before diving into a pull request. - -When submitting pull requests, please provide: - - 1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues in the pull request description using the following syntax: - - ```markdown - (For a single issue) - Fixes #20 - - (For multiple issues) - Fixes #32, fixes #40 - ``` - - 2. **A succinct description of the design** used to fix any related issues. For example: - - ```markdown - This fixes #20 by removing styles that leaked which would cause the page to turn pink whenever `paper-foo` is clicked. - ``` - - 3. **At least one test for each bug fixed or feature added** as part of the pull request. Pull requests that fix bugs or add features without accompanying tests will not be considered. - -If a proposed change contains multiple commits, please [squash commits](https://www.google.com/url?q=http://blog.steveklabnik.com/posts/2012-11-08-how-to-squash-commits-in-a-github-pull-request) to as few as is necessary to succinctly express the change. A Polymer author can help you squash commits, so don’t be afraid to ask us if you need help with that! diff --git a/README.md b/README.md deleted file mode 100644 index 219fca7..0000000 --- a/README.md +++ /dev/null @@ -1,55 +0,0 @@ - - - -[![Build status](https://travis-ci.org/PolymerElements/iron-flex-layout.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-flex-layout) - -_[Demo and API docs](https://elements.polymer-project.org/elements/iron-flex-layout)_ - - -##<iron-flex-layout> - -The `` component provides simple ways to use -[CSS flexible box layout](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Flexible_boxes), -also known as flexbox. This component provides two different ways to use flexbox: - -1. [Layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/master/iron-flex-layout-classes.html). -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. - -Sample use: - - - - - -
-
cross axis start alignment
-
- -1. [Custom CSS mixins](https://github.com/PolymerElements/iron-flex-layout/blob/master/iron-flex-layout.html). -The mixin stylesheet includes custom CSS mixins that can be applied inside a CSS rule using the `@apply` function. - - - -Please note that the old [/deep/ layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/master/classes) -are deprecated, and should not be used. To continue using layout properties -directly in markup, please switch to using the new `dom-module`-based -[layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/master/iron-flex-layout-classes.html). -Please note that the new version does not use `/deep/`, and therefore requires you -to import the `dom-modules` in every element that needs to use them. - -A complete [guide](https://elements.polymer-project.org/guides/flex-layout) to `` is available. - - diff --git a/bower.json b/bower.json index e175297..352224c 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "iron-flex-layout", - "version": "1.3.1", + "version": "2.0.0", "description": "Provide flexbox-based layouts", "keywords": [ "web-components", @@ -18,14 +18,13 @@ "url": "git://github.com/PolymerElements/iron-flex-layout.git" }, "dependencies": { - "polymer": "Polymer/polymer#^1.1.0" + "polymer": "https://github.com/PolymerLabs/alacarte.git#master" }, "devDependencies": { - "iron-component-page": "polymerelements/iron-component-page#^1.0.0", - "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", "test-fixture": "PolymerElements/test-fixture#^1.0.0", - "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", - "web-component-tester": "^4.0.0" + "webcomponentsjs": "webcomponents/webcomponentsjs#v1-polymer-edits", + "web-component-tester": "^4.0.0", + "iron-demo-helpers": "notwaldorf/iron-demo-helpers#2.0-preview" }, "ignore": [] } diff --git a/classes/iron-flex-layout.html b/classes/iron-flex-layout.html deleted file mode 100644 index 5fa7ce6..0000000 --- a/classes/iron-flex-layout.html +++ /dev/null @@ -1,317 +0,0 @@ - - - - - - - diff --git a/classes/iron-shadow-flex-layout.html b/classes/iron-shadow-flex-layout.html deleted file mode 100644 index 5dcde19..0000000 --- a/classes/iron-shadow-flex-layout.html +++ /dev/null @@ -1,313 +0,0 @@ - - - - - diff --git a/demo/index.html b/demo/index.html index 4bc2d41..60d9df7 100644 --- a/demo/index.html +++ b/demo/index.html @@ -18,17 +18,16 @@ - - - -
+

Horizontal and vertical layout