Updated and aligned entity dashboard elements

This commit is contained in:
Dan Brown 2019-04-13 11:09:17 +01:00
parent 2694bb8fab
commit d66fab8bee
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
6 changed files with 32 additions and 43 deletions

View File

@ -325,6 +325,10 @@ div[editor-type="markdown"] .title-input.page-title input[type="text"] {
&.flexible input {
width: 100%;
}
.search-box-cancel {
left: auto;
right: 0;
}
}
.outline > input {

View File

@ -96,17 +96,6 @@ $loadingSize: 10px;
}
}
// Search results
.search-results > h3 a {
font-size: 0.66em;
color: $primary;
padding-left: $-m;
i {
padding-right: $-s;
}
}
// Back to top link
$btt-size: 40px;
[back-to-top] {

View File

@ -45,14 +45,7 @@
@endif
</div>
<div class="search-results" v-cloak v-show="searching">
{{--TODO--}}
<h3 class="text-muted">{{ trans('entities.search_results') }} <a v-if="searching" v-on:click="clearSearch()" class="text-small">@icon('close'){{ trans('entities.search_clear') }}</a></h3>
<div v-if="!searchResults">
@include('partials.loading-icon')
</div>
<div v-html="searchResults"></div>
</div>
@include('partials.entity-dashboard-search-results')
</div>
@stop
@ -133,20 +126,14 @@
@section('left')
@include('partials.entity-dashboard-search-box')
@if($book->tags->count() > 0)
<div class="mb-xl">
@include('components.tag-list', ['entity' => $book])
</div>
@endif
<div class="mb-xl">
<form v-on:submit.prevent="searchBook" class="search-box flexible">
<input v-model="searchTerm" v-on:change="checkSearchForm()" type="text" name="term" placeholder="{{ trans('entities.books_search_this') }}">
<button type="submit">@icon('search')</button>
<button v-if="searching" v-cloak class="text-neg" v-on:click="clearSearch()" type="button">@icon('close')</button>
</form>
</div>
@if(count($activity) > 0)
<div class="mb-xl">
<h5>{{ trans('entities.recent_activity') }}</h5>

View File

@ -44,14 +44,7 @@
@endif
</div>
<div class="search-results" v-cloak v-show="searching">
{{--TODO--}}
<h3 class="text-muted">{{ trans('entities.search_results') }} <a v-if="searching" @click="clearSearch()" class="text-small">@icon('close'){{ trans('entities.search_clear') }}</a></h3>
<div v-if="!searchResults">
@include('partials.loading-icon')
</div>
<div v-html="searchResults"></div>
</div>
@include('partials.entity-dashboard-search-results')
</div>
@stop
@ -137,20 +130,14 @@
@section('left')
@include('partials.entity-dashboard-search-box')
@if($chapter->tags->count() > 0)
<div class="mb-xl">
@include('components.tag-list', ['entity' => $chapter])
</div>
@endif
<div class="mb-xl">
<form @submit.prevent="searchBook" class="search-box flexible">
<input v-model="searchTerm" @change="checkSearchForm()" type="text" name="term" placeholder="{{ trans('entities.chapters_search_this') }}">
<button type="submit">@icon('search')</button>
<button v-if="searching" v-cloak class="text-neg" @click="clearSearch()" type="button">@icon('close')</button>
</form>
</div>
@include('partials.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree])
@stop

View File

@ -0,0 +1,7 @@
<div class="mb-xl">
<form v-on:submit.prevent="searchBook" class="search-box flexible">
<input v-model="searchTerm" v-on:change="checkSearchForm" type="text" name="term" placeholder="{{ trans('entities.books_search_this') }}">
<button type="submit">@icon('search')</button>
<button v-if="searching" v-cloak class="search-box-cancel text-neg" v-on:click="clearSearch" type="button">@icon('close')</button>
</form>
</div>

View File

@ -0,0 +1,15 @@
<div class="search-results" v-cloak v-show="searching">
<div class="grid half v-center">
<h3 class="text-muted px-none">
{{ trans('entities.search_results') }}
</h3>
<div class="text-right">
<a v-if="searching" v-on:click="clearSearch" class="button outline">{{ trans('entities.search_clear') }}</a>
</div>
</div>
<div v-if="!searchResults">
@include('partials.loading-icon')
</div>
<div class="book-contents" v-html="searchResults"></div>
</div>