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

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: Switch to using active state 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 61
62 menu > :not(hr)[selected] { 62 menu > :not(hr)[selected] {
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 { 66 menu > :not(hr)[selected]:active {
67 background-color: rgba(0, 0, 0, .06); 67 background-color: rgba(0, 0, 0, .06);
68 } 68 }
69 69
70 menu > :not(hr):active {
flackr 2014/09/19 14:54:35 Seems if the above rule matches this will match. D
jonross 2014/09/19 16:59:44 Nope.
71 background-color: rgba(0, 0, 0, .06);
72 }
73
70 menu > [checked]::before { 74 menu > [checked]::before {
71 content: url('../images/checkbox_black.png'); 75 content: url('../images/checkbox_black.png');
72 display: inline-block; 76 display: inline-block;
73 height: 9px; 77 height: 9px;
74 margin: 0 5px; 78 margin: 0 5px;
75 width: 9px; 79 width: 9px;
76 } 80 }
77 81
78 menu > [checked] { 82 menu > [checked] {
79 -webkit-padding-start: 0; 83 -webkit-padding-start: 0;
80 } 84 }
81 85
82 menu > [selected][checked]:active::before { 86 menu > [selected][checked]:active::before {
83 content: url('../images/checkbox_white.png'); 87 content: url('../images/checkbox_white.png');
84 } 88 }
85 89
86 /* TODO(zvorygin) menu > [shortcutText]::after - this selector is much better, 90 /* 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]. 91 * but it's buggy in current webkit revision, so I have to use [showShortcuts].
88 */ 92 */
89 menu[showShortcuts] > ::after { 93 menu[showShortcuts] > ::after {
90 -webkit-padding-start: 30px; 94 -webkit-padding-start: 30px;
91 color: #999; 95 color: #999;
92 content: attr(shortcutText); 96 content: attr(shortcutText);
93 float: right; 97 float: right;
94 } 98 }
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