upgrade slash theme

This commit is contained in:
Jörg Thalheim 2013-09-07 00:15:18 +02:00
parent 3018bc637c
commit d187d55a7e
24 changed files with 69 additions and 39 deletions

View File

@ -42,27 +42,30 @@
margin-bottom: 0; margin-bottom: 0;
} }
.meta{ .meta{
color: $color-gray02;
font-size: 0.9em;
line-height: 2; line-height: 2;
font-size: 0.9em;
color: $color-gray02;
margin-top: 15px; margin-top: 15px;
@media screen and (max-width: 600px){ @media screen and (max-width: 600px){
display: none; display: none;
} }
span{ a{
margin-right: 30px; @include link-colors($color-gray02, $color-gray01);
@include inline-block; @include transition(0.3s);
}
.date, .tags, .comments{
padding-left: 30px;
position: relative;
&:before{ &:before{
color: $color-gray03; color: $color-gray03;
font: 1.3em $font-icon; font: 1.3em $font-icon;
padding-right: 10px; line-height: 1.6em;
position: absolute;
left: 0;
} }
} @media screen and (max-width: 600px){
a{ @include inline-block;
color: $color-gray02; margin-right: 30px;
@include transition(0.3s);
&:hover{
color: $color-gray01;
} }
} }
.date:before{content: "\f073";} .date:before{content: "\f073";}
@ -70,4 +73,4 @@
.comments:before{content: "\f075";} .comments:before{content: "\f075";}
} }
} }
} }

View File

@ -375,7 +375,7 @@ $header-height: 30px;
&:hover{ &:hover{
border: 1px solid darken(rgb(190,64,55), 10%); border: 1px solid darken(rgb(190,64,55), 10%);
} }
} }
&.delicious{ &.delicious{
background: image-url('social/delicious.png') center no-repeat rgb(50,113,203); background: image-url('social/delicious.png') center no-repeat rgb(50,113,203);
border: 1px solid rgb(50,113,203); border: 1px solid rgb(50,113,203);
@ -384,10 +384,17 @@ $header-height: 30px;
} }
} }
&.rss{ &.rss{
background: image-url('social/rss.png') center no-repeat #EF7522; background: image-url('social/rss.png') center no-repeat #ef7522;
border: 1px solid #EF7522; border: 1px solid #ef7522;
&:hover{ &:hover{
border: 1px solid darken(#EF7522, 10%); border: 1px solid darken(#ef7522, 10%);
}
}
&.instagram{
background: image-url('social/instagram.png') center no-repeat rgb(64,110,149);
border: 1px solid rgb(64,110,149);
&:hover{
border: 1px solid darken(rgb(64,110,149), 10%);
} }
} }
} }

View File

@ -139,8 +139,9 @@ figure.code{
background: none; background: none;
border: none; border: none;
pre{ pre{
font: 0.9em $font-mono; font: $font-mono;
line-height: 1.5; line-height: inherit;
text-align: left;
} }
} }
.gist-meta{ .gist-meta{

View File

@ -6,6 +6,9 @@
</section> </section>
{% endunless %} {% endunless %}
<section class="archives"><h1 class="year">{{ date | date: "%Y" }}</h1> <section class="archives"><h1 class="year">{{ date | date: "%Y" }}</h1>
{% if forloop.last %}
</section>
{% endif %}
{% endunless %} {% endunless %}
<article> <article>
<h2 class="title"><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h2> <h2 class="title"><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h2>
@ -16,4 +19,4 @@
<div class="comments"><a href="{{ root_url }}{{ post.url }}#disqus_thread">Comments</a></div> <div class="comments"><a href="{{ root_url }}{{ post.url }}#disqus_thread">Comments</a></div>
{% endif %} {% endif %}
</div> </div>
</article> </article>

View File

@ -21,6 +21,6 @@
<div class="date">{% include post/date.html %}{{ time }}</div> <div class="date">{% include post/date.html %}{{ time }}</div>
<div class="tags">{% include post/categories.html %}</div> <div class="tags">{% include post/categories.html %}</div>
{% if site.disqus_short_name and site.disqus_show_comment_count == true %} {% if site.disqus_short_name and site.disqus_show_comment_count == true %}
<div class="comments"><a href="{{ root_url }}{{ post.url }}{{ page.url }}#disqus_thread">Comments</a></div> <div class="comments"><a href="{{ root_url }}{% if index %}{{ post.url }}{% endif %}#disqus_thread">Comments</a></div>
{% endif %} {% endif %}
</div> </div>

View File

@ -14,7 +14,7 @@
{% endif %} {% endif %}
(function () { (function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script; dsq.src = '//go.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}()); }());
</script> </script>

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title> <title>{% if page.title %}{{ page.title | strip_html }} - {% endif %}{{ site.title }}</title>
<meta name="author" content="{{ site.author }}"> <meta name="author" content="{{ site.author }}">
{% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %} {% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}
@ -15,6 +15,6 @@
<link href="{{ root_url }}/favicon.png" rel="shortcut icon"> <link href="{{ root_url }}/favicon.png" rel="shortcut icon">
<link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css"> <link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script async="true" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
{% include custom/head.html %} {% include custom/head.html %}
</head> </head>

View File

@ -47,6 +47,9 @@
{% if site.subscribe_rss %} {% if site.subscribe_rss %}
<a class="rss" href="{{ site.subscribe_rss }}" title="RSS">RSS</a> <a class="rss" href="{{ site.subscribe_rss }}" title="RSS">RSS</a>
{% endif %} {% endif %}
{% if site.instagram_user %}
<a class="instagram" href="http://instagram.com/{{ site.instagram_user }}" title="Instagram">Instagram</a>
{% endif %}
</div> </div>
<form class="search" action="{{ site.simple_search }}" method="get"> <form class="search" action="{{ site.simple_search }}" method="get">
<input class="alignright" type="text" name="q" results="0"> <input class="alignright" type="text" name="q" results="0">

View File

@ -1,17 +1,22 @@
<div class="share"> <div class="share">
{% if site.flattr_user %} {% if site.flattr_user %}
{% include post/flattr_button.html %} {% include post/flattr_button.html %}
{% endif %} {% endif %}
<div class="addthis_toolbox addthis_default_style "> <div class="addthis_toolbox addthis_default_style ">
{% if site.facebook_like %} {% if site.facebook_like %}
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
{% endif %} {% endif %}
{% if site.twitter_tweet_button %} {% if site.twitter_tweet_button %}
<a class="addthis_button_tweet"></a> <a class="addthis_button_tweet"></a>
{% endif %} {% endif %}
{% if site.google_plus_one %} {% if site.google_plus_one %}
<a class="addthis_button_google_plusone" g:plusone:size="{{ site.google_plus_one_size }}"></a> <a class="addthis_button_google_plusone" g:plusone:size="{{ site.google_plus_one_size }}"></a>
{% endif %} {% endif %}
{% if site.addthis_button %}
<a class="addthis_counter addthis_pill_style"></a>
{% endif %}
</div> </div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid={{ site.addthis_profile_id }}"></script> {% if site.addthis_button %}
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid={{ site.addthis_profile_id }}"></script>
{% endif %}
</div> </div>

View File

@ -0,0 +1,8 @@
---
layout: default
title: Blog Archives
---
{% for post in site.posts reverse %}
{% include archive_post.html %}
{% endfor %}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 881 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 365 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 445 B

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 554 B