Changeset 122ebf0 in clfs-embedded for BOOK/stylesheets
- Timestamp:
- Jul 15, 2007, 6:13:18 AM (17 years ago)
- Branches:
- master
- Children:
- 39a9ea5
- Parents:
- c2f4c89
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/stylesheets/top-index.xsl
rc2f4c89 r122ebf0 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 … … 97 91 <xsl:template match="bookinfo"> 98 92 <div class="book"> 99 <div class="titlepage"> 100 <xsl:apply-templates/> 101 <hr/> 102 </div> 93 <xsl:apply-templates/> 94 <hr/> 103 95 <div class="toc"> 104 96 <h3> … … 140 132 141 133 <xsl:template match="title"> 142 <div> 143 <h1 class="title"> 144 <xsl:value-of select="."/> 145 </h1> 146 </div> 147 <div> 148 <h2 class="subtitle"> 149 <xsl:text>Version &version;</xsl:text> 150 </h2> 151 </div> 134 <h1 class="title"> 135 <xsl:value-of select="."/> 136 </h1> 137 <h2 class="subtitle"> 138 <xsl:text>Version &version;</xsl:text> 139 </h2> 152 140 </xsl:template> 153 141 154 142 <xsl:template match="authorgroup"> 155 <div class="authorgroup"> 156 <h3 class="author"> 157 <xsl:value-of select="author[1]/firstname"/> 158 <xsl:text> </xsl:text> 159 <xsl:value-of select="author[1]/surname"/> 160 </h3> 161 <h3 class="author"> 162 <xsl:value-of select="author[2]/firstname"/> 163 <xsl:text> </xsl:text> 164 <xsl:value-of select="author[2]/surname"/> 165 </h3> 166 <h3 class="author"> 167 <xsl:value-of select="author[3]/firstname"/> 168 <xsl:text> </xsl:text> 169 <xsl:value-of select="author[3]/surname"/> 170 </h3> 171 </div> 143 <h3 class="author"> 144 <xsl:value-of select="author[1]/firstname"/> 145 <xsl:text> </xsl:text> 146 <xsl:value-of select="author[1]/surname"/> 147 </h3> 148 <h3 class="author"> 149 <xsl:value-of select="author[2]/firstname"/> 150 <xsl:text> </xsl:text> 151 <xsl:value-of select="author[2]/surname"/> 152 </h3> 153 <h3 class="author"> 154 <xsl:value-of select="author[3]/firstname"/> 155 <xsl:text> </xsl:text> 156 <xsl:value-of select="author[3]/surname"/> 157 </h3> 172 158 </xsl:template> 173 159 174 160 <xsl:template match="copyright"> 175 <div> 176 <p class="copyright"> 177 <xsl:text>Copyright ©</xsl:text> 178 <xsl:apply-templates/> 179 </p> 180 </div> 161 <p class="copyright"> 162 <xsl:text>Copyright ©</xsl:text> 163 <xsl:apply-templates/> 164 </p> 181 165 </xsl:template> 182 166 … … 190 174 191 175 <xsl:template match="bibliosource"> 192 <div> 193 <p class="copyright"> 194 <em> 195 <xsl:apply-templates/> 196 </em> 197 </p> 198 </div> 176 <p class="copyright"> 177 <em> 178 <xsl:apply-templates/> 179 </em> 180 </p> 199 181 </xsl:template> 200 182
Note:
See TracChangeset
for help on using the changeset viewer.