| 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 color: black; | 8 color: black; |
| 9 cursor: default; | 9 cursor: default; |
| 10 left: 0; | 10 left: 0; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 menu > :not(hr)[selected] { | 59 menu > :not(hr)[selected] { |
| 60 background-color: rgb(220, 229, 250); | 60 background-color: rgb(220, 229, 250); |
| 61 } | 61 } |
| 62 | 62 |
| 63 menu > :not(hr)[selected]:active { | 63 menu > :not(hr)[selected]:active { |
| 64 background-color: rgb(66, 109, 201); | 64 background-color: rgb(66, 109, 201); |
| 65 color: #fff; | 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 } |
| OLD | NEW |