mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Email design screen cleanup
This commit is contained in:
parent
8dd371f1e8
commit
ac23f3cdae
@ -48,7 +48,8 @@
|
|||||||
</GhUploader>
|
</GhUploader>
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
|
|
||||||
<GhFormGroup data-tooltip={{unless this.settings.icon "A publication icon must be set in Branding settings."}}>
|
{{#if this.settings.icon}}
|
||||||
|
<GhFormGroup>
|
||||||
<h4 class="modal-fullsettings-title {{unless this.settings.icon "disabled"}}">Publication icon</h4>
|
<h4 class="modal-fullsettings-title {{unless this.settings.icon "disabled"}}">Publication icon</h4>
|
||||||
<div class="for-switch small {{unless this.settings.icon "disabled"}}">
|
<div class="for-switch small {{unless this.settings.icon "disabled"}}">
|
||||||
<label class="switch" for="show-header">
|
<label class="switch" for="show-header">
|
||||||
@ -64,6 +65,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
|
{{/if}}
|
||||||
<GhFormGroup>
|
<GhFormGroup>
|
||||||
<h4 class="modal-fullsettings-title">Publication title</h4>
|
<h4 class="modal-fullsettings-title">Publication title</h4>
|
||||||
<div class="for-switch small">
|
<div class="for-switch small">
|
||||||
@ -97,8 +99,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-fullsettings-section">
|
<div class="modal-fullsettings-section">
|
||||||
<h3 class="gh-newsletters-setting-sectionheading">Body</h3>
|
<h3 class="gh-newsletters-setting-sectionheading">Body</h3>
|
||||||
<GhFormGroup>
|
<GhFormGroup @classNames="vertical">
|
||||||
<h4 class="modal-fullsettings-title gh-email-design-alignment">Header style</h4>
|
<h4 class="modal-fullsettings-title gh-email-design-alignment">Title style</h4>
|
||||||
<div class="gh-email-design-typography-wrapper header">
|
<div class="gh-email-design-typography-wrapper header">
|
||||||
<div class="modal-fullsettings-radiogroup gh-email-design-typography">
|
<div class="modal-fullsettings-radiogroup gh-email-design-typography">
|
||||||
<GhFontSelector
|
<GhFontSelector
|
||||||
@ -112,6 +114,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
|
<GhFormGroup @classNames="vertical">
|
||||||
|
<h4 class="modal-fullsettings-title">Body style</h4>
|
||||||
|
<div class="gh-email-design-typography-wrapper">
|
||||||
|
<div class="modal-fullsettings-radiogroup gh-email-design-typography">
|
||||||
|
<GhFontSelector
|
||||||
|
@selected={{@newsletter.bodyFontCategory}}
|
||||||
|
@onChange={{fn this.changeSetting "bodyFontCategory"}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</GhFormGroup>
|
||||||
<GhFormGroup>
|
<GhFormGroup>
|
||||||
<h4 class="modal-fullsettings-title">Feature image</h4>
|
<h4 class="modal-fullsettings-title">Feature image</h4>
|
||||||
<div class="for-switch small">
|
<div class="for-switch small">
|
||||||
@ -127,30 +140,19 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
<GhFormGroup>
|
|
||||||
<h4 class="modal-fullsettings-title">Body style</h4>
|
|
||||||
<div class="gh-email-design-typography-wrapper">
|
|
||||||
<div class="modal-fullsettings-radiogroup gh-email-design-typography">
|
|
||||||
<GhFontSelector
|
|
||||||
@selected={{@newsletter.bodyFontCategory}}
|
|
||||||
@onChange={{fn this.changeSetting "bodyFontCategory"}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</GhFormGroup>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-fullsettings-section">
|
<div class="modal-fullsettings-section">
|
||||||
<h3 class="gh-newsletters-setting-sectionheading">Footer</h3>
|
<h3 class="gh-newsletters-setting-sectionheading">Footer</h3>
|
||||||
<GhFormGroup @classNames="vertical">
|
<GhFormGroup @classNames="vertical">
|
||||||
<label class="modal-fullsettings-title">Email footer</label>
|
<label class="modal-fullsettings-title">Email footer</label>
|
||||||
<p>Any extra information or legal text</p>
|
|
||||||
<KoenigBasicHtmlInput
|
<KoenigBasicHtmlInput
|
||||||
@name="footer"
|
@name="footer"
|
||||||
@html={{@newsletter.footerContent}}
|
@html={{@newsletter.footerContent}}
|
||||||
@class="miw-100 form-text gh-members-emailsettings-footer-input"
|
@class="miw-100 form-text gh-members-emailsettings-footer-input"
|
||||||
@onChange={{fn this.changeSetting "footerContent"}}
|
@onChange={{fn this.changeSetting "footerContent"}}
|
||||||
/>
|
/>
|
||||||
|
<p>Any extra information or legal text</p>
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
<GhFormGroup @classNames="vertical" @errors={{@newsletter.errors}} @hasValidated={{@newsletter.hasValidated}} @property="description">
|
<GhFormGroup @classNames="vertical" @errors={{@newsletter.errors}} @hasValidated={{@newsletter.hasValidated}} @property="description">
|
||||||
<label for="newsletter-description" class="modal-fullsettings-title">Description</label>
|
<label for="newsletter-description" class="modal-fullsettings-title">Description</label>
|
||||||
<p>Seen by members on your site</p>
|
|
||||||
<textarea
|
<textarea
|
||||||
id="newsletter-description"
|
id="newsletter-description"
|
||||||
class="gh-input miw-100 form-text"
|
class="gh-input miw-100 form-text"
|
||||||
@ -31,7 +30,6 @@
|
|||||||
<h3 class="gh-newsletters-setting-sectionheading">Email addresses</h3>
|
<h3 class="gh-newsletters-setting-sectionheading">Email addresses</h3>
|
||||||
<GhFormGroup @classNames="vertical" @errors={{@newsletter.errors}} @hasValidated={{@newsletter.hasValidated}} @property="senderName">
|
<GhFormGroup @classNames="vertical" @errors={{@newsletter.errors}} @hasValidated={{@newsletter.hasValidated}} @property="senderName">
|
||||||
<label for="newsletter-sender-name" class="modal-fullsettings-title">Sender name</label>
|
<label for="newsletter-sender-name" class="modal-fullsettings-title">Sender name</label>
|
||||||
<p>The name members will see in their inbox</p>
|
|
||||||
<input
|
<input
|
||||||
id="newsletter-sender-name"
|
id="newsletter-sender-name"
|
||||||
type="text"
|
type="text"
|
||||||
@ -43,9 +41,11 @@
|
|||||||
<GhErrorMessage @errors={{@newsletter.errors}} @property="senderName" />
|
<GhErrorMessage @errors={{@newsletter.errors}} @property="senderName" />
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
|
|
||||||
<GhFormGroup @classNames="vertical" @errors={{@newsletter.errors}} @hasValidated={{@newsletter.hasValidated}} @property="senderEmail">
|
<GhFormGroup @classNames="vertical" @errors={{@newsletter.errors}} @hasValidated={{@newsletter.hasValidated}} @property="senderEmail">
|
||||||
<label for="newsletter-sender-email" class="modal-fullsettings-title">Newsletter email address</label>
|
<span class="flex items-center justify-between">
|
||||||
<p>Defaults to <span class="green-d1 fw5">{{full-email-address "noreply"}}</span> if empty</p>
|
<label for="newsletter-sender-email" class="modal-fullsettings-title ml2">Newsletter email address</label>
|
||||||
|
<span class="tooltip-top-left" data-tooltip="Defaults to {{full-email-address "noreply"}} if empty">{{svg-jar "info" class="fill-darkgrey w4 h4"}}</span>
|
||||||
|
</span>
|
||||||
<input
|
<input
|
||||||
id="newsletter-sender-email"
|
id="newsletter-sender-email"
|
||||||
type="text"
|
type="text"
|
||||||
@ -59,7 +59,6 @@
|
|||||||
|
|
||||||
<GhFormGroup @classNames="vertical" @errors={{@newsletter.errors}} @hasValidated={{@newsletter.hasValidated}} @property="senderReplyTo">
|
<GhFormGroup @classNames="vertical" @errors={{@newsletter.errors}} @hasValidated={{@newsletter.hasValidated}} @property="senderReplyTo">
|
||||||
<label for="newsletter-reply-to" class="modal-fullsettings-title">Reply-to email</label>
|
<label for="newsletter-reply-to" class="modal-fullsettings-title">Reply-to email</label>
|
||||||
<p>Where you receive responses to newsletters</p>
|
|
||||||
<Inputs::Select
|
<Inputs::Select
|
||||||
id="newsletter-reply-to"
|
id="newsletter-reply-to"
|
||||||
@value={{@newsletter.senderReplyTo}}
|
@value={{@newsletter.senderReplyTo}}
|
||||||
|
@ -1605,7 +1605,6 @@ p.gh-members-import-errordetail:first-of-type {
|
|||||||
|
|
||||||
.gh-email-design-typography-wrapper {
|
.gh-email-design-typography-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 250px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-email-design-typography {
|
.gh-email-design-typography {
|
||||||
@ -1614,7 +1613,7 @@ p.gh-members-import-errordetail:first-of-type {
|
|||||||
|
|
||||||
.gh-email-design-typography .gh-setting-dropdown {
|
.gh-email-design-typography .gh-setting-dropdown {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 40px 0 8px;
|
padding: 0 8px 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-email-design-typography-wrapper.header .gh-setting-dropdown {
|
.gh-email-design-typography-wrapper.header .gh-setting-dropdown {
|
||||||
|
@ -61,12 +61,12 @@
|
|||||||
|
|
||||||
.gh-portal-settings-sidebar {
|
.gh-portal-settings-sidebar {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 342px;
|
width: 380px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-portal-form-wrapper {
|
.gh-portal-form-wrapper {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 342px;
|
width: 380px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-portal-settings-form {
|
.gh-portal-settings-form {
|
||||||
@ -247,6 +247,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-portal-setting-first {
|
.gh-portal-setting-first {
|
||||||
|
@ -999,8 +999,9 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 1.9rem;
|
font-size: 1.8rem;
|
||||||
line-height: 22px;
|
font-weight: 600;
|
||||||
|
line-height: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats-block .gh-newsletter-card-name {
|
.stats-block .gh-newsletter-card-name {
|
||||||
@ -1043,7 +1044,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gh-newsletters-labs .modal-fullsettings-sidebar {
|
.gh-newsletters-labs .modal-fullsettings-sidebar {
|
||||||
width: 480px;
|
width: 380px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-newsletters-setting-sectionheading {
|
.gh-newsletters-setting-sectionheading {
|
||||||
@ -1067,8 +1068,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gh-newsletters-labs .form-group.vertical p {
|
.gh-newsletters-labs .form-group.vertical p {
|
||||||
margin: 0 0 12px;
|
margin: 4px 0 0;
|
||||||
line-height: 1em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-newsletters-labs .gh-members-emailsettings-footer {
|
.gh-newsletters-labs .gh-members-emailsettings-footer {
|
||||||
|
@ -242,6 +242,16 @@ button, .btn-base {
|
|||||||
transform: translate(0, -50%);
|
transform: translate(0, -50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tooltip-top-left:before {
|
||||||
|
right: calc(-16px + 100%);
|
||||||
|
left: auto;
|
||||||
|
transform: translateY(50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip-top-left:hover:before {
|
||||||
|
transform: translate(0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Errors
|
/* Errors
|
||||||
---------------------------------------------------------- */
|
---------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user