1998-04-14 00:24:54 +04:00
|
|
|
/*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// It's probably cheaper to have a single rule per tag than to have to
|
|
|
|
// merge rules
|
|
|
|
|
|
|
|
// XXX I'm starting to believe that this portion of the style sheet
|
|
|
|
// comes from the PresentationContext.
|
|
|
|
|
|
|
|
BODY {
|
1998-06-05 21:53:46 +04:00
|
|
|
font-family: serif;
|
1998-04-14 00:24:54 +04:00
|
|
|
font-style: normal;
|
|
|
|
font-variant: normal;
|
|
|
|
font-weight: normal;
|
1998-04-25 22:41:41 +04:00
|
|
|
font-size: 11pt;
|
1998-04-14 00:24:54 +04:00
|
|
|
line-height: 1.1;
|
|
|
|
background: rgb(255,255,255);
|
|
|
|
color: black;
|
1998-06-25 20:33:10 +04:00
|
|
|
padding: 8px;
|
1998-04-14 00:24:54 +04:00
|
|
|
display: block;
|
1998-04-26 07:47:06 +04:00
|
|
|
cursor: arrow;
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
// XXX Use this!
|
|
|
|
FRAMESET {
|
1998-06-05 21:53:46 +04:00
|
|
|
font-family: serif;
|
1998-04-14 00:24:54 +04:00
|
|
|
font-style: normal;
|
|
|
|
font-variant: normal;
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: medium;
|
|
|
|
background: rgb(192,192,192);
|
|
|
|
color: black;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
// XXX Used when PagePreview'ing
|
|
|
|
PAGE {
|
|
|
|
background: white;
|
|
|
|
border: black solid 1px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
|
|
|
// This part of the ua.css is junk taken from the css1 spec and used as
|
|
|
|
// a temporary style sheet.
|
|
|
|
|
|
|
|
UL, OL, DL { display: block; }
|
|
|
|
DT, DD { display: block; }
|
|
|
|
IMG { display: inline; }
|
|
|
|
SPACER { display: inline; }
|
|
|
|
WBR { display: inline; }
|
|
|
|
|
|
|
|
// Default list-style-type styles.
|
|
|
|
// The Navigator 3.0 rule is:
|
|
|
|
// Zeroth-level: small disc. (Needs to be handled by parser.)
|
|
|
|
// First level: disc
|
|
|
|
// second level: circle
|
|
|
|
// third and higher levels: square.
|
|
|
|
//
|
|
|
|
// These style rules assume that MENU and DIR have been mapped to UL.
|
|
|
|
|
|
|
|
UL {
|
|
|
|
list-style-type: disc;
|
|
|
|
}
|
|
|
|
|
|
|
|
OL UL, UL UL {
|
|
|
|
list-style-type: circle;
|
|
|
|
}
|
|
|
|
|
|
|
|
UL UL UL, UL OL UL, OL UL UL, OL OL UL {
|
|
|
|
list-style-type: square;
|
|
|
|
}
|
|
|
|
|
|
|
|
OL {
|
|
|
|
list-style-type: decimal;
|
|
|
|
}
|
|
|
|
|
1998-05-22 22:39:11 +04:00
|
|
|
LI {
|
|
|
|
display: list-item;
|
|
|
|
list-style-position: inside;
|
|
|
|
}
|
|
|
|
|
|
|
|
UL LI, OL LI {
|
1998-05-29 06:16:29 +04:00
|
|
|
list-style-position: outside;
|
1998-04-14 00:24:54 +04:00
|
|
|
padding-left: 40px; /* nav4's value */
|
|
|
|
}
|
|
|
|
|
1998-06-04 21:52:22 +04:00
|
|
|
DT {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
DD {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-left: .25in;
|
|
|
|
}
|
1998-04-14 00:24:54 +04:00
|
|
|
|
1998-04-26 07:47:06 +04:00
|
|
|
A:link { color: blue; text-decoration: underline; cursor: hand; }
|
|
|
|
A:visited { color: purple; text-decoration: underline; cursor: hand; }
|
|
|
|
A:active { color: lime; text-decoration: underline; cursor: hand; }
|
|
|
|
A:out-of-date { color: red; text-decoration: underline; cursor: hand; }
|
1998-04-14 00:24:54 +04:00
|
|
|
|
|
|
|
A:link IMG { border: 2px solid blue; text-decoration: underline }
|
|
|
|
A:visited IMG { border: 2px solid purple; text-decoration: underline }
|
|
|
|
A:active IMG { border: 2px solid lime; text-decoration: underline }
|
|
|
|
A:out-of-date IMG { border: 2px solid red; text-decoration: underline }
|
|
|
|
|
1998-06-05 06:36:25 +04:00
|
|
|
|
1998-04-14 00:24:54 +04:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// The real stuff
|
|
|
|
|
|
|
|
HR {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
BR {
|
1998-05-02 04:56:55 +04:00
|
|
|
display: inline;
|
|
|
|
color: cyan;
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
|
|
|
|
1998-05-07 04:06:15 +04:00
|
|
|
INPUT {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
SELECT {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
TEXTAREA {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
|
1998-04-14 00:24:54 +04:00
|
|
|
// Block tags
|
|
|
|
ADDRESS {
|
|
|
|
display: block;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
BLOCKQUOTE {
|
|
|
|
display: block;
|
|
|
|
margin-left: .25in;
|
|
|
|
margin-right: .25in;
|
|
|
|
}
|
|
|
|
CENTER {
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
DIV {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
H1 {
|
|
|
|
display: block;
|
|
|
|
font-size: 22pt;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
H2 {
|
|
|
|
display: block;
|
|
|
|
font-size: 16pt;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
H3 {
|
|
|
|
display: block;
|
|
|
|
font-size: 13pt;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
H4 {
|
|
|
|
display: block;
|
|
|
|
font-size: 12pt;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
H5 {
|
|
|
|
display: block;
|
|
|
|
font-size: 9pt;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
H6 {
|
|
|
|
display: block;
|
|
|
|
font-size: 8pt;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
LISTING {
|
|
|
|
display: block;
|
|
|
|
font-family: monospace;
|
|
|
|
font-size: small;
|
|
|
|
white-space: pre;
|
|
|
|
}
|
|
|
|
NOBR {
|
|
|
|
display: inline;
|
1998-06-04 21:52:22 +04:00
|
|
|
white-space: nowrap; // XXX approximation?
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
|
|
|
P {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
PLAINTEXT, XMP, PRE {
|
|
|
|
display: block; // Note: need before and after breaks
|
|
|
|
font-family: monospace;
|
|
|
|
white-space: pre;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Table tags
|
|
|
|
TABLE {
|
1998-06-17 20:38:24 +04:00
|
|
|
display: table;
|
1998-04-14 00:24:54 +04:00
|
|
|
border-style: outset;
|
|
|
|
border-color: #C0C0C0;
|
|
|
|
cell-spacing: 4px;
|
|
|
|
}
|
1998-06-09 21:31:34 +04:00
|
|
|
TD, TH {
|
1998-04-14 00:24:54 +04:00
|
|
|
vertical-align: middle;
|
1998-06-09 21:31:34 +04:00
|
|
|
text-align: left;
|
1998-04-14 00:24:54 +04:00
|
|
|
border-style: inset;
|
|
|
|
border-color: #C0C0C0;
|
1998-06-09 21:31:34 +04:00
|
|
|
font-family: serif;
|
|
|
|
font-style: normal;
|
|
|
|
font-variant: normal;
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: 11pt;
|
|
|
|
line-height: 1.1;
|
1998-06-17 20:38:24 +04:00
|
|
|
display: table-cell;
|
1998-06-09 21:31:34 +04:00
|
|
|
cursor: arrow;
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
|
|
|
TH {
|
|
|
|
font-weight: bold;
|
1998-06-09 21:31:34 +04:00
|
|
|
text-align: center;
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
1998-04-25 22:41:41 +04:00
|
|
|
CAPTION {
|
|
|
|
text-align: center;
|
1998-06-17 20:38:24 +04:00
|
|
|
display: table-caption;
|
1998-04-25 22:41:41 +04:00
|
|
|
}
|
1998-06-17 23:51:51 +04:00
|
|
|
TR { display: table-row;}
|
1998-06-17 20:38:24 +04:00
|
|
|
TBODY { display: table-row-group; }
|
|
|
|
THEAD { display: table-header-group; }
|
|
|
|
TFOOT { display: table-footer-group; }
|
|
|
|
COL { display: table-column; }
|
|
|
|
COLGROUP { display: table-column-group;}
|
|
|
|
|
1998-05-20 20:28:19 +04:00
|
|
|
MULTICOL {
|
|
|
|
display: block;
|
|
|
|
}
|
1998-04-25 22:41:41 +04:00
|
|
|
|
1998-04-14 00:24:54 +04:00
|
|
|
// Span tags
|
|
|
|
B, STRONG {
|
|
|
|
display: inline;
|
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
I, CITE, EM, VAR {
|
|
|
|
display: inline;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
TT, CODE, KBD, SAMP {
|
|
|
|
display: inline;
|
|
|
|
font-family: monospace;
|
|
|
|
}
|
|
|
|
U {
|
|
|
|
display: inline;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
S, STRIKE {
|
|
|
|
display: inline;
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
BLINK {
|
|
|
|
display: inline;
|
|
|
|
text-decoration: blink;
|
|
|
|
}
|
|
|
|
BIG {
|
|
|
|
display: inline;
|
|
|
|
font-size: larger;
|
|
|
|
}
|
|
|
|
SMALL {
|
|
|
|
display: inline;
|
|
|
|
font-size: smaller;
|
|
|
|
}
|
|
|
|
DFN, SPAN {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
SUB {
|
|
|
|
display: inline;
|
|
|
|
vertical-align: sub;
|
|
|
|
}
|
|
|
|
SUP {
|
|
|
|
display: inline;
|
|
|
|
vertical-align: super;
|
|
|
|
}
|