1 /** this should only contain XUL dialog and document window widget defaults. Defaults for widgets of
2 a particular application should be in that application's style sheet.
3 For example style definitions for navigator can be found in navigator.css
8 background-color:#CCCCDD;
9 //background-image: url(bg.jpg);
12 font: 3mm tahoma,arial,helvetica,sans-serif;
19 background-color:#CCCCDD;
22 font: 3mm tahoma,arial,helvetica,sans-serif;
42 background-color:inherit;
43 background-image:inherit;
47 background-color:inherit;
48 background-image:inherit;
61 background-color:darkgray;
66 background-color: #666699;
67 background-image: url("resource:/res/toolbar/TB_Tab.gif");
68 background-repeat: no-repeat;
70 border: solid darkGray 1px;
75 background-color: #ccccff;
76 background-image: url("resource:/res/toolbar/TB_Tab_mo.gif");
77 background-repeat: no-repeat;
79 border: outset #ccccff 1px;
84 background-color: #CCCCDD;
85 border-bottom: 1px solid #9999cc;
91 toolbar[collapsed="true"] {
94 toolbar[hidden="true"] {
100 /* misc input elements */
108 border: 2px groove white;
123 //background-color: inherit;
124 background-color:#CCCCDD;
125 background-image: inherit;
129 border: 1px inset #DDDDDD;
138 background-color: white;
143 border: 1px inset yellow;
152 background-color: white;
157 input[type=password] {
158 border: 1px inset rgb(192, 192, 192);
167 background-color: white;
173 vertical-align: bottom;
174 border: 2px inset rgb(192, 192, 192);
175 background-color: transparent;
184 //border: 2px inset rgb(192, 192, 192);
185 background-color: inherit;
186 background-image: inherit;
192 input[type=checkbox] {
197 border: 1px inset rgb(192, 192, 192);
206 border: 1px inset white;
207 background-color: white;
214 background-color: gray;
215 border: 1px inset white;
226 border: 1px inset white;
230 background-color: #CCCCCC;
233 :progressmeter-stripe {
263 :progressmeter-stripe {
268 /* titledbuttons are the preferred means of generating UI buttons in XUL (see below) */
273 // -moz-border-radius: 2px;
274 border: 1px outset white;
279 background-color: inherit;
280 background-image: inherit;
291 border: 1px outset white;
293 text-decoration:underline;
297 button:hover:-moz-outline {
298 border : 1px solid black;
305 text-decoration:none;
314 button:active:-moz-outline {
315 border : 1px solid black;
320 background-color: inherit;
321 background-image: inherit;
322 border : 1px solid #999999;
324 text-decoration: none;
327 /* titledbuttons recommended for use with most XUL UI */
332 // -moz-border-radius: 2px;
333 border: 1px outset white;
338 background-color:inherit;
339 background-image: inherit;
342 window.dialog titledbutton{
346 titledbutton[class~=popup] {
347 list-style-image:url(resource:/res/toolbar/TB_popup.gif);
351 border: 1px outset white;
353 text-decoration:underline;
357 titledbutton:hover:-moz-outline {
358 border : 1px solid black;
363 titledbutton:active {
365 text-decoration:none;
374 titledbutton[toggled="1"] {
383 titledbutton[toggled="2"] {
384 background-color: lightgray;
385 border: 1px solid gray;
388 titledbutton[default] {
389 //border-color: black;
391 list-style-image: url("return.gif");
394 titledbutton:active:-moz-outline {
395 border : 1px solid black;
399 titledbutton[disabled="true"] {
400 background-color:inherit;
401 background-image: inherit;
402 border : 1px solid #999999;
404 text-decoration: none;
407 titledbutton[disabled="true"]:hover {
408 background-color:inherit;
409 background-image: inherit;
410 border : 1px solid #999999;
412 text-decoration: none;
415 titledbutton[disabled="true"]:active {
416 background-color:inherit;
417 background-image: inherit;
418 border : 1px solid #999999;
420 text-decoration: none;
423 /* special class for plain titledbuttons */
425 titledbutton[class~=plain] {
426 border: 1px solid transparent;
431 titledbutton[class~=plain]:hover {
432 border: 1px solid transparent;
434 text-decoration: none;
438 titledbutton[class~=plain]:active {
439 border: 1px solid transparent;
441 text-decoration: none;
445 titledbutton[class~=plain][disabled] {
446 border: 1px solid transparent;
450 titledbutton[class~=plain][disabled]:hover {
451 border: 1px solid transparent;
455 titledbutton[class~=plain][disabled]:active {
456 border: 1px solid transparent;
461 /* special class for borderless buttons */
462 /* titled button on toolbars are automatically set to be borderless (see below) */
464 titledbutton[class~=borderless] {
465 border: 1px solid transparent;
468 titledbutton[class~=borderless]:hover {
469 border: 1px outset white;
471 text-decoration: underline;
474 titledbutton[class~=borderless]:hover:-moz-outline {
475 border : 1px solid black;
478 titledbutton[class~=borderless]:active {
479 text-decoration:none;
483 titledbutton[class~=borderless]:active:-moz-outline {
484 border : 1px solid black;
487 titledbutton[class~=borderless][disabled] {
488 border: 1px solid transparent;
491 titledbutton[class~=borderless][disabled]:hover {
492 border: 1px solid transparent;
495 titledbutton[class~=borderless][disabled]:active {
496 border: 1px solid transparent;
500 /* as a convenience predefined for toolbar as being same as class borderless */
502 toolbar titledbutton {
503 border: 1px solid transparent;
506 toolbar.main-bar titledbutton[align="bottom"]{
510 toolbar titledbutton:hover {
511 border: 1px outset white;
513 text-decoration: underline;
516 toolbar titledbutton:hover:-moz-outline {
517 border : 1px solid black;
520 toolbar titledbutton:active {
521 text-decoration:none;
525 toolbar titledbutton:active:-moz-outline {
526 border : 1px solid black;
529 toolbar titledbutton[disabled="true"] {
530 border: 1px solid transparent;
533 toolbar titledbutton[disabled="true"]:hover {
534 border: 1px solid transparent;
537 toolbar titledbutton[disabled="true"]:active {
538 border: 1px solid transparent;
542 toolbar titledbutton[toggled="1"] {
543 border: 1px inset white;
551 /* tree related stuff */
555 background-color: white;
564 display: table-row-group;
574 display: table-header-group;
579 display: table-row-group;
583 treerow[selectedrow="true"] {
585 background-color: #666699;
595 treehead treerow treecell {
597 background-color: #a0a0a0;
598 border: 1px white transparent;
602 treeitem > treechildren {
603 visibility: collapse;
606 treeitem[open="true"] > treechildren {
611 display: table-column;
614 /* tabs related stuff */
620 border: 1px outset white;
621 //-moz-border-radius: 90;
630 border: 1px outset white;
631 //-moz-border-radius: 90;
639 //border-bottom: 1px outset white;
642 tabcontrol[align="vertical"] tabpanel + tabbox[align="horizontal"] tab {
644 border-left: 1px outset white;
645 border-right: 1px outset white;
647 border-bottom: 1px outset white;
661 tabcontrol[align="vertical"] tabbox[align="horizontal"] tab {
663 border-left: 1px outset white;
664 border-right: 1px outset white;
665 border-top: 1px outset white;
680 tabcontrol[align="horizontal"] tabbox[align="vertical"] tab {
682 border-left: 1px outset white;
684 border-top: 1px outset white;
685 border-bottom: 1px outset white;
699 tabcontrol[align="horizontal"] tabpanel + tabbox[align="vertical"] tab {
702 border-right: 1px outset white;
703 border-top: 1px outset white;
704 border-bottom: 1px outset white;
721 text-decoration:underline;
735 /* all the debug stuff
739 border: 1px solid blue;
742 box[debug][align="vertical"] {
743 border: 1px solid red;
746 box[debug][align="horizontal"] {
747 border: 1px solid blue;
750 box[debug] box[align="vertical"] {
751 border: 1px solid red;
755 background-color: green;
759 background-color:inherit;
760 background-image:inherit;
761 border: 1px dashed yellow;
764 box[debug] div.textline {
765 background-color:inherit;
766 background-image:none;
767 border: 1px solid yellow;
771 background-color:inherit;
772 background-image:inherit;
773 border: 1px dotted yellow;
777 border: 1px outset yellow;
780 box[debug] button:active{
781 border: 1px inset yellow;
784 box[debug] titledbutton{
785 border: 1px outset yellow;
788 box[debug] titledbutton:active{
789 border: 1px inset yellow;
793 border: 1px solid white;
797 border: 1px solid yellow;
800 box[debug] textarea {
801 border: 1px inset yellow;
804 box[debug] input[type=text]{
805 border: 2px inset yellow;
808 box[debug] input[type=password]{
809 border: 2px inset yellow;
813 border: 2px inset yellow;
816 box[debug] input[type=radio]{
817 border: 2px inset yellow;
820 box[debug] input[type=checkbox]{
821 border: 1px inset yellow;
825 background-color: white;
826 border: 1px inset yellow;
829 box[debug] checkbox[depress]{
830 border: 1px inset yellow;
833 box[debug] div.pmBackground {
834 border: 1px inset yellow;
836 background-color: #CCCCCC;
839 box[debug] progressmeter {
847 background-color: rgb(206, 207, 206);
848 border: 2px outset rgb(156, 154, 156);
849 list-style-image: url(scrollThumb.gif)
853 list-style-image: url(scrollThumb_mo.gif);
856 thumb[disabled="true"] {
857 list-style-image: url(scrollThumb_dis.gif);
861 background-color: rgb(220, 210, 210);
865 border: 1px solid black;
866 background-color: rgb(240,240,240);
871 vertical-align: bottom;
874 border: 2px outset rgb(156, 154, 156);
875 background-color: rgb(206, 207, 206);
881 scrollbarbutton:active {
890 scrollbarbutton.decrement {
891 list-style-image: url(scrollUp.gif)
894 scrollbarbutton.decrement:hover {
895 list-style-image: url(scrollUp_mo.gif)
898 scrollbarbutton.decrement[disabled="true"] {
899 list-style-image: url(scrollUp_dis.gif)
902 scrollbarbutton.increment {
903 list-style-image: url(scrollDown.gif)
906 scrollbarbutton.increment:hover {
907 list-style-image: url(scrollDown_mo.gif)
910 scrollbarbutton.increment[disabled="true"] {
911 list-style-image: url(scrollDown_dis.gif)
914 treepusher.increment {
915 list-style-image: url(moreCols_mo.gif)
918 treepusher.increment:hover {
919 list-style-image: url(moreCols_mo.gif)
922 treepusher.increment[disabled="true"] {
923 list-style-image: url(moreCols_dis.gif)
926 treepusher.decrement {
927 list-style-image: url(lessCols_mo.gif)
930 treepusher.decrement:hover {
931 list-style-image: url(lessCols_mo.gif)
934 treepusher.decrement[disabled="true"] {
935 list-style-image: url(lessCols_dis.gif)
943 border: 1px outset white;
944 list-style-image: url(resource:/res/toolbar/grippy-horizontal-before.gif);
945 background-color: rgb(198,198,198);
950 box[align="vertical"] splitter[collapse="after"] grippy {
951 list-style-image: url(resource:/res/toolbar/grippy-vertical-after.gif);
954 box splitter[collapse="after"] grippy {
955 list-style-image: url(resource:/res/toolbar/grippy-horizontal-after.gif);