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

Commit 875a1e9

Browse files
committed
user Polymer builtin layout attributes
1 parent e2eedf4 commit 875a1e9

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

bower.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "core-field",
33
"private": true,
44
"dependencies": {
5-
"core-icon": "Polymer/core-icon#master",
6-
"core-layout": "Polymer/core-layout#master"
5+
"polymer": "Polymer/polymer#master"
76
}
87
}

core-field.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
88
-->
99

10-
<link rel="import" href="../core-layout/core-layout.html">
10+
<link rel="import" href="../polymer/polymer.html">
1111

1212
<!--
1313
The `core-field` supplies a horizontal layout, anticipating an input.
@@ -17,20 +17,18 @@
1717
<core-field>
1818
<core-icon icon="menu" size="48"></core-icon>
1919
<label>I'm a label!</label>
20-
<input placeholder="I have a label" core-flex>
20+
<input placeholder="I have a label" flex>
2121
</core-field>
2222
2323
@group Polymer Core Elements
2424
@element core-field
2525
@homepage github.io
2626
-->
27-
<polymer-element name="core-field" noscript>
27+
<polymer-element name="core-field" noscript center horizontal layout>
2828
<template>
2929

3030
<link rel="stylesheet" href="core-field.css">
3131

32-
<core-layout align="center"></core-layout>
33-
3432
<content select="*"></content>
3533

3634
</template>

demo.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@
3535

3636
<core-field>
3737
<div class="icon"></div>
38-
<input placeholder="hi!" core-flex>
38+
<input placeholder="hi!" flex>
3939
</core-field>
4040

4141
<core-field>
4242
<div class="icon"></div>
43-
<input placeholder="Search" core-flex>
43+
<input placeholder="Search" flex>
4444
<icon></icon>
4545
</core-field>
4646

4747
<core-field>
4848
<div class="icon"></div>
4949
<label>I'm a label!</label>
50-
<input placeholder="I have a label" core-flex>
50+
<input placeholder="I have a label" flex>
5151
</core-field>
5252

5353
<core-field>
54-
<input placeholder="I have no icon" core-flex>
54+
<input placeholder="I have no icon" flex>
5555
</core-field>
5656

5757
</body>

0 commit comments

Comments
 (0)