diff options
-rw-r--r-- | sass/base/_layout.scss | 4 | ||||
-rw-r--r-- | sass/parts/_article.scss | 4 | ||||
-rw-r--r-- | sass/parts/_banner.scss | 3 | ||||
-rw-r--r-- | sass/parts/_comment.scss | 3 | ||||
-rw-r--r-- | source/_includes/post/sharing.html | 16 | ||||
-rw-r--r-- | 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 @@ -<div class="addthis_toolbox addthis_default_style "> -<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> -<a class="addthis_button_tweet"></a> -<a class="addthis_button_google_plusone" g:plusone:size="medium"></a> -<a class="addthis_counter addthis_pill_style"></a> -</div> -<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4eb4a0c47196e907"></script>
\ No newline at end of file +<div class="share"> + <div class="addthis_toolbox addthis_default_style "> + <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> + <a class="addthis_button_tweet"></a> + <a class="addthis_button_google_plusone" g:plusone:size="medium"></a> + <a class="addthis_counter addthis_pill_style"></a> + </div> + <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4eb4a0c47196e907"></script> +</div>
\ 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 --- <article class="post">{% include article.html %}</article> +{% include post/sharing.html %} <section id="comment"> <h1 class="title">留言</h1> <div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div> |