home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 December / PCWorld_2000-12_cd.bin / Komunikace / mozilla / mozilla-win32-M18-mathml-svg-xslt.exe / chrome / toolkit / content / global / xul.css < prev    next >
Cascading Style Sheet File  |  2000-09-21  |  14KB  |  650 lines

  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
  4.  
  5.    THIS FILE IS LOCKED DOWN.  YOU ARE NOT ALLOWED TO MODIFY IT WITHOUT FIRST HAVING YOUR
  6.    CHANGES REVIEWED BY hyatt@netscape.com.
  7. **/
  8.  
  9. /*@import url(chrome://global/content/content.css);*/
  10.  
  11. @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); /* set default namespace to XUL */
  12. @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
  13. @namespace xbl url("http://www.mozilla.org/xbl"); /* namespace for XBL elements */
  14.  
  15. * {
  16.   display: block;
  17. }
  18.  
  19. /**
  20.  * Hide the content, but don't destroy the frames. 
  21.  * DO NOT USE "_collapsed" IN YOUR XUL! 
  22.  */
  23. *[collapsed="true"], *[moz-collapsed="true"] {
  24.   visibility: collapse;
  25. }
  26.  
  27. /* this is unfortunate. should be display="none" */
  28. *[hidden="true"] {
  29.   display: none;
  30. }
  31.  
  32. checkbox,radio,tree,menulist {
  33.   -moz-user-focus: normal;
  34. }
  35.  
  36. menupopup, popup, splitter {
  37.   -moz-user-focus: ignore;
  38. }
  39.  
  40. treechildren, treehead, treerows {
  41.   -moz-user-focus: none;
  42. }
  43.  
  44. /** 
  45.  * All elements that have no visual representation
  46.  */
  47. commands, commandset, command {
  48.     display: none;
  49. }
  50.  
  51. xbl|children {
  52.   display: none;
  53. }
  54.  
  55. broadcasterset, broadcaster {
  56.     display: none;
  57. }
  58.  
  59. observes {
  60.     display: none;
  61. }
  62.  
  63. template {
  64.     display: none;
  65. }
  66.  
  67. data {
  68.   display: none;
  69. }
  70.  
  71. keyset, key {
  72.   display: none;
  73. }
  74.  
  75. /**********************************
  76.  * Window
  77.  **********************************/
  78.  
  79. window { 
  80.   overflow: hidden;
  81. }
  82.  
  83. /**********************************
  84.  * XUL widgets
  85.  **********************************/
  86.  
  87. /******** Browser, editor, iframe ********/
  88.  
  89. browser, editor, iframe {
  90.   display: inline;
  91. }
  92.  
  93. browser {
  94.   -moz-binding: url(chrome://global/content/xulBindings.xml#browser);
  95. }
  96.  
  97. editor {
  98.   -moz-binding: url(chrome://global/content/xulBindings.xml#editor);
  99. }
  100.  
  101. iframe {
  102.   -moz-binding: url(chrome://global/content/xulBindings.xml#iframe);
  103. }
  104.  
  105. /******** ScrollBox ********/
  106.  
  107. scrollbox {
  108.   -moz-binding: url(chrome://global/content/xulBindings.xml#scrollbox);
  109. }
  110.  
  111. .scrollbox-innerbox {
  112.   text-align: inherit;
  113.   vertical-align: inherit;
  114. }
  115.  
  116.  
  117. /******** ArrowScrollBox ******/
  118.  
  119. arrowscrollbox {
  120.   -moz-binding: url(chrome://global/content/xulBindings.xml#arrowscrollbox);
  121. }
  122.  
  123. /******** Box *******/
  124.  
  125. /******** TitledBox *******/
  126.  
  127. box.titledbox-title {
  128. }
  129.  
  130. box.titledbox-body {
  131.    vertical-align: inherit;
  132.    text-align: inherit;
  133. }
  134.  
  135. titledbox {
  136.   -moz-binding: url(chrome://global/content/xulBindings.xml#titledbox);
  137. }
  138.  
  139. titledbox[value] {
  140.   -moz-binding: url(chrome://global/content/xulBindings.xml#titledboxvalue);
  141. }
  142.  
  143. title {
  144.   -moz-binding: url(chrome://global/content/xulBindings.xml#title);
  145. }
  146.  
  147. /******* ToolBox & ToolBar *******/
  148.  
  149. toolbox 
  150.   { 
  151.     -moz-user-focus       : ignore;
  152.     -moz-binding          : url(chrome://global/content/toolbarBindings.xml#toolbox);
  153.   }
  154.   
  155. menubar
  156.   {
  157.     -moz-user-focus       : ignore;
  158.     -moz-binding          : url(chrome://global/content/toolbarBindings.xml#menubar);
  159.   }
  160.  
  161. toolbar
  162.   {
  163.     -moz-user-focus       : ignore;
  164.     -moz-binding          : url(chrome://global/content/toolbarBindings.xml#toolbar);
  165.   }
  166.  
  167. toolbargrippy 
  168.   {
  169.     -moz-binding          : url(chrome://global/content/toolbarBindings.xml#toolbargrippy);
  170.   }
  171.  
  172. .toolbar-holder[collapsed="true"] 
  173.   {
  174.     visibility            : collapse;
  175.   }
  176.  
  177. /********* XP Menus ***********/
  178.  
  179. menubar > menu 
  180.   {
  181.     -moz-binding          : url("chrome://global/content/xulBindings.xml#menu-menubar");
  182.   }
  183.  
  184. menubar > menu.menu-iconic 
  185.   {
  186.     -moz-binding          : url("chrome://global/content/xulBindings.xml#menu-menubar-iconic");
  187.   }
  188.  
  189. menu 
  190.   {
  191.     -moz-binding          : url("chrome://global/content/xulBindings.xml#menu");
  192.   }
  193.   
  194. menu.menu-iconic 
  195.   {
  196.     -moz-binding          : url("chrome://global/content/xulBindings.xml#menu-iconic");
  197.   }
  198.  
  199. menuitem 
  200.   {
  201.     -moz-binding          : url("chrome://global/content/xulBindings.xml#menuitem");
  202.   }
  203.  
  204. menuitem.menuitem-iconic 
  205.   {
  206.     -moz-binding          : url("chrome://global/content/xulBindings.xml#menuitem-iconic");
  207.   }
  208.  
  209. menuitem[type="checkbox"],
  210. menuitem[type="radio"] 
  211.   {
  212.     -moz-binding          : url("chrome://global/content/xulBindings.xml#menuitem-iconic");
  213.   }
  214.  
  215. menulist > menupopup > menuitem 
  216.   {
  217.     -moz-binding          : url("chrome://global/content/xulBindings.xml#menuitem-iconic");
  218.   }
  219.  
  220. menuitem.menuitem-non-iconic
  221.   {
  222.     -moz-binding          : url("chrome://global/content/menulistBindings.xml#menubutton-item");
  223.   }
  224.  
  225.   
  226. menupopup 
  227.   {
  228.     -moz-binding: url("chrome://global/content/xulBindings.xml#popups");
  229.     display               : none;
  230.   }
  231.  
  232. popup {
  233.   -moz-binding: url("chrome://global/content/xulBindings.xml#popups");
  234.   display: none;
  235. }
  236.  
  237. popup.tooltip {
  238.   -moz-binding: url("chrome://global/content/xulBindings.xml#tooltips");
  239. }
  240.  
  241. menupopup[menugenerated="true"] {
  242.   display: block;
  243. }
  244.  
  245. popup[menugenerated="true"] {
  246.   display: block;
  247. }
  248.  
  249. menupopup, popup {
  250.   z-index: 2147483647; 
  251. }
  252.  
  253. /******** Titled buttons **********/
  254.  
  255. /******** Tree widget **********/
  256.  
  257. tree {
  258.  width: 200px;
  259.  height: 200px;
  260.  min-width: 0px;
  261.  min-height: 0px;
  262.  -moz-binding: url("chrome://global/content/treeBindings.xml#tree");
  263. }
  264.  
  265. treecol {
  266.   min-width: 16px;
  267. }
  268.  
  269. tree > treechildren {
  270.  -moz-binding: url("chrome://global/content/treeBindings.xml#treerows");
  271.  overflow: auto;
  272.  min-height: 0px;
  273. }
  274.  
  275. treeitem { 
  276.  -moz-binding: url("chrome://global/content/treeBindings.xml#treeitem");
  277.  
  278. treecell { 
  279.  vertical-align: middle;
  280.  -moz-binding: url("chrome://global/content/treeBindings.xml#treecell");
  281.  
  282. .treecell-text { 
  283.  -moz-binding: url("chrome://global/content/treeBindings.xml#treecell-text");
  284.  
  285. .treecell-indent {
  286.   -moz-binding: url("chrome://global/content/treeBindings.xml#treecell-indented-leaf");
  287. }
  288.  
  289. treeitem[container="true"] > treerow > .treecell-indent {
  290.   -moz-binding: url("chrome://global/content/treeBindings.xml#treecell-indented-folder");
  291. }
  292.  
  293. .treecell-iconic {
  294.  -moz-binding: url("chrome://global/content/treeBindings.xml#treecell-iconic");
  295. }
  296.   
  297. .treecell-image {
  298.  -moz-binding: url("chrome://global/content/treeBindings.xml#treecell-image");
  299. }
  300.  
  301. .treecell-header {
  302.   -moz-binding: url("chrome://global/content/treeBindings.xml#treecell-header");
  303. }
  304.  
  305. .treecell-align-right {
  306.   -moz-binding: url("chrome://global/content/treeBindings.xml#treecell-align-right");
  307. }
  308.  
  309. treeitem > treechildren {
  310.   display: none;
  311. }
  312.  
  313. treeitem[open="true"] > treechildren {
  314.   display: block;
  315. }
  316.  
  317. treecol[hidden="true"] {
  318.   display: block;
  319.   visibility: collapse;
  320. }
  321.  
  322. treecell[hidden="true"] {
  323.   display: block;
  324.   visibility: collapse;
  325. }
  326.  
  327. /********** Tab widget *********/
  328.  
  329. tab {
  330.   -moz-binding: url(chrome://global/content/tabBindings.xml#tab);
  331. }
  332.  
  333. tabpanel {
  334.   -moz-binding: url(chrome://global/content/tabBindings.xml#tabpanel);
  335. }
  336.  
  337. tabcontrol {
  338.   -moz-binding: url(chrome://global/content/tabBindings.xml#tabcontrol);
  339. }
  340.  
  341. tabbox {
  342.   -moz-binding: url(chrome://global/content/tabBindings.xml#tabbox);
  343. }
  344.  
  345. :-moz-deck-hidden {
  346.    visibility: hidden;
  347. }
  348.  
  349. /********** checkbox **********/
  350.  
  351. checkbox {
  352.   -moz-binding: url(chrome://global/content/xulBindings.xml#checkbox);
  353. }
  354.  
  355. radio 
  356.   {
  357.     -moz-binding          : url(chrome://global/content/radioBindings.xml#radio);
  358.     -moz-user-focus       : none;
  359.   }
  360.  
  361. radiogroup 
  362.   {
  363.     -moz-binding          : url(chrome://global/content/radioBindings.xml#radiogroup);
  364.     -moz-user-focus       : normal;
  365.   }
  366.  
  367. button, button.left {
  368.   /*-moz-user-focus: normal;*/
  369.   -moz-binding: url(chrome://global/content/xulBindings.xml#buttonleft);
  370. }
  371.  
  372. button.top {
  373.   -moz-binding: url(chrome://global/content/xulBindings.xml#buttontop);
  374. }
  375.  
  376. button.right {
  377.   -moz-binding: url(chrome://global/content/xulBindings.xml#buttonright);
  378. }
  379.  
  380. button.bottom {
  381.   -moz-binding: url(chrome://global/content/xulBindings.xml#buttonbottom);
  382. }
  383.  
  384. toolbarseparator, menuseparator, separator {
  385.   -moz-binding: url(chrome://global/content/xulBindings.xml#separator);
  386. }
  387.  
  388.  
  389. /* appending to end so we don't make hyatt cry */
  390. progressmeter {
  391.   -moz-binding: url(chrome://global/content/xulBindings.xml#progressmeter);
  392. }
  393.  
  394. textfield {
  395.   -moz-binding: url(chrome://global/content/xulBindings.xml#textfield);
  396.   -moz-user-select: text;
  397. }
  398.  
  399. textfield[multiline="true"] {
  400.   -moz-binding: url(chrome://global/content/xulBindings.xml#textarea);
  401. }
  402.  
  403. text[for] {
  404.   -moz-binding: url(chrome://global/content/xulBindings.xml#text-label);
  405. }
  406.  
  407. text[editable="true"] {
  408.   -moz-user-select: text;
  409. }
  410.  
  411. text[editable="true"], text[editable="true"][mode="display"] {
  412.   -moz-binding: url(chrome://global/content/xulBindings.xml#text-editable-display);
  413. }
  414.  
  415. text[editable="true"][mode="edit"] {
  416.   -moz-binding: url(chrome://global/content/xulBindings.xml#text-editable-edit);
  417. }
  418.  
  419. textfield[autocomplete="true"] {
  420.   -moz-binding: url(chrome://global/content/autocomplete.xml#autocomplete);
  421. }
  422.  
  423. colorpicker {
  424.   -moz-binding: url(chrome://global/content/xulBindings.xml#colorpicker);
  425. }
  426.  
  427. colorpicker[type="button"] {
  428.   -moz-binding: url("chrome://global/content/xulBindings.xml#colorpickerButton");
  429. }
  430.  
  431. /** Buttons with Menus:
  432.  *  - menulist
  433.  *  - menulist[editable="true"] (combobox)
  434.  *  - menubutton
  435.  **/
  436.  
  437.   menulist 
  438.     {
  439.       -moz-binding          : url("chrome://global/content/menulistBindings.xml#menulist");
  440.     }
  441.   
  442.   menulist[editable="true"] 
  443.     {
  444.       -moz-binding          : url("chrome://global/content/menulistBindings.xml#menulist-editable");
  445.     }
  446.   
  447.   menubutton
  448.     {
  449.       -moz-binding          : url("chrome://global/content/menulistBindings.xml#menubutton-single-left");
  450.     }
  451.  
  452.   menubutton.right
  453.     {
  454.       -moz-binding          : url("chrome://global/content/menulistBindings.xml#menubutton-single-right");
  455.     }
  456.     
  457.   menubutton.menubutton-dual,
  458.   menubutton.menubutton-dual.left
  459.     {
  460.       -moz-binding          : url("chrome://global/content/menulistBindings.xml#menubutton-dual-left");
  461.     }
  462.       
  463.   menubutton.menubutton-dual.top
  464.     {
  465.       -moz-binding          : url("chrome://global/content/menulistBindings.xml#menubutton-dual-top");
  466.     }
  467.       
  468.   menubutton.menubutton-dual.right
  469.     {
  470.       -moz-binding          : url("chrome://global/content/menulistBindings.xml#menubutton-dual-right");
  471.     }
  472.       
  473.   menubutton.menubutton-dual.bottom
  474.     {
  475.       -moz-binding          : url("chrome://global/content/menulistBindings.xml#menubutton-dual-bottom");
  476.     }
  477.       
  478.   menubutton.menubutton-icon 
  479.     {
  480.       -moz-binding          : url("chrome://global/content/menulistBindings.xml#menubutton-icon");
  481.     } 
  482.     
  483. /** 
  484.  * Scrollbar <content> styles
  485.  **/    
  486.  
  487. slider 
  488.   {
  489.     -moz-user-focus       : ignore;
  490.     -moz-user-select      : none;
  491.   }
  492.  
  493. scrollbarbutton 
  494.   {
  495.     display               : inline;
  496.     -moz-user-focus       : ignore;
  497.     -moz-user-select      : none;
  498.   }
  499.  
  500. scrollbar[value="hidden"] 
  501.   {
  502.     visibility            : hidden;
  503.     -moz-user-focus       : ignore;
  504.     -moz-user-select      : none;
  505.   }
  506.  
  507. thumb 
  508.   {
  509.     -moz-user-focus       : ignore;
  510.     -moz-user-select      : none;
  511.   }
  512.  
  513. thumb[disabled="true"] 
  514.   {
  515.     -moz-user-focus       : ignore;
  516.     -moz-user-select      : none;
  517.   }
  518.  
  519. scrollbarbutton 
  520.   {
  521.     -moz-user-focus       : ignore;
  522.     -moz-user-select      : none;
  523.   }
  524.  
  525. scrollbarbutton:active 
  526.   {
  527.     -moz-user-focus       : ignore;
  528.     -moz-user-select      : none;
  529.   }
  530.  
  531. scrollbarbutton[type="decrement"] 
  532.   {
  533.     -moz-user-focus       : ignore;
  534.     -moz-user-select      : none;
  535.   }
  536.  
  537. scrollbarbutton[type="decrement"][disabled="true"] 
  538.   {
  539.     -moz-user-focus       : ignore;
  540.     -moz-user-select      : none;
  541.   }
  542.  
  543. scrollbarbutton[type="increment"] 
  544.   {
  545.     -moz-user-focus       : ignore;
  546.     -moz-user-select      : none;
  547.   }
  548.  
  549. scrollbarbutton[type="increment"][disabled="true"] 
  550.   {
  551.     -moz-user-focus       : ignore;
  552.     -moz-user-select      : none;
  553.   }
  554.  
  555. scrollbar[align="vertical"] scrollbarbutton[type="decrement"] 
  556.   {
  557.     -moz-user-focus       : ignore;
  558.     -moz-user-select      : none;
  559.   }
  560.  
  561. scrollbar[align="vertical"] scrollbarbutton[type="decrement"][disabled="true"] 
  562.   {
  563.     -moz-user-focus       : ignore;
  564.     -moz-user-select      : none;
  565.   }
  566.  
  567. scrollbar[align="vertical"] scrollbarbutton[type="increment"] 
  568.   {
  569.     -moz-user-focus       : ignore;
  570.     -moz-user-select      : none;
  571.   }
  572.  
  573. scrollbar[align="vertical"] scrollbarbutton[type="increment"][disabled="true"] 
  574.   {
  575.     -moz-user-focus       : ignore;
  576.     -moz-user-select      : none;
  577.   }
  578.  
  579. slider[align="vertical"] thumb:active 
  580.   {
  581.     -moz-user-focus       : ignore;
  582.     -moz-user-select      : none;
  583.   }
  584.  
  585. slider 
  586.   {
  587.     -moz-user-focus       : ignore;
  588.     -moz-user-select      : none;
  589.   }
  590.  
  591. /**
  592.  * Status Bar 
  593.  **/  
  594. statusbar 
  595.   { 
  596.     -moz-user-focus       : ignore;
  597.     -moz-binding          : url("chrome://global/content/xulBindings.xml#statusbar");
  598.   }
  599.  
  600. statusbarpanel
  601.   {
  602.     -moz-user-focus       : ignore;
  603.     -moz-binding          : url("chrome://global/content/xulBindings.xml#statusbar-panel");
  604.   }
  605.  
  606. /**
  607.  * AutoRepeater
  608.  */
  609. autorepeater 
  610.   {
  611.     -moz-user-focus       : ignore;
  612.   }
  613.  
  614. autorepeatbutton.up 
  615.   {
  616.     -moz-binding          : url("chrome://global/content/xulBindings.xml#autorepeatbutton-up");  
  617.   }
  618.  
  619. autorepeatbutton.down 
  620.   {
  621.     -moz-binding          : url("chrome://global/content/xulBindings.xml#autorepeatbutton-down");  
  622. }
  623.  
  624. splitter.tree-splitter {
  625.   width: 0px;
  626.   max-width: 0px;
  627. }
  628.  
  629. /*
  630. addressingwidget {
  631.   -moz-binding            : url("chrome://global/content/addressingBindings.xml#addressingWidget");
  632. }
  633.  
  634. address {
  635.   -moz-binding            : url("chrome://global/content/addressingBindings.xml#address");
  636. }
  637. */
  638.  
  639. stringbundle 
  640.   {
  641.     -moz-binding          : url("chrome://global/content/stringbundleBindings.xml#stringbundle");
  642.     visibility            : collapse;
  643.   }
  644.  
  645.   
  646.  
  647.