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 /* This file holds CSS that should be shared, in theory, by all user-visible | 5 /* This file holds CSS that should be shared, in theory, by all user-visible |
| 6 * chrome:// pages. This contrasts chrome_shared.css, which it is meant to | 6 * chrome:// pages. This contrasts chrome_shared.css, which it is meant to |
| 7 * replace, but has CSS specific to options and options-like pages. */ | 7 * replace, but has CSS specific to options and options-like pages. */ |
| 8 | 8 |
| 9 @import url("chrome://resources/css/button.css"); | 9 @import url("chrome://resources/css/widgets.css"); |
|
Dan Beam
2012/03/06 04:47:07
wait, _why_ are we importing this?
Evan Stade
2012/03/06 05:18:15
so that people who import chrome_shared2.css will
Dan Beam
2012/03/06 05:50:10
I thought there would be more than this, but I ass
Patrick Dubroy
2012/03/06 18:45:19
On 2012/03/06 05:50:10, Dan Beam wrote:
Evan Stade
2012/03/06 22:54:51
yea, we should fix double includes and don't do th
| |
| 10 @import url("chrome://resources/css/checkbox.css"); | |
| 11 | 10 |
| 12 /* Prevent CSS from overriding the hidden property. */ | 11 /* Prevent CSS from overriding the hidden property. */ |
| 13 [hidden] { | 12 [hidden] { |
| 14 display: none !important; | 13 display: none !important; |
| 15 } | 14 } |
| 16 | 15 |
| 17 html.loading * { | 16 html.loading * { |
| 18 -webkit-transition-delay: 0 !important; | 17 -webkit-transition-delay: 0 !important; |
| 19 -webkit-transition-duration: 0 !important; | 18 -webkit-transition-duration: 0 !important; |
| 20 } | 19 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 | 58 |
| 60 a { | 59 a { |
| 61 color: rgb(17, 85, 204); | 60 color: rgb(17, 85, 204); |
| 62 text-decoration: underline; | 61 text-decoration: underline; |
| 63 } | 62 } |
| 64 | 63 |
| 65 a:active { | 64 a:active { |
| 66 color: rgb(5, 37, 119); | 65 color: rgb(5, 37, 119); |
| 67 } | 66 } |
| 68 | 67 |
| 69 div.checkbox, | |
| 70 div.radio { | |
| 71 margin: 0.45em 0; | |
| 72 } | |
| 73 | |
| 74 input[type=radio] ~ span, | |
| 75 input[type=checkbox] ~ span { | |
| 76 color: #444; | |
| 77 } | |
| 78 | |
| 79 /* TEXT */ | |
| 80 /* TODO(estade): add more types here? */ | |
| 81 input[type='password'], | |
| 82 input[type='search'], | |
| 83 input[type='text'], | |
| 84 input[type='url'], | |
| 85 input:not([type]) { | |
| 86 border: 1px solid #bfbfbf; | |
| 87 border-radius: 2px; | |
| 88 font: inherit; | |
| 89 height: 2em; | |
| 90 margin: 0; | |
| 91 padding: 3px; | |
| 92 } | |
| 93 | |
| 94 input[type='search'] { | |
| 95 /* NOTE: Keep a relatively high min-width for this so we don't obscure the end | |
| 96 * of the default text in relatively spacious languages (i.e. German). */ | |
| 97 min-width: 160px; | |
| 98 } | |
| 99 | |
| 100 input[type='text']:disabled { | |
| 101 color: #888; | |
| 102 } | |
| 103 | |
| 104 /* | 68 /* |
| 105 * Add padding to increase the touchable area of search box. Use original font | 69 * Add padding to increase the touchable area of search box. Use original font |
| 106 * size to avoid the width of search box exceeding the width of navbar. | 70 * size to avoid the width of search box exceeding the width of navbar. |
| 107 */ | 71 */ |
| 108 html[touch-optimized] input[type='search'] { | 72 html[touch-optimized] input[type='search'] { |
| 109 font-size: 13px; | 73 font-size: 13px; |
| 110 padding: 5px; | 74 padding: 5px; |
| 111 } | 75 } |
| 112 | 76 |
| 113 html[touch-optimized] input[type='search']::-webkit-search-cancel-button { | 77 html[touch-optimized] input[type='search']::-webkit-search-cancel-button { |
| 114 -webkit-transform: scale(1.5); | 78 -webkit-transform: scale(1.5); |
| 115 } | 79 } |
| 116 | 80 |
| 81 /* Header *********************************************************************/ | |
|
Dan Beam
2012/03/06 04:47:07
Headers?
Evan Stade
2012/03/06 05:18:15
what is the verb in this question
Dan Beam
2012/03/06 05:50:10
s/Header/Headers/ IMO or Header styles as Header m
Evan Stade
2012/03/06 22:54:51
well, I removed this whole section in a previous p
| |
| 82 | |
| 117 header > .search-field-container, | 83 header > .search-field-container, |
| 118 header > button { | 84 header > button { |
| 119 position: absolute; | 85 position: absolute; |
| 120 right: 100px; | 86 right: 100px; |
| 121 top: 21px; | 87 top: 21px; |
| 122 } | 88 } |
| 123 | 89 |
| 124 html[dir='rtl'] header > .search-field-container, | 90 html[dir='rtl'] header > .search-field-container, |
| 125 html[dir='rtl'] header > button { | 91 html[dir='rtl'] header > button { |
| 126 left: 100px; | 92 left: 100px; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 * For now it's a bandaid until we install open sans properly. */ | 145 * For now it's a bandaid until we install open sans properly. */ |
| 180 <if expr="is_posix and not is_macosx and not pp_ifdef('chromeos')"> | 146 <if expr="is_posix and not is_macosx and not pp_ifdef('chromeos')"> |
| 181 @font-face { | 147 @font-face { |
| 182 font-family: 'Open Sans'; | 148 font-family: 'Open Sans'; |
| 183 font-style: normal; | 149 font-style: normal; |
| 184 font-weight: 400; | 150 font-weight: 400; |
| 185 src: local('Open Sans'), local('OpenSans'), | 151 src: local('Open Sans'), local('OpenSans'), |
| 186 url('chrome://resources/fonts/open_sans.woff') format('woff'); | 152 url('chrome://resources/fonts/open_sans.woff') format('woff'); |
| 187 } | 153 } |
| 188 </if> | 154 </if> |
| OLD | NEW |