0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Adding global app frame wrappers

This makes the new responsive styles work in a basic way. It'll probably need revisiting to break out the header area into a partial (maybe?)
This commit is contained in:
John O'Nolan 2014-08-05 12:51:39 +03:00
parent b73d60bc2e
commit 2331572978
4 changed files with 107 additions and 75 deletions

View file

@ -1,11 +1,16 @@
<div id="container">
<a class="sr-only sr-only-focusable" href="#gh-main">Skip to main content</a>
{{#unless hideNav}}
{{partial "navbar"}}
{{/unless}}
<main role="main" id="main" {{bind-attr data-notification-count=topNotificationCount}}>
<main id="gh-main" class="viewport" role="main" {{bind-attr data-notification-count=topNotificationCount}}>
{{gh-notifications location="top" notify="topNotificationChange"}}
{{gh-notifications location="bottom"}}
{{outlet}}
</main>
{{outlet modal}}
</div>

View file

@ -1,20 +1,26 @@
<header>
<header class="page-header">
<a class="menu-button" href="#"><span class="sr-only">Menu</span></a>
<h2>Editor</h2>
</header>
<div class="page-content">
<header>
<section class="box entry-title">
{{gh-trim-focus-input type="text" id="entry-title" placeholder="Your Post Title" value=titleScratch tabindex="1" focus=shouldFocusTitle}}
</section>
</header>
</header>
<section class="entry-markdown active">
<header class="floatingheader" id="entry-markdown-header">
<section class="entry-markdown active">
<header class="floatingheader">
<small>Markdown</small>
<a class="markdown-help" href="" {{action "openModal" "markdown"}}><span class="hidden">What is Markdown?</span></a>
</header>
<section id="entry-markdown-content" class="entry-markdown-content">
{{gh-codemirror value=scratch scrollInfo=view.markdownScrollInfo setCodeMirror="setCodeMirror"}}
</section>
</section>
</section>
<section class="entry-preview">
<section class="entry-preview">
<header class="floatingheader" id="entry-preview-header">
<small>Preview <span class="entry-word-count js-entry-word-count">{{gh-count-words scratch}}</span></small>
</header>
@ -22,6 +28,8 @@
{{gh-markdown markdown=scratch scrollPosition=view.scrollPosition
uploadStarted="disableCodeMirror" uploadFinished="enableCodeMirror" uploadSuccess="handleImgUpload"}}
</section>
</section>
</section>
{{partial "publish-bar"}}
{{partial "publish-bar"}}
</div>

View file

@ -1,4 +1,10 @@
<section class="content-list js-content-list">
<header class="page-header">
<a class="menu-button" href="#"><span class="sr-only">Menu</span></a>
<h2>Content</h2>
</header>
<div class="page-content">
<section class="content-list js-content-list">
<header class="floatingheader">
<section class="content-filter">
<small>All Posts</small>
@ -29,7 +35,8 @@
{{/each}}
</ol>
{{/view}}
</section>
<section class="content-preview js-content-preview">
</section>
<section class="content-preview js-content-preview">
{{outlet}}
</section>
</section>
</div>

View file

@ -1,4 +1,10 @@
<aside class="settings-sidebar" role="complementary">
<header class="page-header">
<a class="menu-button" href="#"><span class="sr-only">Menu</span></a>
<h2>Settings</h2>
</header>
<div class="page-content">
<aside class="settings-sidebar" role="complementary">
<header>
<h1 class="title">Settings</h1>
</header>
@ -11,9 +17,15 @@
{{gh-activating-list-item route="settings.users" title="Users" classNames="users"}}
{{#if showApps}}
{{#unless session.user.isEditor}}
{{gh-activating-list-item route="settings.apps" title="Apps" classNames="apps"}}
{{/unless}}
{{/if}}
{{/unless}}
</ul>
</nav>
</aside>
</aside>
{{outlet}}
{{outlet}}
</div>