Listing content previews no longer pre-wrap and instead simply break
correctly.
Updated titles to ensure they break on mobile devices.
Reduced spacing and font sizes on mobile to better adjust content to
screen size.
Fixes #739
@include smaller-than($m) {
.breadcrumbs .text-button, .action-buttons .text-button {
@include smaller-than($m) {
.breadcrumbs .text-button, .action-buttons .text-button {
}
.action-buttons .dropdown-container:last-child a {
padding-left: $-xs;
}
.action-buttons .dropdown-container:last-child a {
padding-left: $-xs;
.breadcrumbs .text-button {
font-size: 0;
}
.breadcrumbs .text-button {
font-size: 0;
}
+ .breadcrumbs .text-button svg {
+ font-size: $fs-m;
+ }
.breadcrumbs a i {
font-size: $fs-m;
padding-right: 0;
.breadcrumbs a i {
font-size: $fs-m;
padding-right: 0;
.breadcrumbs span.sep {
padding: 0 $-xxs;
}
.breadcrumbs span.sep {
padding: 0 $-xxs;
}
+ .toolbar .col-xs-1:first-child {
+ padding-right: 0;
+ }
+@include smaller-than($s) {
+ .page-list h4 {
+ font-size: 1.333em;
+ }
+}
+
.sidebar-page-nav {
$nav-indent: $-s;
list-style: none;
.sidebar-page-nav {
$nav-indent: $-s;
list-style: none;
+@include smaller-than($s) {
+ h1 {
+ font-size: 2.8275em;
+ }
+ h2 {
+ font-size: 2.333em;
+ }
+ h3 {
+ font-size: 1.666em;
+ }
+ h4 {
+ font-size: 1.333em;
+ }
+ h5 {
+ font-size: 1.161616em;
+ }
+}
+
+ overflow-wrap: break-word;
- <div class="container small">
- <h1>{{$book->name}}</h1>
+ <div class="container small nopad">
+ <h1 class="break-text" v-pre>{{$book->name}}</h1>
<div class="book-content" v-show="!searching">
<p class="text-muted" v-pre>{!! nl2br(e($book->description)) !!}</p>
@if(count($bookChildren) > 0)
<div class="book-content" v-show="!searching">
<p class="text-muted" v-pre>{!! nl2br(e($book->description)) !!}</p>
@if(count($bookChildren) > 0)
- <div class="container small">
- <h1 v-pre>{{ $chapter->name }}</h1>
+ <div class="container small nopad">
+ <h1 class="break-text" v-pre>{{ $chapter->name }}</h1>
<div class="chapter-content" v-show="!searching">
<p v-pre class="text-muted break-text">{!! nl2br(e($chapter->description)) !!}</p>
<div class="chapter-content" v-show="!searching">
<p v-pre class="text-muted break-text">{!! nl2br(e($chapter->description)) !!}</p>
- <h1 id="bkmrk-page-title">{{$page->name}}</h1>
+ <h1 class="break-text" v-pre id="bkmrk-page-title">{{$page->name}}</h1>
<div style="clear:left;"></div>
<div style="clear:left;"></div>