home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-mac-0.9.sea.hqx / mozilla-mac-0.9 / res / html.css < prev    next >
Cascading Style Sheet File  |  2001-05-05  |  8KB  |  453 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. listing {
  112.   display: block;
  113.   font-family: -moz-fixed;
  114.   font-size: medium;
  115.   white-space: pre;
  116.   margin: 1em 0;
  117. }
  118.  
  119. plaintext, xmp, pre {
  120.   display: block;
  121.   font-family: -moz-fixed;
  122.   white-space: pre;
  123.   margin: 1em 0;
  124. }
  125.  
  126.  
  127. /* tables */
  128.  
  129. table, :table {
  130.   display: table;
  131.   border-spacing: 2px; 
  132.   border-collapse: separate;
  133.   margin-top: 0;
  134.   margin-bottom: 0;
  135.   -moz-box-sizing: border-box;
  136. }
  137.  
  138. :table-outer {
  139.   display: table;
  140.   margin: 0;
  141.   border: none;
  142.   padding: 0;
  143.   width: 0;
  144.   height: 0;
  145.   float: inherit;
  146.   clear: inherit;
  147.   position: inherit;
  148.   top: inherit;
  149.   right: inherit;
  150.   bottom: inherit;
  151.   left: inherit;
  152.   z-index: inherit;
  153.   clip: inherit;
  154.   -moz-opacity: inherit;
  155. }
  156.    
  157. caption {
  158.   display: table-caption;
  159.   text-align: center;
  160.   -moz-box-sizing: border-box;
  161. }
  162.  
  163. tr {
  164.   display: table-row;
  165.   vertical-align: inherit;
  166. }
  167.  
  168. :table-row {
  169.   display: table-row;
  170. }
  171.  
  172. col, :table-column {
  173.   display: table-column;
  174. }
  175.  
  176. colgroup, :table-column-group {
  177.   display: table-column-group;
  178. }
  179.  
  180. tbody {
  181.   display: table-row-group;
  182.   vertical-align: middle;
  183. }
  184.  
  185. thead {
  186.   display: table-header-group;
  187.   vertical-align: middle;
  188. }
  189.  
  190. tfoot {
  191.   display: table-footer-group;
  192.   vertical-align: middle;
  193. }
  194.  
  195. :table-row-group {
  196.   display: table-row-group;
  197. }
  198.  
  199. td { /* must never set padding on TD */
  200.   display: table-cell;
  201.   vertical-align: inherit;
  202.   text-align: inherit; 
  203. }
  204.  
  205. th { /* must never set padding on TH */
  206.   display: table-cell;
  207.   vertical-align: inherit;
  208.   font-weight: bold;
  209. }
  210.  
  211. :table-cell {
  212.   display: table-cell;
  213. }
  214.  
  215.  
  216. /* inlines */
  217.  
  218. q:before {
  219.   content: open-quote;
  220. }
  221.  
  222. q:after {
  223.   content: close-quote;
  224. }
  225.  
  226. b, strong {
  227.   font-weight: bolder;
  228. }
  229.  
  230. i, cite, em, var, dfn {
  231.   font-style: italic;
  232. }
  233.  
  234. tt, code, kbd, samp {
  235.   font-family: -moz-fixed;
  236. }
  237.  
  238. u, ins {
  239.   text-decoration: underline;
  240. }
  241.  
  242. s, strike, del {
  243.   text-decoration: line-through;
  244. }
  245.  
  246. blink {
  247.   text-decoration: blink;
  248. }
  249.  
  250. big {
  251.   font-size: larger;
  252. }
  253.  
  254. small {
  255.   font-size: smaller;
  256. }
  257.  
  258. sub {
  259.   vertical-align: sub;
  260.   font-size: smaller;
  261.   line-height: normal;
  262. }
  263.  
  264. sup {
  265.   vertical-align: super;
  266.   font-size: smaller;
  267.   line-height: normal;
  268. }
  269.  
  270. nobr {
  271.   white-space: nowrap;
  272. }
  273.  
  274. /* titles */
  275. abbr[title], acronym[title] {
  276.   border-bottom: dotted 1px;
  277.   cursor: help;
  278. }
  279.  
  280. /* lists */
  281.  
  282. :-moz-list-bullet {
  283.   display: inline;
  284.   vertical-align: baseline;
  285.   margin-right: 8px;
  286. }
  287.  
  288. ul, menu, dir {
  289.   display: block;
  290.   list-style-type: disc;
  291.   margin: 1em 0;
  292.   padding-left: 40px;
  293.   counter-reset: -html-counter 0;
  294. }
  295.  
  296. ol {
  297.   display: block;
  298.   list-style-type: decimal;
  299.   margin: 1em 0;
  300.   padding-left: 40px;
  301.   counter-reset: -html-counter 0;
  302. }
  303.  
  304. li {
  305.   display: list-item;
  306.   -moz-float-edge: margin-box;
  307. }
  308.  
  309. /* nested lists have no top/bottom margins */
  310. ul ul,   ul ol,   ul dir,   ul menu,   ul dl,
  311. ol ul,   ol ol,   ol dir,   ol menu,   ol dl,
  312. dir ul,  dir ol,  dir dir,  dir menu,  dir dl,
  313. menu ul, menu ol, menu dir, menu menu, menu dl,
  314. dl ul,   dl ol,   dl dir,   dl menu,   dl dl {
  315.   margin-top: 0;
  316.   margin-bottom: 0;
  317. }
  318.  
  319. /* 2 deep unordered lists use a circle */
  320. ol ul,   ul ul,   menu ul,   dir ul,
  321. ol menu, ul menu, menu menu, dir menu,
  322. ol dir,  ul dir,  menu dir,  dir dir {
  323.   list-style-type: circle;
  324. }
  325.  
  326. /* 3 deep (or more) unordered lists use a square */
  327. ol ol ul,     ol ul ul,     ol menu ul,     ol dir ul,
  328. ol ol menu,   ol ul menu,   ol menu menu,   ol dir menu,
  329. ol ol dir,    ol ul dir,    ol menu dir,    ol dir dir,
  330. ul ol ul,     ul ul ul,     ul menu ul,     ul dir ul,
  331. ul ol menu,   ul ul menu,   ul menu menu,   ul dir menu,
  332. ul ol dir,    ul ul dir,    ul menu dir,    ul dir dir,
  333. menu ol ul,   menu ul ul,   menu menu ul,   menu dir ul,
  334. menu ol menu, menu ul menu, menu menu menu, menu dir menu,
  335. menu ol dir,  menu ul dir,  menu menu dir,  menu dir dir,
  336. dir ol ul,    dir ul ul,    dir menu ul,    dir dir ul,
  337. dir ol menu,  dir ul menu,  dir menu menu,  dir dir menu,
  338. dir ol dir,   dir ul dir,   dir menu dir,   dir dir dir {
  339.   list-style-type: square;
  340. }
  341.  
  342.  
  343. /* leafs */
  344.  
  345. hr {
  346.   display: block;
  347.   border: 1px -moz-bg-inset;
  348.   margin: 0 auto 0 auto;
  349. }
  350.  
  351. :link img, :visited img, img[usemap], object[usemap] {
  352.   border: 2px solid;
  353.   cursor: pointer;
  354. }
  355.  
  356. img[usemap], object[usemap] {
  357.   color: blue;
  358.   -moz-user-focus: normal;
  359. }
  360.  
  361. object, embed, applet {
  362.   -moz-user-focus: normal;
  363. }
  364.  
  365. frameset {
  366.   display: block ! important;
  367.   overflow: hidden;
  368. }
  369.  
  370. frame {
  371.   background-color: transparent ! important; /* (b=49779) */
  372. }
  373.  
  374. iframe {
  375.   background-color: transparent ! important; /* (b=49779) */
  376.   border: 2px inset;
  377. }
  378.  
  379. noframes {
  380.   display: block;
  381. }
  382.  
  383.  
  384. /* focusable content */
  385.  
  386. /* links */
  387. :link {
  388.   cursor: pointer;
  389.   -moz-user-focus: normal;
  390. }
  391.  
  392. :visited {
  393.   cursor: pointer;
  394.   -moz-user-focus: normal;
  395. }
  396.  
  397. :link:active, :visited:active {
  398.   color: red;
  399. }
  400.  
  401. :link:focus, :visited:focus {
  402.   -moz-outline: 1px dotted WindowText;
  403. }
  404.  
  405. /* hidden elements */
  406. area, base, basefont, head, meta, script, style, title,
  407. noembed, noscript, param, :-moz-comment, :-moz-pi {
  408.    display: none;
  409. }
  410.  
  411.  
  412. /* magic */
  413.  
  414. :viewport, :viewport-scroll, :canvas {
  415.   display: block;
  416.   background-color: inherit;
  417. }
  418.  
  419. :scrolled-content { 
  420.   /* e.g., text inputs, select boxes */
  421.   background: inherit;
  422.   padding: inherit;
  423.   display: inherit;
  424.   -moz-xul-box-orient: inherit;
  425. }
  426.  
  427. :wrapped-frame {
  428.   display: inherit;
  429. }
  430.  
  431. :placeholder-frame {
  432.   display: inline;
  433.   width: 0;
  434.   height: 0;
  435. }
  436.  
  437. :-moz-page, :-moz-page-sequence {
  438.   display: block;
  439.   background: transparent;
  440. }
  441.  
  442. :-moz-anonymous-positioned-block {
  443.   display: block;
  444.   position: relative;
  445.   top: inherit; 
  446.   left: inherit;
  447.   bottom: inherit;
  448.   right: inherit;
  449.   z-index: inherit;
  450.   clip: inherit;
  451.   -moz-opacity: inherit;
  452. }
  453.