]> git.parisson.com Git - telemeta.git/commitdiff
fix epub css image and page style
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 23 Apr 2015 20:33:39 +0000 (22:33 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 23 Apr 2015 20:33:58 +0000 (22:33 +0200)
telemeta/static/telemeta/css/telemeta_epub.css

index efaab25e23b4ee16c89aa4262259a68e652296de..816fb29d1c51b1542e5a398a7e6b45ec2ca01c9c 100644 (file)
@@ -5,26 +5,26 @@ body {
 }
 
 h2 {
-     text-align: left;
-     text-transform: uppercase;
-     font-weight: 200;
+    text-align: left;
+    text-transform: uppercase;
+    font-weight: 200;
 }
 
 
 h3 {
-     text-align: left;
-     font-size: 0.8em;
-     margin-top: 0px;
-     font-weight: normal;
+    text-align: left;
+    font-size: 0.8em;
+    margin-top: 0px;
+    font-weight: normal;
 }
 
 
 ol {
-        list-style-type: none;
+    list-style-type: none;
 }
 
 ol > li:first-child {
-        margin-top: 0.3em;
+    margin-top: 0.3em;
 }
 
 
@@ -34,17 +34,21 @@ nav[epub|type~='toc'] > ol > li > ol  {
 
 
 nav[epub|type~='toc'] > ol > li > ol > li {
-        margin-top: 0.3em;
+    margin-top: 0.3em;
 }
 
 .item {
-    page-break-after: always;
+    page-break-before: always;
 }
 
 .item-image {
-    float: left;
+    text-align: center;
+}
+.item-audio{
+    page-break-after: avoid;
 }
 
-.item-image {
-    float: left;
+img {
+    text-align: center;
+    width: 50%;
 }