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.
Showing
3 changed files
with
10 additions
and
1 deletions
| ... | @@ -16,6 +16,9 @@ | ... | @@ -16,6 +16,9 @@ |
| 16 | margin: $-s 0 0 0; | 16 | margin: $-s 0 0 0; |
| 17 | border-left: 5px solid $color-page; | 17 | border-left: 5px solid $color-page; |
| 18 | padding: $-xs 0 $-xs $-m; | 18 | padding: $-xs 0 $-xs $-m; |
| 19 | + &.draft { | ||
| 20 | + border-left-color: $color-page-draft; | ||
| 21 | + } | ||
| 19 | } | 22 | } |
| 20 | hr { | 23 | hr { |
| 21 | margin-top: 0; | 24 | margin-top: 0; | ... | ... |
| ... | @@ -206,6 +206,12 @@ p.secondary, p .secondary, span.secondary, .text-secondary { | ... | @@ -206,6 +206,12 @@ p.secondary, p .secondary, span.secondary, .text-secondary { |
| 206 | &:hover { | 206 | &:hover { |
| 207 | color: $color-page; | 207 | color: $color-page; |
| 208 | } | 208 | } |
| 209 | + &.draft { | ||
| 210 | + color: $color-page-draft; | ||
| 211 | + } | ||
| 212 | + &.draft:hover { | ||
| 213 | + color: $color-page-draft; | ||
| 214 | + } | ||
| 209 | } | 215 | } |
| 210 | .text-chapter { | 216 | .text-chapter { |
| 211 | color: $color-chapter; | 217 | color: $color-chapter; | ... | ... |
| ... | @@ -14,7 +14,7 @@ | ... | @@ -14,7 +14,7 @@ |
| 14 | <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> | 14 | <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> |
| 15 | <div class="inset-list"> | 15 | <div class="inset-list"> |
| 16 | @foreach($chapter->pages as $page) | 16 | @foreach($chapter->pages as $page) |
| 17 | - <h4><a href="{{$page->getUrl()}}"><i class="zmdi zmdi-file-text"></i>{{$page->name}}</a></h4> | 17 | + <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> |
| 18 | @endforeach | 18 | @endforeach |
| 19 | </div> | 19 | </div> |
| 20 | @endif | 20 | @endif | ... | ... |
-
Please register or sign in to post a comment