]> BookStack Code Mirror - bookstack/blobdiff - resources/sass/_layout.scss
Add prev and next button to navigate through different pages
[bookstack] / resources / sass / _layout.scss
index e5ed608eb94bcbb975dda6c7cd03e55fac2efbfa..57800d41ef436f791062f62d0b0288387866c0fb 100644 (file)
@@ -62,6 +62,9 @@
 }
 
 @include smaller-than($m) {
+  .grid.third.prev-next:not(.no-break) {
+    grid-template-columns: 1fr 1fr 1fr;
+  }
   .grid.third:not(.no-break) {
     grid-template-columns: 1fr 1fr;
   }
   .grid.right-focus.reverse-collapse > *:nth-child(1) {
     order: 1;
   }
+  .grid.third:not(.no-break) .text-m-left {
+    margin-left: 20%;
+  }
+  .grid.third:not(.no-break) .text-m-right {
+    margin-left: 45%;
+  }
 }
 
 @include smaller-than($s) {
   .grid.third:not(.no-break) {
     grid-template-columns: 1fr;
   }
+  .grid.third:not(.no-break) .text-m-left {
+    margin-left: 18%;
+  }
+  .grid.third:not(.no-break) .text-m-right {
+    margin-left: 20%;
+  }
 }
 
 @include smaller-than($xs) {
@@ -178,6 +193,10 @@ body.flexbox {
   display: none !important;
 }
 
+.fill-height {
+  height: 100%;
+}
+
 .float {
   float: left;
   &.right {
@@ -275,6 +294,7 @@ body.flexbox {
     min-height: 50vh;
     overflow-y: scroll;
     overflow-x: hidden;
+    height: 100%;
     scrollbar-width: none;
     -ms-overflow-style: none;
     &::-webkit-scrollbar {
@@ -353,4 +373,8 @@ body.flexbox {
     margin-inline-start: 0;
     margin-inline-end: 0;
   }
-}
\ No newline at end of file
+}
+
+.prev-next-btn {
+  height: 50px;
+}