mirror of
https://github.com/TryGhost/Ruby.git
synced 2024-10-29 20:38:33 +02:00
Add empty navigation style
This commit is contained in:
parent
bd4a7c3c30
commit
594d3968f1
@ -39,6 +39,11 @@
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.navigation-empty:before,
|
||||
.navigation-empty:hover:before {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.navigation-label {
|
||||
color: @white-color;
|
||||
font-size: 11px;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="navigation">
|
||||
<div class="navigation-item navigation-previous{{^prev_post}} navigation-empty{{/prev_post}}">
|
||||
{{#prev_post}}
|
||||
<div class="navigation-item navigation-previous">
|
||||
<img class="navigation-image lazyload u-object-fit"
|
||||
data-srcset="{{img_url feature_image size="s"}} 400w, {{img_url feature_image size="m"}} 750w, {{img_url feature_image size="l"}} 960w"
|
||||
src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
|
||||
@ -10,11 +10,11 @@
|
||||
<span class="navigation-label">{{t 'Previous Post'}}</span>
|
||||
<h4 class="navigation-title">{{title}}</h4>
|
||||
<a class="u-permalink" href={{url}}></a>
|
||||
</div>
|
||||
{{/prev_post}}
|
||||
</div>
|
||||
|
||||
{{#next_post}}
|
||||
<div class="navigation-item navigation-next">
|
||||
<div class="navigation-item navigation-next{{^next_post}} navigation-empty{{/next_post}}">
|
||||
<img class="navigation-image lazyload u-object-fit"
|
||||
data-srcset="{{img_url feature_image size="s"}} 400w, {{img_url feature_image size="m"}} 750w, {{img_url feature_image size="l"}} 960w"
|
||||
src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
|
||||
|
Loading…
Reference in New Issue
Block a user