OLD | NEW |
1 /* Styles common to WebUI pages that share the options pages style */ | 1 /* Styles common to WebUI pages that share the options pages style */ |
2 body { | 2 body { |
3 cursor: default; | 3 cursor: default; |
4 font-size: 13px; | 4 font-size: 13px; |
5 } | 5 } |
6 | 6 |
7 a:link { | 7 a:link { |
8 color: rgb(63, 110, 194); | 8 color: rgb(63, 110, 194); |
9 } | 9 } |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 position: relative; | 118 position: relative; |
119 } | 119 } |
120 | 120 |
121 #page-container { | 121 #page-container { |
122 box-sizing: border-box; | 122 box-sizing: border-box; |
123 max-width: 888px; | 123 max-width: 888px; |
124 min-width: 600px; | 124 min-width: 600px; |
125 padding: 0 24px; | 125 padding: 0 24px; |
126 } | 126 } |
127 | 127 |
128 div.checkbox, | |
129 div.radio { | |
130 margin: 5px 0; | |
131 color: #444; | |
132 } | |
133 | |
134 div.disabled { | 128 div.disabled { |
135 color: #888; | 129 color: #888; |
136 } | 130 } |
137 | 131 |
138 /* TEXT */ | 132 /* TEXT */ |
139 input[type='password'], | 133 input[type='password'], |
140 input[type='text'], | 134 input[type='text'], |
141 input[type='url'], | 135 input[type='url'], |
142 input:not([type]) { | 136 input:not([type]) { |
143 -webkit-border-radius: 2px; | 137 -webkit-border-radius: 2px; |
144 border: 1px solid #aaa; | 138 border: 1px solid #aaa; |
145 font-size: inherit; | 139 font-size: inherit; |
146 padding: 3px; | 140 padding: 3px; |
147 } | 141 } |
148 | 142 |
| 143 input[type='text']:disabled { |
| 144 color: #888; |
| 145 } |
| 146 |
149 /* CHECKBOX, RADIO */ | 147 /* CHECKBOX, RADIO */ |
150 /* TODO(estade): all of this should be merged into checkbox.css and then we can | 148 /* TODO(estade): all of this should be merged into checkbox.css and then we can |
151 * remove the print-preview hack. */ | 149 * remove the print-preview hack. */ |
152 html:not(#print-preview) input[type=checkbox], | 150 div.checkbox, |
153 html:not(#print-preview) input[type=radio] { | 151 div.radio { |
154 margin-left: 0; | 152 margin: 5px 0; |
155 margin-right: 0; | |
156 position: relative; | |
157 top: 1px; | |
158 } | 153 } |
159 | 154 |
160 /* Checkbox and radio buttons have different sizes on different platforms. The | 155 input[type=radio] ~ span, |
161 * following rules have platform specific tweaks. | 156 input[type=checkbox] ~ span { |
162 * TODO(arv): Test the vertical position on Linux and CrOS as well. | 157 color: #444; |
163 */ | |
164 html:not(#print-preview) label > input[type=checkbox], | |
165 html:not(#print-preview) label > input[type=radio] { | |
166 opacity: 0.7; | |
167 margin-top: 1px; | |
168 } | |
169 | |
170 html[os=mac]:not(#print-preview) label > input[type=checkbox], | |
171 html[os=mac]:not(#print-preview) label > input[type=radio] { | |
172 margin-top: 2px; | |
173 } | |
174 | |
175 html[os=chromeos]:not(#print-preview) label > input[type=checkbox], | |
176 html[os=chromeos]:not(#print-preview) label > input[type=radio] { | |
177 top: 2px; | |
178 } | |
179 | |
180 /* Checkbox and radio hover visuals. | |
181 * Their appearance when checked is set to be the same. | |
182 */ | |
183 label:hover:not(#print-preview) > input[type=checkbox]:not([disabled]), | |
184 label:hover:not(#print-preview) > input[type=radio]:not([disabled]), | |
185 label:not(#print-preview) > input:not([disabled]):checked { | |
186 opacity: 1; | |
187 } | |
188 | |
189 label:hover:not(#print-preview) > input[type=checkbox]:not([disabled]) ~ span, | |
190 label:hover:not(#print-preview) > input[type=radio]:not([disabled]) ~ span, | |
191 label:not(#print-preview) > input:not([disabled]):checked ~ span { | |
192 color: #222; | |
193 } | |
194 | |
195 /* This will 'disable' the label associated with any input whose next sibling is | |
196 * the span containing the label (usually a checkbox or radio). | |
197 */ | |
198 label:not(#print-preview) > input[disabled] ~ span { | |
199 color: #888; | |
200 } | 158 } |
201 | 159 |
202 /* Elements that need to be LTR even in an RTL context, but should align | 160 /* Elements that need to be LTR even in an RTL context, but should align |
203 * right. (Namely, URLs, search engine names, etc.) | 161 * right. (Namely, URLs, search engine names, etc.) |
204 */ | 162 */ |
205 html[dir='rtl'] .weakrtl { | 163 html[dir='rtl'] .weakrtl { |
206 direction: ltr; | 164 direction: ltr; |
207 text-align: right; | 165 text-align: right; |
208 } | 166 } |
209 | 167 |
210 /* Input fields in search engine table need to be weak-rtl. Since those input | 168 /* Input fields in search engine table need to be weak-rtl. Since those input |
211 * fields are generated for all cr.ListItem elements (and we only want weakrtl | 169 * fields are generated for all cr.ListItem elements (and we only want weakrtl |
212 * on some), the class needs to be on the enclosing div. | 170 * on some), the class needs to be on the enclosing div. |
213 */ | 171 */ |
214 html[dir='rtl'] div.weakrtl input { | 172 html[dir='rtl'] div.weakrtl input { |
215 direction: ltr; | 173 direction: ltr; |
216 text-align: right; | 174 text-align: right; |
217 } | 175 } |
218 | 176 |
219 html[dir='rtl'] .favicon-cell.weakrtl { | 177 html[dir='rtl'] .favicon-cell.weakrtl { |
220 -webkit-padding-end: 22px; | 178 -webkit-padding-end: 22px; |
221 -webkit-padding-start: 0; | 179 -webkit-padding-start: 0; |
222 } | 180 } |
223 | 181 |
224 /* weakrtl for selection drop downs needs to account for the fact that | 182 /* weakrtl for selection drop downs needs to account for the fact that |
225 * Webkit does not honor the text-align attribute for the select element. | 183 * Webkit does not honor the text-align attribute for the select element. |
226 * (See Webkit bug #40216) | 184 * (See Webkit bug #40216) |
(...skipping 20 matching lines...) Expand all Loading... |
247 -webkit-user-select: none; | 205 -webkit-user-select: none; |
248 border-bottom: 1px solid #eeeeee; | 206 border-bottom: 1px solid #eeeeee; |
249 color: #53637d; | 207 color: #53637d; |
250 font-size: 200%; | 208 font-size: 200%; |
251 font-weight: normal; | 209 font-weight: normal; |
252 margin: 0; | 210 margin: 0; |
253 padding-bottom: 4px; | 211 padding-bottom: 4px; |
254 padding-top: 13px; | 212 padding-top: 13px; |
255 text-shadow: white 0 1px 2px; | 213 text-shadow: white 0 1px 2px; |
256 } | 214 } |
OLD | NEW |