| 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; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 rgba(0, 0, 0, .02) 96%); | 43 rgba(0, 0, 0, .02) 96%); |
| 44 border: 0; | 44 border: 0; |
| 45 height: 1px; | 45 height: 1px; |
| 46 margin: 8px 0; | 46 margin: 8px 0; |
| 47 } | 47 } |
| 48 | 48 |
| 49 menu > [disabled] { | 49 menu > [disabled] { |
| 50 color: rgba(0, 0, 0, .3); | 50 color: rgba(0, 0, 0, .3); |
| 51 } | 51 } |
| 52 | 52 |
| 53 /* Text alpha doesn't work on Linux/GTK and ChromeOs/views. | |
| 54 * TODO(estade): http://crbug.com/88688. */ | |
| 55 html[toolkit=gtk] menu > [disabled], | |
| 56 html[os=chromeos] menu > [disabled] { | |
| 57 color: #969696; | |
| 58 } | |
| 59 | |
| 60 menu > [hidden] { | 53 menu > [hidden] { |
| 61 display: none; | 54 display: none; |
| 62 } | 55 } |
| 63 | 56 |
| 64 menu > :not(hr)[selected] { | 57 menu > :not(hr)[selected] { |
| 65 background-color: #dce5fa; | 58 background-color: #dce5fa; |
| 66 } | 59 } |
| 67 | 60 |
| 68 menu > :not(hr)[selected]:active { | 61 menu > :not(hr)[selected]:active { |
| 69 background-color: #426dc9; | 62 background-color: #426dc9; |
| 70 color: #fff; | 63 color: #fff; |
| 71 } | 64 } |
| 72 | 65 |
| 73 menu > [checked]:before { | 66 menu > [checked]:before { |
| 74 content: url("../images/checkbox_black.png"); | 67 content: url("../images/checkbox_black.png"); |
| 75 display: inline-block; | 68 display: inline-block; |
| 76 height: 9px; | 69 height: 9px; |
| 77 margin: 0 5px; | 70 margin: 0 5px; |
| 78 vertical-align: 50%; | 71 vertical-align: 50%; |
| 79 width: 9px; | 72 width: 9px; |
| 80 } | 73 } |
| 81 | 74 |
| 82 menu > [checked] { | 75 menu > [checked] { |
| 83 -webkit-padding-start: 0; | 76 -webkit-padding-start: 0; |
| 84 } | 77 } |
| 85 | 78 |
| 86 menu > [selected][checked]:active:before { | 79 menu > [selected][checked]:active:before { |
| 87 content: url("../images/checkbox_white.png"); | 80 content: url("../images/checkbox_white.png"); |
| 88 } | 81 } |
| OLD | NEW |