[ePub Mobi] Removed unnecessary annotations clutter. Make them according typography...
authorRobert Błaut <listy@blaut.biz>
Thu, 16 Jan 2014 20:01:49 +0000 (21:01 +0100)
committerRobert Błaut <listy@blaut.biz>
Thu, 16 Jan 2014 20:01:49 +0000 (21:01 +0100)
librarian/epub/style.css
librarian/epub/xsltAnnotations.xsl
librarian/mobi/style.css

index 81ce12b..6b6a047 100644 (file)
@@ -107,27 +107,10 @@ p
        text-align: left;
 }
 
        text-align: left;
 }
 
-.annotation-anchor
-{
-       font-style: normal;
-       font-weight: normal;
-       font-size: 0.875em;
-       display: block;
-       float: left;
-       width: 2.5em;
-       clear: both;
-}
-
 .annotation
 {
 .annotation
 {
-    margin: 0;
-    margin-top: 1.5em;
-}
-
-.annotation-body
-{
-       margin-left: 2.5em;
-       font-size: 0.875em;
+       margin-bottom: 0.3em;
+       text-align: left;
 }
 
 .block
 }
 
 .block
@@ -136,6 +119,7 @@ p
        padding: 1em;
 }
 
        padding: 1em;
 }
 
+
 /* ============= */
 /* = Numbering = */
 /* ============= */
 /* ============= */
 /* = Numbering = */
 /* ============= */
index 2deef8d..faba10f 100644 (file)
   </xsl:template>
 
   <xsl:template match="pa|pe|pr|pt" mode="przypis">
   </xsl:template>
 
   <xsl:template match="pa|pe|pr|pt" mode="przypis">
-    <div xmlns="http://www.w3.org/1999/xhtml" class="annotation">
-      <p id="annotation-{@number}" xmlns="http://www.w3.org/1999/xhtml"></p>
-      <a class="annotation-anchor" href="part{@part}.html#anchor-{@number}" xmlns="http://www.w3.org/1999/xhtml">
-        <sup xmlns="http://www.w3.org/1999/xhtml"><xsl:value-of select="@number" /></sup>
-      </a>
-      <p class="annotation-body" xmlns="http://www.w3.org/1999/xhtml">
+    <p id="annotation-{@number}" class="annotation" xmlns="http://www.w3.org/1999/xhtml">
+       <a href="part{@part}.html#anchor-{@number}" xmlns="http://www.w3.org/1999/xhtml">
+               <xsl:value-of select="@number" />
+        </a>. 
         <xsl:apply-templates />
         <xsl:if test="name()='pa'"> [przypis autorski]</xsl:if>
         <xsl:apply-templates />
         <xsl:if test="name()='pa'"> [przypis autorski]</xsl:if>
-      </p>
-    </div>
+    </p>
   </xsl:template>
 
   <xsl:template match="slowo_obce">
   </xsl:template>
 
   <xsl:template match="slowo_obce">
index bc171c3..cf1f662 100644 (file)
 /* = Footnotes and themes = */
 /* ======================== */
 
 /* = Footnotes and themes = */
 /* ======================== */
 
-.annotation-anchor
-{
-       font-style: normal;
-       font-weight: normal;
-       font-size: 0.875em;
-       display: block;
-       float: left;
-       width: 2.5em;
-       clear: both;
-}
-
 .annotation
 {
 .annotation
 {
-    margin: 0;
-    margin-top: 1.5em;
-}
-
-.annotation-body
-{
-       margin-left: 2.5em;
-       font-size: 0.875em;
+       margin-bottom: 0.3em;
+       text-align: left;
 }
 
 .block
 }
 
 .block
@@ -72,6 +55,7 @@
        padding: 1em;
 }
 
        padding: 1em;
 }
 
+
 /* ============= */
 /* = Numbering = */
 /* ============= */
 /* ============= */
 /* = Numbering = */
 /* ============= */