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.github.io/LICENSE.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/CONTRIBUTORS.txt
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/PATENTS.txt
11 <link rel=
"import" href=
"../polymer/polymer.html">
12 <link rel=
"import" href=
"../paper-styles/shadow.html">
16 `paper-material` is a container that renders two shadows on top of each other to
17 create the effect of a lifted piece of paper.
21 <paper-material elevation="1">
30 <dom-module id=
"paper-material">
35 @apply(--shadow-transition);
38 :host([
elevation=
"1"]) {
39 @apply(--shadow-elevation-
2dp);
42 :host([
elevation=
"2"]) {
43 @apply(--shadow-elevation-
4dp);
46 :host([
elevation=
"3"]) {
47 @apply(--shadow-elevation-
6dp);
50 :host([
elevation=
"4"]) {
51 @apply(--shadow-elevation-
8dp);
54 :host([
elevation=
"5"]) {
55 @apply(--shadow-elevation-
16dp);
69 * The z-depth of this element, from 0-5. Setting to 0 will remove the
70 * shadow, and each increasing number greater than 0 will be "deeper"
73 * @attribute elevation
79 reflectToAttribute
: true,
84 * Set this to true to animate the shadow when setting a new
93 reflectToAttribute
: true,