OLD | NEW |
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 | 5 |
6 menu { | 6 menu { |
7 -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, .50); | 7 -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, .50); |
8 background: white; | 8 background: white; |
9 color: black; | 9 color: black; |
10 cursor: default; | 10 cursor: default; |
11 display: none; | |
12 left: 0; | 11 left: 0; |
13 margin: 0; | 12 margin: 0; |
14 outline: 1px solid rgba(0, 0, 0, 0.2); | 13 outline: 1px solid rgba(0, 0, 0, 0.2); |
15 padding: 8px 0; | 14 padding: 8px 0; |
16 position: fixed; | 15 position: fixed; |
17 white-space: nowrap; | 16 white-space: nowrap; |
18 z-index: 3; | 17 z-index: 3; |
19 } | 18 } |
20 | 19 |
| 20 menu:not(.decorated) { |
| 21 display: none; |
| 22 } |
| 23 |
21 menu > * { | 24 menu > * { |
22 box-sizing: border-box; | 25 box-sizing: border-box; |
23 display: block; | 26 display: block; |
24 margin: 0; | 27 margin: 0; |
25 text-align: start; | 28 text-align: start; |
26 width: 100%; | 29 width: 100%; |
27 } | 30 } |
28 | 31 |
29 menu > :not(hr) { | 32 menu > :not(hr) { |
30 -webkit-appearance: none; | 33 -webkit-appearance: none; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 width: 9px; | 75 width: 9px; |
73 } | 76 } |
74 | 77 |
75 menu > [checked] { | 78 menu > [checked] { |
76 -webkit-padding-start: 0; | 79 -webkit-padding-start: 0; |
77 } | 80 } |
78 | 81 |
79 menu > [selected][checked]:active:before { | 82 menu > [selected][checked]:active:before { |
80 content: url('../images/checkbox_white.png'); | 83 content: url('../images/checkbox_white.png'); |
81 } | 84 } |
OLD | NEW |