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.
first draft of contacts address card
- Loading branch information
Showing
3 changed files
with
63 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Polymer UI Address</title> | ||
<script src="../../../polymer/polymer.js"></script> | ||
<link rel="import" href="polymer-ui-address.html"> | ||
</head> | ||
<body> | ||
<polymer-ui-address first="Dan" last="Freedman"> | ||
<img src="photo.jpg" alt=""> | ||
</polymer-ui-address> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,49 @@ | ||
<!-- | ||
Copyright 2013 The Polymer Authors. All rights reserved. | ||
Use of this source code is governed by a BSD-style | ||
license that can be found in the LICENSE file. | ||
--> | ||
|
||
<polymer-element name="polymer-ui-address" attributes="first last"> | ||
<template> | ||
<style> | ||
/* Copied from polymer-ui-card */ | ||
@host { | ||
* { | ||
display: inline-block; | ||
background-color: #fff; | ||
border-radius: 2px; | ||
box-shadow: rgba(0, 0, 0, 0.098) 0 2px 4px, rgba(0, 0, 0, 0.098) 0 0 3px; | ||
height: 48px; | ||
width: 152px; | ||
} | ||
} | ||
|
||
/* @polyfill > img */ | ||
#pic::content img { | ||
display: inline-block; | ||
border-radius: 100%; | ||
height: 40px; | ||
margin: 4px; | ||
} | ||
|
||
#name { | ||
font-family: 'Helvetica Neue', 'Roboto', 'Arial'; | ||
height: 48px; | ||
line-height: 48px; | ||
margin-left: 8px; | ||
overflow: hidden; | ||
position: absolute; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
width: 88px; | ||
} | ||
</style> | ||
<content id="pic" select="img"></content> | ||
<span id="name">{{first}} {{last}}</span> | ||
</template> | ||
<script> | ||
Polymer('polymer-ui-address', { | ||
}); | ||
</script> | ||
</polymer-element> |