将博客正文显示在中央

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 { .middle-text {
text-align: center; text-align: center;
z-index: 999;
a { a {
color: #F7F7F7; color: #F7F7F7;
} }

View File

@ -1,7 +1,7 @@
- content_for(:title) do - content_for(:title) do
| #{@type ? @type : '时间线'} | #{@type ? @type : '时间线'}
.row ng-controller="ArchivesController" .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}' " ul.archives-field ng-model="type" ng-init=" type= '#{@type}' "
li ng-repeat=" post in posts " li ng-repeat=" post in posts "
a.blog-title ng-click="visit(post.id)" a.blog-title ng-click="visit(post.id)"

View File

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

View File

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

View File

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