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

Side by Side Diff: chrome/browser/resources/shared/css/menu.css

Issue 11785007: Changed history menu style to match new C++ menus (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/history/history.css ('k') | 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 color: black; 9 color: black;
9 cursor: default; 10 cursor: default;
10 left: 0; 11 left: 0;
11 margin: 0; 12 margin: 0;
12 outline: 1px solid rgba(0, 0, 0, 0.2); 13 outline: 1px solid rgba(0, 0, 0, 0.2);
13 padding: 8px 0; 14 padding: 8px 0;
14 position: fixed; 15 position: fixed;
15 white-space: nowrap; 16 white-space: nowrap;
16 z-index: 3; 17 z-index: 3;
17 } 18 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 51
51 menu > [disabled] { 52 menu > [disabled] {
52 color: rgba(0, 0, 0, .3); 53 color: rgba(0, 0, 0, .3);
53 } 54 }
54 55
55 menu > [hidden] { 56 menu > [hidden] {
56 display: none; 57 display: none;
57 } 58 }
58 59
59 menu > :not(hr)[selected] { 60 menu > :not(hr)[selected] {
60 background-color: rgb(220, 229, 250); 61 background-color: rgba(0, 0, 0, .06);
61 } 62 }
62 63
63 menu > :not(hr)[selected]:active { 64 menu > :not(hr)[selected]:active {
64 background-color: rgb(66, 109, 201); 65 background-color: rgba(0, 0, 0, .06);
65 color: #fff;
66 } 66 }
67 67
68 menu > [checked]::before { 68 menu > [checked]::before {
69 content: url('../images/checkbox_black.png'); 69 content: url('../images/checkbox_black.png');
70 display: inline-block; 70 display: inline-block;
71 height: 9px; 71 height: 9px;
72 margin: 0 5px; 72 margin: 0 5px;
73 vertical-align: 50%; 73 vertical-align: 50%;
74 width: 9px; 74 width: 9px;
75 } 75 }
76 76
77 menu > [checked] { 77 menu > [checked] {
78 -webkit-padding-start: 0; 78 -webkit-padding-start: 0;
79 } 79 }
80 80
81 menu > [selected][checked]:active::before { 81 menu > [selected][checked]:active::before {
82 content: url('../images/checkbox_white.png'); 82 content: url('../images/checkbox_white.png');
83 } 83 }
84 84
85 /* TODO(zvorygin) menu > [shortcutText]::after - this selector is much better, 85 /* TODO(zvorygin) menu > [shortcutText]::after - this selector is much better,
86 * but it's buggy in current webkit revision, so I have to use [showShortcuts]. 86 * but it's buggy in current webkit revision, so I have to use [showShortcuts].
87 */ 87 */
88 menu[showShortcuts] > ::after { 88 menu[showShortcuts] > ::after {
89 -webkit-padding-start: 30px; 89 -webkit-padding-start: 30px;
90 color: #999; 90 color: #999;
91 content: attr(shortcutText); 91 content: attr(shortcutText);
92 float: right; 92 float: right;
93 } 93 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/history/history.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698