0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Mobile view menu for content screen

closes #4031
- Adds css to show back button, edit button in header nav on mobile
This commit is contained in:
Fabian Becker 2014-09-15 09:35:15 +00:00
parent c38c0cdfe1
commit 8575e8de59
3 changed files with 63 additions and 4 deletions

View file

@ -235,8 +235,66 @@
width:100%;
height:auto;
}
} // .content-preview
} // .preview-post
.post-preview-header {
.page-title, .btn-back {
display: none;
}
@media (max-width: 900px) {
position: fixed;
left: 0;
right: 0;
top: 0;
z-index: 3000;
height: 44px;
text-align: center;
color: #fff;
background: #242628;
overflow: hidden;
.btn-back {
display: block;
position: absolute;
top: 4px;
left: 4px;
color: #fff;
background-color: transparent;
}
.page-title {
display: block;
}
.post-controls {
position: absolute;
top: 4px;
right: 4px;
}
.post-edit {
color: #fff;
background-color: transparent;
}
.featured, .unfeatured, small {
display: none;
} // @media (max-width: 900px)
}
@media (min-width: 901px) {
.unfeatured, .featured {
float: left;
}
.post-published-by {
float: left;
margin-top: 7px;
margin-left: 3px;
}
}
} // .post-preview-header
.no-posts-box {
position: relative;

View file

@ -1,9 +1,10 @@
<header class="post-preview-header">
<header class="post-preview-header clearfix">
{{#link-to "posts" tagName="button" class="btn btn-default btn-back"}}Back{{/link-to}}
<h2 class="page-title">Preview</h2>
<button type="button" {{bind-attr class="featured:featured:unfeatured"}} title="Feature this post" {{action "toggleFeatured"}}>
<span class="hidden">Star</span>
</button>
<small>
<small class="post-published-by">
<span class="status">{{#if isPublished}}Published{{else}}Written{{/if}}</span>
<span class="normal">by</span>
<span class="author">{{#if author.name}}{{author.name}}{{else}}{{author.email}}{{/if}}</span>

View file

@ -1,4 +1,4 @@
<header>
<header class="settings-view-header">
{{#link-to 'settings' class='btn btn-default'}}Back{{/link-to}}
<h2 class="title">Apps</h2>
</header>