22 * Style sheet for the CSS2 specification
33 */
44
5- BODY {
6- /* text-align: justify; */
7- font-family : helvetica, sans-serif;
8- /* For the REC: background: #def url(recbg.jpg); */
9- }
10- H2 , H3 , H4 , H5 , H6 {
11- text-align : left;
12- }
13-
14- H1 {
15- clear : left;
16- margin-top : 2em ;
17- }
18-
195DIV .navbar {
206 text-align : center;
217}
228
23- PRE {
24- font-family : monospace;
25- margin-left : 1em ;
26- font-size : 90%
27- }
28-
29- ADDRESS {
30- text-align : right;
31- font-style : italic;
32- }
33-
34- VAR {
35- font-style : normal;
36- }
37- IMG {
38- border : 0 ;
39- }
40- .toc {
41- text-indent : 0 ;
42- }
43- P .toc-line {
44- margin-top : 1em ;
45- margin-bottom : 1em ;
46- text-indent : 0 ;
47- }
489TR {
4910 vertical-align : baseline;
5011}
5314/* It should be 'inherit', but Netscape inserts a random color :-( */
5415A .noxref : link , A .noxref : visited {color : black; /*color: inherit*/ }
5516DIV .example A : link , DIV .example A : visited {color : maroon; /*color: inherit*/ }
56- DIV .deprecated- html- example A : link ,
57- DIV .deprecated- html- example A : visited {color : red; /*color: inherit*/ }
17+ DIV .deprecated . html . example A : link ,
18+ DIV .deprecated . html . example A : visited {color : red; /*color: inherit*/ }
5819.note A : link , .note A : visited {color : green; /*color: inherit*/ }
5920
6021A .propdef-title {
@@ -69,42 +30,7 @@ A.descdef-title {
6930/* TABLE {margin-left: 1em} */
7031DIV .propdef {margin : 1.2em 0 }
7132
72- div .example { color : maroon }
73- pre .example { color : maroon }
74- pre .illegal-example { color : red }
75- div .illegal-example { color : red }
76- div .illegal-example p { color : black }
77-
78-
79- div .html-example { color : maroon }
80- pre .html-example { color : maroon }
81- pre .illegal-html-example { color : red }
82- div .illegal-html-example { color : red }
83- div .illegal-html-example p { color : black }
84- pre .deprecated-html-example { color : red }
85- div .deprecated-html-example { color : red }
86- div .deprecated-html-example p { color : black }
87-
88- div .xml-example { color : maroon }
89- pre .xml-example { color : maroon }
90- pre .illegal-xml-example { color : red }
91- div .illegal-xml-example { color : red }
92- div .illegal-xml-example p { color : black }
93-
94- div .dtd-example { color : maroon }
95- pre .dtd-example { color : maroon }
96- pre .illegal-dtd-example { color : red }
97- div .illegal-dtd-example { color : red }
98- div .illegal-dtd-example p { color : black }
99-
100- .note {
101- /*font-weight: bold;*/
102- margin-top : 1em ;
103- margin-bottom : 1em ;
104- margin-left : 1em ;
105- margin-right : 1em ;
106- color : green
107- }
33+ pre .illegal .example , div .illegal .example { border-color : red }
10834
10935.normref {
11036 color : red;
@@ -122,64 +48,21 @@ DIV.descdef TH {
12248 text-align : right;
12349}
12450
125- DIV .toc UL UL , DIV .toc OL OL {margin-left : 0 }
126- DIV .toc UL UL UL , DIV .toc OL OL OL {margin-left : 1em }
127- DIV .toc UL UL UL UL , DIV .toc OL OL OL OL {margin-left : 0 }
128- LI .tocline1 {font-weight : bold}
129- LI .tocline2 {font-weight : normal}
130- LI .tocline4 {font-style : italic}
13151/* DIV.subtoc UL, DIV.subtoc OL {list-style: none} */
132- /* The border in the following rule crashes NN4 on fonts.html :-(
133- DIV.subtoc {padding: 1em; border: solid black thin; margin: 1em 0;
134- background: #ddd}
135- */
136- UL .index {
137- list-style : disc; /* Mac NS has problem with 'none' */
138- list-style : none;
52+ /* The border in the following rule crashes NN4 on fonts.html :-( */
53+ .subtoc {padding : 1em ; border : solid black thin; background : # ddd }
54+ @media screen and (min-width : 78em ) {
55+ /* When the ToC is moved off to the side, it needs no border */
56+ .subtoc {border : none}
13957}
14058
141- DT {
142- font-weight : bold
143- }
144-
145- S , DEL {text-decoration : line-through; color : red; background : # fbb }
146- U , INS {text-decoration : underline; background : # bfb }
14759BODY > DEL , BODY > INS {display : block}
14860
149- DIV .figure {
150- text-align : center;
151- /*border: solid thin;
152- width: 100%;*/
153- margin : 2.5em 0
154- }
155- P .caption , CAPTION {
156- text-align : center;
157- font-style : italic;
158- font-weight : bold;
159- font-size : 90% ;
160- color : # 088 ;
161- margin : 1.5em 25% 0 25% ;
162- }
163- DIV .toc , UL .index , DT {
164- text-align : left
165- }
166- SUP {
167- vertical-align : super;
168- font-size : 80%
169- }
170-
17161/* In zindex.html: */
17262OL .stack P {
17363 margin-bottom : 0
17464}
17565
176- /* Open issues. Should be resolved before going to CR */
177-
178- .issue {color : red}
179- div .issue , p .issue {border : thin solid red; padding : 0.5em }
180- .issue : before {content : "Issue:" ; background : red; color : white;
181- padding : 0 0.5em ; font-weight : bold; margin : 0 1em 0 0 }
182-
18366@page : right { @bottom-right { content : counter (page) } }
18467@page : left { @bottom-left { content : counter (page) } }
18568
@@ -222,29 +105,28 @@ ol.inline li {counter-increment: list-item}
222105ol .inline li : before {content : "(" counter (list-item) ") " ; font-weight : bold}
223106
224107
108+ /* base.css puts .annoying-warning in a red box fixed at the bottom of
109+ the viewport. Adding INPUT and LABEL as below allows the box to be
110+ clicked away, after which it will appear inline:
111+
112+ <INPUT ID=annoying-warning TYPE=CHECKBOX TITLE="hide warning">
113+ <LABEL FOR=annoying-warning>(hide)</LABEL> <DIV
114+ CLASS=annoying-warning> <P><STRONG>Warning:</STRONG> Text of the
115+ warning... </DIV>
116+
117+ */
118+
119+ .annoying-warning {margin-top : 1.2em }
120+ .annoying-warning : first-child {margin-top : 0 }
121+ # annoying-warning , # annoying-warning + * {display : none}
122+
225123@media screen {
226- /* Put #annoying-warning in an orange box fixed at the bottom of the
227- viewport. The mark-up should have the following structure, so
228- that the box can be clicked away, after which it will appear as a
229- normal note:
230-
231- <DIV CLASS=note>
232- <INPUT ID=annoying-warning TYPE=CHECKBOX TITLE="hide warning">
233- <LABEL FOR=annoying-warning>(hide)</LABEL>
234- <DIV>
235- <P><STRONG>Warning:</STRONG> Text of the warning...
236- </DIV>
237- </DIV>
238- */
239- # annoying-warning : not (: checked ) + * + * {position : fixed; z-index : 1 ;
240- bottom : 2em ; left : 0 ; right : 0 ; text-align : center;
241- padding : 0.5em 2.5em 1em 2.5em ; box-shadow : 0 2px 8px black;
242- border-top : thin solid; border-bottom : thin solid;
243- background : hsla (40 , 100% , 50% , 0.9 ); color : black}
244- # annoying-warning : not (: checked ) + * + * p {margin : 0 }
245- # annoying-warning , # annoying-warning + * {position : fixed; z-index : 2 }
246- # annoying-warning {font-size : 1em ; bottom : 2.3em ; right : 0.5em ; margin : 0 }
247- # annoying-warning + * {font-size : 80% ; bottom : 2.5em ; right : 2.3em }
248- # annoying-warning : checked , # annoying-warning : checked + * {display : none}
249- html {margin-bottom : 15em }
124+ # annoying-warning : not (: checked ) + * + * {position : fixed; z-index : 3 ;
125+ bottom : 2em ; left : 1em ; right : 1em ; text-align : center;
126+ box-shadow : 0 2px 8px black; border-radius : 1em }
127+ # annoying-warning : not (: checked ), # annoying-warning : not (: checked ) + * {
128+ display : block; position : fixed; z-index : 4 }
129+ # annoying-warning {font-size : 1em ; bottom : 2.3em ; right : 1.5em ; margin : 0 }
130+ # annoying-warning + * {font-size : 80% ; bottom : 2.5em ; right : 3.3em }
131+ html {margin-bottom : 15em }
250132}
0 commit comments