Ghost/ghost/admin/app/templates/application.hbs
Kevin Ansfield 018a4ec5e9 Migrated <GhUnsplash> to glimmer component
refs https://github.com/TryGhost/Ghost/issues/14101

- swapped use of `<LiquidWormhole>` to `{{#in-element}}` because we weren't animating anything
  - we can now use `{{css-transition}}` instead if we want to animate in the future
- swapped use of `ShortcutsMixin` for ember-keyboard's `{{on-key}}` modifier
- added `{{query-selector}}` helper so we can grab an element from inside the template rather than requiring a backing component function (used to pass the wormhole element to `{{#in-element}}`)
- added `{{on-resize}}` modifier so the `resizeDetector` service can be used directly from the template rather than requiring a backing component to wait for render and use query selectors to grab an element
2022-02-07 16:53:12 +00:00

59 lines
1.5 KiB
Handlebars

<GhApp>
<GhSkipLink @anchor=".gh-main">Skip to main content</GhSkipLink>
<GhAlerts />
<div class="gh-viewport {{if this.ui.showMobileMenu 'mobile-menu-expanded'}}">
{{#if this.showNavMenu}}
<GhNavMenu />
{{/if}}
<main class="gh-main {{this.ui.mainClass}}">
{{outlet}}
{{#if this.showBilling}}
<GhBillingModal @billingWindowOpen={{this.billing.billingWindowOpen}} />
{{/if}}
</main>
<GhNotifications />
<GhContentCover />
{{#unless this.session.user.isContributor}}
<GhMobileNavBar />
{{/unless}}
</div>
{{#if this.settings.accentColor}}
<style>
:root {
--accent-color: {{this.settings.accentColor}};
--adjusted-accent-color: {{this.ui.adjustedAccentColor}};
}
.koenig-editor__editor a:not([class]) {
color: var(--adjusted-accent-color);
}
.koenig-editor__editor blockquote {
border-left: 0.25rem solid var(--adjusted-accent-color);
}
.gh-btn-accent {
background-color: var(--adjusted-accent-color);
color: #fff;
}
.gh-btn-accent:hover {
background-color: {{hex-adjust this.ui.adjustedAccentColor l=-15}};
color: #fff;
}
</style>
{{/if}}
</GhApp>
<div id="unsplash-selector-wormhole"></div>
<EpmModalContainer />
<EmberLoadRemover />