home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / toolkit.jar / content / global / xul.css < prev   
Encoding:
Cascading Style Sheet File  |  2001-08-30  |  16.6 KB  |  699 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/platformXUL.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.   -moz-user-focus: ignore;
  17.   display: -moz-box;
  18. }
  19.  
  20. /* hide the content and destroy the frame */
  21. *[hidden="true"] {
  22.   display: none;
  23. }
  24.  
  25. /* hide the content, but don't destroy the frames */
  26. *[collapsed="true"], 
  27. *[moz-collapsed="true"] {
  28.   visibility: collapse;
  29. }
  30.  
  31. /****** elements that have no visual representation ******/
  32.  
  33. data,
  34. xbl|children,
  35. commands, commandset, command,
  36. broadcasterset, broadcaster, observes,
  37. keyset, key, 
  38. template, rule, conditions, action, 
  39. bindings, binding, content, member, triple {
  40.     display: none;
  41. }
  42.  
  43. /********** focus rules **********/
  44.  
  45. checkbox,
  46. colorpicker[type="button"],
  47. menulist,
  48. outliner {
  49.   -moz-user-focus: normal;
  50. }
  51.  
  52. menulist[editable="true"],
  53. popup, menupopup, tooltip, 
  54. scrollbar, scrollbarbutton, slider, thumb, autorepeater,
  55. splitter, statusbar, statusbarpanel,
  56. toolbox, menubar, toolbar, spinbuttons {
  57.   -moz-user-focus: ignore;
  58. }
  59.  
  60. outlinercol, outlinerrows,outlinerbody,
  61. radio {
  62.   -moz-user-focus: none;
  63. }
  64.  
  65. radiogroup {
  66.   -moz-user-focus: normal;
  67. }
  68.  
  69. /******** window ******/
  70.  
  71. window { 
  72.   overflow: hidden;
  73. }
  74.  
  75. /******** box *******/
  76.  
  77. vbox {
  78.   -moz-box-orient: vertical;
  79. }
  80.  
  81. /******** bulletinboard *******/
  82.  
  83. bulletinboard {
  84.   display: -moz-bulletinboard;
  85. }
  86.  
  87. /********** button **********/
  88.  
  89. button,
  90. button.left {
  91.   -moz-binding: url("chrome://global/content/bindings/button.xml#buttonleft");
  92. }
  93.  
  94. button.top {
  95.   -moz-binding: url("chrome://global/content/bindings/button.xml#buttontop");
  96. }
  97.  
  98. button.right {
  99.   -moz-binding: url("chrome://global/content/bindings/button.xml#buttonright");
  100. }
  101.  
  102. button.bottom {
  103.   -moz-binding: url("chrome://global/content/bindings/button.xml#buttonbottom");
  104. }
  105.  
  106. /******** browser, editor, iframe ********/
  107.  
  108. browser,
  109. editor,
  110. iframe {
  111.   display: inline;
  112. }
  113.  
  114. browser {
  115.   -moz-binding: url("chrome://global/content/bindings/browser.xml#browser");
  116. }
  117.  
  118. editor {
  119.   -moz-binding: url("chrome://global/content/bindings/general.xml#editor");
  120. }
  121.  
  122. iframe {
  123.   -moz-binding: url("chrome://global/content/bindings/general.xml#iframe");
  124. }
  125.  
  126. /********** checkbox **********/
  127.  
  128. checkbox {
  129.   -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox");
  130. }
  131.  
  132. /********** radio **********/
  133.  
  134. radiogroup {
  135.   -moz-binding: url("chrome://global/content/bindings/radio.xml#radiogroup");
  136. }
  137.  
  138. radio {
  139.   -moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
  140. }
  141.  
  142. /******** titledbox (moving solely to groupbox later) *******/
  143.  
  144. titledbox,
  145. groupbox {
  146.   -moz-binding: url("chrome://global/content/bindings/titledbox.xml#groupbox");
  147.   display: -moz-groupbox;
  148. }
  149.  
  150. .groupbox-body {
  151.   -moz-box-pack: inherit;
  152.   -moz-box-align: inherit;
  153. }
  154.   
  155. /******* toolbar *******/
  156.  
  157. toolbox { 
  158.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbox");
  159. }
  160.   
  161. toolbar {
  162.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
  163. }
  164.  
  165. toolbargrippy {
  166.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbargrippy");
  167. }
  168.  
  169. toolbarseparator {
  170.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarseparator");
  171. }
  172.  
  173. .toolbar-holder[collapsed="true"] {
  174.   visibility: collapse;
  175. }
  176.  
  177. /********* menubar ***********/
  178.  
  179. menubar {
  180.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar");
  181. }
  182.  
  183. /********* menu ***********/
  184.  
  185. menubar > menu {
  186.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar");
  187. }
  188.  
  189. menubar > menu.menu-iconic {
  190.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar-iconic");
  191. }
  192.  
  193. menu {
  194.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu");
  195. }
  196.   
  197. menu.menu-iconic {
  198.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic");
  199. }
  200.  
  201. /********* menuitem ***********/
  202.  
  203. menuitem {
  204.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem");
  205. }
  206.  
  207. menuitem.menuitem-iconic {
  208.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
  209. }
  210.  
  211. menuitem[type="checkbox"],
  212. menuitem[type="radio"] {
  213.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
  214. }
  215.  
  216. menuitem.menuitem-non-iconic {
  217.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menubutton-item");
  218. }
  219.  
  220. /********* menuseparator ***********/
  221.  
  222. menuseparator {
  223.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuseparator");
  224. }
  225.  
  226. /********* popup & menupopup ***********/
  227.  
  228. /* POPUP is deprecated.  Only <menupopup> and <tooltip> are still valid. */ 
  229.  
  230. popup,
  231. menupopup,
  232. tooltip {
  233.   -moz-binding: url("chrome://global/content/bindings/popup.xml#popup");
  234.   -moz-box-orient: vertical;
  235.   display: none;
  236.   z-index: 2147483647; 
  237. }
  238.  
  239. menupopup[menugenerated="true"],
  240. popup[menugenerated="true"],
  241. tooltip[menugenerated="true"] {
  242.   display: -moz-popup;
  243. }
  244.  
  245. /* Everything here is deprecated except the tooltip tag */
  246. popup.tooltip,
  247. .popup-infopopup,
  248. tooltip {
  249.   -moz-binding: url("chrome://global/content/bindings/popup.xml#tooltips");
  250. }
  251.  
  252. /********** floating popups **********/
  253.   
  254. titlebar {
  255.   -moz-binding: url("chrome://global/content/bindings/popup.xml#titlebar");  
  256. }  
  257.  
  258. resizer[direction="right"] {
  259.   -moz-binding: url("chrome://global/content/bindings/popup.xml#r-resizer");
  260. }  
  261.  
  262. resizer[direction="bottom"] {
  263.   -moz-binding: url("chrome://global/content/bindings/popup.xml#b-resizer");
  264. }  
  265.  
  266. resizer[direction="bottomright"] {
  267.   -moz-binding: url("chrome://global/content/bindings/popup.xml#rb-resizer");  
  268. }  
  269.  
  270. popup[type="floater"] {
  271.   -moz-binding: url("chrome://global/content/bindings/popup.xml#floater-normal");
  272. }
  273.  
  274. popup[type="floater"][docked="left"] {
  275.   -moz-binding: url("chrome://global/content/bindings/popup.xml#floater-dock-left");
  276. }
  277.  
  278. button.popupClose {
  279.   -moz-binding: url("chrome://global/content/bindings/popup.xml#close-button") !important;
  280. }  
  281.  
  282. /******** grid **********/
  283.  
  284. grid {
  285.   display: -moz-grid;
  286. }
  287.  
  288. rows, 
  289. columns {
  290.   display: -moz-grid-group;
  291. }
  292.  
  293. row,
  294. column {
  295.   display: -moz-grid-line;
  296. }
  297.  
  298. rows {
  299.   -moz-box-orient: vertical;
  300. }
  301.  
  302. column {
  303.   -moz-box-orient: vertical;
  304. }
  305.  
  306. /******** tree **********/
  307.  
  308. tree {
  309.  -moz-binding: url("chrome://global/content/bindings/tree.xml#tree");
  310. }
  311.  
  312. treehead, treecol, treerows, treerow, treecolgroup, treechildren {
  313.  -moz-binding: url("chrome://global/content/bindings/tree.xml#tree-base");
  314. }
  315.  
  316. tree > treechildren {
  317.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treerows");
  318. }
  319.  
  320. treeitem { 
  321.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treeitem");
  322. }
  323.  
  324. /* treecells */
  325.  
  326. treecell { 
  327.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell");
  328.  
  329. .treecell-indent {
  330.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-leaf");
  331. }
  332.  
  333. treeitem[container="true"] > treerow > .treecell-indent {
  334.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-folder");
  335. }
  336.  
  337. .treecell-iconic {
  338.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-iconic");
  339. }
  340.  
  341. .treecell-image {
  342.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-image");
  343. }
  344.  
  345. .treecell-align-right {
  346.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-align-right");
  347. }
  348.  
  349. /* tree headers */
  350.  
  351. .treecell-header, .treecell-inset-header {
  352.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-header");
  353. }
  354.  
  355. .treecell-header-image {
  356.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-header-image");
  357. }
  358.  
  359. /* internal parts */
  360.  
  361. .treecell-text { 
  362.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-text");
  363.  
  364. /* Inline Editable Treecell */
  365. .treecell-editable {
  366.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-inline-edit");
  367. }
  368.  
  369. .treecell-indent.treecell-editable {
  370.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-leaf-inline-edit");
  371. }
  372.  
  373. treeitem[container="true"] > treerow > .treecell-indent.treecell-editable {
  374.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-folder-inline-edit");
  375. }
  376.  
  377. /******** outliner ******/
  378.  
  379. outliner {
  380.  -moz-binding: url("chrome://global/content/bindings/outliner.xml#outliner");
  381. }
  382.  
  383. outlinercol {
  384.  -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinercol");
  385. }
  386.  
  387. outlinercol.outlinercol-image {
  388.  -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinercol-image");
  389. }
  390.  
  391. outlinerbody {
  392.  -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinerbody");
  393. }
  394.  
  395. outlinerrows {
  396.  -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinerrows");
  397. }
  398.  
  399. outlinercol.outliner-columnpicker {
  400.   -moz-binding: url("chrome://global/content/bindings/outliner.xml#columnpicker");
  401. }
  402.  
  403. outlinercol[hidden="true"] {
  404.   visibility: collapse;
  405.   display: -moz-box;
  406. }
  407.  
  408. /********** deck & stack *********/
  409.  
  410. deck {
  411.   display: -moz-deck;
  412. }
  413.  
  414. stack {
  415.   display: -moz-stack;
  416. }
  417.  
  418. :-moz-deck-hidden {
  419.    visibility: hidden;
  420. }
  421.  
  422. /********** tabbox *********/
  423.  
  424. tabbox {
  425.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabbox");
  426. }
  427.  
  428. tabs {
  429.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabs");
  430. }
  431.  
  432. tab {
  433.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tab");
  434. }
  435.  
  436. tabpanels {
  437.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabpanels");
  438.   display: -moz-deck;
  439. }
  440.  
  441. /********** progressmeter **********/
  442.  
  443. progressmeter {
  444.   -moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter");
  445. }
  446.  
  447. /********** basic rule for anonymous content that needs to pass box properties through
  448.  ********** to an insertion point parent that holds the real kids **************/
  449.  
  450.  .box-inherit {
  451.    -moz-box-orient: inherit;
  452.    -moz-box-pack: inherit;
  453.    -moz-box-align: inherit;
  454.    -moz-box-direction: inherit;
  455. }
  456.  
  457. /********** label **********/
  458.  
  459. /* XXXdwh <text>, <html> and <spring> are deprecated. */
  460.  
  461. text, spring, spacer {
  462.   display: inline;
  463. }
  464.  
  465. label, description, html {
  466.   display: block;
  467. }
  468.  
  469. description {
  470.   -moz-binding: url("chrome://global/content/bindings/text.xml#text-base");
  471. }
  472.  
  473. label {
  474.   -moz-binding: url("chrome://global/content/bindings/text.xml#text-label");
  475. }
  476.  
  477. label[control] {
  478.   -moz-binding: url("chrome://global/content/bindings/text.xml#label-control");
  479. }
  480.  
  481. text[for] {
  482.   -moz-binding: url("chrome://global/content/bindings/text.xml#text-for");
  483. }
  484.  
  485. /********** textbox **********/
  486.  
  487. textbox {
  488.   -moz-binding: url("chrome://global/content/bindings/textbox.xml#textbox");
  489.   -moz-user-select: text;
  490. }
  491.  
  492. textbox[multiline="true"] {
  493.   -moz-binding: url("chrome://global/content/bindings/textbox.xml#textarea");
  494. }
  495.  
  496. /********** autocomplete textbox **********/
  497.  
  498. textbox[type="autocomplete"] {
  499.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete");
  500. }
  501.  
  502. .autocomplete-internal-box {
  503.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-internal-box");
  504. }
  505.  
  506. .autocomplete-result-popup {
  507.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-result-popup") !important;
  508. }
  509.  
  510. .autocomplete-history-popup {
  511.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-history-popup") !important;
  512. }
  513.  
  514. .autocomplete-outliner {
  515.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outliner") !important;
  516. }
  517.  
  518. .autocomplete-outlinerbody {
  519.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outlinerbody") !important;
  520. }
  521.  
  522. .autocomplete-outlinerrows {
  523.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outlinerrows") !important;
  524. }
  525.  
  526. .autocomplete-outlinercol {
  527.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outlinercol") !important;
  528. }
  529.  
  530. /********** colorpicker **********/
  531.  
  532. colorpicker {
  533.   -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker");
  534. }
  535.  
  536. colorpicker[type="button"] {
  537.   -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker-button");
  538. }
  539.  
  540. /********** menulist **********/
  541.  
  542. menulist {
  543.   -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist");
  544. }
  545.  
  546. menulist[editable="true"] {
  547.   -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-editable") !important;
  548. }
  549.  
  550. menulist > menupopup > menuitem {
  551.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic") !important;
  552. }
  553.  
  554. /********** menubutton **********/
  555.  
  556. menubutton {
  557.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-left");
  558. }
  559.  
  560. menubutton.right {
  561.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-right");
  562. }
  563.  
  564. menubutton.top {
  565.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-top");
  566. }
  567.  
  568. menubutton.bottom {
  569.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-bottom");
  570. }
  571.  
  572. .menubutton-dual,
  573. .menubutton-dual.left {
  574.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-left");
  575. }
  576.   
  577. .menubutton-dual.top {
  578.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-top");
  579. }
  580.   
  581. .menubutton-dual.right {
  582.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-right");
  583. }
  584.   
  585. .menubutton-dual.bottom {
  586.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-bottom");
  587. }
  588.   
  589. .menubutton-icon {
  590.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-icon");
  591.  
  592. /********** splitter **********/
  593.  
  594. splitter {
  595.   -moz-binding: url("chrome://global/content/bindings/splitter.xml#splitter");
  596. }
  597.  
  598. grippy {
  599.   -moz-binding: url("chrome://global/content/bindings/splitter.xml#grippy");
  600. }
  601.  
  602. .tree-splitter {
  603.   width: 0px;
  604.   max-width: 0px;
  605. }
  606.  
  607. /********** scrollbar **********/
  608.  
  609. /* Scrollbars are never flipped even if BiDI kicks in. */
  610. scrollbar {
  611.   direction: ltr;
  612. }
  613.  
  614. scrollbar, scrollbarbutton, slider, thumb {
  615.   -moz-user-select: none;
  616. }
  617.  
  618. scrollbar[value="hidden"] {
  619.   visibility: hidden;
  620. }
  621.  
  622. /******** scrollbox ********/
  623.  
  624. scrollbox {
  625.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#scrollbox");
  626. }
  627.  
  628. arrowscrollbox {
  629.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox");
  630.   display: -moz-stack;
  631. }
  632.  
  633. autorepeatbutton.up {
  634.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#autorepeatbutton-up");  
  635. }
  636.  
  637. autorepeatbutton.down {
  638.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#autorepeatbutton-down");  
  639. }
  640.  
  641. .scrollbox-innerbox {
  642.   -moz-box-pack: inherit;
  643.   -moz-box-align: inherit;
  644. }
  645.  
  646. /********** statusbar **********/
  647.  
  648. statusbarpanel {
  649.   -moz-binding: url("chrome://global/content/bindings/general.xml#statusbar-panel");
  650. }
  651.  
  652. /********** spinbuttons ***********/
  653.  
  654. spinbuttons {
  655.   -moz-binding: url("chrome://global/content/bindings/spinbuttons.xml#spinbuttons");
  656. }
  657.  
  658. /********** stringbundle **********/
  659.  
  660. stringbundleset {
  661.   -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundleset");
  662.   visibility: collapse;
  663. }
  664.  
  665. stringbundle {
  666.   -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundle");
  667.   visibility: collapse;
  668. }
  669.  
  670. /********** resourcebundle **********/
  671. resourcebundle {
  672.   visibility: collapse;
  673. }  
  674.  
  675. /********** wizard **********/
  676.  
  677. wizard {
  678.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard");
  679.   -moz-box-orient: vertical;
  680. }
  681.  
  682. wizardpage {
  683.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizardpage");
  684.   -moz-box-orient: vertical;
  685.   overflow: auto;
  686. }
  687.  
  688. .wizard-header {
  689.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-header");
  690. }
  691.  
  692. .wizard-buttons {
  693.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-buttons");
  694. }
  695.  
  696.