| OLD | NEW |
| 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 --> | 9 --> |
| 10 | 10 |
| 11 <link rel="import" href="../polymer/polymer.html"> | 11 <link rel="import" href="../polymer/polymer.html"> |
| 12 | 12 |
| 13 <style is="x-style"> | 13 <style is="custom-style"> |
| 14 | 14 |
| 15 | 15 :root { |
| 16 * { | |
| 17 | 16 |
| 18 --shadow-transition: { | 17 --shadow-transition: { |
| 19 transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); | 18 transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); |
| 20 }; | 19 }; |
| 21 | 20 |
| 22 /* from http://codepen.io/shyndman/pen/c5394ddf2e8b2a5c9185904b57421cdb */ | 21 /* from http://codepen.io/shyndman/pen/c5394ddf2e8b2a5c9185904b57421cdb */ |
| 23 | 22 |
| 24 --shadow-elevation-2dp: { | 23 --shadow-elevation-2dp: { |
| 25 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), | 24 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), |
| 26 0 1px 5px 0 rgba(0, 0, 0, 0.12), | 25 0 1px 5px 0 rgba(0, 0, 0, 0.12), |
| 27 0 3px 1px -2px rgba(0, 0, 0, 0.2); | 26 0 3px 1px -2px rgba(0, 0, 0, 0.2); |
| 28 }; | 27 }; |
| 29 | 28 |
| 30 --shadow-elevation-3dp: { | 29 --shadow-elevation-3dp: { |
| 31 box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14), | 30 box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14), |
| 32 0 1px 8px 0 rgba(0, 0, 0, 0.12), | 31 0 1px 8px 0 rgba(0, 0, 0, 0.12), |
| 33 0 3px 3px -2px rgba(0, 0, 0, 0.2); | 32 0 3px 3px -2px rgba(0, 0, 0, 0.4); |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 --shadow-elevation-4dp: { | 35 --shadow-elevation-4dp: { |
| 37 box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), | 36 box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), |
| 38 0 1px 10px 0 rgba(0, 0, 0, 0.12), | 37 0 1px 10px 0 rgba(0, 0, 0, 0.12), |
| 39 0 2px 4px -1px rgba(0, 0, 0, 0.2); | 38 0 2px 4px -1px rgba(0, 0, 0, 0.4); |
| 40 }; | 39 }; |
| 41 | 40 |
| 42 --shadow-elevation-6dp: { | 41 --shadow-elevation-6dp: { |
| 43 box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), | 42 box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), |
| 44 0 1px 18px 0 rgba(0, 0, 0, 0.12), | 43 0 1px 18px 0 rgba(0, 0, 0, 0.12), |
| 45 0 3px 5px -1px rgba(0, 0, 0, 0.2); | 44 0 3px 5px -1px rgba(0, 0, 0, 0.4); |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 --shadow-elevation-8dp: { | 47 --shadow-elevation-8dp: { |
| 49 box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), | 48 box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), |
| 50 0 3px 14px 2px rgba(0, 0, 0, 0.12), | 49 0 3px 14px 2px rgba(0, 0, 0, 0.12), |
| 51 0 5px 5px -3px rgba(0, 0, 0, 0.2); | 50 0 5px 5px -3px rgba(0, 0, 0, 0.4); |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 --shadow-elevation-16dp: { | 53 --shadow-elevation-16dp: { |
| 55 box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), | 54 box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), |
| 56 0 6px 30px 5px rgba(0, 0, 0, 0.12), | 55 0 6px 30px 5px rgba(0, 0, 0, 0.12), |
| 57 0 8px 10px -5px rgba(0, 0, 0, 0.2); | 56 0 8px 10px -5px rgba(0, 0, 0, 0.4); |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 } | 59 } |
| 61 | 60 |
| 62 </style> | 61 </style> |
| OLD | NEW |