home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / phoenx05.zip / phoenix / res / html.css < prev    next >
Cascading Style Sheet File  |  2002-12-10  |  9KB  |  448 lines

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