0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-04 02:01:58 -05:00

Updated old Spirit class to stop overriding of Tailwind in editor (#17874)

No ref
This commit is contained in:
Sanne de Vries 2023-08-30 16:41:49 +02:00 committed by GitHub
parent feb55ccc00
commit c3a7e43286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 32 additions and 32 deletions

View file

@ -21,7 +21,7 @@
<div class="gh-branding-image-container largeimg justify-start"> <div class="gh-branding-image-container largeimg justify-start">
<img class="blog-cover" src={{@setting.value}} {{on "click" uploader.triggerFileDialog}}> <img class="blog-cover" src={{@setting.value}} {{on "click" uploader.triggerFileDialog}}>
<button type="button" class="gh-setting-action-largeimg-delete" {{on "click" (fn this.updateValue null)}} data-test-delete-image="icon"> <button type="button" class="gh-setting-action-largeimg-delete" {{on "click" (fn this.updateValue null)}} data-test-delete-image="icon">
{{svg-jar "trash" class="w4 h4 fill-white"}} {{svg-jar "trash" class="w4 h4 fill-white-no-conflict"}}
</button> </button>
</div> </div>
{{else}} {{else}}

View file

@ -43,8 +43,8 @@
.fill-red g { fill: var(--red); } .fill-red g { fill: var(--red); }
.fill-pink path, .fill-pink path,
.fill-pink g { fill: var(--pink); } .fill-pink g { fill: var(--pink); }
.fill-white path, .fill-white-no-conflict path,
.fill-white g { fill: var(--white); } .fill-white-no-conflict g { fill: var(--white); }
.fill-white-10 path, .fill-white-10 path,
.fill-white-10 g { fill: var(--white-10); } .fill-white-10 g { fill: var(--white-10); }
@ -239,8 +239,8 @@
.fill-color-inherit path, .fill-color-inherit path,
.fill-color-inherit g { fill: inherit; } .fill-color-inherit g { fill: inherit; }
.fill-white path, .fill-white-no-conflict path,
.fill-white g { fill: var(--white) } .fill-white-no-conflict g { fill: var(--white) }
.stroke-blue path, .stroke-blue path,

View file

@ -70,7 +70,7 @@ export default class KoenigCardAudioComponent extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: bind(this, this.args.editCard) action: bind(this, this.args.editCard)

View file

@ -44,7 +44,7 @@ export default class KoenigCardButtonComponent extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: run.bind(this, this.args.editCard) action: run.bind(this, this.args.editCard)

View file

@ -52,7 +52,7 @@ export default class KoenigCardCalloutComponent extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: run.bind(this, this.args.editCard) action: run.bind(this, this.args.editCard)

View file

@ -37,7 +37,7 @@ export default class KoenigCardCode extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: this.args.editCard action: this.args.editCard

View file

@ -67,7 +67,7 @@ export default class KoenigCardEmailCtaComponent extends Component {
items.push({ items.push({
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: run.bind(this, this.args.editCard) action: run.bind(this, this.args.editCard)

View file

@ -44,7 +44,7 @@ export default class KoenigCardEmail extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: run.bind(this, this.editCard) action: run.bind(this, this.editCard)

View file

@ -55,7 +55,7 @@ export default class KoenigCardFileComponent extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: bind(this, this.args.editCard) action: bind(this, this.args.editCard)

View file

@ -66,7 +66,7 @@ export default class KoenigCardGallery extends Component {
items: [{ items: [{
title: 'Add images', title: 'Add images',
icon: 'koenig/kg-add', icon: 'koenig/kg-add',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
action: this.triggerFileDialog action: this.triggerFileDialog
}] }]
}; };

View file

@ -46,7 +46,7 @@ export default class KoenigCardHeaderComponent extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: run.bind(this, this.args.editCard) action: run.bind(this, this.args.editCard)

View file

@ -46,7 +46,7 @@ export default class KoenigCardHtml extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: run.bind(this, this.editCard) action: run.bind(this, this.editCard)

View file

@ -131,36 +131,36 @@ export default class KoenigCardImage extends Component {
toolbarItems = [{ toolbarItems = [{
title: 'Link', title: 'Link',
icon: 'koenig/kg-link', icon: 'koenig/kg-link',
iconClass: this.payload.href ? 'fill-green-l2' : 'fill-white', iconClass: this.payload.href ? 'fill-green-l2' : 'fill-white-no-conflict',
action: run.bind(this, this._editLink) action: run.bind(this, this._editLink)
}]; }];
} else { } else {
toolbarItems = [{ toolbarItems = [{
title: 'Regular', title: 'Regular',
icon: 'koenig/kg-img-regular', icon: 'koenig/kg-img-regular',
iconClass: !cardWidth ? 'fill-green-l2' : 'fill-white', iconClass: !cardWidth ? 'fill-green-l2' : 'fill-white-no-conflict',
action: run.bind(this, this._changeCardWidth, '') action: run.bind(this, this._changeCardWidth, '')
}, { }, {
title: 'Wide', title: 'Wide',
icon: 'koenig/kg-img-wide', icon: 'koenig/kg-img-wide',
iconClass: cardWidth === 'wide' ? 'fill-green-l2' : 'fill-white', iconClass: cardWidth === 'wide' ? 'fill-green-l2' : 'fill-white-no-conflict',
action: run.bind(this, this._changeCardWidth, 'wide') action: run.bind(this, this._changeCardWidth, 'wide')
}, { }, {
title: 'Full', title: 'Full',
icon: 'koenig/kg-img-full', icon: 'koenig/kg-img-full',
iconClass: cardWidth === 'full' ? 'fill-green-l2' : 'fill-white', iconClass: cardWidth === 'full' ? 'fill-green-l2' : 'fill-white-no-conflict',
action: run.bind(this, this._changeCardWidth, 'full') action: run.bind(this, this._changeCardWidth, 'full')
}, { }, {
divider: true divider: true
}, { }, {
title: 'Link', title: 'Link',
icon: 'koenig/kg-link', icon: 'koenig/kg-link',
iconClass: this.payload.href ? 'fill-green-l2' : 'fill-white', iconClass: this.payload.href ? 'fill-green-l2' : 'fill-white-no-conflict',
action: run.bind(this, this._editLink) action: run.bind(this, this._editLink)
}, { }, {
title: 'Replace image', title: 'Replace image',
icon: 'koenig/kg-replace', icon: 'koenig/kg-replace',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
action: this.triggerFileDialog action: this.triggerFileDialog
}]; }];
} }

View file

@ -59,7 +59,7 @@ export default class KoenigCardMarkdown extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: run.bind(this, this.editCard) action: run.bind(this, this.editCard)

View file

@ -55,7 +55,7 @@ export default class KoenigCardProductComponent extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: run.bind(this, this.args.editCard) action: run.bind(this, this.args.editCard)

View file

@ -33,7 +33,7 @@ export default class KoenigCardToggleComponent extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: run.bind(this, this.args.editCard) action: run.bind(this, this.args.editCard)

View file

@ -80,7 +80,7 @@ export default class KoenigCardVideoComponent extends Component {
items: [{ items: [{
buttonClass: 'fw4 flex items-center white', buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit', icon: 'koenig/kg-edit',
iconClass: 'fill-white', iconClass: 'fill-white-no-conflict',
title: 'Edit', title: 'Edit',
text: '', text: '',
action: bind(this, this.args.editCard) action: bind(this, this.args.editCard)

View file

@ -11,7 +11,7 @@
{{action "edit"}} {{action "edit"}}
> >
{{!-- TODO: get correct icon --}} {{!-- TODO: get correct icon --}}
{{svg-jar "koenig/kg-edit" class="fill-white w4 h4 nudge-top--1"}} {{svg-jar "koenig/kg-edit" class="fill-white-no-conflict w4 h4 nudge-top--1"}}
</button> </button>
</li> </li>
<li class="ma0"> <li class="ma0">
@ -22,7 +22,7 @@
{{action "remove"}} {{action "remove"}}
> >
{{!-- TODO: get correct icon --}} {{!-- TODO: get correct icon --}}
{{svg-jar "koenig/kg-trash" class="fill-white w4 h4 nudge-top--1"}} {{svg-jar "koenig/kg-trash" class="fill-white-no-conflict w4 h4 nudge-top--1"}}
</button> </button>
</li> </li>
</ul> </ul>

View file

@ -6,7 +6,7 @@
class="dib dim-lite link h9 w9 nudge-top--1" class="dib dim-lite link h9 w9 nudge-top--1"
{{on "click" (fn this._toggleMarkup "strong")}} {{on "click" (fn this._toggleMarkup "strong")}}
> >
{{svg-jar "koenig/kg-bold" class=(concat (if this.activeMarkupTagNames.isStrong "fill-green-l2" "fill-white") " w4 h4")}} {{svg-jar "koenig/kg-bold" class=(concat (if this.activeMarkupTagNames.isStrong "fill-green-l2" "fill-white-no-conflict") " w4 h4")}}
</button> </button>
</li> </li>
<li class="ma0 lh-solid"> <li class="ma0 lh-solid">
@ -16,7 +16,7 @@
class="dib dim-lite link h9 w9 nudge-top--1" class="dib dim-lite link h9 w9 nudge-top--1"
{{on "click" (fn this._toggleMarkup "em")}} {{on "click" (fn this._toggleMarkup "em")}}
> >
{{svg-jar "koenig/kg-italic" class=(concat (if (or this.activeMarkupTagNames.isEm this.activeMarkupTagNames.isI) "fill-green-l2" "fill-white") " w4 h4")}} {{svg-jar "koenig/kg-italic" class=(concat (if (or this.activeMarkupTagNames.isEm this.activeMarkupTagNames.isI) "fill-green-l2" "fill-white-no-conflict") " w4 h4")}}
</button> </button>
</li> </li>
{{#unless this.basicOnly}} {{#unless this.basicOnly}}
@ -27,7 +27,7 @@
class="dib dim-lite link h9 w9 nudge-top--1" class="dib dim-lite link h9 w9 nudge-top--1"
{{on "click" (fn this._toggleHeaderSection "h2")}} {{on "click" (fn this._toggleHeaderSection "h2")}}
> >
{{svg-jar "koenig/kg-heading-1" class=(concat (if this.activeSectionTagNames.isH2 "fill-green-l2" "fill-white") " w4 h4")}} {{svg-jar "koenig/kg-heading-1" class=(concat (if this.activeSectionTagNames.isH2 "fill-green-l2" "fill-white-no-conflict") " w4 h4")}}
</button> </button>
</li> </li>
<li class="ma0 lh-solid"> <li class="ma0 lh-solid">
@ -38,7 +38,7 @@
{{on "click" (fn this._toggleHeaderSection "h3")}} {{on "click" (fn this._toggleHeaderSection "h3")}}
data-test-button="toolbar-h3" data-test-button="toolbar-h3"
> >
{{svg-jar "koenig/kg-heading-2" class=(concat (if this.activeSectionTagNames.isH3 "fill-green-l2" "fill-white") " w4 h4")}} {{svg-jar "koenig/kg-heading-2" class=(concat (if this.activeSectionTagNames.isH3 "fill-green-l2" "fill-white-no-conflict") " w4 h4")}}
</button> </button>
</li> </li>
{{/unless}} {{/unless}}
@ -70,7 +70,7 @@
class="dib dim-lite link h9 w9 nudge-top--1" class="dib dim-lite link h9 w9 nudge-top--1"
{{on "click" this._editLink}} {{on "click" this._editLink}}
> >
{{svg-jar "koenig/kg-link" class=(concat (if this.activeMarkupTagNames.isA "fill-green-l2" "fill-white") " w4 h4")}} {{svg-jar "koenig/kg-link" class=(concat (if this.activeMarkupTagNames.isA "fill-green-l2" "fill-white-no-conflict") " w4 h4")}}
</button> </button>
</li> </li>