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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-material/paper-material.html

Issue 1561893002: [Polymer] Roll polymer to latest version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update grdp Created 4 years, 11 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
1 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --><html><head><link rel="import" href="../polymer/polymer.html"> 9 --><html><head><link rel="import" href="../polymer/polymer.html">
10 <link rel="import" href="../paper-styles/shadow.html"> 10 <link rel="import" href="../paper-styles/shadow.html">
11 <link rel="import" href="paper-material-shared-styles.html">
11 12
12 <!-- 13 <!--
13 Material design: [Cards](https://www.google.com/design/spec/components/cards.htm l) 14 Material design: [Cards](https://www.google.com/design/spec/components/cards.htm l)
14 15
15 `paper-material` is a container that renders two shadows on top of each other to 16 `paper-material` is a container that renders two shadows on top of each other to
16 create the effect of a lifted piece of paper. 17 create the effect of a lifted piece of paper.
17 18
18 Example: 19 Example:
19 20
20 <paper-material elevation="1"> 21 <paper-material elevation="1">
21 ... content ... 22 ... content ...
22 </paper-material> 23 </paper-material>
23 24
24 @group Paper Elements 25 @group Paper Elements
25 @demo demo/index.html 26 @demo demo/index.html
26 --> 27 -->
27 28
28 </head><body><dom-module id="paper-material"> 29 </head><body><dom-module id="paper-material">
29 <template> 30 <template>
31 <style include="paper-material-shared-styles"></style>
30 <style> 32 <style>
31 :host {
32 display: block;
33 position: relative;
34 }
35
36 :host([animated]) { 33 :host([animated]) {
37 @apply(--shadow-transition); 34 @apply(--shadow-transition);
38 } 35 }
39
40 :host([elevation="1"]) {
41 @apply(--shadow-elevation-2dp);
42 }
43
44 :host([elevation="2"]) {
45 @apply(--shadow-elevation-4dp);
46 }
47
48 :host([elevation="3"]) {
49 @apply(--shadow-elevation-6dp);
50 }
51
52 :host([elevation="4"]) {
53 @apply(--shadow-elevation-8dp);
54 }
55
56 :host([elevation="5"]) {
57 @apply(--shadow-elevation-16dp);
58 }
59 </style> 36 </style>
60 37
61 <content></content> 38 <content></content>
62 </template> 39 </template>
63 </dom-module> 40 </dom-module>
64 <script src="paper-material-extracted.js"></script></body></html> 41 <script src="paper-material-extracted.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698