Changeset 7c1c987 in clfs-sysroot for BOOK/stylesheets
- Timestamp:
- Jul 21, 2007, 8:23:58 AM (17 years ago)
- Branches:
- master
- Children:
- b7f86eb
- Parents:
- f1f6d91
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/stylesheets/top-index.xsl
rf1f6d91 r7c1c987 19 19 <style type="text/css"> 20 20 <xsl:text> 21 /* Global settings */ 21 22 body { 22 font-family: sans-serif;23 font-family: verdana, tahoma, helvetica, arial, sans-serif; 23 24 text-align: left; 24 25 background: #fff; 25 color: # 333;26 color: #222; 26 27 margin: 1em; 27 28 padding: 0; … … 31 32 32 33 a:link { color: #22b; } 33 a:visited { color: #7e4988; } 34 a:hover, a:focus { color: #d30e08; } 35 a:active { color: #6b77b1;} 34 a.ulink:link { font-weight: bold; color: #55f; } 35 a:visited { color: #7e4988 ! important; } 36 a:hover, a:focus { color: #d30e08 ! important; } 37 a:active { color: #6b77b1 ! important;} 36 38 37 h1, h2 {39 h1, h2 h3, h4 { 38 40 color: #000; 39 41 font-weight: bold; 40 } 41 42 h3, h4, h5, h6 { 43 color: #222; 42 line-height: 1em; 44 43 } 45 44 46 45 h1 { font-size: 173%; text-align: center; } 47 h2 { font-size: 144%; 48 h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em;}49 h4 { font-size: 110%; }46 h2 { font-size: 144%; text-align: center; } 47 h3 { font-size: 120%; } 48 h4 { font-size: 110%; } 50 49 51 div.toc {50 .toc { 52 51 padding-left: 1em; 53 margin-top: 1em;54 52 } 55 53 56 div.toc ul li h3, div.toc ul li h4 {54 .toc ul li h3, .toc ul li h4 { 57 55 margin: .4em; 58 56 } 59 57 60 div.book { 61 padding-bottom: 0.5em; 62 } 63 64 div.book h1 { 58 .book h1 { 65 59 background: #f5f6f7; 66 60 margin: 0px auto; … … 68 62 } 69 63 70 div.book h2 {64 .book h2 { 71 65 background: #dbddec; 72 66 margin: 0px auto; 73 67 padding: 0.2em; 74 68 } 75 div.authorgroup, div p.copyright {69 .author, .copyright { 76 70 background: #f5f6f7; 77 71 margin: 0px auto; 78 padding: 1em 0.5em;72 padding: 0.5em 1em; 79 73 } 80 74 … … 145 139 146 140 <xsl:template match="title"> 147 <div> 148 <h1 class="title"> 149 <xsl:value-of select="."/> 150 </h1> 151 </div> 152 <div> 153 <h2 class="subtitle"> 154 <xsl:text>Version &version;</xsl:text> 155 </h2> 156 </div> 141 <h1 class="title"> 142 <xsl:value-of select="."/> 143 </h1> 144 <h2 class="subtitle"> 145 <xsl:text>Version &version;</xsl:text> 146 </h2> 157 147 </xsl:template> 158 148 159 149 <xsl:template match="authorgroup"> 160 <div class="authorgroup"> 161 <h3 class="author"> 162 <xsl:value-of select="author[1]/firstname"/> 163 <xsl:text> </xsl:text> 164 <xsl:value-of select="author[1]/surname"/> 165 </h3> 166 <h3 class="author"> 167 <xsl:value-of select="author[2]/firstname"/> 168 <xsl:text> </xsl:text> 169 <xsl:value-of select="author[2]/surname"/> 170 </h3> 171 <h3 class="author"> 172 <xsl:value-of select="author[3]/firstname"/> 173 <xsl:text> </xsl:text> 174 <xsl:value-of select="author[3]/surname"/> 175 </h3> 176 </div> 150 <h3 class="author"> 151 <xsl:value-of select="author[1]/firstname"/> 152 <xsl:text> </xsl:text> 153 <xsl:value-of select="author[1]/surname"/> 154 </h3> 155 <h3 class="author"> 156 <xsl:value-of select="author[2]/firstname"/> 157 <xsl:text> </xsl:text> 158 <xsl:value-of select="author[2]/surname"/> 159 </h3> 160 <h3 class="author"> 161 <xsl:value-of select="author[3]/firstname"/> 162 <xsl:text> </xsl:text> 163 <xsl:value-of select="author[3]/surname"/> 164 </h3> 177 165 </xsl:template> 178 166 179 167 <xsl:template match="copyright"> 180 <div> 181 <p class="copyright"> 182 <xsl:text>Copyright ©</xsl:text> 183 <xsl:apply-templates/> 184 </p> 185 </div> 168 <p class="copyright"> 169 <xsl:text>Copyright ©</xsl:text> 170 <xsl:apply-templates/> 171 </p> 186 172 </xsl:template> 187 173 … … 195 181 196 182 <xsl:template match="bibliosource"> 197 <div> 198 <p class="copyright"> 199 <em> 200 <xsl:apply-templates/> 201 </em> 202 </p> 203 </div> 183 <p class="copyright"> 184 <em> 185 <xsl:apply-templates/> 186 </em> 187 </p> 204 188 </xsl:template> 205 189
Note:
See TracChangeset
for help on using the changeset viewer.