Mods to docbook styling, based on main Spring docs

This commit is contained in:
Luke Taylor 2008-04-08 20:34:04 +00:00
parent 61968d6f1e
commit 8367591554
3 changed files with 97 additions and 219 deletions

View File

@ -1,46 +1,17 @@
body { body {
text-align: justify; text-align: justify;
margin-right: 2em; margin-right: 2em;
margin-left: 2em; margin-left: 2em;
} }
a, a,
a[accesskey^ a[accesskey^="h"],
a[accesskey^="n"],
= a[accesskey^="u"],
"h" a[accesskey^="p"] {
] font-family: Verdana, Arial, helvetica, sans-serif;
, font-size: 12px;
a[accesskey^ color: #003399;
=
"n"
]
,
a[accesskey^
=
"u"
]
,
a[accesskey^
=
"p"
]
{
font-family: Verdana, Arial, helvetica, sans-serif
;
font-size:
12
px
;
color: #003399
;
} }
a:active { a:active {
@ -52,19 +23,19 @@ a:visited {
} }
p { p {
font-family: Verdana, Arial, sans-serif; font-family: Verdana, Arial, sans-serif;
} }
dt { dt {
font-family: Verdana, Arial, sans-serif; font-family: Verdana, Arial, sans-serif;
font-size: 12px; font-size: 12px;
} }
p, dl, dt, dd, blockquote { p, dl, dt, dd, blockquote {
color: #000000; color: #000000;
margin-bottom: 3px; margin-bottom: 3px;
margin-top: 3px; margin-top: 3px;
padding-top: 0px; padding-top: 0;
} }
ol, ul, p { ol, ul, p {
@ -97,53 +68,27 @@ td, th, span {
color: #000000; color: #000000;
} }
td[width^ td[width^="40%"] {
font-family: Verdana, Arial, helvetica, sans-serif;
= font-size: 12px;
"40%" color: #003399;
]
{
font-family: Verdana, Arial, helvetica, sans-serif
;
font-size:
12
px
;
color: #003399
;
} }
table[summary^ table[summary^="Navigation header"] tbody tr th[colspan^="3"] {
font-family: Verdana, Arial, helvetica, sans-serif;
=
"Navigation header"
]
tbody tr th[colspan^
=
"3"
]
{
font-family: Verdana, Arial, helvetica, sans-serif
;
} }
blockquote { blockquote {
margin-right: 0px; margin-right: 0;
} }
h1, h2, h3, h4, h6, H6 { h1, h2, h3, h4, h6 {
color: #000000; color: #000000;
font-weight: 500; font-weight: 500;
margin-top: 0px; margin-top: 0;
padding-top: 14px; padding-top: 14px;
font-family: Verdana, Arial, helvetica, sans-serif; font-family: Verdana, Arial, helvetica, sans-serif;
margin-bottom: 0px; margin-bottom: 0;
} }
h2.title { h2.title {
@ -157,7 +102,7 @@ h2.subtitle {
} }
.firstname, .surname { .firstname, .surname {
font-size: 12px; font-size: 12px;
font-family: Verdana, Arial, helvetica, sans-serif; font-family: Verdana, Arial, helvetica, sans-serif;
} }
@ -166,114 +111,42 @@ table {
border-spacing: 0; border-spacing: 0;
border: 1px black; border: 1px black;
empty-cells: hide; empty-cells: hide;
margin: 10px 0px 30px 50px; margin: 10px 0 30px 50px;
width: 90%; width: 90%;
} }
div.table { div.table {
margin: 30px 0px 30px 0px; margin: 30px 0 10px 0;
border: 1px dashed gray; border: 1px dashed gray;
padding: 10px; padding: 10px;
} }
div .table-contents table { div .table-contents table {
border: 1px solid black; border: 1px solid black;
} }
div.table > p.title { div.table > p.title {
padding-left: 10px; padding-left: 10px;
} }
table[summary^ table[summary^="Navigation footer"] {
border-collapse: collapse;
= border-spacing: 0;
"Navigation footer" border: 1px black;
] empty-cells: hide;
{ margin: 0px;
border-collapse: collapse width: 100%;
;
border-spacing:
0
;
border:
1
px black
;
empty-cells: hide
;
margin:
0
px
;
width:
100
%
;
} }
table[summary^ table[summary^="Note"],
table[summary^="Warning"],
= table[summary^="Tip"] {
"Note" border-collapse: collapse;
] border-spacing: 0;
, border: 1px black;
table[summary^ empty-cells: hide;
margin: 10px 0px 10px -20px;
= width: 100%;
"Warning"
]
,
table[summary^
=
"Tip"
]
{
border-collapse: collapse
;
border-spacing:
0
;
border:
1
px black
;
empty-cells: hide
;
margin:
10
px
0
px
10
px
-
20
px
;
width:
100
%
;
} }
td { td {
@ -282,7 +155,7 @@ td {
} }
div.warning TD { div.warning TD {
text-align: justify; text-align: justify;
} }
h1 { h1 {
@ -294,23 +167,19 @@ h2 {
} }
h3 { h3 {
font-size: 100%; font-size: 100%; font-weight: bold;
font-weight: bold;
} }
h4 { h4 {
font-size: 90%; font-size: 90%; font-weight: bold;
font-weight: bold;
} }
h5 { h5 {
font-size: 90%; font-size: 90%; font-style: italic;
font-style: italic;
} }
h6 { h6 {
font-size: 100%; font-size: 100%; font-style: italic;
font-style: italic;
} }
tt { tt {
@ -320,13 +189,14 @@ tt {
} }
.navheader, .navfooter { .navheader, .navfooter {
border: none; border: none;
} }
div.navfooter table { div.navfooter table {
border: dashed gray; border-style: dashed;
border-width: 1px 1px 1px 1px; border-color: gray;
background-color: #cde48d; border-width: 1px 1px 1px 1px;
background-color: #cde48d;
} }
pre { pre {
@ -346,8 +216,8 @@ hr {
width: 100%; width: 100%;
height: 1px; height: 1px;
background-color: #CCCCCC; background-color: #CCCCCC;
border-width: 0px; border-width: 0;
padding: 0px; padding: 0;
} }
.variablelist { .variablelist {
@ -357,7 +227,7 @@ hr {
} }
.term { .term {
font-weight: bold; font-weight:bold;
} }
.mediaobject { .mediaobject {
@ -373,7 +243,7 @@ hr {
.sidebar { .sidebar {
float: right; float: right;
margin: 10px 0px 10px 30px; margin: 10px 0 10px 30px;
padding: 10px 20px 20px 20px; padding: 10px 20px 20px 20px;
width: 33%; width: 33%;
border: 1px solid black; border: 1px solid black;
@ -382,12 +252,12 @@ hr {
} }
.property { .property {
font-family: "Courier New", Courier, monospace; font-family: "Courier New", Courier, monospace;
} }
a code { a code {
font-family: Verdana, Arial, monospace; font-family: Verdana, Arial, monospace;
font-size: 12px; font-size: 12px;
} }
td code { td code {
@ -395,27 +265,35 @@ td code {
} }
div.note * td, div.note * td,
div.tip * td, div.tip * td,
div.warning * td, div.warning * td,
div.calloutlist * td { div.calloutlist * td {
text-align: justify; text-align: justify;
font-size: 100%; font-size: 100%;
} }
.programlisting .interfacename, .programlisting .interfacename,
.programlisting .literal, .programlisting .literal,
.programlisting .classname { .programlisting .classname {
font-size: 95%; font-size: 95%;
} }
.title .interfacename, .title .interfacename,
.title .literal, .title .literal,
.title .classname { .title .classname {
font-size: 130%; font-size: 130%;
} }
/* everything in a <lineannotation/> is displayed in a coloured, comment-like font */ /* everything in a <lineannotation/> is displayed in a coloured, comment-like font */
.programlisting * .lineannotation, .programlisting * .lineannotation,
.programlisting * .lineannotation * { .programlisting * .lineannotation * {
color: green; color: green;
}
.question * p {
font-size: 100%;
}
.answer * p {
font-size: 100%;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -78,7 +78,7 @@
<img style="border:none;" src="images/xdev-spring_logo.jpg"/> <img style="border:none;" src="images/xdev-spring_logo.jpg"/>
</a> </a>
<a style="border:none;" href="http://www.springsource.com/" title="SpringSource"> <a style="border:none;" href="http://www.springsource.com/" title="SpringSource">
<img style="border:none;position:absolute;padding-top:5px;right:42px;" src="images/s2_box_logo.png"/> <img style="border:none;position:absolute;padding-top:5px;right:42px;" src="images/s2-banner-rhs.png"/>
</a> </a>
</div> </div>
</xsl:template> </xsl:template>