mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 08:45:04 -05:00
Improve rendering of <example> and div.example HTML
This change unifiess the rendering for <example> and <div class=example>. The former is rendered as HTML <pre>, the latter is taken over. This patch does the following: * Merge <pre> CSS from prettify.js int xmpp.css * Give <pre> a blue-ish background derived from the caption color * Make the <pre> border use the caption color * Change div.example background color from neon yellow to a colder and lighter tone that matches the overall color theme * Add a border to div.example that fits its background color * Derive width for div.example from <pre> P.S: Don't eat yellow snow!
This commit is contained in:
parent
25ae4ca40a
commit
ae42b7761c
@ -11,7 +11,6 @@
|
||||
.atn { color: #606; }
|
||||
.atv { color: #080; }
|
||||
.dec { color: #606; }
|
||||
pre.prettyprint { padding: 2px; border: 1px solid #888; }
|
||||
|
||||
@media print {
|
||||
.str { color: #060; }
|
||||
|
10
xmpp.css
10
xmpp.css
@ -55,6 +55,9 @@ H1, H2, H3, H4, H5, H6 {
|
||||
}
|
||||
pre {
|
||||
font-family: Courier, monospace;
|
||||
background-color: #e0e9f2;
|
||||
padding: 0.4em;
|
||||
border: 1px solid #369;
|
||||
}
|
||||
ul {
|
||||
list-style: disc outside;
|
||||
@ -91,9 +94,10 @@ ul {
|
||||
font-style: italic;
|
||||
}
|
||||
.example {
|
||||
background-color: yellow;
|
||||
margin-left: 5%;
|
||||
margin-right: 25%;
|
||||
background-color: #f2ee6e;
|
||||
margin: 0.4em 5%;
|
||||
border: 1px solid #999633;
|
||||
padding: 0 0.4em;
|
||||
}
|
||||
.indent {
|
||||
padding-left: 5%;
|
||||
|
Loading…
Reference in New Issue
Block a user