octopress 3.0.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.editorconfig +22 -0
- data/.gitattributes +1 -0
- data/.gitignore +20 -0
- data/.powrc +4 -0
- data/.rspec +5 -0
- data/.rubocop.yml +119 -0
- data/.slugignore +3 -0
- data/.themes/classic/.editorconfig +44 -0
- data/.themes/classic/_config/adn-timeline.yml +10 -0
- data/.themes/classic/_config/delicious-feed.yml +4 -0
- data/.themes/classic/_config/deploy/gh_pages.yml +9 -0
- data/.themes/classic/_config/deploy/rsync.yml +14 -0
- data/.themes/classic/_config/disqus.yml +11 -0
- data/.themes/classic/_config/facebook-like.yml +2 -0
- data/.themes/classic/_config/gauges-analytics.yml +6 -0
- data/.themes/classic/_config/github-repos.yml +24 -0
- data/.themes/classic/_config/google-analytics.yml +6 -0
- data/.themes/classic/_config/google-plus.yml +13 -0
- data/.themes/classic/_config/jekyll.yml +37 -0
- data/.themes/classic/_config/pinboard-feed.yml +4 -0
- data/.themes/classic/_config/require-js.yml +19 -0
- data/.themes/classic/_config/theme.yml +54 -0
- data/.themes/classic/_config/twitter-timeline.yml +9 -0
- data/.themes/classic/assets/javascripts/lib/ios-rotate-scaling-fix.js +18 -0
- data/.themes/classic/assets/javascripts/lib/jquery.cookie.js +92 -0
- data/.themes/classic/assets/javascripts/lib/modernizr.js +447 -0
- data/.themes/classic/assets/javascripts/lib/octopress.js +83 -0
- data/.themes/classic/assets/javascripts/modules/adn-timeline.coffee +68 -0
- data/.themes/classic/assets/javascripts/modules/delicious-feed.coffee +38 -0
- data/.themes/classic/assets/javascripts/modules/github-repos.coffee +60 -0
- data/.themes/classic/assets/javascripts/modules/github.coffee +60 -0
- data/.themes/classic/assets/javascripts/modules/helpers.coffee +96 -0
- data/.themes/classic/assets/javascripts/modules/pinboard-feed.coffee +42 -0
- data/.themes/classic/assets/javascripts/modules/site.coffee +11 -0
- data/.themes/classic/assets/stylesheets/_base.scss +5 -0
- data/.themes/classic/assets/stylesheets/_partials.scss +8 -0
- data/.themes/classic/assets/stylesheets/base/_layout.scss +191 -0
- data/.themes/classic/assets/stylesheets/base/_solarized.scss +75 -0
- data/.themes/classic/assets/stylesheets/base/_theme.scss +92 -0
- data/.themes/classic/assets/stylesheets/base/_typography.scss +168 -0
- data/.themes/classic/assets/stylesheets/base/_utilities.scss +27 -0
- data/.themes/classic/assets/stylesheets/custom/_colors.scss +49 -0
- data/.themes/classic/assets/stylesheets/custom/_fonts.scss +10 -0
- data/.themes/classic/assets/stylesheets/custom/_layout.scss +17 -0
- data/.themes/classic/assets/stylesheets/custom/_styles.scss +2 -0
- data/.themes/classic/assets/stylesheets/partials/_archive.scss +77 -0
- data/.themes/classic/assets/stylesheets/partials/_blog.scss +165 -0
- data/.themes/classic/assets/stylesheets/partials/_footer.scss +19 -0
- data/.themes/classic/assets/stylesheets/partials/_header.scss +18 -0
- data/.themes/classic/assets/stylesheets/partials/_navigation.scss +136 -0
- data/.themes/classic/assets/stylesheets/partials/_sharing.scss +73 -0
- data/.themes/classic/assets/stylesheets/partials/_sidebar.scss +4 -0
- data/.themes/classic/assets/stylesheets/partials/_syntax.scss +234 -0
- data/.themes/classic/assets/stylesheets/partials/sidebar/_base.scss +106 -0
- data/.themes/classic/assets/stylesheets/partials/sidebar/_delicious.scss +4 -0
- data/.themes/classic/assets/stylesheets/partials/sidebar/_googleplus.scss +26 -0
- data/.themes/classic/assets/stylesheets/partials/sidebar/_pinboard.scss +12 -0
- data/.themes/classic/assets/stylesheets/plugins/_plugins.scss +5 -0
- data/.themes/classic/assets/stylesheets/screen.scss +11 -0
- data/.themes/classic/source/404.markdown +9 -0
- data/.themes/classic/source/_includes/after_footer.html +7 -0
- data/.themes/classic/source/_includes/archive_post.html +12 -0
- data/.themes/classic/source/_includes/article.html +23 -0
- data/.themes/classic/source/_includes/comments.html +9 -0
- data/.themes/classic/source/_includes/custom/after_footer.html +3 -0
- data/.themes/classic/source/_includes/custom/after_page.html +1 -0
- data/.themes/classic/source/_includes/custom/after_post.html +0 -0
- data/.themes/classic/source/_includes/custom/comments.html +5 -0
- data/.themes/classic/source/_includes/custom/footer.html +4 -0
- data/.themes/classic/source/_includes/custom/head.html +7 -0
- data/.themes/classic/source/_includes/custom/header.html +6 -0
- data/.themes/classic/source/_includes/custom/navigation.html +4 -0
- data/.themes/classic/source/_includes/custom/page_meta.html +1 -0
- data/.themes/classic/source/_includes/custom/post_meta.html +1 -0
- data/.themes/classic/source/_includes/custom/sharing.html +3 -0
- data/.themes/classic/source/_includes/disqus.html +22 -0
- data/.themes/classic/source/_includes/facebook_like.html +10 -0
- data/.themes/classic/source/_includes/feed_entry.xml +10 -0
- data/.themes/classic/source/_includes/footer.html +1 -0
- data/.themes/classic/source/_includes/gauges_analytics.html +15 -0
- data/.themes/classic/source/_includes/google_analytics.html +13 -0
- data/.themes/classic/source/_includes/google_plus_one.html +9 -0
- data/.themes/classic/source/_includes/head.html +33 -0
- data/.themes/classic/source/_includes/header.html +1 -0
- data/.themes/classic/source/_includes/navigation.html +15 -0
- data/.themes/classic/source/_includes/post/author.html +8 -0
- data/.themes/classic/source/_includes/post/categories.html +10 -0
- data/.themes/classic/source/_includes/post/date.html +15 -0
- data/.themes/classic/source/_includes/post/disqus_thread.html +1 -0
- data/.themes/classic/source/_includes/post/meta.html +3 -0
- data/.themes/classic/source/_includes/post/sharing.html +36 -0
- data/.themes/classic/source/_includes/post/title.html +5 -0
- data/.themes/classic/source/_includes/post/variables.html +14 -0
- data/.themes/classic/source/_includes/sidebars/blog_index_default.html +3 -0
- data/.themes/classic/source/_includes/sidebars/page_default.html +4 -0
- data/.themes/classic/source/_includes/sidebars/post_default.html +4 -0
- data/.themes/classic/source/_includes/sidebars/sections/delicious.html +8 -0
- data/.themes/classic/source/_includes/sidebars/sections/github.html +9 -0
- data/.themes/classic/source/_includes/sidebars/sections/google_plus.html +5 -0
- data/.themes/classic/source/_includes/sidebars/sections/pinboard.html +17 -0
- data/.themes/classic/source/_includes/sidebars/sections/recent_posts.html +10 -0
- data/.themes/classic/source/_includes/twitter_sharing.html +11 -0
- data/.themes/classic/source/_layouts/category_feed.xml +24 -0
- data/.themes/classic/source/_layouts/category_index.html +19 -0
- data/.themes/classic/source/_layouts/default.html +14 -0
- data/.themes/classic/source/_layouts/page.html +34 -0
- data/.themes/classic/source/_layouts/post.html +39 -0
- data/.themes/classic/source/archives/index.html +20 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/background.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/divider.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/playButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/display/background.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/display/bufferIcon.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/display/muteIcon.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/display/playIcon.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/dock/button.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/glow.xml +115 -0
- data/.themes/classic/source/assets/jwplayer/glow/playlist/item.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/playlist/itemOver.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
- data/.themes/classic/source/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
- data/.themes/classic/source/assets/jwplayer/player.swf +0 -0
- data/.themes/classic/source/atom.xml +23 -0
- data/.themes/classic/source/images/bird_32_gray.png +0 -0
- data/.themes/classic/source/images/bird_32_gray_fail.png +0 -0
- data/.themes/classic/source/images/code_bg.png +0 -0
- data/.themes/classic/source/images/dotted-border.png +0 -0
- data/.themes/classic/source/images/email.png +0 -0
- data/.themes/classic/source/images/icon/facebook.png +0 -0
- data/.themes/classic/source/images/icon/github.png +0 -0
- data/.themes/classic/source/images/icon/googleplus.png +0 -0
- data/.themes/classic/source/images/icon/twitter-bird.png +0 -0
- data/.themes/classic/source/images/icon/twitter.png +0 -0
- data/.themes/classic/source/images/line-tile.png +0 -0
- data/.themes/classic/source/images/noise.png +0 -0
- data/.themes/classic/source/images/rss.png +0 -0
- data/.themes/classic/source/images/search.png +0 -0
- data/.themes/classic/source/index.html +30 -0
- data/.themes/classic/source/javascripts/jquery.min.js +5 -0
- data/.themes/classic/source/octopress-favicon.png +0 -0
- data/.themes/classic/source/robots.txt +7 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.markdown +46 -0
- data/CONTRIBUTING.markdown +17 -0
- data/Gemfile +2 -0
- data/README.markdown +37 -0
- data/Rakefile +76 -0
- data/bin/octopress +66 -0
- data/lib/console +17 -0
- data/lib/guard/jekyll.rb +33 -0
- data/lib/octopress.rb +89 -0
- data/lib/octopress/command.rb +9 -0
- data/lib/octopress/commands.rb +14 -0
- data/lib/octopress/commands/build.rb +17 -0
- data/lib/octopress/commands/build_javascripts.rb +11 -0
- data/lib/octopress/commands/build_jekyll.rb +25 -0
- data/lib/octopress/commands/build_stylesheets.rb +13 -0
- data/lib/octopress/commands/install.rb +45 -0
- data/lib/octopress/commands/new.rb +21 -0
- data/lib/octopress/commands/scaffold.rb +101 -0
- data/lib/octopress/commands/serve.rb +25 -0
- data/lib/octopress/configuration.rb +231 -0
- data/lib/octopress/core_ext.rb +44 -0
- data/lib/octopress/dependency_installer.rb +287 -0
- data/lib/octopress/errors.rb +3 -0
- data/lib/octopress/filters/content.rb +66 -0
- data/lib/octopress/filters/date.rb +46 -0
- data/lib/octopress/filters/post.rb +175 -0
- data/lib/octopress/filters/url.rb +34 -0
- data/lib/octopress/formatters.rb +9 -0
- data/lib/octopress/formatters/base_formatter.rb +17 -0
- data/lib/octopress/formatters/simple_formatter.rb +9 -0
- data/lib/octopress/formatters/verbose_formatter.rb +9 -0
- data/lib/octopress/generators/category_generator.rb +196 -0
- data/lib/octopress/generators/sitemap_generator.rb +308 -0
- data/lib/octopress/guardfile +43 -0
- data/lib/octopress/helpers/titlecase.rb +37 -0
- data/lib/octopress/ink.rb +12 -0
- data/lib/octopress/inquirable_string.rb +12 -0
- data/lib/octopress/installer.rb +92 -0
- data/lib/octopress/js_asset_manager.rb +98 -0
- data/lib/octopress/liquid_helpers/conditional.rb +36 -0
- data/lib/octopress/liquid_helpers/config.rb +58 -0
- data/lib/octopress/liquid_helpers/include.rb +33 -0
- data/lib/octopress/liquid_helpers/url.rb +29 -0
- data/lib/octopress/liquid_helpers/vars.rb +30 -0
- data/lib/octopress/plugin.rb +33 -0
- data/lib/octopress/rake.rb +16 -0
- data/lib/octopress/scaffold/.gitignore +18 -0
- data/lib/octopress/scaffold/site/Gemfile +3 -0
- data/lib/octopress/scaffold/site/config/compass.rb +27 -0
- data/lib/octopress/scaffold/site/config/rack.rb +25 -0
- data/lib/octopress/scaffold/site/config/site.yml +0 -0
- data/lib/octopress/scaffold/site/javascripts/lib/ios-rotate-scaling-fix.js +19 -0
- data/lib/octopress/scaffold/site/javascripts/lib/jquery-1.9.1.js +9598 -0
- data/lib/octopress/scaffold/site/javascripts/lib/jquery.cookie.js +93 -0
- data/lib/octopress/scaffold/site/stylesheets/_config.scss +1 -0
- data/lib/octopress/scaffold/site/stylesheets/_style.scss +1 -0
- data/lib/octopress/scaffold/site/stylesheets/site.scss +16 -0
- data/lib/octopress/tags/assign.rb +34 -0
- data/lib/octopress/tags/capture.rb +31 -0
- data/lib/octopress/tags/config-tag.rb +23 -0
- data/lib/octopress/tags/include.rb +63 -0
- data/lib/octopress/tags/js-assets.rb +23 -0
- data/lib/octopress/tags/puts.rb +39 -0
- data/lib/octopress/tags/render-partial.rb +89 -0
- data/lib/octopress/tags/return.rb +21 -0
- data/lib/octopress/version.rb +3 -0
- data/lib/rake/clean.rake +8 -0
- data/lib/rake/clobber.rake +5 -0
- data/lib/rake/console.rake +5 -0
- data/lib/rake/deploy.rake +4 -0
- data/lib/rake/gen_deploy.rake +2 -0
- data/lib/rake/generate.rake +4 -0
- data/lib/rake/generate_only.rake +14 -0
- data/lib/rake/hygiene.rake +29 -0
- data/lib/rake/install.rake +8 -0
- data/lib/rake/integrate.rake +4 -0
- data/lib/rake/isolate.rake +13 -0
- data/lib/rake/list_drafts.rake +7 -0
- data/lib/rake/new.rake +7 -0
- data/lib/rake/new_page.rake +49 -0
- data/lib/rake/new_post.rake +32 -0
- data/lib/rake/nuke.rake +4 -0
- data/lib/rake/preview.rake +4 -0
- data/lib/rake/push.rake +37 -0
- data/lib/rake/rsync.rake +20 -0
- data/lib/rake/set_root_dir.rake +35 -0
- data/lib/rake/setup_github_pages.rake +115 -0
- data/lib/rake/watch.rake +11 -0
- data/lib/scaffold/Rakefile +142 -0
- data/lib/scaffold/plugin-name.gemspec +43 -0
- data/lib/spec/fixtures/env/defaults/classic.yml +2 -0
- data/lib/spec/fixtures/no_override/defaults/classic.yml +11 -0
- data/lib/spec/fixtures/override/defaults/classic.yml +11 -0
- data/lib/spec/fixtures/override/site.yml +11 -0
- data/lib/spec/octopress/configuration_spec.rb +67 -0
- data/lib/spec/octopress/dependency_installer_spec.rb +66 -0
- data/lib/spec/octopress/ink_spec.rb +10 -0
- data/lib/spec/octopress/octopress_spec.rb +97 -0
- data/lib/spec/spec_helper.rb +22 -0
- data/lib/spec/support/env.rb +36 -0
- data/lib/spec/support/simplecov.rb +52 -0
- data/octopress.gemspec +52 -0
- metadata +697 -0
@@ -0,0 +1,73 @@
|
|
1
|
+
@mixin social-button-bg($icon: false, $color: #333, $img: false) {
|
2
|
+
color: $color;
|
3
|
+
&:visited, &:hover, &:visited:hover { color: $color; }
|
4
|
+
@if $img {
|
5
|
+
padding-left: image-width($img) + 6px;
|
6
|
+
&:before {
|
7
|
+
background: image-url($img) no-repeat center center;
|
8
|
+
width: image-width($img);
|
9
|
+
height: image-height($img);
|
10
|
+
position: absolute; left: 3px;
|
11
|
+
}
|
12
|
+
} @else if $icon {
|
13
|
+
padding-left: icon-sprite-width($icon) + 6px;
|
14
|
+
&:before {
|
15
|
+
vertical-align: middle;
|
16
|
+
@extend .icon-#{$icon};
|
17
|
+
position: absolute; left: 3px;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.simple-social-button {
|
23
|
+
position: relative;
|
24
|
+
overflow: hidden;
|
25
|
+
font-family: "Lucida Grande", Helvetica, Arial, sans;
|
26
|
+
display: inline-block;
|
27
|
+
border: 1px solid #ccc;
|
28
|
+
padding: .2em .5em; line-height: 1.45em;
|
29
|
+
font-size: 11px;
|
30
|
+
font-weight: bold;
|
31
|
+
text-decoration: none;
|
32
|
+
text-shadow: #fff 0 1px;
|
33
|
+
@include border-radius(.3em);
|
34
|
+
background-color: #e5e5e5;
|
35
|
+
@include background-image(linear-gradient(#fff, #ddd));
|
36
|
+
&:hover {
|
37
|
+
@include background-image(linear-gradient(#f5f5f5, #ccc));
|
38
|
+
border-color: #b5b5b5;
|
39
|
+
background-color: #ddd;
|
40
|
+
}
|
41
|
+
&:before {
|
42
|
+
content: "";
|
43
|
+
display: inline-block;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.sharing {
|
48
|
+
p.meta + & {
|
49
|
+
padding: { top: 1em; left: 0; }
|
50
|
+
background: $img-border top left repeat-x;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
#fb-root { display: none; }
|
55
|
+
|
56
|
+
.googleplus-share {
|
57
|
+
@extend .simple-social-button;
|
58
|
+
@include social-button-bg('googleplus', #db583b);
|
59
|
+
&:before { top: 5px; }
|
60
|
+
}
|
61
|
+
.facebook-share {
|
62
|
+
@extend .simple-social-button;
|
63
|
+
@include social-button-bg('facebook', #4e5a9b);
|
64
|
+
&:before { top: 3px; }
|
65
|
+
}
|
66
|
+
.twitter-share, .sidebar a.twitter-follow-button {
|
67
|
+
@extend .simple-social-button;
|
68
|
+
@include social-button-bg('twitter');
|
69
|
+
}
|
70
|
+
.sidebar .github-follow {
|
71
|
+
@extend .simple-social-button;
|
72
|
+
@include social-button-bg('github');
|
73
|
+
}
|
@@ -0,0 +1,234 @@
|
|
1
|
+
p, li {
|
2
|
+
code {
|
3
|
+
@extend .mono;
|
4
|
+
display: inline-block;
|
5
|
+
white-space: no-wrap;
|
6
|
+
background: #fff;
|
7
|
+
font-size: .8em;
|
8
|
+
line-height: 1.5em;
|
9
|
+
color: #555;
|
10
|
+
border: 1px solid #ddd;
|
11
|
+
@include border-radius(.4em);
|
12
|
+
padding: 0 .3em;
|
13
|
+
margin: -1px 0;
|
14
|
+
}
|
15
|
+
pre code { font-size: 1em; background: none; border: none; }
|
16
|
+
}
|
17
|
+
|
18
|
+
pre, figure.code table {
|
19
|
+
@if $code-selection-color != false {
|
20
|
+
@include selection($code-selection);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
pre {
|
25
|
+
background: $pre-bg $noise-bg;
|
26
|
+
@include border-radius(.4em);
|
27
|
+
@extend .mono;
|
28
|
+
color: $pre-color;
|
29
|
+
overflow: scroll;
|
30
|
+
overflow-y: hidden;
|
31
|
+
overflow-x: auto;
|
32
|
+
border: 1px solid $pre-border;
|
33
|
+
margin-bottom: 2.1em;
|
34
|
+
padding: 1em .8em;
|
35
|
+
font-size: 13px;
|
36
|
+
line-height: 1.45em;
|
37
|
+
}
|
38
|
+
|
39
|
+
figure.code {
|
40
|
+
@include box-shadow(rgba(#000, .06) 0 0 10px);
|
41
|
+
background: none;
|
42
|
+
padding: 0;
|
43
|
+
border: 0;
|
44
|
+
margin-bottom: 1.5em;
|
45
|
+
pre {
|
46
|
+
@include border-radius(0px);
|
47
|
+
@include box-shadow(none);
|
48
|
+
background: none;
|
49
|
+
color: $base1;
|
50
|
+
border: none;
|
51
|
+
padding: 0;
|
52
|
+
margin-bottom: 0;
|
53
|
+
overflow: visible;
|
54
|
+
font-style: normal;
|
55
|
+
font-weight: normal;
|
56
|
+
}
|
57
|
+
figcaption {
|
58
|
+
position: relative;
|
59
|
+
text-align: center;
|
60
|
+
font-size: 13px;
|
61
|
+
line-height: 2em;
|
62
|
+
font-weight: normal;
|
63
|
+
margin-bottom: 0;
|
64
|
+
@include border-top-radius(5px);
|
65
|
+
font-family: "Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;
|
66
|
+
background-color: #aaaaaa;
|
67
|
+
@if lightness($base03) <= lightness(#555) {
|
68
|
+
text-shadow: #cbcccc 0 1px 0;
|
69
|
+
color: #555;
|
70
|
+
@include background-image(linear-gradient(
|
71
|
+
#e0e0e0, #cfcfcf 6%, #b1b1b1 90%, #aaaaaa
|
72
|
+
));
|
73
|
+
border: 1px solid #a5a5a5 {
|
74
|
+
top-color: #cbcbcb;
|
75
|
+
bottom: 0;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
@else if lightness($base03) > lightness(#555) {
|
79
|
+
text-shadow: #fff 0 1px 0;
|
80
|
+
color: #777;
|
81
|
+
@include background-image(linear-gradient(
|
82
|
+
#fff, #f0f0f0 6%, #e5e5e5 90%, #ddd
|
83
|
+
));
|
84
|
+
border: 1px solid #c5c5c5 {
|
85
|
+
top-color: #d5d5d5;
|
86
|
+
bottom: 0;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
a {
|
90
|
+
position: absolute; right: .8em;
|
91
|
+
@include hover-link;
|
92
|
+
color: inherit;
|
93
|
+
z-index: 1;
|
94
|
+
padding-left: 3em;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
.marked {
|
98
|
+
position: relative;
|
99
|
+
display: block;
|
100
|
+
&:after {
|
101
|
+
content: "";
|
102
|
+
position: absolute;
|
103
|
+
background: $marker-bg;
|
104
|
+
left: -.8em; top: 0; bottom: 0; right: -.8em;
|
105
|
+
border: 0px solid $marker-border {
|
106
|
+
left-color: $marker-border-left;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
&.start:after {
|
110
|
+
border-top-width: 1px;
|
111
|
+
}
|
112
|
+
&.end:after {
|
113
|
+
border-bottom-width: 1px;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
.unnumbered, .line-numbers {
|
117
|
+
.marked:after { border-left-width: 2px; }
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
figure .highlight {
|
122
|
+
border: 1px solid $pre-border;
|
123
|
+
background: $base03;
|
124
|
+
overflow-y: hidden;
|
125
|
+
overflow-x: auto;
|
126
|
+
|
127
|
+
// allows line number to be read by screen readers but won't be selected when copying code
|
128
|
+
[data-line]:before { content: attr(data-line); }
|
129
|
+
|
130
|
+
td {
|
131
|
+
line-height: 1.45em;
|
132
|
+
font-size: 13px;
|
133
|
+
pre { padding: .8em; }
|
134
|
+
}
|
135
|
+
|
136
|
+
.main {
|
137
|
+
width: 100%;
|
138
|
+
background: $base03 $noise-bg;
|
139
|
+
}
|
140
|
+
|
141
|
+
.line-numbers {
|
142
|
+
text-align: right;
|
143
|
+
pre { color: $base01; }
|
144
|
+
|
145
|
+
@if lightness($base03) > lightness(#555) {
|
146
|
+
background: lighten($base03, 1) $noise-bg;
|
147
|
+
border-right: 1px solid darken($base02, 2);
|
148
|
+
@include box-shadow(lighten($base03, 2) -1px 0 inset);
|
149
|
+
text-shadow: lighten($base02, 2) 0 -1px;
|
150
|
+
} @else {
|
151
|
+
background: $base02 $noise-bg;
|
152
|
+
border-right: 1px solid darken($base03, 2);
|
153
|
+
@include box-shadow(lighten($base02, 2) -1px 0 inset);
|
154
|
+
text-shadow: darken($base02, 10) 0 -1px;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
.c { color: $base01; font-style: italic; } /* Comment */
|
159
|
+
.cm { color: $base01; font-style: italic; } /* Comment.Multiline */
|
160
|
+
.cp { color: $base01; font-style: italic; } /* Comment.Preproc */
|
161
|
+
.c1 { color: $base01; font-style: italic; } /* Comment.Single */
|
162
|
+
.cs { color: $base01; font-weight: bold; font-style: italic; } /* Comment.Special */
|
163
|
+
.err { color: $solar-red; background: none; } /* Error */
|
164
|
+
.k { color: $solar-orange; } /* Keyword */
|
165
|
+
.o { color: $base1; font-weight: bold; } /* Operator */
|
166
|
+
.p { color: $base1; } /* Operator */
|
167
|
+
.ow { color: $solar-cyan; font-weight: bold; } /* Operator.Word */
|
168
|
+
.gd { color: $base1; background-color: mix($solar-red, $base03, 25%); display: inline-block; } /* Generic.Deleted */
|
169
|
+
.gd .x { color: $base1; background-color: mix($solar-red, $base03, 35%); display: inline-block; } /* Generic.Deleted.Specific */
|
170
|
+
.ge { color: $base1; font-style: italic; } /* Generic.Emph */
|
171
|
+
//.gr { color: #aa0000 } /* Generic.Error */
|
172
|
+
.gh { color: $base01; } /* Generic.Heading */
|
173
|
+
.gi { color: $base1; background-color: mix($solar-green, $base03, 20%); display: inline-block; } /* Generic.Inserted */
|
174
|
+
.gi .x { color: $base1; background-color: mix($solar-green, $base03, 40%); display: inline-block; } /* Generic.Inserted.Specific */
|
175
|
+
//.go { color: #888888 } /* Generic.Output */
|
176
|
+
//.gp { color: #555555 } /* Generic.Prompt */
|
177
|
+
.gs { color: $base1; font-weight: bold; } /* Generic.Strong */
|
178
|
+
.gu { color: $solar-violet; } /* Generic.Subheading */
|
179
|
+
//.gt { color: #aa0000 } /* Generic.Traceback */
|
180
|
+
.kc { color: $solar-green; font-weight: bold; } /* Keyword.Constant */
|
181
|
+
.kd { color: $solar-blue; } /* Keyword.Declaration */
|
182
|
+
.kp { color: $solar-orange; font-weight: bold; } /* Keyword.Pseudo */
|
183
|
+
.kr { color: $solar-magenta; font-weight: bold; } /* Keyword.Reserved */
|
184
|
+
.kt { color: $solar-cyan; } /* Keyword.Type */
|
185
|
+
.n { color: $solar-blue; }
|
186
|
+
.na { color: $solar-blue; } /* Name.Attribute */
|
187
|
+
.nb { color: $solar-green; } /* Name.Builtin */
|
188
|
+
.nc { color: $solar-magenta;} /* Name.Class */
|
189
|
+
.no { color: $solar-yellow; } /* Name.Constant */
|
190
|
+
//.ni { color: #800080 } /* Name.Entity */
|
191
|
+
.nl { color: $solar-green; }
|
192
|
+
.ne { color: $solar-blue; font-weight: bold; } /* Name.Exception */
|
193
|
+
.nf { color: $solar-blue; font-weight: bold; } /* Name.Function */
|
194
|
+
.nn { color: $solar-yellow; } /* Name.Namespace */
|
195
|
+
.nt { color: $solar-blue; font-weight: bold; } /* Name.Tag */
|
196
|
+
.nx { color: $solar-yellow !important; }
|
197
|
+
//.bp { color: #999999 } /* Name.Builtin.Pseudo */
|
198
|
+
//.vc { color: #008080 } /* Name.Variable.Class */
|
199
|
+
.vg { color: $solar-blue; } /* Name.Variable.Global */
|
200
|
+
.vi { color: $solar-blue; } /* Name.Variable.Instance */
|
201
|
+
.nv { color: $solar-blue; } /* Name.Variable */
|
202
|
+
//.w { color: #bbbbbb } /* Text.Whitespace */
|
203
|
+
.mf { color: $solar-cyan; } /* Literal.Number.Float */
|
204
|
+
.m { color: $solar-cyan; } /* Literal.Number */
|
205
|
+
.mh { color: $solar-cyan; } /* Literal.Number.Hex */
|
206
|
+
.mi { color: $solar-cyan; } /* Literal.Number.Integer */
|
207
|
+
//.mo { color: #009999 } /* Literal.Number.Oct */
|
208
|
+
.s { color: $solar-cyan; } /* Literal.String */
|
209
|
+
//.sb { color: #d14 } /* Literal.String.Backtick */
|
210
|
+
//.sc { color: #d14 } /* Literal.String.Char */
|
211
|
+
.sd { color: $solar-cyan; } /* Literal.String.Doc */
|
212
|
+
.s2 { color: $solar-cyan; } /* Literal.String.Double */
|
213
|
+
.se { color: $solar-red; } /* Literal.String.Escape */
|
214
|
+
//.sh { color: #d14 } /* Literal.String.Heredoc */
|
215
|
+
.si { color: $solar-blue; } /* Literal.String.Interpol */
|
216
|
+
//.sx { color: #d14 } /* Literal.String.Other */
|
217
|
+
.sr { color: $solar-cyan; } /* Literal.String.Regex */
|
218
|
+
.s1 { color: $solar-cyan; } /* Literal.String.Single */
|
219
|
+
//.ss { color: #990073 } /* Literal.String.Symbol */
|
220
|
+
//.il { color: #009999 } /* Literal.Number.Integer.Long */
|
221
|
+
div { .gd, .gd .x, .gi, .gi .x { display: inline-block; width: 100%; }}
|
222
|
+
}
|
223
|
+
|
224
|
+
$solar-scroll-bg: rgba(#fff, .15);
|
225
|
+
$solar-scroll-thumb: rgba(#fff, .2);
|
226
|
+
@if lightness($base03) > lightness(#555) {
|
227
|
+
$solar-scroll-bg: rgba(#000, .15);
|
228
|
+
$solar-scroll-thumb: rgba(#000, .15);
|
229
|
+
}
|
230
|
+
|
231
|
+
pre, figure .highlight {
|
232
|
+
&::-webkit-scrollbar { height: .5em; background: $solar-scroll-bg; }
|
233
|
+
&::-webkit-scrollbar-thumb:horizontal { background: $solar-scroll-thumb; -webkit-border-radius: 4px; border-radius: 4px }
|
234
|
+
}
|
@@ -0,0 +1,106 @@
|
|
1
|
+
.side-shadow-border {
|
2
|
+
@include box-shadow(lighten($sidebar-bg, 5) 0 1px);
|
3
|
+
}
|
4
|
+
.sidebar {
|
5
|
+
overflow: hidden;
|
6
|
+
color: $sidebar-color;
|
7
|
+
text-shadow: lighten($sidebar-bg, 8) 0 1px;
|
8
|
+
a { @extend .force-wrap; }
|
9
|
+
section {
|
10
|
+
@extend .sans;
|
11
|
+
font-size: .8em;
|
12
|
+
line-height: 1.4em;
|
13
|
+
margin-bottom: 1.5em;
|
14
|
+
h1 {
|
15
|
+
margin: 1.5em 0 0;
|
16
|
+
padding-bottom: .2em;
|
17
|
+
border-bottom: 1px solid $sidebar-border;
|
18
|
+
@extend .side-shadow-border;
|
19
|
+
+ p {
|
20
|
+
padding-top: .4em;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
img {
|
25
|
+
@extend .flex-content;
|
26
|
+
@extend .basic-alignment;
|
27
|
+
@include shadow-box($border: #fff .3em solid);
|
28
|
+
}
|
29
|
+
ul {
|
30
|
+
margin-bottom: 0.5em;
|
31
|
+
margin-left: 0;
|
32
|
+
}
|
33
|
+
li {
|
34
|
+
list-style: none;
|
35
|
+
padding: .5em 0;
|
36
|
+
margin: 0;
|
37
|
+
border-bottom: 1px solid $sidebar-border;
|
38
|
+
@extend .side-shadow-border;
|
39
|
+
p:last-child {
|
40
|
+
margin-bottom: 0;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
a {
|
44
|
+
color: inherit;
|
45
|
+
@include transition(color .5s);
|
46
|
+
}
|
47
|
+
&:hover p a, &:hover li a {
|
48
|
+
color: $sidebar-link-color;
|
49
|
+
&:hover { color: $sidebar-link-color-hover; }
|
50
|
+
}
|
51
|
+
}
|
52
|
+
.aside-alt-link {
|
53
|
+
color: $sidebar-link-color-subdued;
|
54
|
+
&:hover {
|
55
|
+
color: $sidebar-link-color-subdued-hover;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
@media only screen and (min-width: 768px) {
|
60
|
+
.toggle-sidebar {
|
61
|
+
outline: none;
|
62
|
+
position: absolute; right: -10px; top: 0; bottom: 0;
|
63
|
+
display: inline-block;
|
64
|
+
text-decoration: none;
|
65
|
+
color: mix($text-color-light, $sidebar-bg);
|
66
|
+
width: 9px;
|
67
|
+
cursor: pointer;
|
68
|
+
&:hover {
|
69
|
+
background: mix($sidebar-border, $sidebar-bg);
|
70
|
+
@include background(linear-gradient(left, rgba($sidebar-border, .5), rgba($sidebar-border, 0)));
|
71
|
+
}
|
72
|
+
&:after {
|
73
|
+
position: absolute; right: -11px; top: 0;
|
74
|
+
width: 20px;
|
75
|
+
font-size: 1.2em;
|
76
|
+
line-height: 1.1em;
|
77
|
+
padding-bottom: .15em;
|
78
|
+
@include border-bottom-right-radius(.3em);
|
79
|
+
text-align: center;
|
80
|
+
background: $main-bg $noise-bg;
|
81
|
+
border-bottom: 1px solid $sidebar-border;
|
82
|
+
border-right: 1px solid $sidebar-border;
|
83
|
+
content: "\00BB";
|
84
|
+
text-indent: -1px;
|
85
|
+
}
|
86
|
+
.collapse-sidebar & {
|
87
|
+
text-indent: 0px;
|
88
|
+
right: -20px;
|
89
|
+
width: 19px;
|
90
|
+
&:hover {
|
91
|
+
background: mix($sidebar-border, $sidebar-bg);
|
92
|
+
}
|
93
|
+
&:after {
|
94
|
+
border-left: 1px solid $sidebar-border;
|
95
|
+
text-shadow: #fff 0 1px;
|
96
|
+
content: "\00AB";
|
97
|
+
left: 0px; right: 0;
|
98
|
+
text-align: center;
|
99
|
+
text-indent: 0;
|
100
|
+
border: 0;
|
101
|
+
border-right-width: 0;
|
102
|
+
background: none;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
.googleplus {
|
2
|
+
h1 {
|
3
|
+
-moz-box-shadow: none !important;
|
4
|
+
-webkit-box-shadow: none !important;
|
5
|
+
-o-box-shadow: none !important;
|
6
|
+
box-shadow: none !important;
|
7
|
+
border-bottom: 0px none !important;
|
8
|
+
}
|
9
|
+
a {
|
10
|
+
text-decoration: none;
|
11
|
+
white-space: normal !important;
|
12
|
+
line-height: 32px;
|
13
|
+
|
14
|
+
img {
|
15
|
+
float: left;
|
16
|
+
margin-right: 0.5em;
|
17
|
+
border: 0 none;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.googleplus-hidden {
|
23
|
+
position: absolute;
|
24
|
+
top: -1000em;
|
25
|
+
left: -1000em;
|
26
|
+
}
|