Styled disabled email checkbox

This commit is contained in:
Peter Zimon 2019-11-07 13:21:14 +07:00
parent 2aa781eef1
commit e5271b534d
2 changed files with 10 additions and 2 deletions

View File

@ -235,3 +235,11 @@
.gh-publishmenu-email-label {
margin-left: 12px;
}
.gh-publishmenu-email-label.disabled {
pointer-events: none;
}
.gh-publishmenu-content .for-checkbox.pe-none span {
background: color-mod(var(--whitegrey) l(+4%));
}

View File

@ -39,12 +39,12 @@
></span>
</div>
</div>
<div class="gh-publishmenu-email-label">
<div class="gh-publishmenu-email-label {{if disableEmailOption "pe-none"}}">
<label class="gh-publishmenu-radio-label" for="email-when-published-checkbox">Email post</label>
{{#if this.memberCount}}
<div class="gh-publishmenu-radio-desc">Send post to members when published</div>
{{else}}
<div class="gh-publishmenu-radio-desc">You have 0 members</div>
<div class="gh-publishmenu-radio-desc">You haven't got any members</div>
{{/if}}
</div>
{{/unless}}