From dd6aaf7afcb45c3dea6b4be855930796bc7c2884 Mon Sep 17 00:00:00 2001 From: yafeilee Date: Tue, 31 Mar 2015 16:40:50 +0800 Subject: [PATCH] blog ptag move to left for good reading experience --- app/assets/stylesheets/blogs.scss | 8 ++++---- app/views/blogs/_post_head.html.slim | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/blogs.scss b/app/assets/stylesheets/blogs.scss index cd0763a..3ab02e9 100644 --- a/app/assets/stylesheets/blogs.scss +++ b/app/assets/stylesheets/blogs.scss @@ -4,14 +4,14 @@ } .ptag { - @media only screen and (min-width: 40.063em) { - text-align: right; - } margin-bottom: 0.5rem; - color: #666; + color: #888; font-size: 95%; span { margin-left: 0.5rem; + &:first-child { + margin-left: 0; + } } .has-tip { border: none; diff --git a/app/views/blogs/_post_head.html.slim b/app/views/blogs/_post_head.html.slim index 9c89ba6..c4dcd75 100644 --- a/app/views/blogs/_post_head.html.slim +++ b/app/views/blogs/_post_head.html.slim @@ -1,10 +1,9 @@ / require: locals: { post : post } h2.blog-title #{post.title} p.ptag - span.has-tip data-options="disable_for_touch:false" data-tooltip="" title="分类" + span i.fi-list-thumbnails span #{post.type} -p.ptag - span.has-tip data-options="disable_for_touch:false" data-tooltip="" title="标签" + span i.fi-pricetag-multiple span #{post.labels_content}