Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: remoting/webapp/main.css

Issue 9582038: CSS clean-up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed dangling brace. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/webapp/host_list.js ('k') | remoting/webapp/main.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 html,body,div,span,applet,object,iframe, 6 html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
7 h1,h2,h3,h4,h5,h6,p,blockquote,pre, 7 blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
8 a,abbr,acronym,address,big,cite,code, 8 font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl,
9 del,dfn,em,font,img,ins,kbd,q,s,samp, 9 dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody,
10 small,strike,strong,sub,sup,tt,var, 10 tfoot, thead, tr, th, td {
11 dl,dt,dd,ol,ul,li, 11 margin: 0;
12 fieldset,form,label,legend, 12 padding: 0;
13 table,caption,tbody,tfoot,thead,tr,th,td { 13 border: 0;
14 margin: 0; 14 outline: 0;
15 padding: 0; 15 font-weight: inherit;
16 border: 0; 16 font-style: inherit;
17 outline: 0; 17 font-size: 100%;
18 font-weight: inherit; 18 font-family: inherit;
19 font-style: inherit; 19 vertical-align: baseline;
20 font-size: 100%;
21 font-family: inherit;
22 vertical-align: baseline;
23 }
24 body {
25 line-height: 1.3;
26 color: black;
27 background: white;
28 }
29 table {
30 border-collapse: separate;
31 border-spacing: 0;
32 } 20 }
33 21
34 /*------------------------------------------------------------------ 22 body {
35 @global Type 23 font-family: "Arial", "Helvetica", sans-serif;
36 ------------------------------------------------------------------*/ 24 color: #222;
37 body,body input,body button,body td { 25 font-size: 13px;
38 font-family: "Arial", "Helvetica", sans-serif; 26 margin: 0;
39 color: #222; 27 padding: 20px;
40 font-size: 13px; 28 direction: __MSG_@@bidi_dir__;
41 -webkit-tap-highlight-color: rgba(0,0,0,0);
42 } 29 }
43 h1,h2,h3,h4,h5 { 30
44 font-size: 16px; 31 a {
45 line-height:24px; 32 text-decoration: none;
46 font-weight: normal; 33 color: #15c;
47 color: #222; 34 cursor: pointer;
48 } 35 }
49 p { 36
50 margin: 0 0 1em; 37 a:visited {
51 font-size: 13px; 38 color: #61c;
52 line-height: 18px;
53 } 39 }
54 a { 40
55 text-decoration: none; 41 a:active {
56 color: #15c; 42 color: #d14836;
57 cursor: pointer;
58 } 43 }
59 a:visited { 44
60 color: #61c;
61 }
62 a:active {
63 color: #d14836;
64 }
65 strong, b { 45 strong, b {
66 color: #000; 46 color: #000;
67 font-weight:bold;
68 }
69 em {
70 font-style: italic;
71 } 47 }
72 48
73 49
74 /*------------------------------------------------------------------ 50 /*------------------------------------------------------------------
75 Component: Buttons 51 Component: Buttons
76 ------------------------------------------------------------------*/ 52 ------------------------------------------------------------------*/
77 .kd-button { 53 button {
78 display: inline-block; 54 min-width: 72px;
79 min-width: 72px;*min-width:70px;/*hello,IE7!*/ 55 border:1px solid #DCDCDC;
80 border:1px solid #DCDCDC; 56 color: #444;
81 border: 1px solid rgba(0,0,0,0.1); 57 font-size: 11px;
82 text-align: center; 58 font-weight: bold;
83 color: #444; 59 height: 27px;
84 font-size: 11px; 60 padding: 0 8px;
85 font-weight: bold; 61 line-height: 27px;
86 height: 27px; 62 -webkit-border-radius:2px;
87 padding: 0 8px; 63 -webkit-transition: all 0.218s;
88 line-height: 27px; 64 background-image: -webkit-gradient(linear, left top, left bottom,
89 -webkit-border-radius:2px; 65 from(#f5f5f5), to(#f1f1f1));
90 -webkit-transition: all 0.218s; 66 -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
91 background-color: #f5f5f5;
92 background-image: -webkit-gradient(linear,left top,left bottom,from(#f5f5f5) ,to(#f1f1f1));
93 -webkit-user-select:none;
94 cursor:default;
95 }
96 .kd-button:hover, .kd-button.hover {
97 border: 1px solid #C6C6C6;
98 color: #222;
99 -webkit-transition: all 0.0s;
100 transition: all 0.0s;
101 background-color: #f8f8f8;
102 background-image: -webkit-gradient(linear,left top,left bottom,from(#f8f8f8) ,to(#f1f1f1));
103 -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
104 } 67 }
105 68
106 /* Disabled buttons */ 69 button:hover:not([disabled]) {
107 .kd-button.disabled, .kd-button.disabled:hover, .kd-button.disabled:active { 70 border: 1px solid #C6C6C6;
108 background: none; 71 color: #222;
109 color: #b8b8b8; 72 -webkit-transition: all 0.0s;
110 border: 1px solid #f3f3f3; 73 transition: all 0.0s;
111 border: 1px solid rgba(0,0,0,0.05); 74 background-color: #f8f8f8;
112 cursor: default; 75 background-image: -webkit-gradient(linear, left top, left bottom,
113 pointer-events: none; 76 from(#f8f8f8), to(#f1f1f1));
114 } 77 -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
115 .kd-button-share.disabled, .kd-button-share.disabled:hover, .kd-button-share.dis abled:active {
116 border: 1px solid #505050;
117 background-color: #666;
118 color: #FFF;
119 opacity: 0.5;
120 filter: alpha(opacity=50);
121 } 78 }
122 79
123 /* Colored Buttons */ 80 /* Colored Buttons */
124 .kd-button-share:focus, .kd-button-share.focus { 81 .kd-button-share {
125 -webkit-box-shadow:inset 0 0 0 1px rgba(255,255,255,0.5); 82 border: 1px solid #29691d;
126 } 83 color: #FFF;
127 .kd-button-share:focus, .kd-button-share.focus { 84 text-shadow: 0px 1px rgba(0,0,0,0.1);
128 border-color:#404040; 85 background-image: -webkit-gradient(linear, left top, left bottom,
86 from(#3d9400), to(#398a00));
129 } 87 }
130 88
131 .kd-button-share:focus:hover, .kd-button-share.focus:hover { 89 .kd-button-share:hover:not([disabled]) {
132 -webkit-box-shadow:inset 0 0 0 1px #fff, 0px 1px 1px rgba(0,0,0,0.1); 90 border: 1px solid #404040;
91 color: #FFF;
92 text-shadow: 0px 1px rgba(0,0,0,0.3);
93 border-color: #2D6200;
94 background-image: -webkit-gradient(linear, left top, left bottom,
95 from(#3d9400), to(#368200));
133 } 96 }
134 97
135 .kd-button-share { 98 .kd-button-share:focus {
136 border: 1px solid #505050; 99 border-color:#404040;
137 color: #FFF; 100 -webkit-box-shadow:inset 0 0 0 1px rgba(255,255,255,0.5);
138 background-color: #666;
139 background-image: -webkit-gradient(linear,left top,left bottom,from(#777),to (#555));
140 }
141 .kd-button-share:hover {
142 border: 1px solid #404040;
143 color: #FFF;
144 background-color: #555;
145 background-image: -webkit-gradient(linear,left top,left bottom,from(#666),to (#444));
146 }
147 .kd-button-share:active, .kd-button-share:focus:active, .kd-button-share.focus:a ctive {
148 -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
149 } 101 }
150 102
151 .kd-button-share { 103 .kd-button-share:focus:hover {
152 text-shadow: 0px 1px rgba(0,0,0,0.1); 104 -webkit-box-shadow:inset 0 0 0 1px #fff, 0px 1px 1px rgba(0,0,0,0.1);
153 } 105 }
154 .kd-button-share:hover { 106
155 text-shadow: 0px 1px rgba(0,0,0,0.3); 107 .kd-button-share:active, .kd-button-share:focus:active {
108 -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
156 } 109 }
157 110
158 /*------------------------------------------------------------------ 111 /*------------------------------------------------------------------
159 Component: Text Field, Autocomplete 112 Component: Text Field
160 ------------------------------------------------------------------*/ 113 ------------------------------------------------------------------*/
161 input[type=text] { 114 input[type=text] {
162 height: 29px; 115 height: 29px;
163 background-color: #FFF;
164 line-height: 27px; 116 line-height: 27px;
165 padding-left: 8px; 117 padding-left: 8px;
166 color: #333; 118 color: #333;
167 border: 1px solid #d9d9d9; 119 border: 1px solid #d9d9d9;
168 border-top: 1px solid #c0c0c0; 120 border-top: 1px solid #c0c0c0;
169 display: inline-block;
170 vertical-align: top; 121 vertical-align: top;
171 -webkit-box-sizing: border-box;
172 -webkit-border-radius: 1px; 122 -webkit-border-radius: 1px;
173 } 123 }
174 input[type=text]:hover { 124 input[type=text]:hover {
175 border: 1px solid #b9b9b9; 125 border: 1px solid #b9b9b9;
176 border-top: 1px solid #a0a0a0; 126 border-top: 1px solid #a0a0a0;
177 -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1); 127 -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
178 } 128 }
179 input[type=text]:focus { 129 input[type=text]:focus {
180 -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3); 130 -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
181 outline: none; 131 outline: none;
182 border: 1px solid #4d90fe; 132 border: 1px solid #4d90fe;
183 } 133 }
184 134
185 /*------------------------------------------------------------------ 135 /*------------------------------------------------------------------
186 Component: Modal Dialog 136 Component: Modal Dialog
187 ------------------------------------------------------------------*/ 137 ------------------------------------------------------------------*/
188 .kd-modaldialog.visible { 138 .kd-modaldialog:not([hidden]) {
189 opacity: 1.0; 139 opacity: 1.0;
190 -webkit-transform: scale(1.0); 140 -webkit-transform: scale(1.0);
191 }
192 .kd-modaldialog {
193 -webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.2);
194 background: white;
195 outline:1px solid rgba(0,0,0,0.2);/* border:1px solid #CCC;/*THIS IS FOR NON -WEBKIT BROWSERS ONLY - OTHER BROWSERS DO NOT INTERPRET THE OUTLINE STYLE CORREC TLY*/
196 padding:30px 42px;
197 width: 500px;
198 height: auto;
199 overflow: hidden;
200 z-index: 100;
201 opacity: 0.0;
202 -webkit-transform: scale(1.05);
203 -webkit-transition: all 0.218s;
204 } 141 }
205 142
206 .kd-button-share.disabled, .kd-button-share.disabled:hover, .kd-button-share.dis abled:active { 143 .kd-modaldialog {
207 border-color:#29691d; 144 -webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.2);
208 background-color: #3d9400; 145 background: white;
209 } 146 outline:1px solid rgba(0,0,0,0.2);
210 .kd-button-share:focus, .kd-button-share.focus{ 147 padding:30px 42px;
211 border-color:#29691d; 148 width: 500px;
212 } 149 height: auto;
213 .kd-button-share { 150 overflow: hidden;
214 border-color: #29691d; 151 z-index: 100;
215 background-color: #3d9400; 152 opacity: 0.0;
216 background-image: -webkit-gradient(linear,left top,left bottom,from(#3d9400) ,to(#398a00)); 153 -webkit-transform: scale(1.05);
217 } 154 -webkit-transition: all 0.218s;
218 .kd-button-share:hover {
219 border-color: #2D6200;
220 background-color: #368200;
221 background-image: -webkit-gradient(linear,left top,left bottom,from(#3d9400) ,to(#368200));
222 } 155 }
223 156
224 a { 157 button:active {
225 color: rgb(0, 102, 204);
226 text-decoration: none;
227 }
228
229 body {
230 margin: 0;
231 padding: 20px;
232 direction: __MSG_@@bidi_dir__;
233 }
234
235 button, input {
236 font-family: inherit;
237 font-size: inherit;
238 }
239
240 button {
241 background: -webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5);
242 border: 1px solid #aaa;
243 -webkit-border-radius: 2px;
244 -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
245 -webkit-user-select: none;
246 }
247
248 button:hover {
249 background: #ebebeb -webkit-linear-gradient(#fefefe, #f8f8f8 40%, #e9e9e9);
250 border-color: #999;
251 color: #222;
252 -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
253 }
254
255 button:active, .toggle-button-active, .toggle-button-active:hover {
256 background: #ebebeb -webkit-linear-gradient(#f4f4f4, #efefef 40%, #dcdcdc); 158 background: #ebebeb -webkit-linear-gradient(#f4f4f4, #efefef 40%, #dcdcdc);
257 color: #333; 159 color: #333;
258 -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2); 160 -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2);
259 } 161 }
260 162
261 /* TODO(jamiewalch): Remove the !important tags when the CSS is rationalized */ 163 button[disabled], button[disabled]:hover, button[disabled]:active {
262 button[disabled], .button[disabled]:hover, .button[disabled]:active { 164 background: -webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5);
263 background: -webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5) !important; 165 border-color: #aaa;
264 border-color: #aaa !important; 166 color: #888;
265 color: #888 !important; 167 -webkit-box-shadow: none;
266 -webkit-box-shadow: none !important;
267 }
268
269 form {
270 display: inline;
271 } 168 }
272 169
273 h1.icon-label { 170 h1.icon-label {
274 vertical-align: 14px; 171 vertical-align: 14px;
275 margin-bottom: 60px; 172 margin-bottom: 60px;
276 font-size: 28px; 173 font-size: 28px;
277 font-weight: 300; 174 font-weight: 300;
278 color: #aaa; 175 color: #aaa;
279 font-family: "Open sans", "Ariel", sans-serif 176 font-family: "Open sans", "Ariel", sans-serif;
177 line-height: 24px;
178 }
179
180 h2 {
181 font-size: 16px;
182 line-height:24px;
183 font-weight: normal;
184 color: #222;
280 } 185 }
281 186
282 section > h2 { 187 section > h2 {
283 color: #666; 188 color: #666;
284 } 189 }
285 190
286 header { 191 header {
287 display: -webkit-box; 192 display: -webkit-box;
288 width: 100%; 193 width: 100%;
289 } 194 }
(...skipping 12 matching lines...) Expand all
302 width: 690px; 207 width: 690px;
303 margin: 30px auto; 208 margin: 30px auto;
304 border: 1px solid #e5e5e5; 209 border: 1px solid #e5e5e5;
305 background: #f9f9f9; 210 background: #f9f9f9;
306 padding: 20px 30px 20px 30px; 211 padding: 20px 30px 20px 30px;
307 border-radius: 3px; 212 border-radius: 3px;
308 box-shadow: 0 2px 5px rgba(0,0,0,0.07); 213 box-shadow: 0 2px 5px rgba(0,0,0,0.07);
309 } 214 }
310 215
311 216
312 /* Classes */
313
314 .access-code-digit-group { 217 .access-code-digit-group {
315 /* 218 /*
316 Used for each of the four-digit components of the access code as 219 Used for each of the four-digit components of the access code as
317 displayed by the host. 220 displayed by the host.
318 */ 221 */
319 padding: 0px 6px; 222 padding: 0px 6px;
320 } 223 }
321 224
322 .box-spacer { 225 .box-spacer {
323 -webkit-box-flex: 1; 226 -webkit-box-flex: 1;
324 } 227 }
325 228
326 .centered-button { 229 .centered-button {
327 /* 230 /*
328 Used to force buttons to center correctly on Chrome due to a quirk 231 Used to force buttons to center correctly on Chrome due to a quirk
329 with laying out buttons. http://crbug.com/84654 232 with laying out buttons. http://crbug.com/84654
330 233
331 TODO(ajwong): Either fix Chrome layout behavior, or if Chrome is actually 234 TODO(ajwong): Either fix Chrome layout behavior, or if Chrome is actually
332 conforming correctly to the standard, remove this comment. 235 conforming correctly to the standard, remove this comment.
333 */ 236 */
334 text-align: center; 237 text-align: center;
335 } 238 }
336 239
337 .collapsed {
338 opacity: 0;
339 height: 0 !important;
340 }
341
342 .clickable { 240 .clickable {
343 cursor: pointer; 241 cursor: pointer;
344 } 242 }
345 243
346 .selectable { 244 .selectable {
347 -webkit-user-select: text; 245 -webkit-user-select: text;
348 cursor: text; 246 cursor: text;
349 } 247 }
350 248
351 .section-row { 249 .section-row {
352 display: -webkit-box; 250 display: -webkit-box;
353 -webkit-box-align: center; 251 -webkit-box-align: center;
354 padding: 10px 0; 252 padding: 10px 0;
355 border-top: 1px solid #EBEBEB; 253 border-top: 1px solid #EBEBEB;
356 } 254 }
357 255
358 .section-row:first-child { 256 .section-row:first-child {
359 border-top: none; 257 border-top: none;
360 } 258 }
361 259
362 .error-state { 260 .error-state {
363 background-image: url('icon_warning.png'); 261 background-image: url('icon_warning.png');
364 background-repeat: no-repeat; 262 background-repeat: no-repeat;
365 background-position: top __MSG_@@bidi_start_edge__; 263 background-position: top __MSG_@@bidi_start_edge__;
366 padding-__MSG_@@bidi_start_edge__: 30px; 264 padding-__MSG_@@bidi_start_edge__: 30px;
367 padding-top: 5px; 265 padding-top: 5px;
368 color: #900; 266 color: #900;
369 display: inline-block;
370 } 267 }
371 268
372 .expiring { 269 .expiring {
373 color: #900 !important; 270 color: #900 !important;
374 } 271 }
375 272
376 [hidden] {
377 display: none !important;
378 }
379
380
381 .icon-label { 273 .icon-label {
382 display: inline-block; 274 display: inline-block;
383 vertical-align: top; 275 vertical-align: top;
384 margin-__MSG_@@bidi_start_edge__: 10px; 276 margin-__MSG_@@bidi_start_edge__: 10px;
385 } 277 }
386 278
387 .information-box { 279 .information-box {
388 background-color: #f9edbe; 280 background-color: #f9edbe;
389 border: 1px solid #f0c36d; 281 border: 1px solid #f0c36d;
390 -webkit-border-radius: 2px; 282 -webkit-border-radius: 2px;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 .host-list-main-icon { 340 .host-list-main-icon {
449 margin-right: 10px; 341 margin-right: 10px;
450 vertical-align: middle; 342 vertical-align: middle;
451 } 343 }
452 344
453 .host-offline .host-list-label, 345 .host-offline .host-list-label,
454 .host-offline .host-list-main-icon { 346 .host-offline .host-list-main-icon {
455 opacity: 0.5; 347 opacity: 0.5;
456 } 348 }
457 349
458 .kd-button { 350 button {
459 white-space:nowrap; 351 white-space:nowrap;
460 } 352 }
461 353
462 .small-print { 354 .small-print {
463 font-size: 13px; 355 font-size: 13px;
464 color: #AAA; 356 color: #AAA;
465 } 357 }
466 358
467 .waiting:before { 359 .waiting:before {
468 content: url('spinner.gif'); 360 content: url('spinner.gif');
469 position: absolute; 361 position: absolute;
470 left: 0px; 362 left: 0px;
471 top: -3px; 363 top: -3px;
472 } 364 }
473 365
474 .waiting { 366 .waiting {
475 color: rgb(180, 180, 180); 367 color: rgb(180, 180, 180);
476 margin-left: 30px; 368 margin-left: 30px;
477 } 369 }
478 370
479 .waiting-container { 371 .waiting-container {
480 position: relative; 372 position: relative;
481 } 373 }
482 374
483 .space-before { 375 .space-before {
484 margin-top: 30px; 376 margin-top: 30px;
485 } 377 }
486 378
487 /* Ids */ 379
488 #access-code-countdown-container { 380 #access-code-countdown-container {
489 height: 50px; 381 height: 50px;
490 text-align: center; 382 text-align: center;
491 } 383 }
492 384
493 #access-code-display { 385 #access-code-display {
494 margin-top: 50px; 386 margin-top: 50px;
495 color: rgb(0, 0, 0); 387 color: rgb(0, 0, 0);
496 font-weight: bold; 388 font-weight: bold;
497 font-size: 26px; 389 font-size: 26px;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 line-height: 0; 470 line-height: 0;
579 } 471 }
580 472
581 #top-secondary { 473 #top-secondary {
582 margin-top: 10px 474 margin-top: 10px
583 } 475 }
584 476
585 * { 477 * {
586 box-sizing: border-box; 478 box-sizing: border-box;
587 } 479 }
OLDNEW
« no previous file with comments | « remoting/webapp/host_list.js ('k') | remoting/webapp/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698