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

Side by Side Diff: ui/webui/resources/css/menu.css

Issue 584553005: Context MenuItem Touch Feedback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 menu { 5 menu {
6 -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, .50); 6 -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, .50);
7 background: white; 7 background: white;
8 border-radius: 2px; 8 border-radius: 2px;
9 color: black; 9 color: black;
10 cursor: default; 10 cursor: default;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 menu > [disabled] { 54 menu > [disabled] {
55 color: rgba(0, 0, 0, .3); 55 color: rgba(0, 0, 0, .3);
56 } 56 }
57 57
58 menu > [hidden] { 58 menu > [hidden] {
59 display: none; 59 display: none;
60 } 60 }
61 61
62 menu > :not(hr)[selected] { 62 menu > :not(hr):-webkit-any([selected], :active) {
63 background-color: rgba(0, 0, 0, .06); 63 background-color: rgba(0, 0, 0, .06);
64 } 64 }
65 65
66 menu > :not(hr)[selected]:active {
67 background-color: rgba(0, 0, 0, .06);
68 }
69
70 menu > [checked]::before { 66 menu > [checked]::before {
71 content: url('../images/checkbox_black.png'); 67 content: url('../images/checkbox_black.png');
72 display: inline-block; 68 display: inline-block;
73 height: 9px; 69 height: 9px;
74 margin: 0 5px; 70 margin: 0 5px;
75 width: 9px; 71 width: 9px;
76 } 72 }
77 73
78 menu > [checked] { 74 menu > [checked] {
79 -webkit-padding-start: 0; 75 -webkit-padding-start: 0;
80 } 76 }
81 77
82 menu > [selected][checked]:active::before { 78 menu > [selected][checked]:active::before {
83 content: url('../images/checkbox_white.png'); 79 content: url('../images/checkbox_white.png');
84 } 80 }
85 81
86 /* TODO(zvorygin) menu > [shortcutText]::after - this selector is much better, 82 /* TODO(zvorygin) menu > [shortcutText]::after - this selector is much better,
87 * but it's buggy in current webkit revision, so I have to use [showShortcuts]. 83 * but it's buggy in current webkit revision, so I have to use [showShortcuts].
88 */ 84 */
89 menu[showShortcuts] > ::after { 85 menu[showShortcuts] > ::after {
90 -webkit-padding-start: 30px; 86 -webkit-padding-start: 30px;
91 color: #999; 87 color: #999;
92 content: attr(shortcutText); 88 content: attr(shortcutText);
93 float: right; 89 float: right;
94 } 90 }
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