Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / remoting / webapp / base / html / main.css
blob349a78fe77d1ff4480ce59d14b738055edbb06d9
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
3 * found in the LICENSE file.
4 */
6 html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
7 blockquote, a, abbr, acronym, address, big, cite, code, del, dfn, em,
8 font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl,
9 dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody,
10 tfoot, thead, tr, th, td, button {
11 margin: 0;
12 padding: 0;
13 border: 0;
14 font-weight: inherit;
15 font-style: inherit;
16 font-size: 100%;
17 font-family: inherit;
18 vertical-align: baseline;
21 .inset {
22 padding: 20px 20px 0 20px;
23 position: relative;
26 body {
27 font-family: "Arial", "Helvetica", sans-serif;
28 color: #222;
29 font-size: 13px;
30 margin: 0;
31 direction: __MSG_@@bidi_dir__;
36 * The "app-v2" class is added to the <html> node by remoting.init if it's
37 * running as a V2 app.
39 html.apps-v2 .apps-v1-only {
40 display: none !important;
43 html:not(.apps-v2) .apps-v2-only {
44 display: none !important;
47 a {
48 text-decoration: none;
49 color: #15c;
50 cursor: pointer;
53 a:active {
54 color: #d14836;
57 strong, b {
58 color: #000;
61 /*------------------------------------------------------------------
62 Component: Buttons
63 ------------------------------------------------------------------*/
64 button {
65 min-width: 72px;
66 border:1px solid #DCDCDC;
67 color: #444;
68 font-size: 11px;
69 font-weight: bold;
70 height: 27px;
71 padding: 0 8px;
72 line-height: 27px;
73 border-radius:2px;
74 -webkit-transition: all 0.218s;
75 background-image: -webkit-gradient(linear, left top, left bottom,
76 from(#f5f5f5), to(#f1f1f1));
77 box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
80 button:hover {
81 border: 1px solid #C6C6C6;
82 color: #222;
83 transition: all 0.0s;
84 background-image: -webkit-gradient(linear, left top, left bottom,
85 from(#f8f8f8), to(#f1f1f1));
86 box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
89 button:active {
90 background: #f6f6f6 -webkit-gradient(linear,left top,left bottom,
91 from(#f6f6f6),to(#f1f1f1));
92 box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2);
95 button:focus {
96 outline: none;
97 border: 1px solid #4d90fe;
100 button[disabled], button[disabled]:hover, button[disabled]:active {
101 background: linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5);
102 border-color: #aaa;
103 color: #888;
104 box-shadow: none;
107 /* Colored Buttons */
108 .kd-button-share {
109 border: 1px solid #29691d;
110 color: #FFF;
111 text-shadow: 0px 1px rgba(0,0,0,0.1);
112 background-image: -webkit-gradient(linear,left top,left bottom,
113 from(#3d9400),to(#398a00));
116 .kd-button-share:hover {
117 border: 1px solid #404040;
118 color: #FFF;
119 text-shadow: 0px 1px rgba(0,0,0,0.3);
120 background-image: -webkit-gradient(linear,left top,left bottom,
121 from(#3d9400),to(#368200));
124 .kd-button-share:active, .kd-button-share:focus:active {
125 box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
126 background-image: -webkit-gradient(linear,left top,left bottom,
127 from(#3d9400),to(#368200));
130 .kd-button-share:focus {
131 border-color:#29691d;
132 box-shadow:inset 0 0 0 1px rgba(255,255,255,0.5);
135 .kd-button-share:focus:hover {
136 box-shadow:inset 0 0 0 1px #fff, 0px 1px 1px rgba(0,0,0,0.1);
139 .kd-button-share[disabled], .kd-button-share[disabled]:hover,
140 .kd-button-share[disabled]:active {
141 border: 1px solid #505050;
142 color: #FFF;
143 opacity: 0.5;
144 text-shadow: 0px 1px rgba(0,0,0,0.1);
145 background-image: -webkit-gradient(linear,left top,left bottom,
146 from(#3d9400),to(#398a00));
149 ::-webkit-scrollbar {
150 width: 16px;
151 height: 16px;
154 ::-webkit-scrollbar-button {
155 height: 0px;
156 width: 0px;
159 ::-webkit-scrollbar-thumb {
160 min-height: 28px;
161 padding-top:100px;
162 background-clip:padding-box;
163 background-color: rgba(0,0,0,0.2);
164 box-shadow: inset 1px 1px 0px rgba(0,0,0,0.10),
165 inset 0px -1px 0px rgba(0,0,0,0.07);
168 ::-webkit-scrollbar-thumb:hover {
169 background-color: rgba(0,0,0,0.4);
170 box-shadow: inset 1px 1px 1px rgba(0,0,0,0.25);
173 ::-webkit-scrollbar-thumb:active {
174 box-shadow: inset 1px 1px 3px rgba(0,0,0,0.35);
175 background-color: rgba(0,0,0,0.5);
178 ::-webkit-scrollbar-track:hover {
179 background-color:rgba(0,0,0,0.05);
180 box-shadow: inset 1px 0px 0px rgba(0,0,0,0.10);
183 ::-webkit-scrollbar-track:active {
184 background-color:rgba(0,0,0,0.05);
185 box-shadow: inset 1px 0px 0px rgba(0,0,0,0.14),
186 inset -1px -1px 0px rgba(0,0,0,0.07);
189 ::-webkit-scrollbar-track-piece {
190 background: white;
193 /*------------------------------------------------------------------
194 Component: Text Field
195 ------------------------------------------------------------------*/
196 input[type=text],
197 input[type=password] {
198 height: 29px;
199 padding-__MSG_@@bidi_start_edge__: 8px;
200 color: #333;
201 border: 1px solid #d9d9d9;
202 border-top: 1px solid #c0c0c0;
203 vertical-align: top;
204 -webkit-border-radius: 1px;
206 input[type=text]:hover,
207 input[type=password]:hover {
208 border: 1px solid #b9b9b9;
209 border-top: 1px solid #a0a0a0;
210 box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
212 input[type=text]:focus,
213 input[type=password]:focus {
214 box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
215 outline: none;
216 border: 1px solid #4d90fe;
219 /*------------------------------------------------------------------
220 Component: Modal Dialog
221 ------------------------------------------------------------------*/
222 .kd-modaldialog:not([hidden]) {
223 opacity: 1.0;
224 -webkit-transform: scale(1.0);
227 .kd-modaldialog {
228 box-shadow: 0 4px 16px rgba(0,0,0,0.2);
229 background: white;
230 outline:1px solid rgba(0,0,0,0.2);
231 padding:30px 42px;
232 width: 500px;
233 height: auto;
234 overflow: hidden;
235 z-index: 100;
236 opacity: 0.0;
237 margin: auto;
238 -webkit-transform: scale(1.05);
239 -webkit-transition: all 0.218s;
242 h1.icon-label {
243 vertical-align: 14px;
244 margin-bottom: 60px;
245 font-size: 28px;
246 font-weight: 300;
247 color: #999;
248 font-family: "Open sans", "Ariel", sans-serif;
249 line-height: 24px;
250 display: inline-block;
251 margin-__MSG_@@bidi_start_edge__: 10px;
254 h2 {
255 font-size: 16px;
256 line-height:24px;
257 font-weight: normal;
258 color: #222;
259 margin-bottom: 10px;
262 .h2-secondary {
263 float: __MSG_@@bidi_end_edge__;
266 #host-list-loading-indicator:not(.loading) #host-list-loading,
267 #host-list-loading-indicator.loading #host-list-reload {
268 display: none;
271 .icon-black > img {
272 opacity: 0.3;
275 .icon-black:hover > img {
276 opacity: 0.4;
279 section h2 {
280 color: #666;
283 header {
284 display: flex;
285 width: 100%;
288 html {
289 -webkit-user-select: none;
290 cursor: default;
293 section {
294 width: 690px;
295 margin: 30px auto;
298 section {
299 border: 1px solid #e5e5e5;
300 background: #f9f9f9;
301 padding: 20px 30px 20px 30px;
302 border-radius: 3px;
303 box-shadow: 0 2px 5px rgba(0,0,0,0.07);
304 position: relative;
307 .access-code-digit-group {
309 Used for each of the four-digit components of the access code as
310 displayed by the host.
312 padding: 0px 6px;
315 .box-spacer {
316 flex: 1;
319 .centered {
320 margin: auto;
323 .button-row {
324 display: flex;
325 flex-direction: row;
326 justify-content: flex-end;
327 margin-top: 20px;
330 .button-row button {
331 margin-left: 5px;
334 .button-row span:first-child {
335 width: 100%;
338 .clickable {
339 cursor: pointer;
342 .box {
343 display: flex;
346 .host-list-empty-instructions {
347 padding-__MSG_@@bidi_start_edge__: 36px;
348 color: #666;
349 background-image: url(host_setup_instructions.webp);
350 background-repeat: no-repeat;
351 background-position: -3px -2px;
354 .selectable {
355 -webkit-user-select: text;
356 cursor: text;
359 .section-row {
360 display: flex;
361 -webkit-align-items: center;
362 padding: 10px 0;
363 border-bottom: 1px solid #EBEBEB;
366 .section-row button {
367 margin-__MSG_@@bidi_start_edge__: 20px;
370 .daemon-control .section-row {
371 border-bottom: none;
374 .editbox-label {
375 line-height: 29px;
376 font-weight: bold;
377 margin-right: 6px;
380 .error-state {
381 background-image: url(icon_warning.webp);
382 background-repeat: no-repeat;
383 background-position: top __MSG_@@bidi_start_edge__;
384 padding-__MSG_@@bidi_start_edge__: 30px;
385 color: #900;
387 /* Vertical align the text*/
388 display: table-cell;
389 vertical-align: middle;
390 height: 24px;
393 .expiring {
394 color: #900 !important;
397 .infographic {
398 position: absolute;
399 __MSG_@@bidi_end_edge__: 22px;
400 top: 24px;
403 .infographic-description {
404 height: 80px;
405 width: 400px;
406 padding-top: 2em;
409 .information-box {
410 background-color: #f9edbe;
411 border: 1px solid #f0c36d;
412 -webkit-border-radius: 2px;
413 box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
414 color: #222;
415 padding: 8px 16px;
416 text-align: center;
417 font-size: 12px;
418 margin-top: 30px;
421 .message {
422 margin-bottom: 24px;
425 .mode-select-button-column {
426 text-align: __MSG_@@bidi_end_edge__;
429 .mode-select-button-column button {
430 min-width: 72px;
433 td {
434 vertical-align: middle;
437 thead {
438 font-weight: bold;
441 #this-host-connect:hover,
442 .host-online.clickable:hover,
443 .host-online.clickable.child-focused {
444 background-color: #f2f2f2;
447 .host-list-rename-icon,
448 .host-list-remove-icon {
449 opacity: 0;
452 .section-row:hover .host-list-rename-icon,
453 .section-row.child-focused .host-list-rename-icon {
454 opacity: 0.6;
457 .section-row:hover .host-list-remove-icon,
458 .section-row.child-focused .host-list-remove-icon {
459 opacity: 0.3;
462 .host-list-rename-icon:hover {
463 opacity: 1 !important;
466 .host-list-remove-icon:hover {
467 opacity: 0.5 !important;
470 .host-list-edit {
471 padding: 0 5px;
474 .host-name-label, .host-name-label:visited, .host-name-label:active {
475 color: inherit;
476 cursor: inherit;
479 .host-list-main-icon {
480 margin-__MSG_@@bidi_end_edge__: 10px;
481 vertical-align: middle;
482 position: relative;
485 .host-list-main-icon > span {
486 background-image: url(icon_warning.webp);
487 background-repeat: no-repeat;
488 position: absolute;
489 width: 22px;
490 height: 22px;
491 bottom: -5px;
492 right: -10px;
495 .host-offline .host-name-label,
496 .host-offline .host-list-main-icon {
497 opacity: 0.5;
500 #this-host-connect,
501 .host-enabled-other-account {
502 -webkit-align-items: center;
503 display: flex;
506 #this-host-connect .host-entry {
507 flex: 1;
510 button {
511 white-space:nowrap;
514 .small-print {
515 font-size: 13px;
516 color: #AAA;
519 .waiting {
520 background-image: url(spinner.gif);
521 background-repeat: no-repeat;
522 background-position: __MSG_@@bidi_start_edge__ 3px;
523 padding: 5px 30px;
524 color: rgb(180, 180, 180);
527 .prominent {
528 color: #222;
531 #access-code-countdown-container {
532 height: 50px;
533 text-align: center;
536 #access-code-display {
537 margin-top: 50px;
538 color: rgb(0, 0, 0);
539 font-weight: bold;
540 font-size: 26px;
541 text-align: center;
544 #access-code-entry-row {
545 margin-top: 24px;
548 #ask-pin-form .table-label {
549 min-width: 120px;
550 text-align: __MSG_@@bidi_end_edge__;
551 display: inline-block;
554 #ask-pin-form > div {
555 margin-bottom: 8px;
558 .checkbox-label {
559 display: block;
560 padding-__MSG_@@bidi_start_edge__: 20px;
561 margin-top: 12px;
564 .checkbox-label.disabled {
565 color: #888;
568 .checkbox-label input[type=checkbox] {
569 float: __MSG_@@bidi_start_edge__;
570 margin-__MSG_@@bidi_start_edge__: -20px;
571 margin-__MSG_@@bidi_end_edge__: 0;
572 width: 20px;
573 margin-top: 2px;
576 .checkbox-indent {
577 margin-left: 18px;
580 #current-email {
581 color: rgba(0, 0, 0, 0.5);
584 .dialog-container {
585 position: absolute;
586 top: 200px;
587 left: 0;
588 width: 100%;
589 z-index: 2;
592 .dialog-screen {
593 position: absolute;
594 top: 0;
595 left: 0;
596 width: 100%;
597 height: 100%;
598 background-color: #fff;
599 opacity: 0.75;
600 z-index: 1;
603 /* TODO(jamiewalch): crbug.com/252796: Remove these once crbug.com/240772
604 * is fixed. */
605 .no-horizontal-scroll {
606 overflow-x: hidden !important;
609 .no-vertical-scroll {
610 overflow-y: hidden !important;
613 html.apps-v2.scrollable {
614 overflow: scroll;
617 /* TODO(jamiewalch): Reinstate this if we're able to get translations for
618 * "Why is this safe?" that don't overflow in any language.
619 #host-setup-dialog {
620 width: 460px;
624 /* The NAT traversal state is independent of the app mode, and both need
625 * to be combined to determine the visibility of the butter bar. We use
626 * a style for the former and the 'hidden' property for the latter. */
627 #nat-box.traversal-enabled {
628 display: none;
631 #remember-pin {
632 width: 315px;
635 #session-client-plugin {
636 box-shadow: 0 0 8px 0 black;
637 -webkit-user-select: none;
638 display: block;
639 flex-shrink: 0;
640 z-index: 2; /* Show above the dialog screen so that click-to-play works. */
643 .session-client-inactive {
644 -webkit-filter: grayscale(70%);
645 transition: -webkit-filter 0.218s;
648 #set-pin-table td {
649 border-bottom: 6px solid transparent;
652 #webapp-description {
653 margin-bottom: 10px;
657 box-sizing: border-box;
661 * Setting hidden on elements that match some rule overriding 'display' doesn't
662 * do what you would expect unless this is made explicit (and !important).
664 [hidden] {
665 display: none !important;
668 .full-width {
669 width: 100%;
672 .full-height {
673 height: 100%;
676 .horizontally-centered {
677 display: flex;
678 align-items: center;
681 .vertically-centered {
682 display: flex;
683 flex-direction: column;
684 height: 100%
687 .horizontally-centered::before,
688 .horizontally-centered::after,
689 .vertically-centered::before,
690 .vertically-centered::after {
691 content: "";
692 flex: 1;
695 /* Bump-scrolling is currently implemented by adjusting the margins, which is
696 * easier to implement with "position: fixed". In full-screen mode there are
697 * no scroll-bars, so the advantages of flex-box layout to achieve centering
698 * (ie, the DOM is easier to measure to determine when scroll-bars are needed)
699 * don't apply */
700 .fullscreen #session-mode {
701 position: fixed;
702 top: 0;
703 left: 0;
704 width: 100%;
707 /* Override full-height class until connected, otherwise it takes up 100% of
708 * the window height in addition to the home-screen UI. */
709 body:not(.connected) #session-mode {
710 height: auto;
713 .debug-region-container {
714 position: absolute;
715 top: 0px;
716 left: 0px;
717 pointer-events: none;
720 .debug-region-rect {
721 position: absolute;
722 background-color: rgba(255, 0, 255, 0.5);
723 border-color: #000000;
724 border-style: solid;
725 border-width: 2px;
726 box-sizing: border-box;
729 #client-container {
730 /* The mouse-cursor-overlay is positioned relative to the client plugin,
731 * which is contained within this element. */
732 position: relative;
735 .mouse-cursor-overlay {
736 position: absolute;
737 pointer-events: none;
740 #connection-dropped-dialog .restart-timer {
741 color: rgb(0, 0, 0);
742 font-weight: bold;