| 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 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 Loading... |
| 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 } |
| OLD | NEW |