]> BookStack Code Mirror - bookstack/commitdiff
Fixed some design issues and improved page export styling
authorDan Brown <redacted>
Mon, 8 Feb 2016 20:41:40 +0000 (20:41 +0000)
committerDan Brown <redacted>
Mon, 8 Feb 2016 20:41:40 +0000 (20:41 +0000)
Fixed alignment on export options dropdown.
Fixed bullet list items sitting too close next to floated content. Fixes #34.
Fixed text overlaying images in PDF exports (Floats removed for now). Fixes #53.
Fixed spaced table cells on html & PDF exports.

resources/assets/sass/_lists.scss
resources/assets/sass/_text.scss
resources/assets/sass/export-styles.scss
resources/views/pages/pdf.blade.php
resources/views/pages/show.blade.php

index fa609ee337ae894c4dec5d67ef5ca573d72c2382..748694635ee1f49a650f5c5aec4757346919f2e2 100644 (file)
 }
 .book-tree .sidebar-page-list {
   list-style: none;
-  margin: 0;
-  margin-top: $-xs;
+  margin: $-xs 0 0;
+  padding-left: 0;
   border-left: 5px solid $color-book;
   li a {
     display: block;
index d3663dee3f239e6acc73da907bb9574f4452e503..49989663192be24d2e315854f8673d16ceb1298a 100644 (file)
@@ -223,13 +223,13 @@ span.highlight {
  * Lists
  */
 ul {
-  list-style: disc;
-  margin-left: $-m*1.5;
+  padding-left: $-m * 1.5;
+  list-style: disc inside;
 }
 
 ol {
-  list-style: decimal;
-  margin-left: $-m*1.5;
+  list-style: decimal inside;
+  padding-left: $-m * 1.5;
 }
 
 /*
index 90fdb196c1d0d53deb5852c8c75ec93137a58a68..60450f3e2e5a1436dacc4554f41c4e363030d5d6 100644 (file)
@@ -9,4 +9,9 @@
 @import "tables";
 @import "header";
 @import "lists";
-@import "pages";
\ No newline at end of file
+@import "pages";
+
+table {
+  border-spacing: 0;
+  border-collapse: collapse;
+}
\ No newline at end of file
index 1077c093164d14e47dd3dbbd2bb627265db31cef..3a376334d8a0f1ffefb73096aa1f426954c61613 100644 (file)
         table td {
             width: auto !important;
         }
+
+        .page-content img.align-left, .page-content img.align-right  {
+            float: none !important;
+            clear: both;
+            display: block;
+        }
     </style>
 @stop
\ No newline at end of file
index a2c82fd9d77f178715c98872ccea1528085c45f7..8a5bffca448e60de7f92f33b5d301fc9f25fd8db 100644 (file)
@@ -22,9 +22,9 @@
                         <span dropdown class="dropdown-container">
                             <div dropdown-toggle class="text-button text-primary"><i class="zmdi zmdi-open-in-new"></i>Export</div>
                             <ul class="wide">
-                                <li><a href="{{$page->getUrl() . '/export/html'}}" target="_blank">Contained Web File <span class="text-muted pull-right">.html</span></a></li>
-                                <li><a href="{{$page->getUrl() . '/export/pdf'}}" target="_blank">PDF File <span class="text-muted pull-right">.pdf</span></a></li>
-                                <li><a href="{{$page->getUrl() . '/export/plaintext'}}" target="_blank">Plain Text File <span class="text-muted pull-right">.txt</span></a></li>
+                                <li><a href="{{$page->getUrl() . '/export/html'}}" target="_blank">Contained Web File <span class="text-muted float right">.html</span></a></li>
+                                <li><a href="{{$page->getUrl() . '/export/pdf'}}" target="_blank">PDF File <span class="text-muted float right">.pdf</span></a></li>
+                                <li><a href="{{$page->getUrl() . '/export/plaintext'}}" target="_blank">Plain Text File <span class="text-muted float right">.txt</span></a></li>
                             </ul>
                         </span>
                         @if($currentUser->can('page-update'))