Chromium Code Reviews| 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)[selected] { |
|
Dan Beam
2014/09/19 18:43:59
menu > :not(hr):-webkit-any([selected], :active) {
jonross
2014/09/19 19:07:03
Done.
| |
| 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):active { |
| 67 background-color: rgba(0, 0, 0, .06); | 67 background-color: rgba(0, 0, 0, .06); |
| 68 } | 68 } |
| 69 | 69 |
| 70 menu > [checked]::before { | 70 menu > [checked]::before { |
| 71 content: url('../images/checkbox_black.png'); | 71 content: url('../images/checkbox_black.png'); |
| 72 display: inline-block; | 72 display: inline-block; |
| 73 height: 9px; | 73 height: 9px; |
| 74 margin: 0 5px; | 74 margin: 0 5px; |
| 75 width: 9px; | 75 width: 9px; |
| 76 } | 76 } |
| 77 | 77 |
| 78 menu > [checked] { | 78 menu > [checked] { |
| 79 -webkit-padding-start: 0; | 79 -webkit-padding-start: 0; |
| 80 } | 80 } |
| 81 | 81 |
| 82 menu > [selected][checked]:active::before { | 82 menu > [selected][checked]:active::before { |
| 83 content: url('../images/checkbox_white.png'); | 83 content: url('../images/checkbox_white.png'); |
| 84 } | 84 } |
| 85 | 85 |
| 86 /* TODO(zvorygin) menu > [shortcutText]::after - this selector is much better, | 86 /* 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]. | 87 * but it's buggy in current webkit revision, so I have to use [showShortcuts]. |
| 88 */ | 88 */ |
| 89 menu[showShortcuts] > ::after { | 89 menu[showShortcuts] > ::after { |
| 90 -webkit-padding-start: 30px; | 90 -webkit-padding-start: 30px; |
| 91 color: #999; | 91 color: #999; |
| 92 content: attr(shortcutText); | 92 content: attr(shortcutText); |
| 93 float: right; | 93 float: right; |
| 94 } | 94 } |
| OLD | NEW |