mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Updated feature image Unsplash integration to appear on post title hover
This commit is contained in:
parent
fed040010d
commit
53d76da054
2 changed files with 6 additions and 8 deletions
|
@ -64,9 +64,7 @@
|
|||
{{!-- no-image state --}}
|
||||
<div class="flex flex-row items-center {{if this.hideButton "invisible"}}">
|
||||
<button type="button" class="gh-editor-feature-image-add-button" {{on "click" uploader.triggerFileDialog}}>{{svg-jar "plus"}}<span>Add feature image</span></button>
|
||||
{{#if this.isHovered}}
|
||||
<button type="button" class="gh-editor-feature-image-unsplash" {{on "click" this.toggleUnsplashSelector}}>{{svg-jar "unsplash"}}</button>
|
||||
{{/if}}
|
||||
<button type="button" class="gh-editor-feature-image-unsplash" {{on "click" this.toggleUnsplashSelector}}>{{svg-jar "unsplash"}}</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
|
|
@ -442,14 +442,14 @@
|
|||
.gh-editor-feature-image-add-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--midgrey-d1);
|
||||
font-size: 1.4rem;
|
||||
color: var(--midgrey-l2);
|
||||
font-size: 1.35rem;
|
||||
font-weight: 400;
|
||||
letter-spacing: .2px;
|
||||
}
|
||||
|
||||
.gh-editor-feature-image-add-button:hover {
|
||||
color: var(--darkgrey-l2);
|
||||
color: var(--midgrey-d2);
|
||||
}
|
||||
|
||||
.gh-editor-feature-image-add-button svg {
|
||||
|
@ -459,12 +459,12 @@
|
|||
}
|
||||
|
||||
.gh-editor-feature-image-add-button svg path {
|
||||
stroke: var(--midgrey-d1);
|
||||
stroke: var(--midgrey-l2);
|
||||
stroke-width: 2;
|
||||
}
|
||||
|
||||
.gh-editor-feature-image-add-button:hover svg path {
|
||||
stroke: var(--darkgrey-l2);
|
||||
stroke: var(--midgrey-d2);
|
||||
}
|
||||
|
||||
.gh-editor-feature-image-unsplash {
|
||||
|
|
Loading…
Add table
Reference in a new issue