mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
6dc901993c
Refs https://github.com/TryGhost/Team/issues/928 - Added icons for top and bottom border - Updated spacing for hr element when not in edit mode - Got rid of hr element when in edit mode - Got rid of left border for email, html and markdown cards and feature image
87 lines
3.2 KiB
Handlebars
87 lines
3.2 KiB
Handlebars
<KgActionBar @class="relative" @instantClose={{true}} @isVisible={{this.showToolbar}}>
|
|
<li class="ma0 lh-solid">
|
|
<button
|
|
type="button"
|
|
title="Bold"
|
|
class="dib dim-lite link h9 w9 nudge-top--1"
|
|
{{action "toggleMarkup" "strong"}}
|
|
>
|
|
{{svg-jar "koenig/kg-bold" class=(concat (if this.activeMarkupTagNames.isStrong "fill-green-l2" "fill-white") " w4 h4")}}
|
|
</button>
|
|
</li>
|
|
<li class="ma0 lh-solid">
|
|
<button
|
|
type="button"
|
|
title="Italic"
|
|
class="dib dim-lite link h9 w9 nudge-top--1"
|
|
{{action "toggleMarkup" "em"}}
|
|
>
|
|
{{svg-jar "koenig/kg-italic" class=(concat (if (or this.activeMarkupTagNames.isEm this.activeMarkupTagNames.isI) "fill-green-l2" "fill-white") " w4 h4")}}
|
|
</button>
|
|
</li>
|
|
{{#unless this.basicOnly}}
|
|
<li class="ma0 lh-solid">
|
|
<button
|
|
type="button"
|
|
title="Heading One"
|
|
class="dib dim-lite link h9 w9 nudge-top--1"
|
|
{{action "toggleHeaderSection" "h2"}}
|
|
>
|
|
{{svg-jar "koenig/kg-heading-1" class=(concat (if this.activeSectionTagNames.isH2 "fill-green-l2" "fill-white") " w4 h4")}}
|
|
</button>
|
|
</li>
|
|
<li class="ma0 lh-solid">
|
|
<button
|
|
type="button"
|
|
title="Heading Two"
|
|
class="dib dim-lite link h9 w9 nudge-top--1"
|
|
{{action "toggleHeaderSection" "h3"}}
|
|
>
|
|
{{svg-jar "koenig/kg-heading-2" class=(concat (if this.activeSectionTagNames.isH3 "fill-green-l2" "fill-white") " w4 h4")}}
|
|
</button>
|
|
</li>
|
|
{{/unless}}
|
|
|
|
<li class="ma0 ml1 mr1 lh-solid kg-action-bar-divider bg-darkgrey-l2 h5" role="separator"></li>
|
|
|
|
{{#unless this.basicOnly}}
|
|
<li class="ma0 lh-solid">
|
|
<button
|
|
type="button"
|
|
title="Quote"
|
|
class="dib dim-lite link h9 w9 nudge-top--1"
|
|
{{action "toggleSection" "blockquote"}}
|
|
>
|
|
{{svg-jar "koenig/kg-quote" class=(concat (if this.activeSectionTagNames.isBlockquote "fill-green-l2" "fill-white") " w4 h4")}}
|
|
</button>
|
|
</li>
|
|
{{/unless}}
|
|
<li class="ma0 lh-solid">
|
|
<button
|
|
type="button"
|
|
title="Link"
|
|
class="dib dim-lite link h9 w9 nudge-top--1"
|
|
{{action "editLink"}}
|
|
>
|
|
{{svg-jar "koenig/kg-link" class=(concat (if this.activeMarkupTagNames.isA "fill-green-l2" "fill-white") " w4 h4")}}
|
|
</button>
|
|
</li>
|
|
|
|
{{#if @addSnippet}}
|
|
{{#unless this.basicOnly}}
|
|
<li class="ma0 ml1 mr1 lh-solid kg-action-bar-divider bg-darkgrey-l2 h5" role="separator"></li>
|
|
<li class="ma0 lh-solid">
|
|
<button
|
|
type="button"
|
|
title="Create snippet"
|
|
class="dib dim-lite link h9 w9 nudge-top--1"
|
|
{{on "click" @addSnippet}}
|
|
>
|
|
{{svg-jar "koenig/kg-snippet" class="w4 h4"}}
|
|
</button>
|
|
</li>
|
|
{{/unless}}
|
|
{{/if}}
|
|
|
|
</KgActionBar>
|