Ghost/ghost/admin/app/templates/application.hbs

72 lines
2.0 KiB
Handlebars
Raw Normal View History

<GhApp>
<GhSkipLink @anchor=".gh-main">Skip to main content</GhSkipLink>
2015-05-20 18:37:06 +03:00
{{#if this.upgradeStatus.refreshRequired}}
<div class="gh-update-banner">
{{!-- template-lint-disable no-invalid-link-text --}}
<span>Ghost has been updated! To get access to the latest features, refresh or <a href="javascript:window.location.reload(true)">click here</a>.</span>
</div>
{{/if}}
<GhAlerts />
2015-05-20 18:37:06 +03:00
<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}}
<GhExploreModal />
</main>
2015-05-20 18:37:06 +03:00
<GhNotifications />
<GhContentCover />
2015-05-21 20:03:24 +03:00
{{#if this.session.user}}
{{#unless this.session.user.isContributor}}
<GhMobileNavBar />
{{/unless}}
{{/if}}
</div>
2021-03-04 12:12:25 +03:00
{{#if this.settings.accentColor}}
<style>
:root {
--accent-color: {{this.settings.accentColor}};
--adjusted-accent-color: {{this.ui.adjustedAccentColor}};
--kg-accent-color: {{this.settings.accentColor}};
}
.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 {
2021-11-17 13:46:57 +03:00
background-color: {{hex-adjust this.ui.adjustedAccentColor l=-15}};
color: #fff;
}
2021-03-04 12:12:25 +03:00
</style>
{{/if}}
</GhApp>
<div id="unsplash-selector-wormhole"></div>
<EpmModalContainer />
<EmberLoadRemover />