octopress 3.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (269) hide show
  1. checksums.yaml +15 -0
  2. data/.editorconfig +22 -0
  3. data/.gitattributes +1 -0
  4. data/.gitignore +20 -0
  5. data/.powrc +4 -0
  6. data/.rspec +5 -0
  7. data/.rubocop.yml +119 -0
  8. data/.slugignore +3 -0
  9. data/.themes/classic/.editorconfig +44 -0
  10. data/.themes/classic/_config/adn-timeline.yml +10 -0
  11. data/.themes/classic/_config/delicious-feed.yml +4 -0
  12. data/.themes/classic/_config/deploy/gh_pages.yml +9 -0
  13. data/.themes/classic/_config/deploy/rsync.yml +14 -0
  14. data/.themes/classic/_config/disqus.yml +11 -0
  15. data/.themes/classic/_config/facebook-like.yml +2 -0
  16. data/.themes/classic/_config/gauges-analytics.yml +6 -0
  17. data/.themes/classic/_config/github-repos.yml +24 -0
  18. data/.themes/classic/_config/google-analytics.yml +6 -0
  19. data/.themes/classic/_config/google-plus.yml +13 -0
  20. data/.themes/classic/_config/jekyll.yml +37 -0
  21. data/.themes/classic/_config/pinboard-feed.yml +4 -0
  22. data/.themes/classic/_config/require-js.yml +19 -0
  23. data/.themes/classic/_config/theme.yml +54 -0
  24. data/.themes/classic/_config/twitter-timeline.yml +9 -0
  25. data/.themes/classic/assets/javascripts/lib/ios-rotate-scaling-fix.js +18 -0
  26. data/.themes/classic/assets/javascripts/lib/jquery.cookie.js +92 -0
  27. data/.themes/classic/assets/javascripts/lib/modernizr.js +447 -0
  28. data/.themes/classic/assets/javascripts/lib/octopress.js +83 -0
  29. data/.themes/classic/assets/javascripts/modules/adn-timeline.coffee +68 -0
  30. data/.themes/classic/assets/javascripts/modules/delicious-feed.coffee +38 -0
  31. data/.themes/classic/assets/javascripts/modules/github-repos.coffee +60 -0
  32. data/.themes/classic/assets/javascripts/modules/github.coffee +60 -0
  33. data/.themes/classic/assets/javascripts/modules/helpers.coffee +96 -0
  34. data/.themes/classic/assets/javascripts/modules/pinboard-feed.coffee +42 -0
  35. data/.themes/classic/assets/javascripts/modules/site.coffee +11 -0
  36. data/.themes/classic/assets/stylesheets/_base.scss +5 -0
  37. data/.themes/classic/assets/stylesheets/_partials.scss +8 -0
  38. data/.themes/classic/assets/stylesheets/base/_layout.scss +191 -0
  39. data/.themes/classic/assets/stylesheets/base/_solarized.scss +75 -0
  40. data/.themes/classic/assets/stylesheets/base/_theme.scss +92 -0
  41. data/.themes/classic/assets/stylesheets/base/_typography.scss +168 -0
  42. data/.themes/classic/assets/stylesheets/base/_utilities.scss +27 -0
  43. data/.themes/classic/assets/stylesheets/custom/_colors.scss +49 -0
  44. data/.themes/classic/assets/stylesheets/custom/_fonts.scss +10 -0
  45. data/.themes/classic/assets/stylesheets/custom/_layout.scss +17 -0
  46. data/.themes/classic/assets/stylesheets/custom/_styles.scss +2 -0
  47. data/.themes/classic/assets/stylesheets/partials/_archive.scss +77 -0
  48. data/.themes/classic/assets/stylesheets/partials/_blog.scss +165 -0
  49. data/.themes/classic/assets/stylesheets/partials/_footer.scss +19 -0
  50. data/.themes/classic/assets/stylesheets/partials/_header.scss +18 -0
  51. data/.themes/classic/assets/stylesheets/partials/_navigation.scss +136 -0
  52. data/.themes/classic/assets/stylesheets/partials/_sharing.scss +73 -0
  53. data/.themes/classic/assets/stylesheets/partials/_sidebar.scss +4 -0
  54. data/.themes/classic/assets/stylesheets/partials/_syntax.scss +234 -0
  55. data/.themes/classic/assets/stylesheets/partials/sidebar/_base.scss +106 -0
  56. data/.themes/classic/assets/stylesheets/partials/sidebar/_delicious.scss +4 -0
  57. data/.themes/classic/assets/stylesheets/partials/sidebar/_googleplus.scss +26 -0
  58. data/.themes/classic/assets/stylesheets/partials/sidebar/_pinboard.scss +12 -0
  59. data/.themes/classic/assets/stylesheets/plugins/_plugins.scss +5 -0
  60. data/.themes/classic/assets/stylesheets/screen.scss +11 -0
  61. data/.themes/classic/source/404.markdown +9 -0
  62. data/.themes/classic/source/_includes/after_footer.html +7 -0
  63. data/.themes/classic/source/_includes/archive_post.html +12 -0
  64. data/.themes/classic/source/_includes/article.html +23 -0
  65. data/.themes/classic/source/_includes/comments.html +9 -0
  66. data/.themes/classic/source/_includes/custom/after_footer.html +3 -0
  67. data/.themes/classic/source/_includes/custom/after_page.html +1 -0
  68. data/.themes/classic/source/_includes/custom/after_post.html +0 -0
  69. data/.themes/classic/source/_includes/custom/comments.html +5 -0
  70. data/.themes/classic/source/_includes/custom/footer.html +4 -0
  71. data/.themes/classic/source/_includes/custom/head.html +7 -0
  72. data/.themes/classic/source/_includes/custom/header.html +6 -0
  73. data/.themes/classic/source/_includes/custom/navigation.html +4 -0
  74. data/.themes/classic/source/_includes/custom/page_meta.html +1 -0
  75. data/.themes/classic/source/_includes/custom/post_meta.html +1 -0
  76. data/.themes/classic/source/_includes/custom/sharing.html +3 -0
  77. data/.themes/classic/source/_includes/disqus.html +22 -0
  78. data/.themes/classic/source/_includes/facebook_like.html +10 -0
  79. data/.themes/classic/source/_includes/feed_entry.xml +10 -0
  80. data/.themes/classic/source/_includes/footer.html +1 -0
  81. data/.themes/classic/source/_includes/gauges_analytics.html +15 -0
  82. data/.themes/classic/source/_includes/google_analytics.html +13 -0
  83. data/.themes/classic/source/_includes/google_plus_one.html +9 -0
  84. data/.themes/classic/source/_includes/head.html +33 -0
  85. data/.themes/classic/source/_includes/header.html +1 -0
  86. data/.themes/classic/source/_includes/navigation.html +15 -0
  87. data/.themes/classic/source/_includes/post/author.html +8 -0
  88. data/.themes/classic/source/_includes/post/categories.html +10 -0
  89. data/.themes/classic/source/_includes/post/date.html +15 -0
  90. data/.themes/classic/source/_includes/post/disqus_thread.html +1 -0
  91. data/.themes/classic/source/_includes/post/meta.html +3 -0
  92. data/.themes/classic/source/_includes/post/sharing.html +36 -0
  93. data/.themes/classic/source/_includes/post/title.html +5 -0
  94. data/.themes/classic/source/_includes/post/variables.html +14 -0
  95. data/.themes/classic/source/_includes/sidebars/blog_index_default.html +3 -0
  96. data/.themes/classic/source/_includes/sidebars/page_default.html +4 -0
  97. data/.themes/classic/source/_includes/sidebars/post_default.html +4 -0
  98. data/.themes/classic/source/_includes/sidebars/sections/delicious.html +8 -0
  99. data/.themes/classic/source/_includes/sidebars/sections/github.html +9 -0
  100. data/.themes/classic/source/_includes/sidebars/sections/google_plus.html +5 -0
  101. data/.themes/classic/source/_includes/sidebars/sections/pinboard.html +17 -0
  102. data/.themes/classic/source/_includes/sidebars/sections/recent_posts.html +10 -0
  103. data/.themes/classic/source/_includes/twitter_sharing.html +11 -0
  104. data/.themes/classic/source/_layouts/category_feed.xml +24 -0
  105. data/.themes/classic/source/_layouts/category_index.html +19 -0
  106. data/.themes/classic/source/_layouts/default.html +14 -0
  107. data/.themes/classic/source/_layouts/page.html +34 -0
  108. data/.themes/classic/source/_layouts/post.html +39 -0
  109. data/.themes/classic/source/archives/index.html +20 -0
  110. data/.themes/classic/source/assets/jwplayer/glow/controlbar/background.png +0 -0
  111. data/.themes/classic/source/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
  112. data/.themes/classic/source/assets/jwplayer/glow/controlbar/divider.png +0 -0
  113. data/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
  114. data/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
  115. data/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
  116. data/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
  117. data/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
  118. data/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
  119. data/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
  120. data/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
  121. data/.themes/classic/source/assets/jwplayer/glow/controlbar/playButton.png +0 -0
  122. data/.themes/classic/source/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
  123. data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
  124. data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
  125. data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
  126. data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
  127. data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
  128. data/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
  129. data/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
  130. data/.themes/classic/source/assets/jwplayer/glow/display/background.png +0 -0
  131. data/.themes/classic/source/assets/jwplayer/glow/display/bufferIcon.png +0 -0
  132. data/.themes/classic/source/assets/jwplayer/glow/display/muteIcon.png +0 -0
  133. data/.themes/classic/source/assets/jwplayer/glow/display/playIcon.png +0 -0
  134. data/.themes/classic/source/assets/jwplayer/glow/dock/button.png +0 -0
  135. data/.themes/classic/source/assets/jwplayer/glow/glow.xml +115 -0
  136. data/.themes/classic/source/assets/jwplayer/glow/playlist/item.png +0 -0
  137. data/.themes/classic/source/assets/jwplayer/glow/playlist/itemOver.png +0 -0
  138. data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
  139. data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
  140. data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
  141. data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
  142. data/.themes/classic/source/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
  143. data/.themes/classic/source/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
  144. data/.themes/classic/source/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
  145. data/.themes/classic/source/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
  146. data/.themes/classic/source/assets/jwplayer/player.swf +0 -0
  147. data/.themes/classic/source/atom.xml +23 -0
  148. data/.themes/classic/source/images/bird_32_gray.png +0 -0
  149. data/.themes/classic/source/images/bird_32_gray_fail.png +0 -0
  150. data/.themes/classic/source/images/code_bg.png +0 -0
  151. data/.themes/classic/source/images/dotted-border.png +0 -0
  152. data/.themes/classic/source/images/email.png +0 -0
  153. data/.themes/classic/source/images/icon/facebook.png +0 -0
  154. data/.themes/classic/source/images/icon/github.png +0 -0
  155. data/.themes/classic/source/images/icon/googleplus.png +0 -0
  156. data/.themes/classic/source/images/icon/twitter-bird.png +0 -0
  157. data/.themes/classic/source/images/icon/twitter.png +0 -0
  158. data/.themes/classic/source/images/line-tile.png +0 -0
  159. data/.themes/classic/source/images/noise.png +0 -0
  160. data/.themes/classic/source/images/rss.png +0 -0
  161. data/.themes/classic/source/images/search.png +0 -0
  162. data/.themes/classic/source/index.html +30 -0
  163. data/.themes/classic/source/javascripts/jquery.min.js +5 -0
  164. data/.themes/classic/source/octopress-favicon.png +0 -0
  165. data/.themes/classic/source/robots.txt +7 -0
  166. data/.travis.yml +6 -0
  167. data/CHANGELOG.markdown +46 -0
  168. data/CONTRIBUTING.markdown +17 -0
  169. data/Gemfile +2 -0
  170. data/README.markdown +37 -0
  171. data/Rakefile +76 -0
  172. data/bin/octopress +66 -0
  173. data/lib/console +17 -0
  174. data/lib/guard/jekyll.rb +33 -0
  175. data/lib/octopress.rb +89 -0
  176. data/lib/octopress/command.rb +9 -0
  177. data/lib/octopress/commands.rb +14 -0
  178. data/lib/octopress/commands/build.rb +17 -0
  179. data/lib/octopress/commands/build_javascripts.rb +11 -0
  180. data/lib/octopress/commands/build_jekyll.rb +25 -0
  181. data/lib/octopress/commands/build_stylesheets.rb +13 -0
  182. data/lib/octopress/commands/install.rb +45 -0
  183. data/lib/octopress/commands/new.rb +21 -0
  184. data/lib/octopress/commands/scaffold.rb +101 -0
  185. data/lib/octopress/commands/serve.rb +25 -0
  186. data/lib/octopress/configuration.rb +231 -0
  187. data/lib/octopress/core_ext.rb +44 -0
  188. data/lib/octopress/dependency_installer.rb +287 -0
  189. data/lib/octopress/errors.rb +3 -0
  190. data/lib/octopress/filters/content.rb +66 -0
  191. data/lib/octopress/filters/date.rb +46 -0
  192. data/lib/octopress/filters/post.rb +175 -0
  193. data/lib/octopress/filters/url.rb +34 -0
  194. data/lib/octopress/formatters.rb +9 -0
  195. data/lib/octopress/formatters/base_formatter.rb +17 -0
  196. data/lib/octopress/formatters/simple_formatter.rb +9 -0
  197. data/lib/octopress/formatters/verbose_formatter.rb +9 -0
  198. data/lib/octopress/generators/category_generator.rb +196 -0
  199. data/lib/octopress/generators/sitemap_generator.rb +308 -0
  200. data/lib/octopress/guardfile +43 -0
  201. data/lib/octopress/helpers/titlecase.rb +37 -0
  202. data/lib/octopress/ink.rb +12 -0
  203. data/lib/octopress/inquirable_string.rb +12 -0
  204. data/lib/octopress/installer.rb +92 -0
  205. data/lib/octopress/js_asset_manager.rb +98 -0
  206. data/lib/octopress/liquid_helpers/conditional.rb +36 -0
  207. data/lib/octopress/liquid_helpers/config.rb +58 -0
  208. data/lib/octopress/liquid_helpers/include.rb +33 -0
  209. data/lib/octopress/liquid_helpers/url.rb +29 -0
  210. data/lib/octopress/liquid_helpers/vars.rb +30 -0
  211. data/lib/octopress/plugin.rb +33 -0
  212. data/lib/octopress/rake.rb +16 -0
  213. data/lib/octopress/scaffold/.gitignore +18 -0
  214. data/lib/octopress/scaffold/site/Gemfile +3 -0
  215. data/lib/octopress/scaffold/site/config/compass.rb +27 -0
  216. data/lib/octopress/scaffold/site/config/rack.rb +25 -0
  217. data/lib/octopress/scaffold/site/config/site.yml +0 -0
  218. data/lib/octopress/scaffold/site/javascripts/lib/ios-rotate-scaling-fix.js +19 -0
  219. data/lib/octopress/scaffold/site/javascripts/lib/jquery-1.9.1.js +9598 -0
  220. data/lib/octopress/scaffold/site/javascripts/lib/jquery.cookie.js +93 -0
  221. data/lib/octopress/scaffold/site/stylesheets/_config.scss +1 -0
  222. data/lib/octopress/scaffold/site/stylesheets/_style.scss +1 -0
  223. data/lib/octopress/scaffold/site/stylesheets/site.scss +16 -0
  224. data/lib/octopress/tags/assign.rb +34 -0
  225. data/lib/octopress/tags/capture.rb +31 -0
  226. data/lib/octopress/tags/config-tag.rb +23 -0
  227. data/lib/octopress/tags/include.rb +63 -0
  228. data/lib/octopress/tags/js-assets.rb +23 -0
  229. data/lib/octopress/tags/puts.rb +39 -0
  230. data/lib/octopress/tags/render-partial.rb +89 -0
  231. data/lib/octopress/tags/return.rb +21 -0
  232. data/lib/octopress/version.rb +3 -0
  233. data/lib/rake/clean.rake +8 -0
  234. data/lib/rake/clobber.rake +5 -0
  235. data/lib/rake/console.rake +5 -0
  236. data/lib/rake/deploy.rake +4 -0
  237. data/lib/rake/gen_deploy.rake +2 -0
  238. data/lib/rake/generate.rake +4 -0
  239. data/lib/rake/generate_only.rake +14 -0
  240. data/lib/rake/hygiene.rake +29 -0
  241. data/lib/rake/install.rake +8 -0
  242. data/lib/rake/integrate.rake +4 -0
  243. data/lib/rake/isolate.rake +13 -0
  244. data/lib/rake/list_drafts.rake +7 -0
  245. data/lib/rake/new.rake +7 -0
  246. data/lib/rake/new_page.rake +49 -0
  247. data/lib/rake/new_post.rake +32 -0
  248. data/lib/rake/nuke.rake +4 -0
  249. data/lib/rake/preview.rake +4 -0
  250. data/lib/rake/push.rake +37 -0
  251. data/lib/rake/rsync.rake +20 -0
  252. data/lib/rake/set_root_dir.rake +35 -0
  253. data/lib/rake/setup_github_pages.rake +115 -0
  254. data/lib/rake/watch.rake +11 -0
  255. data/lib/scaffold/Rakefile +142 -0
  256. data/lib/scaffold/plugin-name.gemspec +43 -0
  257. data/lib/spec/fixtures/env/defaults/classic.yml +2 -0
  258. data/lib/spec/fixtures/no_override/defaults/classic.yml +11 -0
  259. data/lib/spec/fixtures/override/defaults/classic.yml +11 -0
  260. data/lib/spec/fixtures/override/site.yml +11 -0
  261. data/lib/spec/octopress/configuration_spec.rb +67 -0
  262. data/lib/spec/octopress/dependency_installer_spec.rb +66 -0
  263. data/lib/spec/octopress/ink_spec.rb +10 -0
  264. data/lib/spec/octopress/octopress_spec.rb +97 -0
  265. data/lib/spec/spec_helper.rb +22 -0
  266. data/lib/spec/support/env.rb +36 -0
  267. data/lib/spec/support/simplecov.rb +52 -0
  268. data/octopress.gemspec +52 -0
  269. metadata +697 -0
