Fixed bug in table of contents rendering in book reader.
[wolnelektury.git] / wolnelektury / media / css / master.book.css
index d8ffe49..8d09494 100644 (file)
@@ -108,6 +108,7 @@ img {
     margin: 0;
     color: blue;
     font-size: 16px;
+    position: inherit;
 }
 
 /* =================================================== */
@@ -192,13 +193,15 @@ blockquote {
 /* = Numbering = */
 /* ============= */
 .anchor {
-    float: left;
-    margin: -0.2em -0.5em -0.2em -3.5em;
+    position: absolute;
+    margin: -0.25em -0.5em;
+    left: 1em;
     color: #777;
     font-size: 12px;
     width: 2em;
     text-align: center;
-    padding: 0.2em 0.5em;
+    padding: 0.25em 0.5em;
+    line-height: 1.5em;
 }
 
 .anchor:hover, #book-text .anchor:active {