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

Side by Side Diff: ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html

Issue 2805283002: WebUI: Prevent text selection on action menu entries. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/util.html"> 1 <link rel="import" href="chrome://resources/html/util.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> 3 <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html">
4 4
5 <dom-module id="cr-action-menu"> 5 <dom-module id="cr-action-menu">
6 <template> 6 <template>
7 <style> 7 <style>
8 :host { 8 :host {
9 background-color: white; 9 background-color: white;
10 border: none; 10 border: none;
(...skipping 10 matching lines...) Expand all
21 21
22 :host ::content .dropdown-item { 22 :host ::content .dropdown-item {
23 background: none; 23 background: none;
24 border: none; 24 border: none;
25 box-sizing: border-box; 25 box-sizing: border-box;
26 color: inherit; 26 color: inherit;
27 font: inherit; 27 font: inherit;
28 min-height: 32px; 28 min-height: 32px;
29 padding: 0 24px; 29 padding: 0 24px;
30 text-align: start; 30 text-align: start;
31 user-select: none;
31 width: 100%; 32 width: 100%;
32 } 33 }
33 34
34 :host ::content .dropdown-item:not([hidden]) { 35 :host ::content .dropdown-item:not([hidden]) {
35 align-items: center; 36 align-items: center;
36 display: flex; 37 display: flex;
37 } 38 }
38 39
39 :host ::content .dropdown-item[disabled] { 40 :host ::content .dropdown-item[disabled] {
40 opacity: 0.65; 41 opacity: 0.65;
(...skipping 11 matching lines...) Expand all
52 .item-wrapper { 53 .item-wrapper {
53 outline: none; 54 outline: none;
54 } 55 }
55 </style> 56 </style>
56 <div class="item-wrapper" tabindex="-1"> 57 <div class="item-wrapper" tabindex="-1">
57 <content select=".dropdown-item,hr"></content> 58 <content select=".dropdown-item,hr"></content>
58 </div> 59 </div>
59 </template> 60 </template>
60 <script src="cr_action_menu.js"></script> 61 <script src="cr_action_menu.js"></script>
61 </dom-module> 62 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698