mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 04:05:57 +00:00
parent
548dcd4db1
commit
2d43ab8a1b
@ -412,8 +412,6 @@ ul.pagination {
|
|||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
color: #009688;;
|
color: #009688;;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: pre-wrap; /* css-3 */
|
|
||||||
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
font-size: .85em;
|
font-size: .85em;
|
||||||
|
@ -359,6 +359,11 @@ li.checkbox-item, li.task-list-item {
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.break-text {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Grouping
|
* Grouping
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid-card-content">
|
<div class="grid-card-content">
|
||||||
<h2><a href="{{$book->getUrl()}}" title="{{$book->name}}">{{$book->getShortName(35)}}</a></h2>
|
<h2><a class="break-text" href="{{$book->getUrl()}}" title="{{$book->name}}">{{$book->getShortName(35)}}</a></h2>
|
||||||
@if(isset($book->searchSnippet))
|
@if(isset($book->searchSnippet))
|
||||||
<p >{!! $book->searchSnippet !!}</p>
|
<p >{!! $book->searchSnippet !!}</p>
|
||||||
@else
|
@else
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<div class="book entity-list-item" data-entity-type="book" data-entity-id="{{$book->id}}">
|
<div class="book entity-list-item" data-entity-type="book" data-entity-id="{{$book->id}}">
|
||||||
<h4 class="text-book"><a class="text-book entity-list-item-link" href="{{$book->getUrl()}}"><i class="zmdi zmdi-book"></i><span class="entity-list-item-name">{{$book->name}}</span></a></h4>
|
<h4 class="text-book"><a class="text-book entity-list-item-link" href="{{$book->getUrl()}}"><i class="zmdi zmdi-book"></i><span class="entity-list-item-name break-text">{{$book->name}}</span></a></h4>
|
||||||
<div class="entity-item-snippet">
|
<div class="entity-item-snippet">
|
||||||
@if(isset($book->searchSnippet))
|
@if(isset($book->searchSnippet))
|
||||||
<p class="text-muted">{!! $book->searchSnippet !!}</p>
|
<p class="text-muted break-text">{!! $book->searchSnippet !!}</p>
|
||||||
@else
|
@else
|
||||||
<p class="text-muted">{{ $book->getExcerpt() }}</p>
|
<p class="text-muted break-text">{{ $book->getExcerpt() }}</p>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
@ -7,15 +7,15 @@
|
|||||||
<span class="text-muted"> » </span>
|
<span class="text-muted"> » </span>
|
||||||
@endif
|
@endif
|
||||||
<a href="{{ $chapter->getUrl() }}" class="text-chapter entity-list-item-link">
|
<a href="{{ $chapter->getUrl() }}" class="text-chapter entity-list-item-link">
|
||||||
<i class="zmdi zmdi-collection-bookmark"></i><span class="entity-list-item-name">{{ $chapter->name }}</span>
|
<i class="zmdi zmdi-collection-bookmark"></i><span class="entity-list-item-name break-text">{{ $chapter->name }}</span>
|
||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="entity-item-snippet">
|
<div class="entity-item-snippet">
|
||||||
@if(isset($chapter->searchSnippet))
|
@if(isset($chapter->searchSnippet))
|
||||||
<p class="text-muted">{!! $chapter->searchSnippet !!}</p>
|
<p class="text-muted break-text">{!! $chapter->searchSnippet !!}</p>
|
||||||
@else
|
@else
|
||||||
<p class="text-muted">{{ $chapter->getExcerpt() }}</p>
|
<p class="text-muted break-text">{{ $chapter->getExcerpt() }}</p>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
<div class="container small">
|
<div class="container small">
|
||||||
<h1 v-pre>{{ $chapter->name }}</h1>
|
<h1 v-pre>{{ $chapter->name }}</h1>
|
||||||
<div class="chapter-content" v-show="!searching">
|
<div class="chapter-content" v-show="!searching">
|
||||||
<p v-pre class="text-muted">{!! nl2br(e($chapter->description)) !!}</p>
|
<p v-pre class="text-muted break-text">{!! nl2br(e($chapter->description)) !!}</p>
|
||||||
|
|
||||||
@if(count($pages) > 0)
|
@if(count($pages) > 0)
|
||||||
<div v-pre class="page-list">
|
<div v-pre class="page-list">
|
||||||
|
@ -12,14 +12,14 @@
|
|||||||
<span class="text-muted"> » </span>
|
<span class="text-muted"> » </span>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
<a href="{{ $page->getUrl() }}" class="text-page entity-list-item-link"><i class="zmdi zmdi-file-text"></i><span class="entity-list-item-name">{{ $page->name }}</span></a>
|
<a href="{{ $page->getUrl() }}" class="text-page entity-list-item-link"><i class="zmdi zmdi-file-text"></i><span class="entity-list-item-name break-text">{{ $page->name }}</span></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="entity-item-snippet">
|
<div class="entity-item-snippet">
|
||||||
@if(isset($page->searchSnippet))
|
@if(isset($page->searchSnippet))
|
||||||
<p class="text-muted">{!! $page->searchSnippet !!}</p>
|
<p class="text-muted break-text">{!! $page->searchSnippet !!}</p>
|
||||||
@else
|
@else
|
||||||
<p class="text-muted">{{ $page->getExcerpt() }}</p>
|
<p class="text-muted break-text">{{ $page->getExcerpt() }}</p>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user