~ubuntu-branches/ubuntu/oneiric/gnome-doc-utils/oneiric-201107060459

« back to all changes in this revision

Viewing changes to xslt/mallard/html/mal2html-block.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-08-28 14:28:54 UTC
  • mfrom: (1.2.5 upstream)
  • mto: (2.3.1 sid) (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090828142854-aosckqlztf5d6doe
Tags: upstream-0.17.4
ImportĀ upstreamĀ versionĀ 0.17.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
 
31
31
<!--**==========================================================================
32
 
mal2html.block.css
33
 
Outputs CSS that controls the appearance of block elements
34
 
 
35
 
REMARK: Describe this template
36
 
-->
37
 
<xsl:template name="mal2html.block.css">
38
 
<xsl:text>
39
 
div.title {
40
 
  margin: 0 0 0.2em 0;
41
 
  font-weight: bold;
42
 
  color: </xsl:text>
43
 
    <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
44
 
}
45
 
div.desc { margin: 0 0 0.2em 0; }
46
 
div.desc-listing, div.desc-synopsis { font-style: italic; }
47
 
div.desc-figure { margin: 0.2em 0 0 0; }
48
 
pre.code {
49
 
  background: url('</xsl:text>
50
 
    <xsl:value-of select="$theme.watermark.code"/><xsl:text>') no-repeat top right;
51
 
  border: solid 2px </xsl:text>
52
 
    <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
53
 
  padding: 0.5em 1em 0.5em 1em;
54
 
}
55
 
div.example {
56
 
  border-left: solid 4px </xsl:text>
57
 
    <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
58
 
  padding-left: 1em;
59
 
}
60
 
div.figure {
61
 
  margin-left: 1.72em;
62
 
  padding: 4px;
63
 
  color: </xsl:text>
64
 
    <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
65
 
  border: solid 1px </xsl:text>
66
 
    <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
67
 
  background-color: </xsl:text>
68
 
    <xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
69
 
}
70
 
div.figure-contents {
71
 
  margin: 0;
72
 
  padding: 0.5em 1em 0.5em 1em;
73
 
  text-align: center;
74
 
  color: </xsl:text>
75
 
    <xsl:value-of select="$theme.color.text"/><xsl:text>;
76
 
  border: solid 1px </xsl:text>
77
 
    <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
78
 
  background-color: </xsl:text>
79
 
    <xsl:value-of select="$theme.color.background"/><xsl:text>;
80
 
}
81
 
div.listing-contents { margin: 0; padding: 0; }
82
 
div.note {
83
 
  padding: 0.5em 6px 0.5em 6px;
84
 
  border-top: solid 1px </xsl:text>
85
 
    <xsl:value-of select="$theme.color.red_border"/><xsl:text>;
86
 
  border-bottom: solid 1px </xsl:text>
87
 
    <xsl:value-of select="$theme.color.red_border"/><xsl:text>;
88
 
  background-color: </xsl:text>
89
 
    <xsl:value-of select="$theme.color.yellow_background"/><xsl:text>;
90
 
}
91
 
div.note-inner {
92
 
  margin: 0;
93
 
  min-height: </xsl:text><xsl:value-of select="$theme.icon.admon.size"/><xsl:text>px;
94
 
  padding-left: </xsl:text>
95
 
    <xsl:value-of select="$theme.icon.admon.size + 12"/><xsl:text>px;
96
 
  background-position: left top;
97
 
  background-repeat: no-repeat;
98
 
  background-image: url("</xsl:text>
99
 
    <xsl:value-of select="$theme.icon.admon.note"/><xsl:text>");
100
 
}
101
 
div.note-advanced div.note-inner { <!-- background-image: url("</xsl:text>
102
 
  <xsl:value-of select="$theme.icon.admon.advanced"/><xsl:text>"); --> }
103
 
div.note-bug div.note-inner { background-image: url("</xsl:text>
104
 
  <xsl:value-of select="$theme.icon.admon.bug"/><xsl:text>"); }
105
 
div.note-important div.note-inner { background-image: url("</xsl:text>
106
 
  <xsl:value-of select="$theme.icon.admon.important"/><xsl:text>"); }
107
 
div.note-tip div.note-inner { background-image: url("</xsl:text>
108
 
  <xsl:value-of select="$theme.icon.admon.tip"/><xsl:text>"); }
109
 
div.note-warning div.note-inner { background-image: url("</xsl:text>
110
 
  <xsl:value-of select="$theme.icon.admon.warning"/><xsl:text>"); }
111
 
div.note-contents { margin: 0; padding: 0; }
112
 
div.quote-inner {
113
 
  margin: 0;
114
 
  <!-- FIXME: i18n -->
115
 
  background-image: url('</xsl:text>
116
 
    <xsl:value-of select="$theme.watermark.blockquote"/><xsl:text>');
117
 
  background-repeat: no-repeat;
118
 
  background-position: top left;
119
 
  padding: 0.5em;
120
 
  padding-left: 4em;
121
 
}
122
 
div.title-quote {
123
 
  margin-left: 4em;
124
 
}
125
 
blockquote {
126
 
  margin: 0; padding: 0;
127
 
}
128
 
div.cite-comment {
129
 
  margin-top: 0.5em;
130
 
  color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
131
 
}
132
 
div.cite-quote {
133
 
  margin-top: 0.5em;
134
 
  color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
135
 
}
136
 
div.cite-quote::before {
137
 
  <!-- FIXME: i18n -->
138
 
  content: '&#x2015; ';
139
 
}
140
 
pre.screen {
141
 
  padding: 0.5em 1em 0.5em 1em;
142
 
  background-color: </xsl:text>
143
 
    <xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
144
 
  border: solid 2px </xsl:text>
145
 
    <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
146
 
}
147
 
div.synopsis-contents {
148
 
  margin: 0;
149
 
  padding: 0.5em 1em 0.5em 1em;
150
 
  border-top: solid 2px;
151
 
  border-bottom: solid 2px;
152
 
  border-color: </xsl:text>
153
 
    <xsl:value-of select="$theme.color.blue_border"/><xsl:text>;
154
 
  background-color: </xsl:text>
155
 
    <xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
156
 
}
157
 
div.synopsis pre.code {
158
 
  background: none;
159
 
  border: none;
160
 
  padding: 0;
161
 
}
162
 
</xsl:text>
163
 
</xsl:template>
164
 
 
165
 
 
166
 
<!--**==========================================================================
167
32
mal2html.pre
168
33
 
169
34
FIXME