Hide X11 dependencies when use_x11=0.
[chromium-blink-merge.git] / remoting / webapp / main.css
blob76734985390346500bb81a4f685122c749a16e9f
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, pre, 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;
25 body {
26 font-family: "Arial", "Helvetica", sans-serif;
27 color: #222;
28 font-size: 13px;
29 margin: 0;
30 direction: __MSG_@@bidi_dir__;
34 * The "app-v2" class is added to the <html> node by remoting.init if it's
35 * running as a V2 app.
37 html.apps-v2 .apps-v1-only {
38 display: none !important;
41 html:not(.apps-v2) .apps-v2-only {
42 display: none !important;
45 a {
46 text-decoration: none;
47 color: #15c;
48 cursor: pointer;
51 a:active {
52 color: #d14836;
55 strong, b {
56 color: #000;
59 /*------------------------------------------------------------------
60 Component: Buttons
61 ------------------------------------------------------------------*/
62 button {
63 min-width: 72px;
64 border:1px solid #DCDCDC;
65 color: #444;
66 font-size: 11px;
67 font-weight: bold;
68 height: 27px;
69 padding: 0 8px;
70 line-height: 27px;
71 border-radius:2px;
72 -webkit-transition: all 0.218s;
73 background-image: -webkit-gradient(linear, left top, left bottom,
74 from(#f5f5f5), to(#f1f1f1));
75 box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
78 button:hover {
79 border: 1px solid #C6C6C6;
80 color: #222;
81 transition: all 0.0s;
82 background-image: -webkit-gradient(linear, left top, left bottom,
83 from(#f8f8f8), to(#f1f1f1));
84 box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
87 button:active {
88 background: #f6f6f6 -webkit-gradient(linear,left top,left bottom,
89 from(#f6f6f6),to(#f1f1f1));
90 box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2);
93 button:focus {
94 outline: none;
95 border: 1px solid #4d90fe;
98 button[disabled], button[disabled]:hover, button[disabled]:active {
99 background: linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5);
100 border-color: #aaa;
101 color: #888;
102 box-shadow: none;
105 /* Colored Buttons */
106 .kd-button-share {
107 border: 1px solid #29691d;
108 color: #FFF;
109 text-shadow: 0px 1px rgba(0,0,0,0.1);
110 background-image: -webkit-gradient(linear,left top,left bottom,
111 from(#3d9400),to(#398a00));
114 .kd-button-share:hover {
115 border: 1px solid #404040;
116 color: #FFF;
117 text-shadow: 0px 1px rgba(0,0,0,0.3);
118 background-image: -webkit-gradient(linear,left top,left bottom,
119 from(#3d9400),to(#368200));
122 .kd-button-share:active, .kd-button-share:focus:active {
123 box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
124 background-image: -webkit-gradient(linear,left top,left bottom,
125 from(#3d9400),to(#368200));
128 .kd-button-share:focus {
129 border-color:#29691d;
130 box-shadow:inset 0 0 0 1px rgba(255,255,255,0.5);
133 .kd-button-share:focus:hover {
134 box-shadow:inset 0 0 0 1px #fff, 0px 1px 1px rgba(0,0,0,0.1);
137 .kd-button-share[disabled], .kd-button-share[disabled]:hover,
138 .kd-button-share[disabled]:active {
139 border: 1px solid #505050;
140 color: #FFF;
141 opacity: 0.5;
142 text-shadow: 0px 1px rgba(0,0,0,0.1);
143 background-image: -webkit-gradient(linear,left top,left bottom,
144 from(#3d9400),to(#398a00));
147 ::-webkit-scrollbar {
148 width: 16px;
149 height: 16px;
152 ::-webkit-scrollbar-button {
153 height: 0px;
154 width: 0px;
157 ::-webkit-scrollbar-thumb {
158 min-height: 28px;
159 padding-top:100px;
160 background-clip:padding-box;
161 background-color: rgba(0,0,0,0.2);
162 box-shadow: inset 1px 1px 0px rgba(0,0,0,0.10),
163 inset 0px -1px 0px rgba(0,0,0,0.07);
166 ::-webkit-scrollbar-thumb:hover {
167 background-color: rgba(0,0,0,0.4);
168 box-shadow: inset 1px 1px 1px rgba(0,0,0,0.25);
171 ::-webkit-scrollbar-thumb:active {
172 box-shadow: inset 1px 1px 3px rgba(0,0,0,0.35);
173 background-color: rgba(0,0,0,0.5);
176 ::-webkit-scrollbar-track:hover {
177 background-color:rgba(0,0,0,0.05);
178 box-shadow: inset 1px 0px 0px rgba(0,0,0,0.10);
181 ::-webkit-scrollbar-track:active {
182 background-color:rgba(0,0,0,0.05);
183 box-shadow: inset 1px 0px 0px rgba(0,0,0,0.14),
184 inset -1px -1px 0px rgba(0,0,0,0.07);
187 ::-webkit-scrollbar-track-piece {
188 background: white;
191 /*------------------------------------------------------------------
192 Component: Text Field
193 ------------------------------------------------------------------*/
194 input[type=text],
195 input[type=password] {
196 height: 29px;
197 padding-__MSG_@@bidi_start_edge__: 8px;
198 color: #333;
199 border: 1px solid #d9d9d9;
200 border-top: 1px solid #c0c0c0;
201 vertical-align: top;
202 -webkit-border-radius: 1px;
204 input[type=text]:hover,
205 input[type=password]:hover {
206 border: 1px solid #b9b9b9;
207 border-top: 1px solid #a0a0a0;
208 box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
210 input[type=text]:focus,
211 input[type=password]:focus {
212 box-shadow: inset 0px 1px 2px rgba(0,0,0,0.3);
213 outline: none;
214 border: 1px solid #4d90fe;
217 /*------------------------------------------------------------------
218 Component: Modal Dialog
219 ------------------------------------------------------------------*/
220 .kd-modaldialog:not([hidden]) {
221 opacity: 1.0;
222 -webkit-transform: scale(1.0);
225 .kd-modaldialog {
226 box-shadow: 0 4px 16px rgba(0,0,0,0.2);
227 background: white;
228 outline:1px solid rgba(0,0,0,0.2);
229 padding:30px 42px;
230 width: 500px;
231 height: auto;
232 overflow: hidden;
233 z-index: 100;
234 opacity: 0.0;
235 -webkit-transform: scale(1.05);
236 -webkit-transition: all 0.218s;
239 h1.icon-label {
240 vertical-align: 14px;
241 margin-bottom: 60px;
242 font-size: 28px;
243 font-weight: 300;
244 color: #999;
245 font-family: "Open sans", "Ariel", sans-serif;
246 line-height: 24px;
247 display: inline-block;
248 margin-__MSG_@@bidi_start_edge__: 10px;
251 h2 {
252 font-size: 16px;
253 line-height:24px;
254 font-weight: normal;
255 color: #222;
256 margin-bottom: 10px;
259 .h2-secondary {
260 float: __MSG_@@bidi_end_edge__;
263 #host-list-loading-indicator:not(.loading) #host-list-loading,
264 #host-list-loading-indicator.loading #host-list-reload {
265 display: none;
268 .icon-black > img {
269 opacity: 0.3;
272 .icon-black:hover > img {
273 opacity: 0.4;
276 section h2 {
277 color: #666;
280 header {
281 display: flex;
282 width: 100%;
285 html {
286 -webkit-user-select: none;
287 cursor: default;
290 section {
291 width: 690px;
292 margin: 30px auto;
295 section {
296 border: 1px solid #e5e5e5;
297 background: #f9f9f9;
298 padding: 20px 30px 20px 30px;
299 border-radius: 3px;
300 box-shadow: 0 2px 5px rgba(0,0,0,0.07);
301 position: relative;
304 .access-code-digit-group {
306 Used for each of the four-digit components of the access code as
307 displayed by the host.
309 padding: 0px 6px;
312 .box-spacer {
313 flex: 1;
316 .centered {
317 margin: auto;
320 .button-row {
321 display: flex;
322 flex-direction: row;
323 justify-content: flex-end;
324 margin-top: 20px;
327 .button-row button {
328 margin-left: 5px;
331 .button-row span:first-child {
332 width: 100%;
335 .clickable {
336 cursor: pointer;
339 .box {
340 display: flex;
343 .host-list-empty-instructions {
344 padding-__MSG_@@bidi_start_edge__: 36px;
345 color: #666;
346 background-image: url('host_setup_instructions.webp');
347 background-repeat: no-repeat;
348 background-position: -3px -2px;
351 #host-list-empty-hosting-supported {
352 margin-top: 14px;
353 padding-top: 20px;
354 border-top: 1px solid #E5E5E5;
355 background-position-y: 18px;
358 .selectable {
359 -webkit-user-select: text;
360 cursor: text;
363 .section-row {
364 display: flex;
365 -webkit-align-items: center;
366 padding: 10px 0;
367 border-top: 1px solid #EBEBEB;
370 .section-row button {
371 margin-__MSG_@@bidi_start_edge__: 20px;
374 .section-row:first-child,
375 .section-row.no-non-local-hosts {
376 border-top: none;
379 .editbox-label {
380 line-height: 29px;
381 font-weight: bold;
384 .error-state {
385 background-image: url('icon_warning.webp');
386 background-repeat: no-repeat;
387 background-position: top __MSG_@@bidi_start_edge__;
388 padding-__MSG_@@bidi_start_edge__: 30px;
389 padding-top: 5px;
390 color: #900;
393 .error-state.multi-line-error-state {
394 padding-top: 0;
395 min-height: 22px;
398 .expiring {
399 color: #900 !important;
402 .infographic {
403 position: absolute;
404 __MSG_@@bidi_end_edge__: 22px;
405 top: 24px;
408 .infographic-description {
409 height: 80px;
410 width: 400px;
411 padding-top: 2em;
414 .information-box {
415 background-color: #f9edbe;
416 border: 1px solid #f0c36d;
417 -webkit-border-radius: 2px;
418 box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
419 color: #222;
420 padding: 8px 16px;
421 text-align: center;
422 font-size: 12px;
423 margin-top: 30px;
426 #butter-bar {
427 position: absolute;
428 top: 80px;
429 left: 0;
430 display: -webkit-box;
431 width: 100%;
434 #butter-bar-dismiss img {
435 vertical-align: top;
436 opacity: 0.4;
437 margin-__MSG_@@bidi_start_edge__: 2px;
438 margin-__MSG_@@bidi_end_edge__: -12px;
441 #butter-bar-dimiss:hover {
442 opacity: 0.7;
445 #butter-bar > p {
446 background-color: #f9edbe;
447 border: 1px solid #f0c36d;
448 border-radius: 2px;
449 box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
450 color: #222;
451 font-size: 12px;
452 padding: 4px 16px;
453 margin: auto;
456 #butter-bar a {
457 color: inherit;
458 text-decoration: underline;
459 padding-__MSG_@@bidi_start_edge__: 2px;
462 #paired-clients-list table {
463 width: 100%;
466 .message {
467 margin-bottom: 24px;
470 .mode-select-button-column {
471 text-align: __MSG_@@bidi_end_edge__;
474 .mode-select-button-column button {
475 min-width: 72px;
478 td {
479 vertical-align: middle;
482 thead {
483 font-weight: bold;
486 .host-online.clickable:hover,
487 .host-online.clickable.child-focused {
488 background-color: #f2f2f2;
491 .host-list-rename-icon,
492 .host-list-remove-icon {
493 opacity: 0;
496 .section-row:hover .host-list-rename-icon,
497 .section-row.child-focused .host-list-rename-icon {
498 opacity: 0.6;
501 .section-row:hover .host-list-remove-icon,
502 .section-row.child-focused .host-list-remove-icon {
503 opacity: 0.3;
506 .host-list-rename-icon:hover {
507 opacity: 1 !important;
510 .host-list-remove-icon:hover {
511 opacity: 0.5 !important;
514 .host-list-edit {
515 padding: 0 5px;
518 .host-list-label, .host-list-label:visited, .host-list-label:active {
519 color: inherit;
520 cursor: inherit;
523 .host-list-main-icon {
524 margin-__MSG_@@bidi_end_edge__: 10px;
525 vertical-align: middle;
526 position: relative;
529 .host-list-main-icon > span {
530 background-image: url('icon_warning.webp');
531 background-repeat: no-repeat;
532 position: absolute;
533 width: 22px;
534 height: 22px;
535 bottom: -5px;
536 right: -10px;
539 .host-offline .host-list-label,
540 .host-offline .host-list-main-icon {
541 opacity: 0.5;
544 button {
545 white-space:nowrap;
548 .small-print {
549 font-size: 13px;
550 color: #AAA;
553 .waiting {
554 background-image: url('spinner.gif');
555 background-repeat: no-repeat;
556 background-position: __MSG_@@bidi_start_edge__ 3px;
557 padding: 5px 30px;
558 color: rgb(180, 180, 180);
561 .prominent {
562 color: #222;
565 #access-code-countdown-container {
566 height: 50px;
567 text-align: center;
570 #access-code-display {
571 margin-top: 50px;
572 color: rgb(0, 0, 0);
573 font-weight: bold;
574 font-size: 26px;
575 text-align: center;
578 #access-code-entry-row {
579 margin-top: 24px;
582 #ask-pin-form .table-label {
583 min-width: 120px;
584 text-align: __MSG_@@bidi_end_edge__;
585 display: inline-block;
588 #ask-pin-form > div {
589 margin-bottom: 8px;
592 .checkbox-label {
593 display: block;
594 padding-__MSG_@@bidi_start_edge__: 20px;
595 margin-top: 12px;
598 .checkbox-label input[type=checkbox] {
599 float: __MSG_@@bidi_start_edge__;
600 margin-__MSG_@@bidi_start_edge__: -20px;
601 margin-__MSG_@@bidi_end_edge__: 0;
602 width: 20px;
603 margin-top: 2px;
606 #current-email {
607 color: rgba(0, 0, 0, 0.5);
610 #daemon-plugin-container {
611 width: 0;
612 height: 0;
615 .dialog-container {
616 position: absolute;
617 top: 200px;
618 left: 0;
619 width: 100%;
620 display: flex;
623 .dialog-screen {
624 position: fixed;
625 top: 0;
626 left: 0;
627 width: 100%;
628 height: 100%;
629 background-color: #fff;
630 opacity: 0.75;
633 /* TODO(jamiewalch): crbug.com/252796: Remove these once crbug.com/240772
634 * is fixed. */
635 .no-horizontal-scroll {
636 overflow-x: hidden !important;
639 .no-vertical-scroll {
640 overflow-y: hidden !important;
643 html.apps-v2.scrollable {
644 overflow: scroll;
648 /* TODO(jamiewalch): Reinstate this if we're able to get translations for
649 * "Why is this safe?" that don't overflow in any language.
650 #host-setup-dialog {
651 width: 460px;
655 #host-plugin-container {
656 width: 0;
657 height: 0;
660 /* The NAT traversal state is independent of the app mode, and both need
661 * to be combined to determine the visibility of the butter bar. We use
662 * a style for the former and the 'hidden' property for the latter. */
663 #nat-box.traversal-enabled {
664 display: none;
667 #remember-pin {
668 width: 315px;
671 #session-client-plugin {
672 box-shadow: 0 0 8px 0 black;
673 -webkit-user-select: none;
676 #session-client-plugin {
677 display: block;
680 .session-client-inactive {
681 -webkit-filter: grayscale(70%);
682 transition: -webkit-filter 0.218s;
685 #set-pin-table td {
686 border-bottom: 6px solid transparent;
689 #top-secondary {
690 margin-top: 10px
693 #webapp-description {
694 margin-bottom: 10px;
698 box-sizing: border-box;
702 * Setting hidden on elements that match some rule overriding 'display' doesn't
703 * do what you would expect unless this is made explicit (and !important).
705 [hidden] {
706 display: none !important;
709 .full-height {
710 height: 100%;
713 .horizontally-centered {
714 display: flex;
717 .vertically-centered {
718 display: flex;
719 flex-direction: column;
720 height: 100%
723 .horizontally-centered::before,
724 .horizontally-centered::after,
725 .vertically-centered::before,
726 .vertically-centered::after {
727 content: "";
728 flex: 1;
731 /* Bump-scrolling is currently implemented by adjusting the margins, which is
732 * easier to implement with "position: fixed". In full-screen mode there are
733 * no scroll-bars, so the advantages of flex-box layout to achieve centering
734 * (ie, the DOM is easier to measure to determine when scroll-bars are needed)
735 * don't apply */
736 .full-screen #session-mode {
737 position: fixed;
738 top: 0;
739 left: 0;
740 width: 100%;
743 /* video-container needs relative position so that mediasource-video-output can
744 * be positioned relative to the parent with position:absolute. */
745 #video-container {
746 position: relative;
749 /* mediasource-video-output is hidden by default. */
750 #mediasource-video-output {
751 display: none;
754 /* Use absolute positioning for mediasource-video-output so that it's rendered
755 * at the same position as the plugin. */
756 #video-container.mediasource-rendering #mediasource-video-output {
757 display: block;
758 position: absolute;
759 left: 0;
760 top: 0;
761 box-shadow: 0 0 8px 0 black;
765 * With MediaSource-based rendering the plugin is transparent and is placed on
766 * top of the <video> element so that it can still receive mouse events.
768 * TODO(sergeyu): This is temporary solution. Ideally mouse and keyboard events
769 * should be captured on JS level and passed to the plugin.
771 #video-container.mediasource-rendering #client-plugin-container {
772 opacity: 0;