Skip to content

Commit 3e5df3c

Browse files
committed
First swing at octopress
1 parent 3be9230 commit 3e5df3c

File tree

273 files changed

+11816
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+11816
-0
lines changed

_octopress/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.bundle
2+
.DS_Store
3+
.sass-cache
4+
.gist-cache
5+
.pygments-cache
6+
_deploy
7+
public
8+
sass.old
9+
source.old
10+
source/_stash
11+
source/stylesheets/screen.css
12+
vendor
13+
node_modules

_octopress/.rbenv-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.9.2-p290

_octopress/.rvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rvm use 1.9.2

_octopress/.slugignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
plugins
2+
sass
3+
source
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@import "base/utilities";
2+
@import "base/solarized";
3+
@import "base/theme";
4+
@import "base/typography";
5+
@import "base/layout";
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@import "partials/header";
2+
@import "partials/navigation";
3+
@import "partials/blog";
4+
@import "partials/sharing";
5+
@import "partials/syntax";
6+
@import "partials/archive";
7+
@import "partials/sidebar";
8+
@import "partials/footer";
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
$max-width: 1200px !default;
2+
3+
// Padding used for layout margins
4+
$pad-min: 18px !default;
5+
$pad-narrow: 25px !default;
6+
$pad-medium: 35px !default;
7+
$pad-wide: 55px !default;
8+
9+
// Sidebar widths used in media queries
10+
$sidebar-width-medium: 240px !default;
11+
$sidebar-pad-medium: 15px !default;
12+
$sidebar-pad-wide: 20px !default;
13+
$sidebar-width-wide: 300px !default;
14+
15+
$indented-lists: false !default;
16+
17+
$header-font-size: 1em !default;
18+
$header-padding-top: 1.5em !default;
19+
$header-padding-bottom: 1.5em !default;
20+
21+
.group { @include pie-clearfix; }
22+
23+
@mixin collapse-sidebar {
24+
float: none;
25+
width: auto;
26+
clear: left;
27+
margin: 0;
28+
padding: 0 $pad-medium 1px;
29+
background-color: lighten($sidebar-bg, 2);
30+
border-top: 1px solid lighten($sidebar-border, 4);
31+
section {
32+
&.odd, &.even { float: left; width: 48%; }
33+
&.odd { margin-left: 0; }
34+
&.even { margin-left: 4%; }
35+
}
36+
&.thirds section {
37+
width: 30%;
38+
margin-left: 5%;
39+
&.first {
40+
margin-left: 0;
41+
clear: both;
42+
}
43+
}
44+
}
45+
46+
body {
47+
-webkit-text-size-adjust: none;
48+
max-width: $max-width;
49+
position: relative;
50+
margin: 0 auto;
51+
> header, > nav, > footer, #content > article, #content > div > article, #content > div > section {
52+
@extend .group;
53+
padding-left: $pad-min;
54+
padding-right: $pad-min;
55+
@media only screen and (min-width: 480px) {
56+
padding-left: $pad-narrow;
57+
padding-right: $pad-narrow;
58+
}
59+
@media only screen and (min-width: 768px) {
60+
padding-left: $pad-medium;
61+
padding-right: $pad-medium;
62+
}
63+
@media only screen and (min-width: 992px) {
64+
padding-left: $pad-wide;
65+
padding-right: $pad-wide;
66+
}
67+
}
68+
div.pagination {
69+
@extend .group;
70+
margin-left: $pad-min;
71+
margin-right: $pad-min;
72+
@media only screen and (min-width: 480px) {
73+
margin-left: $pad-narrow;
74+
margin-right: $pad-narrow;
75+
}
76+
@media only screen and (min-width: 768px) {
77+
margin-left: $pad-medium;
78+
margin-right: $pad-medium;
79+
}
80+
@media only screen and (min-width: 992px) {
81+
margin-left: $pad-wide;
82+
margin-right: $pad-wide;
83+
}
84+
}
85+
> header {
86+
font-size: $header-font-size;
87+
padding-top: $header-padding-top;
88+
padding-bottom: $header-padding-bottom;
89+
}
90+
}
91+
92+
#content {
93+
overflow: hidden;
94+
> div, > article { width: 100%; }
95+
}
96+
97+
aside.sidebar {
98+
float: none;
99+
padding: 0 $pad-min 1px;
100+
background-color: lighten($sidebar-bg, 2);
101+
border-top: 1px solid $sidebar-border;
102+
@extend .group;
103+
}
104+
105+
.flex-content { max-width: 100%; height: auto; }
106+
107+
.basic-alignment {
108+
&.left { float: left; margin-right: 1.5em; }
109+
&.right { float: right; margin-left: 1.5em; }
110+
&.center { display:block; margin: 0 auto 1.5em; }
111+
&.left, &.right { margin-bottom: .8em; }
112+
}
113+
114+
.toggle-sidebar { &, .no-sidebar & { display: none; }}
115+
116+
body.sidebar-footer {
117+
@media only screen and (min-width: 750px) {
118+
aside.sidebar{ @include collapse-sidebar; }
119+
}
120+
#content { margin-right: 0px; }
121+
.toggle-sidebar { display: none; }
122+
}
123+
124+
@media only screen and (min-width: 550px) {
125+
body > header { font-size: $header-font-size; }
126+
}
127+
@media only screen and (min-width: 750px) {
128+
aside.sidebar { @include collapse-sidebar; }
129+
}
130+
@media only screen and (min-width: 768px) {
131+
body { -webkit-text-size-adjust: auto; }
132+
body > header { font-size: $header-font-size * 1.2; }
133+
#main {
134+
@extend .group;
135+
padding: 0;
136+
margin: 0 auto;
137+
}
138+
#content {
139+
@extend .group;
140+
overflow: visible;
141+
margin-right: $sidebar-width-medium;
142+
position: relative;
143+
.no-sidebar & { margin-right: 0; border-right: 0; }
144+
.collapse-sidebar & { margin-right: 20px; }
145+
> div, > article {
146+
padding-top: $pad-medium/2;
147+
padding-bottom: $pad-medium/2;
148+
float: left;
149+
}
150+
}
151+
aside.sidebar {
152+
@extend .group;
153+
width: $sidebar-width-medium - $sidebar-pad-medium*2;
154+
padding: 0 $sidebar-pad-medium $sidebar-pad-medium;
155+
background: none;
156+
clear: none;
157+
float: left;
158+
margin: 0 -100% 0 0;
159+
section {
160+
width: auto; margin-left: 0;
161+
&.odd, &.even { float: none; width: auto; margin-left: 0; }
162+
}
163+
.collapse-sidebar & {
164+
@include collapse-sidebar;
165+
}
166+
}
167+
}
168+
169+
@media only screen and (min-width: 992px) {
170+
body > header { font-size: $header-font-size * 1.3; }
171+
#content { margin-right: $sidebar-width-wide; }
172+
#content {
173+
> div, > article {
174+
padding-top: $pad-wide/2;
175+
padding-bottom: $pad-wide/2;
176+
}
177+
}
178+
aside.sidebar {
179+
width: $sidebar-width-wide - $sidebar-pad-wide*2;
180+
padding: 1.2em $sidebar-pad-wide $sidebar-pad-wide;
181+
.collapse-sidebar & {
182+
padding: { left: $pad-wide; right: $pad-wide; }
183+
@extend .group;
184+
}
185+
}
186+
}
187+
188+
@if $indented-lists == false {
189+
@media only screen and (min-width: 768px) {
190+
ul, ol { margin-left: 0; }
191+
}
192+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
$base03: #002b36 !default; //darkest blue
2+
$base02: #073642 !default; //dark blue
3+
$base01: #586e75 !default; //darkest gray
4+
$base00: #657b83 !default; //dark gray
5+
$base0: #839496 !default; //medium gray
6+
$base1: #93a1a1 !default; //medium light gray
7+
$base2: #eee8d5 !default; //cream
8+
$base3: #fdf6e3 !default; //white
9+
$solar-yellow: #b58900 !default;
10+
$solar-orange: #cb4b16 !default;
11+
$solar-red: #dc322f !default;
12+
$solar-magenta: #d33682 !default;
13+
$solar-violet: #6c71c4 !default;
14+
$solar-blue: #268bd2 !default;
15+
$solar-cyan: #2aa198 !default;
16+
$solar-green: #859900 !default;
17+
18+
$solarized: dark !default;
19+
20+
@if $solarized == light {
21+
22+
$_base03: $base03;
23+
$_base02: $base02;
24+
$_base01: $base01;
25+
$_base00: $base00;
26+
$_base0: $base0;
27+
$_base1: $base1;
28+
$_base2: $base2;
29+
$_base3: $base3;
30+
31+
$base03: $_base3;
32+
$base02: $_base2;
33+
$base01: $_base1;
34+
$base00: $_base0;
35+
$base0: $_base00;
36+
$base1: $_base01;
37+
$base2: $_base02;
38+
$base3: $_base03;
39+
}
40+
41+
/* non highlighted code colors */
42+
$pre-bg: $base03 !default;
43+
$pre-border: darken($base02, 5) !default;
44+
$pre-color: $base1 !default;
45+
46+
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
$noise-bg: image-url('noise.png') top left !default;
2+
$img-border: inline-image('dotted-border.png');
3+
4+
// Main Link Colors
5+
$link-color: lighten(#165b94, 3) !default;
6+
$link-color-hover: adjust-color($link-color, $lightness: 10, $saturation: 25) !default;
7+
$link-color-visited: adjust-color($link-color, $hue: 80, $lightness: -4) !default;
8+
$link-color-active: adjust-color($link-color-hover, $lightness: -15) !default;
9+
10+
// Main Section Colors
11+
$main-bg: #f8f8f8 !default;
12+
$page-bg: #252525 !default;
13+
$article-border: #eeeeee !default;
14+
15+
$header-bg: #333 !default;
16+
$header-border: lighten($header-bg, 15) !default;
17+
$title-color: #f2f2f2 !default;
18+
$subtitle-color: #aaa !default;
19+
20+
$text-color: #222 !default;
21+
$text-color-light: #aaa !default;
22+
$type-border: #ddd !default;
23+
24+
/* Navigation */
25+
$nav-bg: #ccc !default;
26+
$nav-bg-front: image-url('noise.png') !default;
27+
$nav-bg-back: linear-gradient(lighten($nav-bg, 8), $nav-bg, darken($nav-bg, 11)) !default;
28+
$nav-color: darken($nav-bg, 38) !default;
29+
$nav-color-hover: darken($nav-color, 25) !default;
30+
$nav-placeholder: desaturate(darken($nav-bg, 10), 15) !default;
31+
$nav-border: darken($nav-bg, 10) !default;
32+
$nav-border-top: lighten($nav-bg, 15) !default;
33+
$nav-border-bottom: darken($nav-bg, 25) !default;
34+
$nav-border-left: darken($nav-bg, 11) !default;
35+
$nav-border-right: lighten($nav-bg, 7) !default;
36+
37+
/* Sidebar colors */
38+
$sidebar-bg: #f2f2f2 !default;
39+
$sidebar-link-color: $link-color !default;
40+
$sidebar-link-color-hover: $link-color-hover !default;
41+
$sidebar-link-color-active: $link-color-active !default;
42+
$sidebar-color: change-color(mix($text-color, $sidebar-bg, 80), $hue: hue($sidebar-bg), $saturation: saturation($sidebar-bg)/2) !default;
43+
$sidebar-border: desaturate(darken($sidebar-bg, 7), 10) !default;
44+
$sidebar-border-hover: darken($sidebar-bg, 7) !default;
45+
$sidebar-link-color-subdued: lighten($sidebar-color, 20) !default;
46+
$sidebar-link-color-subdued-hover: $sidebar-link-color-hover !default;
47+
$twitter-status-link: lighten($sidebar-link-color-subdued, 15) !default;
48+
49+
$footer-color: #888 !default;
50+
$footer-bg: #ccc !default;
51+
$footer-bg-front: image-url('noise.png') !default;
52+
$footer-bg-back: linear-gradient(lighten($footer-bg, 8), $footer-bg, darken($footer-bg, 11)) !default;
53+
$footer-color: darken($footer-bg, 38) !default;
54+
$footer-color-hover: darken($footer-color, 10) !default;
55+
$footer-border-top: lighten($footer-bg, 15) !default;
56+
$footer-border-bottom: darken($footer-bg, 15) !default;
57+
$footer-link-color: darken($footer-bg, 38) !default;
58+
$footer-link-color-hover: darken($footer-color, 25) !default;
59+
$page-border-bottom: darken($footer-bg, 5) !default;
60+
61+
62+
/* Core theme application */
63+
64+
a {
65+
@include link-colors($link-color, $hover: $link-color-hover, $focus: $link-color-hover, $visited: $link-color-visited, $active: $link-color-active);
66+
}
67+
aside.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+
}
70+
a {
71+
@include transition(color .3s);
72+
}
73+
74+
html {
75+
background: $page-bg image-url('line-tile.png') top left;
76+
}
77+
body {
78+
> div {
79+
background: $sidebar-bg $noise-bg;
80+
border-bottom: 1px solid $page-border-bottom;
81+
> div {
82+
background: $main-bg $noise-bg;
83+
border-right: 1px solid $sidebar-border;
84+
}
85+
}
86+
}

0 commit comments

Comments
 (0)