将博客正文显示在中央

This commit is contained in:
yafeilee 2014-04-03 11:43:10 +08:00
parent 9dc427bfe6
commit 310b82885d
5 changed files with 7 additions and 8 deletions

View File

@ -1,5 +1,6 @@
.middle-text {
text-align: center;
z-index: 999;
a {
color: #F7F7F7;
}

View File

@ -1,7 +1,7 @@
- content_for(:title) do
| #{@type ? @type : '时间线'}
.row ng-controller="ArchivesController"
.small-12.large-8.columns
.small-12.large-9.large-centered.columns
ul.archives-field ng-model="type" ng-init=" type= '#{@type}' "
li ng-repeat=" post in posts "
a.blog-title ng-click="visit(post.id)"

View File

@ -1,5 +1,5 @@
.row ng-controller="CommentsController"
.small-12.large-8.columns
.small-12.large-9.large-centered.columns
form novalidate='' name='form'
.row
.small-12.large-12.columns

View File

@ -4,8 +4,8 @@
- content_for(:title) do
| #{@post.title}
.row
.small-12.large-8.columns
.row.blog-wrapper
.small-12.large-9.large-centered.columns
= render partial: "post", :locals=> { :post=> @post }
.comment-field
= render partial: 'comment', locals: { comments: @comments, post: @post }

View File

@ -19,10 +19,8 @@ html
section.left-small
a.left-off-canvas-toggle.menu-icon href="#"
span
section.middle.tab-bar-section
.row.small-12.large-10.columns
h1.title.middle-text
= link_to ENV['SITE_NAME'], root_path
h1.title.middle-text
= link_to ENV['SITE_NAME'], root_path
aslide.left-off-canvas-menu
ul.off-canvas-list
li