This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yvonne Yip
committed
Oct 2, 2013
1 parent
9b2a6f9
commit eb9dffc
Showing
4 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<link href="../../../../polymer-elements/polymer-flex-layout/polymer-flex-layout.html" rel="import"> | ||
<link href="../../../../polymer-ui-elements/polymer-ui-icon-button/polymer-ui-icon-button.html" rel="import"> | ||
<polymer-element name="contacts-create-item" noscript attributes="icon label value"> | ||
<template> | ||
<style> | ||
/* @polyfill @host */ | ||
:host { | ||
padding: 0 20px; | ||
border-color: rgba(0, 0, 0, 0.14902); | ||
border-width: 0 1px 1px; | ||
border-style: solid; | ||
} | ||
input { | ||
margin-left: 20px; | ||
border: none; | ||
font-size: 18px; | ||
font-family: 'Helvetica Neue Medium', HelveticaNeue-Medium, Helvetica, sans-serif; | ||
box-sizing: border-box; | ||
height: 60px; | ||
} | ||
input:focus { | ||
outline: none; | ||
} | ||
</style> | ||
<polymer-flex-layout align="center"></polymer-flex-layout> | ||
<polymer-ui-icon-button icon="{{icon}}"></polymer-ui-icon-button> | ||
<div flex> | ||
<input value="{{value}}" placeholder="{{label}}"> | ||
</div> | ||
</template> | ||
</polymer-element> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<link href="../../../../polymer-ui-elements/polymer-ui-toolbar/polymer-ui-toolbar.html" rel="import"> | ||
<link href="contacts-create-item.html" rel="import"> | ||
<polymer-element name="contacts-create"> | ||
<template> | ||
<style> | ||
polymer-ui-toolbar { | ||
background: transparent none !important; | ||
} | ||
button { | ||
background: transparent none; | ||
border: 0; | ||
font-family: 'Helvetica Neue Medium', HelveticaNeue-Medium, Helvetica, sans-serif; | ||
font-size: 16px; | ||
color: #999; | ||
padding: 10px; | ||
margin: 20px; | ||
} | ||
button:focus { | ||
outline: none; | ||
} | ||
button:active { | ||
outline: none; | ||
border: 1px solid #ccc; | ||
border-radius: 3px; | ||
} | ||
</style> | ||
<polymer-ui-toolbar> | ||
<button on-tap="cancelAction">Cancel</button> | ||
<div flex></div> | ||
<button on-tap="createAction">✓</button> | ||
</polymer-ui-toolbar> | ||
<contacts-create-item icon="account" label="Name"></contacts-create-item> | ||
<contacts-create-item icon="briefcase" label="Phone"></contacts-create-item> | ||
<contacts-create-item icon="gplus" label="Email"></contacts-create-item> | ||
<contacts-create-item icon="stream" label="Address"></contacts-create-item> | ||
<contacts-create-item icon="dialog" label="Handle"></contacts-create-item> | ||
</template> | ||
<script> | ||
Polymer('contacts-create'); | ||
</script> | ||
</polymer-element> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters