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

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

Issue 864173009: Add paper-dropdown and paper-dropdown-menu and run reproduce.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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-dropdown-menu/paper-dropdown-menu.css
diff --git a/third_party/polymer/components/core-input/core-input.css b/third_party/polymer/components-chromium/paper-dropdown-menu/paper-dropdown-menu.css
similarity index 53%
copy from third_party/polymer/components/core-input/core-input.css
copy to third_party/polymer/components-chromium/paper-dropdown-menu/paper-dropdown-menu.css
index d58da9934e4fe043eacfba6a447ac8b9dd95c4d9..2621f6279bbc25712d32fe285f463024d506af59 100644
--- a/third_party/polymer/components/core-input/core-input.css
+++ b/third_party/polymer/components-chromium/paper-dropdown-menu/paper-dropdown-menu.css
@@ -9,33 +9,36 @@
*/
:host {
- display: inline-block;
- text-align: inherit;
position: relative;
- width: 20em;
+ display: inline-block;
+ background-color: #fff;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
+ cursor: pointer;
+ padding: 0.75em 0;
}
-:host:hover {
- cursor: text;
+#control {
+ box-sizing: border-box;
+ max-height: 2em;
+ color: #757575;
+ border-bottom: 1px solid #757575;
}
-input,
-textarea {
- font: inherit;
- color: inherit;
- width: 100%;
- margin: 0;
- padding: 0;
- background-color: transparent;
- border: none;
- outline: none;
- width: 100%;
+#control[selected] {
+ color: #000;
}
-textarea {
- resize: none;
+#control > div {
+ padding: 0.5em 0 0.25em;
+ overflow: hidden;
+ /* FIXME not working for some reason */
+ white-space: nowrap;
+ text-overflow: ellipsis;
}
-textarea[rows=fit] {
- height: 100%;
+core-icon {
+ margin: 0.3em 0 0.2em 0.25em;
}

Powered by Google App Engine
This is Rietveld 408576698