Skip to content

Commit 4688ec1

Browse files
author
Peter Linss
committed
add default.css
1 parent 6c87954 commit 4688ec1

File tree

1 file changed

+157
-0
lines changed

1 file changed

+157
-0
lines changed

default.css

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
/*
2+
* Style sheet for the CSS3 specification,
3+
* to be used in addition to https://www.w3.org/StyleSheets/TR/W3C-{WD,PR,REC}
4+
*/
5+
6+
@import "https://www.w3.org/StyleSheets/TR/2016/base.css";
7+
8+
/** Example Code **************************************************************/
9+
10+
div.html, div.xml,
11+
pre.html, pre.xml {
12+
padding: 0.5em;
13+
margin: 1em 0;
14+
position: relative;
15+
clear: both;
16+
color: #600;
17+
}
18+
pre.example,
19+
pre.html,
20+
pre.xml {
21+
padding-top: 1.5em;
22+
}
23+
24+
pre.illegal, .illegal pre
25+
pre.deprecated, .deprecated pre {
26+
color: red;
27+
}
28+
29+
/** Inline markup fragments ***************************************************/
30+
31+
code.html, code.xml {
32+
color: #660000;
33+
}
34+
35+
/******************************************************************************/
36+
/* Images */
37+
/******************************************************************************/
38+
39+
pre.ascii-art {
40+
display: table; /* shrinkwrap */
41+
margin: 1em auto;
42+
}
43+
44+
/* Displaying the output of text layout, particularly when
45+
line-breaking is being invoked, and thus having a
46+
visible width is good. */
47+
pre.output {
48+
margin: 1em;
49+
border: solid thin silver;
50+
padding: 0.25em;
51+
display: table;
52+
}
53+
54+
/******************************************************************************/
55+
/* Tables */
56+
/******************************************************************************/
57+
58+
/* XXX: Remove these once all specs are bikeshedded or Bert's processor generates .def/.index classes */
59+
60+
/** Property/Descriptor Definition Tables *************************************/
61+
62+
table.propdef, table.propdef-extra,
63+
table.descdef, table.definition-table {
64+
page-break-inside: avoid;
65+
width: 100%;
66+
margin: 1.2em 0;
67+
border-left: 0.5em solid #8CCBF2;
68+
padding: 0.5em 1em;
69+
background: #DEF;
70+
border-spacing: 0;
71+
}
72+
73+
table.propdef td, table.propdef-extra td,
74+
table.descdef td, table.definition-table td,
75+
table.propdef th, table.propdef-extra th,
76+
table.descdef th, table.definition-table th {
77+
padding: 0.5em;
78+
vertical-align: baseline;
79+
border-bottom: 1px solid #bbd7e9;
80+
}
81+
table.propdef > tbody > tr:last-child th,
82+
table.propdef-extra > tbody > tr:last-child th,
83+
table.descdef > tbody > tr:last-child th,
84+
table.definition-table > tbody > tr:last-child th,
85+
table.propdef > tbody > tr:last-child td,
86+
table.propdef-extra > tbody > tr:last-child td,
87+
table.descdef > tbody > tr:last-child td,
88+
table.definition-table > tbody > tr:last-child td {
89+
border-bottom: 0;
90+
}
91+
92+
table.propdef th,
93+
table.propdef-extra th,
94+
table.descdef th,
95+
table.definition-table th {
96+
font-style: italic;
97+
font-weight: normal;
98+
width: 8.3em;
99+
padding-left: 1em;
100+
}
101+
102+
/* For when values are extra-complex and need formatting for readability */
103+
table td.pre {
104+
white-space: pre-wrap;
105+
}
106+
107+
/* A footnote at the bottom of a propdef */
108+
table.propdef td.footnote,
109+
table.propdef-extra td.footnote,
110+
table.descdef td.footnote,
111+
table.definition-table td.footnote {
112+
padding-top: 0.6em;
113+
}
114+
table.propdef td.footnote::before,
115+
table.propdef-extra td.footnote::before,
116+
table.descdef td.footnote::before,
117+
table.definition-table td.footnote::before {
118+
content: " ";
119+
display: block;
120+
height: 0.6em;
121+
width: 4em;
122+
border-top: thin solid;
123+
}
124+
125+
/** Profile Tables ************************************************************/
126+
/* table of required features in a CSS profile */
127+
128+
table.features th {
129+
background: #00589f;
130+
color: #fff;
131+
text-align: left;
132+
padding: 0.2em 0.2em 0.2em 0.5em;
133+
}
134+
table.features td {
135+
vertical-align: top;
136+
border-bottom: 1px solid #ccc;
137+
padding: 0.3em 0.3em 0.3em 0.7em;
138+
}
139+
140+
/** At-risk List **************************************************************/
141+
/* Style for At Risk features (intended as editorial aid, not intended for publishing) */
142+
143+
.atrisk::before {
144+
float: right;
145+
margin-top: -0.25em;
146+
padding: 0.5em 1em 0.5em 0;
147+
text-indent: -0.9em;
148+
border: 1px solid;
149+
content: '\25C0 Not yet widely implemented';
150+
white-space: pre;
151+
font-size: small;
152+
background-color: white;
153+
color: gray;
154+
text-align: center;
155+
}
156+
157+
.toc .atrisk::before { content:none }

0 commit comments

Comments
 (0)