mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-01-31 20:21:36 +01:00
Fixed inset chapter list colors
The colors were being overridden by the custom theme color. Styles added to force color to page and/or page draft.
This commit is contained in:
parent
5283919d24
commit
75ecf1c44d
@ -16,6 +16,9 @@
|
||||
margin: $-s 0 0 0;
|
||||
border-left: 5px solid $color-page;
|
||||
padding: $-xs 0 $-xs $-m;
|
||||
&.draft {
|
||||
border-left-color: $color-page-draft;
|
||||
}
|
||||
}
|
||||
hr {
|
||||
margin-top: 0;
|
||||
|
@ -206,6 +206,12 @@ p.secondary, p .secondary, span.secondary, .text-secondary {
|
||||
&:hover {
|
||||
color: $color-page;
|
||||
}
|
||||
&.draft {
|
||||
color: $color-page-draft;
|
||||
}
|
||||
&.draft:hover {
|
||||
color: $color-page-draft;
|
||||
}
|
||||
}
|
||||
.text-chapter {
|
||||
color: $color-chapter;
|
||||
|
@ -14,7 +14,7 @@
|
||||
<p class="text-muted chapter-toggle"><i class="zmdi zmdi-caret-right"></i> <i class="zmdi zmdi-file-text"></i> <span>{{ count($chapter->pages) }} Pages</span></p>
|
||||
<div class="inset-list">
|
||||
@foreach($chapter->pages as $page)
|
||||
<h4><a href="{{$page->getUrl()}}"><i class="zmdi zmdi-file-text"></i>{{$page->name}}</a></h4>
|
||||
<h4 class="@if($page->draft) draft @endif"><a href="{{$page->getUrl()}}" class="text-page @if($page->draft) draft @endif"><i class="zmdi zmdi-file-text"></i>{{$page->name}}</a></h4>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user