mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-25 03:35:35 +00:00
Improved page tag box structure and fixed footer in PDF export.
Fixes #162.
This commit is contained in:
parent
43d9d2eba7
commit
757f16a3b5
@ -250,13 +250,10 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
span {
|
.heading th {
|
||||||
color: #666;
|
|
||||||
margin-left: $-s;
|
|
||||||
}
|
|
||||||
.heading {
|
|
||||||
padding: $-xs $-s;
|
padding: $-xs $-s;
|
||||||
color: #444;
|
color: #333;
|
||||||
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
td {
|
td {
|
||||||
border: 0;
|
border: 0;
|
||||||
@ -267,9 +264,6 @@
|
|||||||
.tag-value {
|
.tag-value {
|
||||||
color: #888;
|
color: #888;
|
||||||
}
|
}
|
||||||
td i {
|
|
||||||
color: #888;
|
|
||||||
}
|
|
||||||
tr:last-child td {
|
tr:last-child td {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
@ -4,14 +4,20 @@
|
|||||||
|
|
||||||
@if(count($page->tags) > 0)
|
@if(count($page->tags) > 0)
|
||||||
<div class="tag-display float right">
|
<div class="tag-display float right">
|
||||||
<div class="heading primary-background-light">Page Tags</div>
|
|
||||||
<table>
|
<table>
|
||||||
@foreach($page->tags as $tag)
|
<thead>
|
||||||
<tr class="tag">
|
<tr class="text-left heading primary-background-light">
|
||||||
<td @if(!$tag->value) colspan="2" @endif><a href="{{ baseUrl('/search/all?term=%5B' . urlencode($tag->name) .'%5D') }}">{{ $tag->name }}</a></td>
|
<th colspan="2">Page Tags</th>
|
||||||
@if($tag->value) <td class="tag-value"><a href="{{ baseUrl('/search/all?term=%5B' . urlencode($tag->name) .'%3D' . urlencode($tag->value) . '%5D') }}">{{$tag->value}}</a></td> @endif
|
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach($page->tags as $tag)
|
||||||
|
<tr class="tag">
|
||||||
|
<td @if(!$tag->value) colspan="2" @endif><a href="{{ baseUrl('/search/all?term=%5B' . urlencode($tag->name) .'%5D') }}">{{ $tag->name }}</a></td>
|
||||||
|
@if($tag->value) <td class="tag-value"><a href="{{ baseUrl('/search/all?term=%5B' . urlencode($tag->name) .'%3D' . urlencode($tag->value) . '%5D') }}">{{$tag->value}}</a></td> @endif
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
@section('head')
|
@section('head')
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-size: 15px;
|
font-size: 14px;
|
||||||
line-height: 1;
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
line-height: 1;
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
@ -21,10 +21,21 @@
|
|||||||
width: auto !important;
|
width: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-content .float {
|
||||||
|
float: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.page-content img.align-left, .page-content img.align-right {
|
.page-content img.align-left, .page-content img.align-right {
|
||||||
float: none !important;
|
float: none !important;
|
||||||
clear: both;
|
clear: both;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag-display {
|
||||||
|
min-width: 0;
|
||||||
|
max-width: none;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@stop
|
@stop
|
Loading…
Reference in New Issue
Block a user