| ... | ... |
@@ -90,7 +90,7 @@ body {
|
| 90 | 90 |
} |
| 91 | 91 |
} |
| 92 | 92 |
.collapse-sidebar & {
|
| 93 |
- margin-right: 10px; |
|
| 93 |
+ margin-right: 20px; |
|
| 94 | 94 |
> aside {
|
| 95 | 95 |
float: none; |
| 96 | 96 |
clear: left; |
| ... | ... |
@@ -114,31 +114,47 @@ body {
|
| 114 | 114 |
} |
| 115 | 115 |
.toggle-sidebar {
|
| 116 | 116 |
outline: none; |
| 117 |
- position: absolute; right: -21px; top: 0; |
|
| 118 |
- width: 20px; |
|
| 119 |
- font-size: 1.2em; |
|
| 120 |
- line-height: 1.1em; |
|
| 121 |
- padding-bottom: .1em; |
|
| 122 |
- text-indent: -1px; |
|
| 123 |
- text-decoration: none; |
|
| 124 |
- @include link-colors(#ccc, #999); |
|
| 125 |
- @include border-bottom-right-radius(.3em); |
|
| 126 |
- text-align: center; |
|
| 127 |
- background: $main-bg; |
|
| 128 |
- border-bottom: 1px solid $sidebar-border; |
|
| 129 |
- border-right: 1px solid $sidebar-border; |
|
| 117 |
+ position: absolute; right: -10px; top: 0; bottom: 0; |
|
| 130 | 118 |
display: inline-block; |
| 119 |
+ text-decoration: none; |
|
| 120 |
+ color: mix($text-color-light, $sidebar-bg); |
|
| 121 |
+ width: 9px; |
|
| 122 |
+ cursor: pointer; |
|
| 123 |
+ &:hover {
|
|
| 124 |
+ background: mix($sidebar-border, $sidebar-bg); |
|
| 125 |
+ @include background(linear-gradient(left, rgba($sidebar-border, .5), rgba($sidebar-border, 0))); |
|
| 126 |
+ } |
|
| 127 |
+ &:after {
|
|
| 128 |
+ position: absolute; right: -11px; top: 0; |
|
| 129 |
+ width: 20px; |
|
| 130 |
+ font-size: 1.2em; |
|
| 131 |
+ line-height: 1.1em; |
|
| 132 |
+ padding-bottom: .15em; |
|
| 133 |
+ @include border-bottom-right-radius(.3em); |
|
| 134 |
+ text-align: center; |
|
| 135 |
+ background: $main-bg $noise-bg; |
|
| 136 |
+ border-bottom: 1px solid $sidebar-border; |
|
| 137 |
+ border-right: 1px solid $sidebar-border; |
|
| 138 |
+ content: "\00BB"; |
|
| 139 |
+ text-indent: -1px; |
|
| 140 |
+ } |
|
| 131 | 141 |
.collapse-sidebar & {
|
| 132 |
- right: -11px; |
|
| 133 |
- width: 24px; |
|
| 134 |
- bottom: 0; |
|
| 135 |
- background-color: $sidebar-bg; |
|
| 136 |
- border-right-width: 0; |
|
| 137 | 142 |
text-indent: 0px; |
| 138 |
- border-left: 1px solid $sidebar-border; |
|
| 139 |
- @include link-colors(#aaa, #888); |
|
| 143 |
+ right: -20px; |
|
| 144 |
+ width: 19px; |
|
| 140 | 145 |
&:hover {
|
| 141 |
- background: $sidebar-border; |
|
| 146 |
+ background: mix($sidebar-border, $sidebar-bg); |
|
| 147 |
+ } |
|
| 148 |
+ &:after {
|
|
| 149 |
+ border-left: 1px solid $sidebar-border; |
|
| 150 |
+ text-shadow: #fff 0 1px; |
|
| 151 |
+ content: "\00AB"; |
|
| 152 |
+ left: 0px; right: 0; |
|
| 153 |
+ text-align: center; |
|
| 154 |
+ text-indent: 0; |
|
| 155 |
+ border: 0; |
|
| 156 |
+ border-right-width: 0; |
|
| 157 |
+ background: none; |
|
| 142 | 158 |
} |
| 143 | 159 |
} |
| 144 | 160 |
} |
| ... | ... |
@@ -41,6 +41,7 @@ $nav-border-right: lighten($nav-bg, 7) !default; |
| 41 | 41 |
$sidebar-bg: #f2f2f2 !default; |
| 42 | 42 |
$sidebar-link-color: $link-color !default; |
| 43 | 43 |
$sidebar-link-color-hover: $link-color-hover !default; |
| 44 |
+$sidebar-link-color-active: $link-color-active !default; |
|
| 44 | 45 |
$sidebar-color: change-color(mix($text-color, $sidebar-bg, 80), $hue: hue($sidebar-bg), $saturation: saturation($sidebar-bg)/2) !default; |
| 45 | 46 |
$sidebar-border: desaturate(darken($sidebar-bg, 7), 10) !default; |
| 46 | 47 |
$sidebar-border: darken($sidebar-bg, 7) !default; |
| ... | ... |
@@ -61,9 +62,12 @@ $page-border-bottom: darken($footer-bg, 5) !default; |
| 61 | 61 |
|
| 62 | 62 |
/* Core theme application */ |
| 63 | 63 |
|
| 64 |
-article a, #articles + aside a {
|
|
| 64 |
+a {
|
|
| 65 | 65 |
@include link-colors($link-color, $hover: $link-color-hover, $focus: $link-color-hover, $visited: $link-color-visited, $active: $link-color-active); |
| 66 | 66 |
} |
| 67 |
+aside[role=sidebar] a {
|
|
| 68 |
+ @include link-colors($sidebar-link-color, $hover: $sidebar-link-color-hover, $focus: $sidebar-link-color-hover, $active: $sidebar-link-color-active); |
|
| 69 |
+} |
|
| 67 | 70 |
a {
|
| 68 | 71 |
@include transition(color, .3s); |
| 69 | 72 |
} |
| ... | ... |
@@ -1,3 +1,6 @@ |
| 1 |
+#archive {
|
|
| 2 |
+ #content > div { &, > article { padding-top: 0; } }
|
|
| 3 |
+} |
|
| 1 | 4 |
#blog-archives {
|
| 2 | 5 |
article {
|
| 3 | 6 |
padding: 1em 0 1em; |
| ... | ... |
@@ -6,12 +9,10 @@ |
| 6 | 6 |
&:last-child {
|
| 7 | 7 |
background: none; |
| 8 | 8 |
} |
| 9 |
+ footer { padding: 0; margin: 0;}
|
|
| 9 | 10 |
} |
| 10 |
- h2 {
|
|
| 11 |
- background: none; |
|
| 12 |
- display: none; |
|
| 13 |
- } |
|
| 14 |
- h1, h2 { color: $text-color; margin-bottom: .3em; }
|
|
| 11 |
+ h1 { color: $text-color; margin-bottom: .3em; }
|
|
| 12 |
+ h2 { display: none; }
|
|
| 15 | 13 |
h1 {
|
| 16 | 14 |
font-size: 1.5em; |
| 17 | 15 |
a {
|
| ... | ... |
@@ -30,7 +31,7 @@ |
| 30 | 30 |
.entry-content { display: none; }
|
| 31 | 31 |
time {
|
| 32 | 32 |
font-size: .9em; |
| 33 |
- line-height: 1em; |
|
| 33 |
+ line-height: 1.2em; |
|
| 34 | 34 |
.month, .day { display: inline-block; }
|
| 35 | 35 |
.month { text-transform: uppercase; }
|
| 36 | 36 |
} |
| ... | ... |
@@ -40,10 +41,11 @@ |
| 40 | 40 |
@media only screen and (min-width: 550px) {
|
| 41 | 41 |
article { margin-left: 5em; }
|
| 42 | 42 |
h2 {
|
| 43 |
- background: none; |
|
| 43 |
+ margin-bottom: .3em; |
|
| 44 |
+ font-weight: normal; |
|
| 44 | 45 |
display: inline-block; |
| 46 |
+ position: relative; top: -1px; |
|
| 45 | 47 |
float: left; |
| 46 |
- padding-top: .75em; |
|
| 47 | 48 |
&:first-child { padding-top: .75em; }
|
| 48 | 49 |
} |
| 49 | 50 |
time {
|
| ... | ... |
@@ -1,21 +1,10 @@ |
| 1 |
-#content {
|
|
| 2 |
- article { ul, ol { margin-left: 1.4em; }}
|
|
| 1 |
+article {
|
|
| 2 |
+ overflow: hidden; |
|
| 3 |
+ padding-top: 1em; |
|
| 4 |
+ ul, ol { margin-left: 1.4em; }
|
|
| 3 | 5 |
@media only screen and (min-width: 768px) {
|
| 4 | 6 |
ul, ol { margin-left: 0; }
|
| 5 | 7 |
} |
| 6 |
- > article, > div > article {
|
|
| 7 |
- overflow: hidden; |
|
| 8 |
- padding-top: 1em; |
|
| 9 |
- h2 {
|
|
| 10 |
- padding-top: 0.8em; |
|
| 11 |
- background: $img-border top left repeat-x; |
|
| 12 |
- .entry-content &:first-child { padding-top: 0; }
|
|
| 13 |
- &:first-child { background: none; }
|
|
| 14 |
- } |
|
| 15 |
- .byline + time:before, time +time:before, .comments:before, .byline ~ .categories:before {
|
|
| 16 |
- @extend .separator; |
|
| 17 |
- } |
|
| 18 |
- } |
|
| 19 | 8 |
header {
|
| 20 | 9 |
position: relative; |
| 21 | 10 |
padding-top: 2em; |
| ... | ... |
@@ -43,6 +32,12 @@ |
| 43 | 43 |
background: $img-border bottom left repeat-x; |
| 44 | 44 |
} |
| 45 | 45 |
} |
| 46 |
+ h2 {
|
|
| 47 |
+ padding-top: 0.8em; |
|
| 48 |
+ background: $img-border top left repeat-x; |
|
| 49 |
+ .entry-content &:first-child { padding-top: 0; }
|
|
| 50 |
+ &:first-child { background: none; }
|
|
| 51 |
+ } |
|
| 46 | 52 |
.feature {
|
| 47 | 53 |
padding-top: .5em; |
| 48 | 54 |
margin-bottom: 1em; |
| ... | ... |
@@ -80,7 +75,7 @@ |
| 80 | 80 |
} |
| 81 | 81 |
} |
| 82 | 82 |
} |
| 83 |
- > div > article > footer {
|
|
| 83 |
+ > footer {
|
|
| 84 | 84 |
padding-bottom: 2.5em; |
| 85 | 85 |
margin-top: 2em; |
| 86 | 86 |
@extend .sans; |
| ... | ... |
@@ -88,6 +83,9 @@ |
| 88 | 88 |
margin-bottom: .8em; |
| 89 | 89 |
font-size: .85em; |
| 90 | 90 |
} |
| 91 |
+ .byline + time:before, time +time:before, .comments:before, .byline ~ .categories:before {
|
|
| 92 |
+ @extend .separator; |
|
| 93 |
+ } |
|
| 91 | 94 |
} |
| 92 | 95 |
|
| 93 | 96 |
} |
| ... | ... |
@@ -129,7 +127,7 @@ article + article {
|
| 129 | 129 |
display: inline-block; |
| 130 | 130 |
} |
| 131 | 131 |
|
| 132 |
-nav[role=pagination] {
|
|
| 132 |
+#content nav[role=pagination] {
|
|
| 133 | 133 |
text-align: center; |
| 134 | 134 |
font-size: .95em; |
| 135 | 135 |
div {
|
| ... | ... |
@@ -13,7 +13,7 @@ body > footer {
|
| 13 | 13 |
@include border-bottom-radius(.4em); |
| 14 | 14 |
z-index: 1; |
| 15 | 15 |
a {
|
| 16 |
- @include link-colors($footer-link-color, $footer-link-color-hover); |
|
| 16 |
+ @include link-colors($footer-link-color, $footer-link-color-hover, $visited: $footer-link-color); |
|
| 17 | 17 |
} |
| 18 | 18 |
p:last-child { margin-bottom: 0; }
|
| 19 | 19 |
} |
| ... | ... |
@@ -167,6 +167,12 @@ p code {
|
| 167 | 167 |
overflow-y: hidden; |
| 168 | 168 |
overflow-x: auto; |
| 169 | 169 |
} |
| 170 |
+pre, .highlight, .gist-highlight {
|
|
| 171 |
+ &::-webkit-scrollbar { height: .5em; background: rgba(#fff, .15); }
|
|
| 172 |
+ //&::-webkit-scrollbar-track { -webkit-box-shadow: $base03 1px 1px 0 inset; }
|
|
| 173 |
+ &::-webkit-scrollbar-thumb:horizontal { background: rgba(#fff, .2); -webkit-border-radius: 4px; border-radius: 4px }
|
|
| 174 |
+} |
|
| 175 |
+ |
|
| 170 | 176 |
.highlight code { @extend .pre-code; background: #000;}
|
| 171 | 177 |
figure {
|
| 172 | 178 |
margin-bottom: 1.5em; |
| ... | ... |
@@ -1,10 +1,15 @@ |
| 1 | 1 |
--- |
| 2 |
-layout: post |
|
| 3 |
-no_meta: true |
|
| 2 |
+layout: page |
|
| 3 |
+no_footer: true |
|
| 4 | 4 |
--- |
| 5 | 5 |
|
| 6 |
-<div class="blog-archives category"> |
|
| 6 |
+<div id="blog-archives" class="category"> |
|
| 7 | 7 |
{% for post in site.categories[page.category] %}
|
| 8 |
+{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
|
| 9 |
+{% unless year == this_year %}
|
|
| 10 |
+ {% assign year = this_year %}
|
|
| 11 |
+ <h2>{{ year }}</h2>
|
|
| 12 |
+{% endunless %}
|
|
| 8 | 13 |
<article> |
| 9 | 14 |
{% include archive_post.html %}
|
| 10 | 15 |
</article> |
| ... | ... |
@@ -9,15 +9,13 @@ function getNav(){
|
| 9 | 9 |
}); |
| 10 | 10 |
} |
| 11 | 11 |
function addSidebarToggler() {
|
| 12 |
- $('#content').append('<a href="#" class="toggle-sidebar">»</a>');
|
|
| 12 |
+ $('#content').append('<span class="toggle-sidebar"></span>');
|
|
| 13 | 13 |
$('.toggle-sidebar').bind('click', function(e){
|
| 14 | 14 |
e.preventDefault(); |
| 15 | 15 |
if($('body').hasClass('collapse-sidebar')){
|
| 16 | 16 |
$('body').removeClass('collapse-sidebar');
|
| 17 |
- e.target.innerHTML = '»'; |
|
| 18 | 17 |
} else {
|
| 19 | 18 |
$('body').addClass('collapse-sidebar');
|
| 20 |
- e.target.innerHTML = '«'; |
|
| 21 | 19 |
} |
| 22 | 20 |
}); |
| 23 | 21 |
sections = $('aside[role=sidebar] > section')
|