From 60eeb5b1e38979edb37988ce8e712fad587d8835 Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Wed, 25 Jan 2012 01:04:50 +0800 Subject: sharing --- sass/base/_layout.scss | 4 ++++ sass/parts/_article.scss | 4 ++++ sass/parts/_banner.scss | 3 +-- sass/parts/_comment.scss | 3 +-- source/_includes/post/sharing.html | 16 +++++++++------- source/_layouts/post.html | 1 + 6 files changed, 20 insertions(+), 11 deletions(-) diff --git a/sass/base/_layout.scss b/sass/base/_layout.scss index 10d0d10..2f9586d 100644 --- a/sass/base/_layout.scss +++ b/sass/base/_layout.scss @@ -11,6 +11,10 @@ $max-width: 1000px; -o-user-select: $select; user-select: $select; } +@mixin border-shadow($top: #fff, $bottom: #ddd){ + border-top: 1px solid #fff; + border-bottom: 1px solid #ddd; +} *{ margin: 0; diff --git a/sass/parts/_article.scss b/sass/parts/_article.scss index 28864d6..0d3de44 100644 --- a/sass/parts/_article.scss +++ b/sass/parts/_article.scss @@ -119,4 +119,8 @@ article{ } } } +} +.share{ + padding: 15px 0; + @include border-shadow(); } \ No newline at end of file diff --git a/sass/parts/_banner.scss b/sass/parts/_banner.scss index 23b3353..a17b9d6 100644 --- a/sass/parts/_banner.scss +++ b/sass/parts/_banner.scss @@ -1,6 +1,5 @@ #banner{ - border-top: 1px solid $light-shadow; - border-bottom: 1px solid $border; color: $font-main; padding: 30px 0; + @include border-shadow(); } \ No newline at end of file diff --git a/sass/parts/_comment.scss b/sass/parts/_comment.scss index f98c014..ead3ebc 100644 --- a/sass/parts/_comment.scss +++ b/sass/parts/_comment.scss @@ -1,7 +1,6 @@ #comment{ padding: 30px 0; - border-top: 1px solid $light-shadow; - border-bottom: 1px solid $border; + @include border-shadow(); h1.title{ font-size: 25px; font-weight: 300; diff --git a/source/_includes/post/sharing.html b/source/_includes/post/sharing.html index 2ff8ca4..d41d1e0 100644 --- a/source/_includes/post/sharing.html +++ b/source/_includes/post/sharing.html @@ -1,7 +1,9 @@ -
- - - - -
- \ No newline at end of file +
+
+ + + + +
+ +
\ No newline at end of file diff --git a/source/_layouts/post.html b/source/_layouts/post.html index fac9a41..096b74d 100644 --- a/source/_layouts/post.html +++ b/source/_layouts/post.html @@ -4,6 +4,7 @@ single: true ---
{% include article.html %}
+{% include post/sharing.html %}

留言

{% include post/disqus_thread.html %}
-- cgit v1.1-2-g2b99