mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Styled links section in Portal settings
no refs. - applied basic styles to link section in sidebar of Portal settings
This commit is contained in:
parent
aba652ec56
commit
9102f3d51a
@ -231,28 +231,28 @@
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="gh-portal-setting-section divider-top">
|
||||
<h4 class="gh-portal-setting-sectionheading"> Links </h4>
|
||||
<h4 class="gh-portal-setting-sectionheading">Links</h4>
|
||||
<GhFormGroup>
|
||||
<div class="flex w-100 justify-between items-center">
|
||||
<h4 class="gh-portal-setting-title">Show modal</h4>
|
||||
<div {{action (toggle "isShowModalLink" this)}} class="blue pointer f8"> {{if this.isShowModalLink "Data Attribute" "Link"}} </div>
|
||||
</div>
|
||||
<div class="flex items-center justify-center mt1 gh-show-modal-link-form">
|
||||
<div class="flex items-center justify-center mt1 gh-show-modal-link-form relative">
|
||||
<GhTextInput
|
||||
@value={{this.showModalLinkOrAttribute}}
|
||||
@type="text"
|
||||
@disabled={{true}}
|
||||
/>
|
||||
<button type="button" {{action (perform this.copyLinkOrAttribute)}} class="bg-black-70 f8 pa1 pr3 pl3 br3 white fw4 flex items-center">
|
||||
<button type="button" {{action (perform this.copyLinkOrAttribute)}} class="gh-portal-setting-copy">
|
||||
{{#if this.copyLinkOrAttribute.isRunning}}
|
||||
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-white"}} Copied
|
||||
{{svg-jar "check-circle" class="w4 v-mid mr1 stroke-darkgrey"}} Copied
|
||||
{{else}}
|
||||
Copy
|
||||
<span data-tooltip="Copy">{{svg-jar "copy" class="w4 v-mid fill-darkgrey"}}</span>
|
||||
{{/if}}
|
||||
</button>
|
||||
</div>
|
||||
<div class="mt1">
|
||||
<span onclick={{action "switchPreviewPage" "links"}} class="blue pointer f8">Show more...</span>
|
||||
<div>
|
||||
<span onclick={{action "switchPreviewPage" "links"}} class="blue pointer f7">Show more</span>
|
||||
</div>
|
||||
</GhFormGroup>
|
||||
</div>
|
||||
|
@ -224,4 +224,15 @@
|
||||
|
||||
.gh-portal-button-uploadicon:hover span svg {
|
||||
fill: var(--darkgrey);
|
||||
}
|
||||
|
||||
.gh-portal-setting-copy {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
height: 34px;
|
||||
padding: 3px 8px 5px 9px;
|
||||
border-radius: 2px;
|
||||
background: var(--white);
|
||||
border: 1px solid var(--whitegrey);
|
||||
}
|
1
ghost/admin/public/assets/icons/copy.svg
Normal file
1
ghost/admin/public/assets/icons/copy.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.333 1.75c-.42 0-.822.167-1.12.464-.296.297-.463.7-.463 1.12v5.833c0 .42.167.822.464 1.12.297.296.7.463 1.12.463h3.5c.413 0 .75.336.75.75s-.337.75-.75.75h-3.5c-.818 0-1.603-.325-2.18-.903-.58-.579-.904-1.363-.904-2.18V3.333c0-.817.325-1.602.903-2.18C1.731.575 2.516.25 3.333.25h3.5c.818 0 1.602.325 2.18.903.579.578.904 1.363.904 2.18V4.5c0 .414-.336.75-.75.75-.415 0-.75-.336-.75-.75V3.333c0-.42-.167-.822-.464-1.12-.297-.296-.7-.463-1.12-.463h-3.5z" fill="#000"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.389 5.25c-.445 0-.806.36-.806.806v7.388c0 .445.361.806.806.806h5.055c.445 0 .806-.36.806-.806V6.056c0-.445-.36-.806-.806-.806H8.39zm-2.306.806c0-1.274 1.033-2.306 2.306-2.306h5.055c1.274 0 2.306 1.032 2.306 2.306v7.388c0 1.274-1.032 2.306-2.306 2.306H8.39c-1.273 0-2.306-1.032-2.306-2.306V6.056z" fill="#000"/></svg>
|
After Width: | Height: | Size: 979 B |
Loading…
Reference in New Issue
Block a user