home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / res / html.css < prev    next >
Cascading Style Sheet File  |  2001-10-08  |  8KB  |  481 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is mozilla.org code.
  13.  *
  14.  * The Initial Developer of the Original Code is Netscape
  15.  * Communications Corporation.  Portions created by Netscape are
  16.  * Copyright (C) 1998 Netscape Communications Corporation. All
  17.  * Rights Reserved.
  18.  *
  19.  * Contributor(s): 
  20.  *      Blake Ross <BlakeR1234@aol.com>
  21.  */
  22.  
  23. @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
  24.  
  25. /* blocks */
  26.  
  27. html, div, map, dt, isindex, :-moz-anonymous-block, :cell-content {
  28.   display: block;
  29. }
  30.  
  31. body {
  32.   display: block;
  33.   margin: 8px;
  34. }
  35.  
  36. p, dl, multicol {
  37.   display: block;
  38.   margin: 1em 0;
  39. }
  40.  
  41. dd {
  42.   display: block;
  43.   margin-left: 40px;
  44. }
  45.  
  46. blockquote {
  47.   display: block;
  48.   margin: 1em 40px;
  49. }
  50.  
  51. address {
  52.   display: block;
  53.   font-style: italic;
  54. }
  55.  
  56. center {
  57.   display: block;
  58.   text-align: -moz-center;
  59. }
  60.  
  61. blockquote[type=cite] {
  62.   display: block;
  63.   margin: 1em 0px;
  64.   padding-left: 1em;
  65.   border-left: solid;
  66.   border-color: blue;
  67.   border-width: thin;
  68. }
  69.  
  70. h1 {
  71.   display: block;
  72.   font-size: 2em;
  73.   font-weight: bold;
  74.   margin: .67em 0;
  75. }
  76.  
  77. h2 {
  78.   display: block;
  79.   font-size: 1.5em;
  80.   font-weight: bold;
  81.   margin: .83em 0;
  82. }
  83.  
  84. h3 {
  85.   display: block;
  86.   font-size: 1.17em;
  87.   font-weight: bold;
  88.   margin: 1em 0;
  89. }
  90.  
  91. h4 {
  92.   display: block;
  93.   font-weight: bold;
  94.   margin: 1.33em 0;
  95. }
  96.  
  97. h5 {
  98.   display: block;
  99.   font-size: 0.83em;
  100.   font-weight: bold;
  101.   margin: 1.67em 0;
  102. }
  103.  
  104. h6 {
  105.   display: block;
  106.   font-size: 0.67em;
  107.   font-weight: bold;
  108.   margin: 2.33em 0;
  109. }
  110.  
  111. form {
  112.   display: block !important;
  113. }
  114.  
  115. listing {
  116.   display: block;
  117.   font-family: -moz-fixed;
  118.   font-size: medium;
  119.   white-space: pre;
  120.   margin: 1em 0;
  121. }
  122.  
  123. plaintext, xmp, pre {
  124.   display: block;
  125.   font-family: -moz-fixed;
  126.   white-space: pre;
  127.   margin: 1em 0;
  128. }
  129.  
  130.  
  131. /* tables */
  132.  
  133. table, *|*:table {
  134.   display: table;
  135.   border-spacing: 2px; 
  136.   border-collapse: separate;
  137.   margin-top: 0;
  138.   margin-bottom: 0;
  139.   -moz-box-sizing: border-box;
  140. }
  141.  
  142. table[align="left"] {
  143.   float: left;
  144. }
  145.  
  146. table[align="right"] {
  147.   float: right;
  148.   text-align: start;
  149. }
  150.  
  151. *|*:table-outer {
  152.   display: table;
  153.   margin: 0;
  154.   border: none;
  155.   padding: 0;
  156.   width: 0;
  157.   height: 0;
  158.   float: inherit;
  159.   clear: inherit;
  160.   position: inherit;
  161.   top: inherit;
  162.   right: inherit;
  163.   bottom: inherit;
  164.   left: inherit;
  165.   z-index: inherit;
  166.   clip: inherit;
  167.   -moz-opacity: inherit;
  168. }
  169.    
  170. caption {
  171.   display: table-caption;
  172.   text-align: center;
  173.   -moz-box-sizing: border-box;
  174. }
  175.  
  176. tr {
  177.   display: table-row;
  178.   vertical-align: inherit;
  179. }
  180.  
  181. *|*:table-row {
  182.   display: table-row;
  183. }
  184.  
  185. col, *|*:table-column {
  186.   display: table-column;
  187. }
  188.  
  189. colgroup, *|*:table-column-group {
  190.   display: table-column-group;
  191. }
  192.  
  193. tbody {
  194.   display: table-row-group;
  195.   vertical-align: middle;
  196. }
  197.  
  198. thead {
  199.   display: table-header-group;
  200.   vertical-align: middle;
  201. }
  202.  
  203. tfoot {
  204.   display: table-footer-group;
  205.   vertical-align: middle;
  206. }
  207.  
  208. *|*:table-row-group {
  209.   display: table-row-group;
  210. }
  211.  
  212. td { 
  213.   display: table-cell;
  214.   vertical-align: inherit;
  215.   text-align: inherit; 
  216.   padding: 1px;
  217. }
  218.  
  219. th {
  220.   display: table-cell;
  221.   vertical-align: inherit;
  222.   font-weight: bold;
  223.   padding: 1px;
  224. }
  225.  
  226. *|*:table-cell {
  227.   display: table-cell;
  228.   padding: 1px;
  229.   white-space: inherit;
  230. }
  231.  
  232. /* inlines */
  233.  
  234. q:before {
  235.   content: open-quote;
  236. }
  237.  
  238. q:after {
  239.   content: close-quote;
  240. }
  241.  
  242. b, strong {
  243.   font-weight: bolder;
  244. }
  245.  
  246. i, cite, em, var, dfn {
  247.   font-style: italic;
  248. }
  249.  
  250. tt, code, kbd, samp {
  251.   font-family: -moz-fixed;
  252. }
  253.  
  254. u, ins {
  255.   text-decoration: underline;
  256. }
  257.  
  258. s, strike, del {
  259.   text-decoration: line-through;
  260. }
  261.  
  262. blink {
  263.   text-decoration: blink;
  264. }
  265.  
  266. big {
  267.   font-size: larger;
  268. }
  269.  
  270. small {
  271.   font-size: smaller;
  272. }
  273.  
  274. sub {
  275.   vertical-align: sub;
  276.   font-size: smaller;
  277.   line-height: normal;
  278. }
  279.  
  280. sup {
  281.   vertical-align: super;
  282.   font-size: smaller;
  283.   line-height: normal;
  284. }
  285.  
  286. nobr {
  287.   white-space: nowrap;
  288. }
  289.  
  290. /* titles */
  291. abbr[title], acronym[title] {
  292.   border-bottom: dotted 1px;
  293.   cursor: help;
  294. }
  295.  
  296. /* lists */
  297.  
  298. *|*:-moz-list-bullet {
  299.   display: inline;
  300.   vertical-align: baseline;
  301.   margin-right: 8px;
  302. }
  303.  
  304. ul, menu, dir {
  305.   display: block;
  306.   list-style-type: disc;
  307.   margin: 1em 0;
  308.   padding-left: 40px;
  309.   counter-reset: -html-counter 0;
  310. }
  311.  
  312. ol {
  313.   display: block;
  314.   list-style-type: decimal;
  315.   margin: 1em 0;
  316.   padding-left: 40px;
  317.   counter-reset: -html-counter 0;
  318. }
  319.  
  320. li {
  321.   display: list-item;
  322.   -moz-float-edge: margin-box;
  323. }
  324.  
  325. /* nested lists have no top/bottom margins */
  326. ul ul,   ul ol,   ul dir,   ul menu,   ul dl,
  327. ol ul,   ol ol,   ol dir,   ol menu,   ol dl,
  328. dir ul,  dir ol,  dir dir,  dir menu,  dir dl,
  329. menu ul, menu ol, menu dir, menu menu, menu dl,
  330. dl ul,   dl ol,   dl dir,   dl menu,   dl dl {
  331.   margin-top: 0;
  332.   margin-bottom: 0;
  333. }
  334.  
  335. /* 2 deep unordered lists use a circle */
  336. ol ul,   ul ul,   menu ul,   dir ul,
  337. ol menu, ul menu, menu menu, dir menu,
  338. ol dir,  ul dir,  menu dir,  dir dir {
  339.   list-style-type: circle;
  340. }
  341.  
  342. /* 3 deep (or more) unordered lists use a square */
  343. ol ol ul,     ol ul ul,     ol menu ul,     ol dir ul,
  344. ol ol menu,   ol ul menu,   ol menu menu,   ol dir menu,
  345. ol ol dir,    ol ul dir,    ol menu dir,    ol dir dir,
  346. ul ol ul,     ul ul ul,     ul menu ul,     ul dir ul,
  347. ul ol menu,   ul ul menu,   ul menu menu,   ul dir menu,
  348. ul ol dir,    ul ul dir,    ul menu dir,    ul dir dir,
  349. menu ol ul,   menu ul ul,   menu menu ul,   menu dir ul,
  350. menu ol menu, menu ul menu, menu menu menu, menu dir menu,
  351. menu ol dir,  menu ul dir,  menu menu dir,  menu dir dir,
  352. dir ol ul,    dir ul ul,    dir menu ul,    dir dir ul,
  353. dir ol menu,  dir ul menu,  dir menu menu,  dir dir menu,
  354. dir ol dir,   dir ul dir,   dir menu dir,   dir dir dir {
  355.   list-style-type: square;
  356. }
  357.  
  358.  
  359. /* leafs */
  360.  
  361. hr {
  362.   display: block;
  363.   border: 1px -moz-bg-inset;
  364.   margin: 0 auto 0 auto;
  365. }
  366.  
  367. *|*:-moz-any-link img, img[usemap], object[usemap] {
  368.   border: 2px solid;
  369.   cursor: pointer;
  370. }
  371.  
  372. img[usemap], object[usemap] {
  373.   color: blue;
  374.   -moz-user-focus: normal;
  375. }
  376.  
  377. object, embed, applet {
  378.   -moz-user-focus: normal;
  379. }
  380.  
  381. frameset {
  382.   display: block ! important;
  383.   overflow: hidden;
  384. }
  385.  
  386. frame {
  387.   background-color: transparent ! important; /* (b=49779) */
  388. }
  389.  
  390. iframe {
  391.   background-color: transparent ! important; /* (b=49779) */
  392.   border: 2px inset;
  393.   -moz-user-focus: normal;
  394. }
  395.  
  396. noframes {
  397.   display: block;
  398. }
  399.  
  400.  
  401. /* focusable content */
  402.  
  403. /* links */
  404. *|*:-moz-any-link {
  405.   cursor: pointer;
  406.   -moz-user-focus: normal;
  407. }
  408.  
  409. *|*:-moz-any-link:active {
  410.   color: red;
  411. }
  412.  
  413. *|*:-moz-any-link:focus {
  414.   -moz-outline: 1px dotted invert;
  415. }
  416.  
  417. /* hidden elements */
  418. area, base, basefont, head, meta, script, style, title,
  419. noembed, noscript, param, *|*:-moz-comment, *|*:-moz-pi {
  420.    display: none;
  421. }
  422.  
  423.  
  424. /* magic */
  425.  
  426. *|*:viewport, *|*:viewport-scroll, *|*:canvas {
  427.   display: block;
  428.   background-color: inherit;
  429. }
  430.  
  431. *|*:scrolled-content { 
  432.   /* e.g., text inputs, select boxes */
  433.   background: inherit;
  434.   padding: inherit;
  435.   display: inherit;
  436.   -moz-box-orient: inherit;
  437. }
  438.  
  439. *|*:wrapped-frame {
  440.   display: inherit;
  441. }
  442.  
  443. *|*:placeholder-frame {
  444.   display: inline;
  445.   width: 0;
  446.   height: 0;
  447. }
  448.  
  449. *|*:-moz-page, *|*:-moz-page-sequence {
  450.   display: block;
  451.   background: transparent;
  452. }
  453.  
  454. *|*:-moz-anonymous-positioned-block {
  455.   display: block;
  456.   position: relative;
  457.   top: inherit; 
  458.   left: inherit;
  459.   bottom: inherit;
  460.   right: inherit;
  461.   z-index: inherit;
  462.   clip: inherit;
  463.   -moz-opacity: inherit;
  464. }
  465.  
  466.  
  467. /* PRINT ONLY rules follow */
  468.  
  469. @media print {
  470.  
  471.  /* undo floats on aligned tables since we cannot print them correctly: see bug 74738 and bug 85768 */
  472.  table[align="left"] {
  473.    float: none;
  474.  }
  475.  
  476.  table[align="right"] {
  477.    float: none;
  478.  }
  479.  
  480. }
  481.