Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Updated publishmenu design
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzimon committed Nov 6, 2019
1 parent 80501a5 commit ab801f0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
9 changes: 9 additions & 0 deletions app/styles/components/publishmenu.css
Expand Up @@ -223,3 +223,12 @@
font-weight: 200;
color: var(--red);
}

.for-checkbox .gh-publishmenu-email-checkbox {
margin-right: 0;
background: var(--white);
}

.gh-publishmenu-email-label {
margin-left: 12px;
}
22 changes: 7 additions & 15 deletions app/templates/components/gh-publishmenu-draft.hbs
Expand Up @@ -25,30 +25,22 @@
</div>
</div>
{{#if this.feature.labs.members}}
<div class="flex mb4 justify-center">
<div class="gh-publishmenu-radio">
{{#if this.backgroundLoader.isRunning}}
<div class="gh-loading-spinner" style="zoom: 50%"></div>
{{else}}
{{#if this.deliveredAction}}
<div class="mr3">
💌
</div>
<div class="flex-grow-1">
<div class="gh-publishmenu-radio-label">Sent</div>
<div class="gh-publishmenu-radio-desc">Post was sent {{gh-format-post-time this.deliveredAction.createdAtUTC}}</div>
</div>
{{else}}
<div class="for-switch mr3">
<label class="switch" for="email-when-published-checkbox">
{{#unless this.deliveredAction}}
<div class="for-checkbox">
<label class="checkbox" for="email-when-published-checkbox">
<Input @checked={{this.sendEmailWhenPublished}} @type="checkbox" @id="email-when-published-checkbox" @name="email-when-published" />
<span class="input-toggle-component"></span>
<span class="input-toggle-component gh-publishmenu-email-checkbox"></span>
</label>
</div>
<div class="flex-grow-1">
<div class="gh-publishmenu-email-label">
<div class="gh-publishmenu-radio-label">Email post</div>
<div class="gh-publishmenu-radio-desc">Send post to {{this.memberCount}} members when published</div>
</div>
{{/if}}
{{/unless}}
{{/if}}
</div>
{{/if}}
Expand Down

0 comments on commit ab801f0

Please sign in to comment.