Use black background and draw casting to... text on embedded player.
[chromium-blink-merge.git] / remoting / webapp / main.css
blob7b50dbb356b92f7b0cae4ee9bb88ec850929c2ca
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 margin: auto;
236 -webkit-transform: scale(1.05);
237 -webkit-transition: all 0.218s;
240 h1.icon-label {
241 vertical-align: 14px;
242 margin-bottom: 60px;
243 font-size: 28px;
244 font-weight: 300;
245 color: #999;
246 font-family: "Open sans", "Ariel", sans-serif;
247 line-height: 24px;
248 display: inline-block;
249 margin-__MSG_@@bidi_start_edge__: 10px;
252 h2 {
253 font-size: 16px;
254 line-height:24px;
255 font-weight: normal;
256 color: #222;
257 margin-bottom: 10px;
260 .h2-secondary {
261 float: __MSG_@@bidi_end_edge__;
264 #host-list-loading-indicator:not(.loading) #host-list-loading,
265 #host-list-loading-indicator.loading #host-list-reload {
266 display: none;
269 .icon-black > img {
270 opacity: 0.3;
273 .icon-black:hover > img {
274 opacity: 0.4;
277 section h2 {
278 color: #666;
281 header {
282 display: flex;
283 width: 100%;
286 html {
287 -webkit-user-select: none;
288 cursor: default;
291 section {
292 width: 690px;
293 margin: 30px auto;
296 section {
297 border: 1px solid #e5e5e5;
298 background: #f9f9f9;
299 padding: 20px 30px 20px 30px;
300 border-radius: 3px;
301 box-shadow: 0 2px 5px rgba(0,0,0,0.07);
302 position: relative;
305 .access-code-digit-group {
307 Used for each of the four-digit components of the access code as
308 displayed by the host.
310 padding: 0px 6px;
313 .box-spacer {
314 flex: 1;
317 .centered {
318 margin: auto;
321 .button-row {
322 display: flex;
323 flex-direction: row;
324 justify-content: flex-end;
325 margin-top: 20px;
328 .button-row button {
329 margin-left: 5px;
332 .button-row span:first-child {
333 width: 100%;
336 .clickable {
337 cursor: pointer;
340 .box {
341 display: flex;
344 .host-list-empty-instructions {
345 padding-__MSG_@@bidi_start_edge__: 36px;
346 color: #666;
347 background-image: url('host_setup_instructions.webp');
348 background-repeat: no-repeat;
349 background-position: -3px -2px;
352 #host-list-empty-hosting-supported {
353 margin-top: 14px;
354 padding-top: 20px;
355 border-top: 1px solid #E5E5E5;
356 background-position-y: 18px;
359 .selectable {
360 -webkit-user-select: text;
361 cursor: text;
364 .section-row {
365 display: flex;
366 -webkit-align-items: center;
367 padding: 10px 0;
368 border-top: 1px solid #EBEBEB;
371 .section-row button {
372 margin-__MSG_@@bidi_start_edge__: 20px;
375 .section-row:first-child,
376 .section-row.no-non-local-hosts {
377 border-top: none;
380 .editbox-label {
381 line-height: 29px;
382 font-weight: bold;
385 .error-state {
386 background-image: url('icon_warning.webp');
387 background-repeat: no-repeat;
388 background-position: top __MSG_@@bidi_start_edge__;
389 padding-__MSG_@@bidi_start_edge__: 30px;
390 padding-top: 5px;
391 color: #900;
394 .error-state.multi-line-error-state {
395 padding-top: 0;
396 min-height: 22px;
399 .expiring {
400 color: #900 !important;
403 .infographic {
404 position: absolute;
405 __MSG_@@bidi_end_edge__: 22px;
406 top: 24px;
409 .infographic-description {
410 height: 80px;
411 width: 400px;
412 padding-top: 2em;
415 .information-box {
416 background-color: #f9edbe;
417 border: 1px solid #f0c36d;
418 -webkit-border-radius: 2px;
419 box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
420 color: #222;
421 padding: 8px 16px;
422 text-align: center;
423 font-size: 12px;
424 margin-top: 30px;
427 #butter-bar {
428 position: absolute;
429 top: 80px;
430 left: 0;
431 display: -webkit-box;
432 width: 100%;
435 #butter-bar-dismiss img {
436 vertical-align: top;
437 opacity: 0.4;
438 margin-__MSG_@@bidi_start_edge__: 2px;
439 margin-__MSG_@@bidi_end_edge__: -12px;
442 #butter-bar-dimiss:hover {
443 opacity: 0.7;
446 #butter-bar > p {
447 background-color: #f9edbe;
448 border: 1px solid #f0c36d;
449 border-radius: 2px;
450 box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
451 color: #222;
452 font-size: 12px;
453 padding: 4px 16px;
454 margin: auto;
457 #butter-bar a {
458 color: inherit;
459 text-decoration: underline;
460 padding-__MSG_@@bidi_start_edge__: 2px;
463 #paired-clients-list table {
464 width: 100%;
467 .message {
468 margin-bottom: 24px;
471 .mode-select-button-column {
472 text-align: __MSG_@@bidi_end_edge__;
475 .mode-select-button-column button {
476 min-width: 72px;
479 td {
480 vertical-align: middle;
483 thead {
484 font-weight: bold;
487 .host-online.clickable:hover,
488 .host-online.clickable.child-focused {
489 background-color: #f2f2f2;
492 .host-list-rename-icon,
493 .host-list-remove-icon {
494 opacity: 0;
497 .section-row:hover .host-list-rename-icon,
498 .section-row.child-focused .host-list-rename-icon {
499 opacity: 0.6;
502 .section-row:hover .host-list-remove-icon,
503 .section-row.child-focused .host-list-remove-icon {
504 opacity: 0.3;
507 .host-list-rename-icon:hover {
508 opacity: 1 !important;
511 .host-list-remove-icon:hover {
512 opacity: 0.5 !important;
515 .host-list-edit {
516 padding: 0 5px;
519 .host-list-label, .host-list-label:visited, .host-list-label:active {
520 color: inherit;
521 cursor: inherit;
524 .host-list-main-icon {
525 margin-__MSG_@@bidi_end_edge__: 10px;
526 vertical-align: middle;
527 position: relative;
530 .host-list-main-icon > span {
531 background-image: url('icon_warning.webp');
532 background-repeat: no-repeat;
533 position: absolute;
534 width: 22px;
535 height: 22px;
536 bottom: -5px;
537 right: -10px;
540 .host-offline .host-list-label,
541 .host-offline .host-list-main-icon {
542 opacity: 0.5;
545 button {
546 white-space:nowrap;
549 .small-print {
550 font-size: 13px;
551 color: #AAA;
554 .waiting {
555 background-image: url('spinner.gif');
556 background-repeat: no-repeat;
557 background-position: __MSG_@@bidi_start_edge__ 3px;
558 padding: 5px 30px;
559 color: rgb(180, 180, 180);
562 .prominent {
563 color: #222;
566 #access-code-countdown-container {
567 height: 50px;
568 text-align: center;
571 #access-code-display {
572 margin-top: 50px;
573 color: rgb(0, 0, 0);
574 font-weight: bold;
575 font-size: 26px;
576 text-align: center;
579 #access-code-entry-row {
580 margin-top: 24px;
583 #ask-pin-form .table-label {
584 min-width: 120px;
585 text-align: __MSG_@@bidi_end_edge__;
586 display: inline-block;
589 #ask-pin-form > div {
590 margin-bottom: 8px;
593 .checkbox-label {
594 display: block;
595 padding-__MSG_@@bidi_start_edge__: 20px;
596 margin-top: 12px;
599 .checkbox-label input[type=checkbox] {
600 float: __MSG_@@bidi_start_edge__;
601 margin-__MSG_@@bidi_start_edge__: -20px;
602 margin-__MSG_@@bidi_end_edge__: 0;
603 width: 20px;
604 margin-top: 2px;
607 #current-email {
608 color: rgba(0, 0, 0, 0.5);
611 #daemon-plugin-container {
612 width: 0;
613 height: 0;
616 .dialog-container {
617 position: absolute;
618 top: 200px;
619 left: 0;
620 width: 100%;
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;