docs: revise stylesheet to allow "notes" in divs, not just paragraphs

Change-Id: Ia78a82dd330a4f31076b74ce86237af3aca1ba2e
This commit is contained in:
Scott Main
2010-11-18 12:28:44 -08:00
parent c5a07ce038
commit 63e9ccd1d6

View File

@@ -730,39 +730,51 @@ div.special ol li {
padding:0;
}
p.note, p.caution, p.warning {
p.note, div.note,
p.caution, div.caution,
p.warning, div.warning {
margin: 1em;
padding: 0 0 0 .5em;
border-left: 4px solid;
}
p.special-note {
p.special-note,
div.special-note {
background-color:#EBF3DB;
padding:10px 20px;
margin:0 0 1em;
}
p.note {
p.note,
div.note {
border-color: #99aacc;
}
p.warning {
p.warning,
div.warning {
border-color: #aa0033;
}
p.caution {
p.caution,
div.caution {
border-color: #ffcf00;
}
p.warning b, p.warning strong {
font-weight: bold;
}
li p.note, li p.warning {
li .note,
li .caution,
li .warning {
margin: .5em 0 0 0;
padding: .2em .5em .2em .9em;
}
/* Makes sure the first paragraph does not add top-whitespace within the box*/
li .note>p:first-child,
li .caution>p:first-child,
li .warning>p:first-child {
margin-top:0;
padding-top:0;
}
dl.xml dt {
font-variant:small-caps;
font-size:1.2em;