Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Fixes Polymer/docs#1579. Move style tags inside templates.#256

Open
arthurevans wants to merge 2 commits intomasterfrom
flex-layout-style-fix
Open

Fixes Polymer/docs#1579. Move style tags inside templates.#256
arthurevans wants to merge 2 commits intomasterfrom
flex-layout-style-fix

Conversation

@arthurevans
Copy link
Contributor

@gertcuykens
Copy link

that was quick :) 👍

modules you want.

<link rel="import" href="bower_components/iron-flex-layout/iron-flex-layout-classes.html">
1. Import `iron-flex-layout.classes.html`:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iron-flex-layout-classes.html:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Thanks @gertcuykens.


Then simply apply the classes to any element.
<!-- import classes in an element -->
<style include="iron-flex iron-flex-alignment">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tag should be closed with </style>. I found this out the hard way that it broke the css parsing of Polymer inside templates.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants