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

Unified Diff: polymer_1.2.3/bower_components/paper-material/paper-material-shared-styles.html

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 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 side-by-side diff with in-line comments
Download patch
Index: polymer_1.2.3/bower_components/paper-material/paper-material-shared-styles.html
diff --git a/polymer_1.0.4/bower_components/iron-menu-behavior/demo/simple-menu.html b/polymer_1.2.3/bower_components/paper-material/paper-material-shared-styles.html
similarity index 50%
copy from polymer_1.0.4/bower_components/iron-menu-behavior/demo/simple-menu.html
copy to polymer_1.2.3/bower_components/paper-material/paper-material-shared-styles.html
index cd1c7cf113179f84de8257115266ff9d551cd476..3fed5004a97c64ad4e57756886b4f1d84136cbcd 100644
--- a/polymer_1.0.4/bower_components/iron-menu-behavior/demo/simple-menu.html
+++ b/polymer_1.2.3/bower_components/paper-material/paper-material-shared-styles.html
@@ -8,43 +8,33 @@ Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
-<link rel="import" href="../../polymer/polymer.html">
-<link rel="import" href="../iron-menu-behavior.html">
-
-<dom-module id="simple-menu">
-
- <style>
-
- .content ::content > .iron-selected {
- color: red;
- }
-
- </style>
-
+<dom-module id="paper-material-shared-styles">
<template>
-
- <div class="content">
- <content></content>
- </div>
-
+ <style>
+ :host {
+ display: block;
+ position: relative;
+ }
+
+ :host([elevation="1"]) {
+ @apply(--shadow-elevation-2dp);
+ }
+
+ :host([elevation="2"]) {
+ @apply(--shadow-elevation-4dp);
+ }
+
+ :host([elevation="3"]) {
+ @apply(--shadow-elevation-6dp);
+ }
+
+ :host([elevation="4"]) {
+ @apply(--shadow-elevation-8dp);
+ }
+
+ :host([elevation="5"]) {
+ @apply(--shadow-elevation-16dp);
+ }
+ </style>
</template>
-
</dom-module>
-
-<script>
-
-(function() {
-
- Polymer({
-
- is: 'simple-menu',
-
- behaviors: [
- Polymer.IronMenuBehavior
- ]
-
- });
-
-})();
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698