Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: third_party/polymer/v0_8/components-chromium/paper-card/paper-card.html

Issue 1082403004: Import Polymer 0.8 and several key elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also remove polymer/explainer Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
8 --><!--
9
10 `paper-card` is a container that renders two shadows on top of each other to
11 create the effect of a lifted piece of paper.
12
13 Example:
14
15 <paper-card elevation="1">
16 ... card content ...
17 </paper-card>
18
19 @group Paper Elements
20 @class paper-card
21 --><html><head><link href="../polymer/polymer.html" rel="import">
22 <link href="../paper-styles/shadow.html" rel="import">
23 </head><body><dom-module id="paper-card">
24 <style>
25 :host {
26 display: block;
27 position: relative;
28 mixin(--shadow-transition);
29 }
30
31 :host([elevation="1"]) {
32 mixin(--shadow-elevation-1);
33 }
34
35 :host([elevation="2"]) {
36 mixin(--shadow-elevation-2);
37 }
38
39 :host([elevation="3"]) {
40 mixin(--shadow-elevation-3);
41 }
42
43 :host([elevation="4"]) {
44 mixin(--shadow-elevation-4);
45 }
46
47 :host([elevation="5"]) {
48 mixin(--shadow-elevation-5);
49 }
50 </style>
51 <template>
52 <content></content>
53 </template>
54 </dom-module>
55 <script src="paper-card-extracted.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698