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

Unified Diff: third_party/polymer/components-chromium/paper-menu-button/paper-menu-button.css

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 years, 3 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: third_party/polymer/components-chromium/paper-menu-button/paper-menu-button.css
diff --git a/third_party/polymer/components-chromium/paper-menu-button/paper-menu-button.css b/third_party/polymer/components-chromium/paper-menu-button/paper-menu-button.css
new file mode 100644
index 0000000000000000000000000000000000000000..62971c7299fe39a0938dba7923b77268cd0f3489
--- /dev/null
+++ b/third_party/polymer/components-chromium/paper-menu-button/paper-menu-button.css
@@ -0,0 +1,86 @@
+/*
+Copyright 2013 The Polymer Authors. All rights reserved.
+Use of this source code is governed by a BSD-style
+license that can be found in the LICENSE file.
+*/
+
+:host {
+ display: inline-block;
+ padding: 8px;
+ position: relative;
+ background-image: none;
+ outline: none;
+ user-select: none;
+ -webkit-user-select: none;
+ cursor: pointer;
+ overflow: hidden;
+}
+
+:host([disabled]) {
+ cursor: auto;
+}
+
+core-icon {
+ position: relative;
+}
+
+core-icon::shadow svg {
+ transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
+ -webkit-transition: -webkit-transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
+ transform-origin: 50% 50%;
+ -webkit-transform-origin: 50% 50%;
+}
+
+:host(:hover) core-icon::shadow svg {
+ transform: scale(1.2);
+ -webkit-transform: scale(1.2);
+}
+
+:host([disabled]:hover) core-icon::shadow svg {
+ transform: none;
+ -webkit-transform: none;
+}
+
+:host([disabled]) core-icon::shadow path {
+ fill: #c9c9c9;
+}
+
+#overlay {
+ display: block;
+ position: fixed;
+ border-radius: 3px;
+}
+
+.paper-menu-button-overlay-ink {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 40px;
+ height: 40px;
+ border-radius: 20px;
+ background: #fff;
+ opacity: 0;
+ transform: scale(0);
+ -webkit-transform: scale(0);
+}
+
+:host([halign="right"]) .paper-menu-button-overlay-ink {
+ left: auto;
+ right: 0;
+}
+
+.paper-menu-button-overlay-bg {
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ border-radius: 3px;
+ background: #fff;
+ opacity: 0;
+}
+
+#menu {
+ position: relative;
+ margin: 0;
+}

Powered by Google App Engine
This is Rietveld 408576698