@@ -0,0 +1,11 @@
1
+ adn = require('adn')
2
+ pinboard = require('pinboard')
3
+ delicious = require('delicious')
4
+ github = require('github')
5
+
6
+ Site =
7
+ init: ->
8
+ adn.init 'imathis', { count: 3 }, (posts)->
9
+ console.log posts
10
+
11
+ module.exports = Site
@@ -0,0 +1,5 @@
1
+ @import "base/utilities";
2
+ @import "base/solarized";
3
+ @import "base/theme";
4
+ @import "base/typography";
5
+ @import "base/layout";
@@ -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";
@@ -0,0 +1,191 @@
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
+ #main, #content, .sidebar {
131
+ @extend .group;
132
+ }
133
+ @media only screen and (min-width: 768px) {
134
+ body { -webkit-text-size-adjust: auto; }
135
+ body > header { font-size: $header-font-size * 1.2; }
136
+ #main {
137
+ padding: 0;
138
+ margin: 0 auto;
139
+ }
140
+ #content {
141
+ overflow: visible;
142
+ margin-right: $sidebar-width-medium;
143
+ position: relative;
144
+ .no-sidebar & { margin-right: 0; border-right: 0; }
145
+ .collapse-sidebar & { margin-right: 20px; }
146
+ > div, > article {
147
+ padding-top: $pad-medium/2;
148
+ padding-bottom: $pad-medium/2;
149
+ float: left;
150
+ }
151
+ }
152
+ aside.sidebar {
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
+ }
184
+ }
185
+ }
186
+
187
+ @if $indented-lists == false {
188
+ @media only screen and (min-width: 768px) {
189
+ ul, ol { margin-left: 0; }
190
+ }
191
+ }
@@ -0,0 +1,75 @@
1
+ $solarized: light !default;
2
+ $pre-bg: default !default;
3
+
4
+ $base03: #002b36 !default; //darkest blue
5
+ $base02: #073642 !default; //dark blue
6
+ $base01: #586e75 !default; //darkest gray
7
+ $base00: #657b83 !default; //dark gray
8
+ $base0: #839496 !default; //medium gray
9
+ $base1: #93a1a1 !default; //medium light gray
10
+ // Test defaults for cream colors
11
+ $base2: default !default;
12
+ $base3: default !default;
13
+ @if $solarized == dark {
14
+ @if $base2 == default { $base2: #eee8d5; } // cream
15
+ @if $base3 == default { $base3: #fdf6e3; } // cream white
16
+ }
17
+ @if $solarized == light {
18
+ // I prefer white and gray for the light theme
19
+ @if $base2 == default { $base2: #e5e5e5; } // light gray
20
+ @if $base3 == default { $base3: #fbfbfb; } // white
21
+ }
22
+ $solar-yellow: #b58900 !default;
23
+ $solar-orange: #cb4b16 !default;
24
+ $solar-red: #dc322f !default;
25
+ $solar-magenta: #d33682 !default;
26
+ $solar-violet: #6c71c4 !default;
27
+ $solar-blue: #268bd2 !default;
28
+ $solar-cyan: #2aa198 !default;
29
+ $solar-green: #859900 !default;
30
+
31
+ @if $solarized == light {
32
+ // Flipping the colors, This is the magic of Solarized.
33
+ $_base03: $base03;
34
+ $_base02: $base02;
35
+ $_base01: $base01;
36
+ $_base00: $base00;
37
+ $_base0: $base0;
38
+ $_base1: $base1;
39
+ $_base2: $base2;
40
+ $_base3: $base3;
41
+
42
+ $base03: $_base3;
43
+ $base02: $_base2;
44
+ $base01: $_base1;
45
+ $base00: $_base0;
46
+ $base0: $_base00;
47
+ $base1: $_base01;
48
+ $base2: $_base02;
49
+ $base3: $_base03;
50
+ }
51
+
52
+ /* non highlighted code colors */
53
+ @if $pre-bg == default {
54
+ $pre-bg: $base03;
55
+ } @else if $pre-bg != $base03 {
56
+ $base03: $pre-bg;
57
+ $base02: lighten($base03, 5);
58
+ }
59
+
60
+ $pre-border: darken($base02, 5) !default;
61
+ $pre-color: $base1 !default;
62
+
63
+ @if $pre-border != darken($base02, 5) {
64
+ $base02: lighten($pre-border, 5);
65
+ }
66
+ @if $pre-color != $base1 {
67
+ $base1: $pre-color;
68
+ }
69
+
70
+ $marker: rgba(#00baff, .5) !default;
71
+ $marker-bg: rgba($marker, .03) !default;
72
+ $marker-border: rgba($marker, .13) !default;
73
+ $marker-border-left: $marker !default;
74
+
75
+ $code-selection-color: false !default;
@@ -0,0 +1,92 @@
1
+ // Main Link Colors
2
+ $link-color: lighten(#165b94, 3) !default;
3
+ $link-color-hover: adjust-color($link-color, $lightness: 10, $saturation: 25) !default;
4
+ $link-color-visited: adjust-color($link-color, $hue: 80, $lightness: -4) !default;
5
+ $link-color-active: adjust-color($link-color-hover, $lightness: -15) !default;
6
+
7
+ // Main Section Colors
8
+ $main-bg: #f8f8f8 !default;
9
+ $page-bg: #252525 !default;
10
+ $article-border: #eeeeee !default;
11
+
12
+ $header-bg: #333 !default;
13
+ $header-border: lighten($header-bg, 15) !default;
14
+ $title-color: #f2f2f2 !default;
15
+ $subtitle-color: #aaa !default;
16
+
17
+ $text-color: #222 !default;
18
+ $text-color-light: #aaa !default;
19
+ $type-border: #ddd !default;
20
+
21
+ /* Navigation */
22
+ $nav-bg: #ccc !default;
23
+ $nav-bg-front: image-url('noise.png') !default;
24
+ $nav-bg-back: linear-gradient(lighten($nav-bg, 8), $nav-bg, darken($nav-bg, 11)) !default;
25
+ $nav-color: darken($nav-bg, 38) !default;
26
+ $nav-color-hover: darken($nav-color, 25) !default;
27
+ $nav-placeholder: desaturate(darken($nav-bg, 10), 15) !default;
28
+ $nav-border: darken($nav-bg, 10) !default;
29
+ $nav-border-top: lighten($nav-bg, 15) !default;
30
+ $nav-border-bottom: darken($nav-bg, 25) !default;
31
+ $nav-border-left: darken($nav-bg, 11) !default;
32
+ $nav-border-right: lighten($nav-bg, 7) !default;
33
+
34
+ /* Sidebar colors */
35
+ $sidebar-bg: #f2f2f2 !default;
36
+ $sidebar-link-color: $link-color !default;
37
+ $sidebar-link-color-hover: $link-color-hover !default;
38
+ $sidebar-link-color-active: $link-color-active !default;
39
+ $sidebar-color: change-color(mix($text-color, $sidebar-bg, 80), $hue: hue($sidebar-bg), $saturation: saturation($sidebar-bg)/2) !default;
40
+ $sidebar-border: desaturate(darken($sidebar-bg, 7), 10) !default;
41
+ $sidebar-border-hover: darken($sidebar-bg, 7) !default;
42
+ $sidebar-link-color-subdued: lighten($sidebar-color, 20) !default;
43
+ $sidebar-link-color-subdued-hover: $sidebar-link-color-hover !default;
44
+
45
+ $footer-color: #888 !default;
46
+ $footer-bg: #ccc !default;
47
+ $footer-bg-front: image-url('noise.png') !default;
48
+ $footer-bg-back: linear-gradient(lighten($footer-bg, 8), $footer-bg, darken($footer-bg, 11)) !default;
49
+ $footer-color: darken($footer-bg, 38) !default;
50
+ $footer-color-hover: darken($footer-color, 10) !default;
51
+ $footer-border-top: lighten($footer-bg, 15) !default;
52
+ $footer-border-bottom: darken($footer-bg, 15) !default;
53
+ $footer-link-color: darken($footer-bg, 38) !default;
54
+ $footer-link-color-hover: darken($footer-color, 25) !default;
55
+ $page-border-bottom: darken($footer-bg, 5) !default;
56
+
57
+
58
+ // Sprites and images
59
+
60
+ @import "icon/*.png";/**/
61
+ @include all-icon-sprites($dimensions: true);
62
+
63
+ $noise-bg: image-url('noise.png') top left !default;
64
+ $img-border: inline-image('dotted-border.png') !default;
65
+
66
+
67
+ // Core theme application
68
+
69
+ a {
70
+ color: $link-color;
71
+ @include link-colors($link-color, $hover: $link-color-hover, $focus: $link-color-hover, $visited: $link-color-visited, $active: $link-color-active);
72
+ }
73
+ .sidebar a {
74
+ @include link-colors($sidebar-link-color, $hover: $sidebar-link-color-hover, $focus: $sidebar-link-color-hover, $active: $sidebar-link-color-active);
75
+ }
76
+ a {
77
+ @include transition(color .3s);
78
+ }
79
+
80
+ html {
81
+ background: $page-bg image-url('line-tile.png') top left;
82
+ }
83
+ body {
84
+ > div {
85
+ background: $sidebar-bg $noise-bg;
86
+ border-bottom: 1px solid $page-border-bottom;
87
+ > div {
88
+ background: $main-bg $noise-bg;
89
+ border-right: 1px solid $sidebar-border;
90
+ }
91
+ }
92
+ }
@@ -0,0 +1,168 @@
1
+ $blockquote: $type-border !default;
2
+ $sans: "PT Sans", "Helvetica Neue", Arial, sans-serif !default;
3
+ $serif: "PT Serif", Georgia, Times, "Times New Roman", serif !default;
4
+ $mono: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace !default;
5
+ $heading-font-family: "PT Serif", "Georgia", "Helvetica Neue", Arial, sans-serif !default;
6
+ $header-title-font-family: $heading-font-family !default;
7
+ $header-subtitle-font-family: $heading-font-family !default;
8
+
9
+ $h1: 2.2em !default;
10
+ $h2: 1.5em !default;
11
+ $h3: 1.3em !default;
12
+ $h4: 1em !default;
13
+ $h5: .9em !default;
14
+ $h6: .8em !default;
15
+
16
+ // Fonts
17
+ .heading {
18
+ font-family: $heading-font-family;
19
+ }
20
+ .sans { font-family: $sans; }
21
+ .serif { font-family: $serif; }
22
+ .mono { font-family: $mono; }
23
+
24
+ body > header h1 {
25
+ font-size: $h1;
26
+ @extend .heading;
27
+ font-family: $header-title-font-family;
28
+ font-weight: normal;
29
+ line-height: 1.2em;
30
+ margin-bottom: 0.6667em;
31
+ }
32
+ body > header h2 {
33
+ font-family: $header-subtitle-font-family;
34
+ }
35
+
36
+ body {
37
+ line-height: 1.5em;
38
+ color: $text-color;
39
+ @extend .serif;
40
+ }
41
+
42
+ #{headings()}{
43
+ @extend .heading;
44
+ text-rendering: optimizelegibility;
45
+ margin-bottom: 1em;
46
+ font-weight: bold;
47
+ }
48
+ h1 {
49
+ font-size: $h1;
50
+ line-height: 1.2em;
51
+ }
52
+ h2, section h1 {
53
+ font-size: $h2;
54
+ }
55
+ h3, section h2, section section h1 {
56
+ font-size: $h3;
57
+ }
58
+ h4, section h3, section section h2, section section section h1 {
59
+ font-size: $h4;
60
+ }
61
+ h5, section h4, section section h3 {
62
+ font-size: $h5;
63
+ }
64
+ h6, section h5, section section h4, section section section h3 {
65
+ font-size: $h6;
66
+ }
67
+
68
+ @media only screen and (min-width: 992px) {
69
+ body { font-size: 1.15em; }
70
+ }
71
+
72
+ p, blockquote, ul, ol { margin-bottom: 1.5em; }
73
+
74
+ ul { list-style-type: disc;
75
+ ul { list-style-type: circle; margin-bottom: 0px;
76
+ ul { list-style-type: square; margin-bottom: 0px; }}}
77
+
78
+ ol { list-style-type: decimal;
79
+ ol { list-style-type: lower-alpha; margin-bottom: 0px;
80
+ ol { list-style-type: lower-roman; margin-bottom: 0px; }}}
81
+
82
+ ul, ol { &, ul, ol { margin-left: 1.3em; }}
83
+
84
+ strong { font-weight: bold; }
85
+
86
+ em { font-style: italic; }
87
+
88
+ sup, sub { vertical-align: baseline; font-size: 0.8em; position: relative; }
89
+ sup { top: -.5em; }
90
+ sub { bottom: -.5em; }
91
+
92
+ q { font-style: italic;
93
+ &:before { content: "\201C"; }
94
+ &:after { content: "\201D"; }
95
+ }
96
+
97
+ em, dfn { font-style: italic; }
98
+
99
+ strong, dfn { font-weight: bold; }
100
+
101
+ del, s { text-decoration: line-through; }
102
+
103
+ abbr, acronym { border-bottom: 1px dotted; cursor: help; }
104
+
105
+ pre, code, tt { @extend .mono; }
106
+
107
+ sub, sup { line-height: 0; }
108
+
109
+ hr { margin-bottom: 0.2em; }
110
+
111
+ small { font-size: .8em; }
112
+
113
+ big { font-size: 1.2em; }
114
+
115
+ blockquote {
116
+ $bq-margin: 1.2em;
117
+ font-style: italic;
118
+ position: relative;
119
+ font-size: 1.2em;
120
+ line-height: 1.5em;
121
+ padding-left: 1em;
122
+ border-left: 4px solid rgba($text-color-light, .5);
123
+ cite {
124
+ font-style: italic;
125
+ a { color: $text-color-light !important; word-wrap: break-word; }
126
+ &:before { content: '\2014'; padding:{right: .3em; left: .3em;} color: $text-color-light; }
127
+ }
128
+ @media only screen and (min-width: 992px) {
129
+ padding-left: 1.5em;
130
+ border-left-width: 4px;
131
+ }
132
+ }
133
+
134
+ .pullquote-right:before,
135
+ .pullquote-left:before {
136
+ /* Reset metrics. */
137
+ padding: 0;
138
+ border: none;
139
+
140
+ /* Content */
141
+ content: attr(data-pullquote);
142
+
143
+ /* Pull out to the right, modular scale based margins. */
144
+ float: right;
145
+ width: 45%;
146
+ margin: .5em 0 1em 1.5em;
147
+
148
+ /* Baseline correction */
149
+ position: relative;
150
+ top: 7px;
151
+ font-size: 1.4em;
152
+ line-height: 1.45em;
153
+ }
154
+
155
+ .pullquote-left:before {
156
+ /* Make left pullquotes align properly. */
157
+ float: left;
158
+ margin: .5em 1.5em 1em 0;
159
+ }
160
+
161
+ /* @extend this to force long lines of continuous text to wrap */
162
+ .force-wrap {
163
+ white-space: -moz-pre-wrap;
164
+ white-space: -pre-wrap;
165
+ white-space: -o-pre-wrap;
166
+ white-space: pre-wrap;
167
+ word-wrap: break-word;
168
+ }