VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/testmanager/htdocs/css/common.css@ 65133

Last change on this file since 65133 was 65133, checked in by vboxsync, 8 years ago

common.css: top menu fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 18.9 KB
Line 
1/* $Id: common.css 65133 2017-01-05 03:03:03Z vboxsync $ */
2/** @file
3 * Test Manager - Common CSS.
4 */
5
6/*
7 * Copyright (C) 2012-2015 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * The contents of this file may alternatively be used under the terms
18 * of the Common Development and Distribution License Version 1.0
19 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20 * VirtualBox OSE distribution, in which case the provisions of the
21 * CDDL are applicable instead of those of the GPL.
22 *
23 * You may elect to license modified versions of this file under the
24 * terms and conditions of either the GPL or the CDDL or both.
25 */
26
27
28/*
29 * Basic HTML elements.
30 */
31* {
32 margin: 0;
33 padding: 0;
34}
35
36html, body {
37 height: 100%;
38}
39
40body {
41 background: #f9f9f9 repeat-y center;
42 font-family: Georgia, "Times New Roman", Times, serif;
43 font-family: Arial, Helvetica, sans-serif;
44 font-size: 0.8em;
45 color: #2f2f2f;
46}
47
48p, ul, ol {
49 margin-top: 0;
50}
51
52div {
53 margin: 0;
54 padding: 0;
55}
56
57h1, h2, h3 {
58 margin: 0px 0 10px 0;
59 padding: 0;
60 font-weight: normal;
61 color: #2f2f2f;
62 line-height: 180%;
63}
64h1 {
65 font-size: 2.4em;
66}
67h2 {
68 font-size: 2.0em;
69}
70h3 {
71 font-size: 1.5em;
72}
73
74dl {
75 margin-bottom: 10px;
76}
77
78
79/*
80 * Misc class stuff.
81 */
82.clear {
83 clear: both;
84}
85
86.left {
87 float: left;
88}
89
90.right {
91 float: right;
92}
93
94
95
96/*
97 * The general layout.
98 *
99 * Note! Not quite sure if something like this will work well everywhere...
100 * Will get back to that when the logic and content is all there, not
101 * worth wasting more time on CSS now.
102 */
103
104html, body {
105 height: 100%;
106}
107
108#wrap {
109 position: relative;
110 width: 100%;
111 height: 100%;
112}
113
114#head-wrap {
115 position: fixed;
116 top: 0;
117 left: 0;
118 height: 74px; /**< header + top-menu. */
119 width: 100%;
120 background: #f9f9f9;
121}
122
123#logo {
124 width: 42px;
125 height: 46px;
126 top: 0;
127 left: 0;
128 right: 0;
129 bottom: auto;
130 /* Center the image in both directions. */
131 display: flex;
132 align-items: center;
133 justify-content: center;
134 justify-content: flex-end;
135}
136
137#logo img {
138 height: 36px;
139 width: 36px;
140}
141
142#header {
143 position: fixed;
144 width: 100%; /** @todo this is too wide, darn! */
145 height: 46px;
146 left: 42px;
147 top: 0;
148 right: 0;
149 bottom: auto;
150 margin-top: 0px;
151 margin-left: 0px;
152 text-align: left;
153 /* Center the h1 child vertically: */
154 display: flex;
155 align-items: center;
156}
157
158#login {
159 position: absolute;
160 top: 0;
161 left: auto;
162 right: 2px;
163 bottom: auto;
164 height: auto;
165}
166
167#top-menu {
168 position: fixed;
169 padding: 0px;
170 width: 99%;
171 height: auto;
172 max-height: 22px;
173 top: 46px;
174 left: 0px;
175 right: 0px;
176 bottom: auto;
177}
178
179#side-menu-wrap {
180 position: fixed;
181 top: 0px;
182 left: 0;
183 right: auto;
184 bottom: auto;
185
186 width: 164px;
187 height: 100vh;
188 min-height: 100vh;
189 max-height: 100vh;
190
191 display: flex;
192}
193
194#side-menu {
195 margin-top: 46px;
196 height: auto;
197 max-height: 100%;
198 width: 156px;
199
200 display: flex;
201 flex-direction: column;
202 justify-content: space-between;
203}
204
205#side-menu-body {
206 display: block;
207 max-height: 100%;
208 overflow: auto;
209}
210
211#main {
212 height: 100%;
213 margin-top: 74px; /**< header + top-menu + padding. */
214 margin-left: 164px;
215 padding-left: 2px;
216 padding-right: 2px;
217 padding-top: 2px;
218 padding-bottom: 2px;
219}
220
221
222/*
223 * Header and logo specifics.
224 */
225#header h1 {
226 margin-left: 8px;
227 margin-top: 0px;
228 margin-right: 0px;
229 margin-bottom: 0px;
230 font-weight: bold;
231 font-size: 2.2em;
232 font-family: Times New, Times, serif;
233}
234
235#login p {
236 line-height: 100%;
237}
238
239
240/*
241 * Navigation menus (common).
242 */
243#top-menu, #side-menu {
244 font-weight: bold;
245 font-size: 1em;
246 font-family: Arial, Helvetica, sans-serif;
247 background-color: #c0d0e0;
248 padding: 2px 2px 2px 2px;
249 border-radius: 12px;
250}
251
252#head-wrap {
253 line-height: 180%;
254}
255
256#top-menu ul li a, #side-menu ul li a {
257 text-decoration: none;
258 color: #000000;
259 font-weight: bold;
260 font-size: 1em;
261 font-family: Arial, Helvetica, sans-serif;
262}
263
264#top-menu a:hover, #top-menu .current_page_item a, #side-menu a:hover, #side-menu .current_page_item a {
265 text-decoration: none;
266 color: #b23c1c;
267}
268
269
270/*
271 * Navigation in on the left side.
272 */
273
274
275/* Side menu: */
276#side-menu {
277 padding-top: 28px; /**< #top-menu.max-height */
278 margin-right: 3px;
279 margin-left: 3px;
280 margin-bottom: 3px;
281}
282
283#side-menu p {
284 margin-right: 3px;
285 margin-left: 3px;
286}
287
288#side-menu ul {
289 list-style: none;
290 margin-left: 3px;
291 margin-right: 3px;
292}
293
294#side-menu li {
295 padding-top: 0.3em;
296 padding-bottom: 0.3em;
297 line-height: 1.0em;
298 text-align: left;
299}
300
301#side-menu .subheader_item {
302 font-style: italic;
303 font-size: 1.1em;
304 text-decoration: underline;
305}
306
307.subheader_item:not(:first-child) {
308 margin-top: 0.5em;
309}
310
311/* Webkit: Pretty scroll bars on the menu body as well as inside filter criteria. */
312#side-menu ::-webkit-scrollbar {
313 width: 8px;
314}
315#side-menu ::-webkit-scrollbar-track {
316 -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
317 -webkit-border-radius: 4px;
318 border-radius: 4px;
319}
320#side-menu ::-webkit-scrollbar-thumb {
321 -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.5);
322 -webkit-border-radius: 4px;
323 border-radius: 4px;
324 background: rgba(112, 128, 144, 0.9);
325}
326#side-menu ::-webkit-scrollbar-thumb:window-inactive {
327 background: rgba(112, 128, 144, 0.7);
328}
329
330/* Filters: */
331#side-filters p:first-child {
332 margin-top: 0.5em;
333 font-style: italic;
334 font-size: 1.1em;
335 text-decoration: underline;
336}
337
338#side-filters dd.sf-collapsible {
339 display: block;
340}
341
342#side-filters dd.sf-expandable {
343 display: none;
344}
345
346#side-filters a {
347 text-decoration: none;
348 color: #000000;
349}
350
351#side-filters dt {
352 margin-top: 0.4em;
353}
354
355#side-filters dd {
356 font-size: 0.82em;
357 font-family: "Arial Narrow", Arial, sans-serif;
358 font-weight: normal;
359}
360
361#side-filters li, #side-filters input[type=checkbox], #side-filters p {
362 line-height: 0.9em;
363 vertical-align: text-bottom;
364}
365
366#side-filters input[type=checkbox] {
367 margin-right: 0.20em;
368 width: 1.0em;
369 height: 1.0em;
370}
371@supports(-moz-appearance:meterbar) {
372 #side-filters input[type=checkbox] {
373 /* not currently used */
374 }
375}
376@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { /* IE 10+ specific tweaks */
377 #side-filters input[type=checkbox] {
378 width: 1.1em;
379 height: 1.1em;
380 }
381}
382
383#side-filters dd > ul {
384 max-height: 22em;
385 overflow: auto;
386}
387
388#side-filters ul ul {
389 margin-left: 1.4em;
390}
391
392#side-filters li {
393 padding-top: 1px;
394 padding-bottom: 1px;
395 overflow-wrap: break-word;
396}
397
398ul.sf-checkbox-collapsible {
399 display: block;
400}
401
402ul.sf-checkbox-expandable {
403 display: none;
404}
405
406.side-filter-irrelevant {
407 font-style: italic;
408 font-weight: normal;
409}
410.side-filter-count {
411 font-size: smaller;
412 vertical-align: text-top;
413}
414
415/* Footer: */
416#side-footer {
417 width: 100%;
418 margin-left: 2px;
419 margin-right: 2px;
420 margin-top: 1em;
421 padding-top: 1em;
422 padding-bottom: 0.8em;
423 border-top: thin white ridge;
424}
425
426#side-footer p {
427 margin-left: 3px;
428 margin-right: 3px;
429 margin-bottom: 0.5em;
430 font-family: Times New, Times, serif;
431 font-size: 0.86em;
432 font-style: normal;
433 font-weight: normal;
434 line-height: 1.2em;
435 text-align: center;
436}
437
438
439/*
440 * Navigation in the header.
441 */
442#top-menu {
443 margin: 0 auto;
444}
445
446#top-menu ul li a {
447 padding: .1em 1em;
448}
449
450#top-menu ul li {
451 display: inline;
452}
453
454#top-menu ul {
455 margin: 0;
456 padding: 0;
457 list-style: none;
458 list-style-type: none;
459 text-align: center;
460}
461
462#top-menu a {
463 border: none;
464}
465
466#top-menu .current_page_item a {
467}
468
469
470/*
471 * Error message (typically a paragraph in the body).
472 */
473.tmerrormsg {
474 color: #ff0000;
475 white-space: pre;
476 font-family: Monospace, "Lucida Console", "Courier New", "Courier";
477 display: block;
478 border: 1px solid;
479 margin: 1em;
480 padding: 0.6em;
481}
482
483
484/*
485 * Generic odd/even row and sub-row attribs.
486 */
487.tmeven {
488 background-color: #ececec;
489}
490
491.tmodd {
492 background-color: #fcfcfc;
493}
494
495/** @todo adjust the sub row colors (see change logs for examples). */
496.tmeveneven {
497 background-color: #d8e0f8;
498}
499
500.tmevenodd {
501 background-color: #e8f0ff;
502}
503
504.tmoddeven {
505 background-color: #d8e0f8;
506}
507
508.tmoddodd {
509 background-color: #e8f0ff;
510}
511
512
513/*
514 * Generic thead class (first-child doesn't work for multiple header rows).
515 */
516.tmheader {
517 background-color: #d0d0d0;
518 color: black;
519}
520
521/*
522 * Generic class for div elements wrapping pre inside a table. This prevents
523 * the <pre> from taking up way more screen space that available.
524 */
525.tdpre {
526 display: table;
527 table-layout: fixed;
528 width: 100%;
529}
530.tdpre pre {
531 overflow: auto;
532}
533
534
535/*
536 * A typical table.
537 */
538/* table.tmtable th {
539 background-color: #d0d0d0;
540 color: black;
541} */
542
543table.tmtable caption {
544 text-align: left;
545}
546
547table.tmtable {
548 width: 100%;
549 border-spacing: 0px;
550}
551
552table.tmtable th {
553 font-size: 1.3em;
554 text-align: center;
555}
556
557table.tmtable, table.tmtable tr, table.tmtable td, table.tmtable th {
558 vertical-align: top;
559}
560
561table.tmtable {
562 border-left: 1px solid black;
563 border-top: 1px solid black;
564 border-right: none;
565 border-bottom: none;
566}
567
568table.tmtable td, table.tmtable th {
569 border-left: none;
570 border-top: none;
571 border-right: 1px solid black;
572 border-bottom: 1px solid black;
573}
574
575table.tmtable td {
576 padding-left: 3px;
577 padding-right: 3px;
578 padding-top: 3px;
579 padding-bottom: 3px;
580}
581
582table.tmtable th {
583 padding-left: 3px;
584 padding-right: 3px;
585 padding-top: 6px;
586 padding-bottom: 6px;
587}
588
589.tmtable td {
590}
591
592
593/*
594 * Table placed inside of a big table used to display *all* stuff of a category.
595 */
596
597table.tminnertbl tr:nth-child(odd) {
598 background-color: #e8e8e8;
599}
600table.tminnertbl tr:nth-child(even) {
601 background-color: #f8f8f8;
602}
603table.tminnertbl tr:first-child {
604 background-color: #d0d0d0;
605 color: black;
606}
607
608table.tminnertbl {
609 border-style: dashed;
610 border-spacing: 1px;
611 border-width: 1px;
612 border-color: gray;
613 border-collapse: separate;
614}
615
616table.tminnertbl th, table.tminnertbl td {
617 font-size: 1em;
618 text-align: center;
619 border-style: none;
620 padding: 1px;
621 border-width: 1px;
622 border-color: #FFFFF0;
623}
624
625/*
626 * Table placed inside a form.
627 */
628table.tmformtbl {
629 border-style: none;
630 border-spacing: 1px;
631 border-width: 1px;
632 border-collapse: separate;
633}
634
635table.tmformtbl th, table.tmformtbl td {
636 font-size: 1em;
637 padding-left: 0.5em;
638 padding-right: 0.5em;
639 padding-bottom: 1px;
640 padding-top: 1px;
641 border-width: 1px;
642}
643
644table.tmformtbl th, table.tmformtbl thead {
645 background-color: #d0d0d0;
646 font-size: 1em;
647 font-weight: bold;
648}
649
650table.tmformtbl tr.tmodd {
651 background: #e2e2e2;
652}
653
654
655/*
656 * Change log table (used with tmtable).
657 */
658table.tmchangelog > tbody {
659 font-size: 1em;
660}
661
662table.tmchangelog tr.tmodd td:nth-child(1),
663table.tmchangelog tr.tmeven td:nth-child(1),
664table.tmchangelog tr.tmodd td:nth-child(2),
665table.tmchangelog tr.tmeven td:nth-child(2) {
666 min-width: 5em;
667 max-width: 10em; /* futile */
668}
669
670table.tmchangelog tr.tmeven {
671 background-color: #e8f0ff;
672}
673
674table.tmchangelog tr.tmodd {
675 background-color: #d8e0f8;
676}
677
678table.tmchangelog tr.tmoddeven, table.tmchangelog tr.tmeveneven {
679 background-color: #fcfcfc;
680}
681
682table.tmchangelog tr.tmoddodd, table.tmchangelog tr.tmevenodd {
683 background-color: #ececec;
684}
685
686table.tmchangelog tr.tmoddeven, table.tmchangelog tr.tmeveneven, table.tmchangelog tr.tmoddodd, table.tmchangelog tr.tmevenodd {
687 font-size: 0.86em;
688}
689
690.tmsyschlogattr {
691 font-size: 0.80em;
692}
693
694.tmsyschlogspacer {
695 width: 0.8em;
696}
697
698td.tmsyschlogspacer:not(:last-child) {
699 width: 1.8em;
700 border-bottom: 0px solid green !important;
701}
702
703.tmsyschlogevent {
704 border-bottom: 0px solid green !important;
705}
706
707.tmsyschlogspacerrowabove {
708 height: 0.22em;
709}
710
711.tmsyschlogspacerrowbelow {
712 height: 0.80em;
713}
714
715
716/*
717 * Elements to be shows on *Show All* pages.
718 */
719
720ul.tmshowall {
721 margin-left: 15px;
722 margin-right: 15px;
723}
724
725li.tmshowall {
726 margin-left: 5px;
727 margin-right: 5px;
728}
729
730
731/*
732 * List navigation table
733 */
734table.tmlistnavtab {
735 width: 100%;
736}
737
738
739/*
740 * A typical form.
741 *
742 * Note! This _has_ to be redone. It sucks for the wide fields and such.
743 */
744.tmform ul {
745 list-style: none;
746 list-style-type: none;
747}
748
749.tmform li {
750 line-height: 160%;
751}
752
753
754.tmform-field {
755 display: block;
756 clear: both;
757}
758
759.tmform-field label {
760 float: left;
761 text-align: right;
762 width: 20%;
763 min-width: 10em;
764 max-width: 16em;
765 padding-right: 0.9em;
766}
767
768.tmform-error-desc {
769 display: block;
770 color: #ff0000;
771 font-style: italic;
772}
773
774.tmform-button {
775 float: left;
776 padding-top: 0.8em;
777}
778
779.tmform-field input {
780}
781
782.tmform-field-tiny-int input {
783 width: 2em;
784}
785
786.tmform-field-int input {
787 width: 6em;
788}
789
790.tmform-field-long input {
791 width: 9em;
792}
793
794.tmform-field-submit input {
795}
796
797.tmform-field-string input {
798 width: 24em;
799}
800
801.tmform-field-subname input {
802 width: 10em;
803}
804
805.tmform-field-timestamp input {
806 width: 20em;
807}
808
809.tmform-field-uuid input {
810 width: 24em;
811}
812
813.tmform-field-wide input {
814 width: 78%;
815 overflow: hidden;
816}
817
818.tmform-field-wide100 input {
819 width: 100%;
820 overflow: hidden;
821}
822
823.tmform-field-list {
824 padding-top: 2px;
825 padding-bottom: 2px;
826}
827
828.tmform-checkboxes-container {
829 padding: 3px;
830 overflow: auto;
831 border: 1px dotted #cccccc;
832}
833
834.tmform-checkbox-holder {
835 float: left;
836 min-width: 20em;
837}
838
839#tmform-checkbox-list-os-arches .tmform-checkbox-holder {
840 min-width: 11em;
841}
842
843#tmform-checkbox-list-build-types .tmform-checkbox-holder {
844 min-width: 6em;
845}
846
847.tmform-input-readonly {
848 background: #ADD8EF;
849 color: #ffffff;
850}
851
852/* (Test case argument variation.) */
853
854table.tmform-innertbl {
855 border-style: none;
856 border-spacing: 1px;
857 border-width: 1px;
858 border-collapse: separate;
859 width: 78%;
860}
861
862table.tmform-innertbl caption {
863 text-align: left;
864}
865
866table.tmform-innertbl th, table.tmform-innertbl td {
867 font-size: 1em;
868 text-align: center;
869 border-style: none;
870 /* padding-top: 1px;*/
871 /*padding-bottom: 1px;*/
872 padding-left: 2px;
873 padding-right: 2px;
874 border-width: 1px;
875 border-color: #FFFFF0;
876 background-color: #f9f9f9;
877}
878
879.tmform-inntertbl-td-wide input {
880 width: 100%;
881 overflow: hidden;
882}
883
884.tmform-inntertbl-td-wide {
885 width: 100%;
886}
887
888
889/*
890 * The test case argument variation table.
891 */
892table.tmform-testcasevars {
893 border-style: none;
894 border-spacing: 0px;
895 border-width: 0px;
896 border-collapse: collapse;
897 width: 78%;
898}
899
900table.tmform-testcasevars tbody {
901 border-style: solid;
902 border-spacing: 1px;
903 border-width: 1px;
904 margin: 2px;
905}
906
907table.tmform-testcasevars td {
908 padding-right: 3px;
909 padding-left: 3px;
910}
911
912table.tmform-testcasevars td:first-child, table.tmform-testcasevars td:nth-child(3) {
913 width: 8em;
914 text-align: right;
915}
916table.tmform-testcasevars td:nth-child(5) {
917 width: 4em;
918 text-align: left;
919}
920
921
922.tmform-testcasevars caption {
923 text-align: left;
924}
925
926tr.tmform-testcasevars-first-row td {
927 padding-top: 0px;
928 padding-bottom: 0px;
929 background-color: #e3e3ec;
930}
931
932.tmform-testcasevars-inner-row td {
933 padding-top: 0px;
934 padding-bottom: 0px;
935}
936
937tr.tmform-testcasevars-final-row td {
938 padding-top: 0px;
939 padding-bottom: 1px;
940}
941
942td.tmform-testcasevars-stupid-border-column {
943 /* Stupid hack. */
944 min-width: 2px;
945 width: 0.1%;
946}
947
948
949
950/*
951 * Log viewer.
952 */
953.tmlog a[href] {
954 background-color: #e0e0e0;
955 padding-left: 0.8em;
956 padding-right: 0.8em;
957}
958
959.tmlog pre {
960 background-color: #000000;
961 color: #00ff00;
962 font-family: "Monospace", "Lucida Console", "Courier New", "Courier";
963}
964
965
966/*
967 * Debug SQL traceback.
968 */
969#debug, #debug h1, #debug h2, #debug h3,
970#debug2, #debug2 h1, #debug2 h2, #debug2 h3 {
971 color: #00009f;
972}
973
974table.tmsqltable {
975 border-collapse: collapse;
976}
977
978table.tmsqltable, table.tmsqltable tr, table.tmsqltable td, table.tmsqltable th {
979 border: 1px solid;
980 vertical-align: middle;
981 padding: 0.1ex 0.5ex;
982}
983
984table.tmsqltable pre {
985 text-align: left;
986}
987
988
989/*
990 * Various more or less common span classes.
991 */
992.tmspan-offline {
993 color: #f08020;
994 font-size: 0.75em;
995}
996
997.tmspan-online {
998 font-size: 0.75em;
999}
1000
1001.tmspan-name, .tmspan-osarch {
1002 font-weight: bold;
1003}
1004
1005.tmspan-osver1 {
1006 font-style: italic;
1007}
1008
1009.tmspan-osver2 {
1010 font-style: normal;
1011}
1012
1013
1014/*
1015 * Subversion tooltip.
1016 */
1017.tmvcstooltip {
1018 padding: 0px;
1019 min-width: 50em;
1020 overflow: hidden;
1021 border: 0px none;
1022}
1023
1024.tmvcstooltip iframe {
1025 padding: 0px;
1026 margin: 0px;
1027 border: 0px none;
1028 width: 100%;
1029 overflow: auto;
1030}
1031
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette