jekyll 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jekyll might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.markdown +1 -1
- data/lib/jekyll.rb +0 -1
- data/lib/jekyll/collection.rb +18 -3
- data/lib/jekyll/command.rb +0 -25
- data/lib/jekyll/commands/build.rb +7 -2
- data/lib/jekyll/commands/help.rb +33 -0
- data/lib/jekyll/configuration.rb +36 -28
- data/lib/jekyll/converters/markdown/kramdown_parser.rb +1 -1
- data/lib/jekyll/convertible.rb +43 -20
- data/lib/jekyll/deprecator.rb +15 -8
- data/lib/jekyll/document.rb +21 -4
- data/lib/jekyll/filters.rb +27 -1
- data/lib/jekyll/frontmatter_defaults.rb +46 -12
- data/lib/jekyll/plugin.rb +10 -1
- data/lib/jekyll/post.rb +6 -13
- data/lib/jekyll/related_posts.rb +2 -2
- data/lib/jekyll/renderer.rb +7 -2
- data/lib/jekyll/site.rb +5 -7
- data/lib/jekyll/static_file.rb +24 -4
- data/lib/jekyll/tags/include.rb +3 -1
- data/lib/jekyll/tags/post_url.rb +2 -2
- data/lib/jekyll/utils.rb +88 -69
- data/lib/jekyll/version.rb +1 -1
- data/lib/site_template/_config.yml +6 -4
- data/lib/site_template/_includes/footer.html +43 -49
- data/lib/site_template/_includes/head.html +3 -4
- data/lib/site_template/_includes/header.html +9 -10
- data/lib/site_template/_layouts/default.html +6 -5
- data/lib/site_template/_layouts/page.html +3 -3
- data/lib/site_template/_layouts/post.html +4 -4
- data/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb +6 -5
- data/lib/site_template/_sass/_base.scss +203 -0
- data/lib/site_template/_sass/_layout.scss +236 -0
- data/lib/site_template/_sass/_syntax-highlighting.scss +67 -0
- data/lib/site_template/css/main.scss +49 -0
- data/lib/site_template/feed.xml +1 -1
- data/lib/site_template/index.html +7 -4
- metadata +24 -431
- data/.gitignore +0 -15
- data/.travis.yml +0 -27
- data/CONTRIBUTING.markdown +0 -91
- data/Gemfile +0 -2
- data/History.markdown +0 -1310
- data/Rakefile +0 -268
- data/cucumber.yml +0 -3
- data/docs/jp/CONTRIBUTING.jp.markdown +0 -93
- data/docs/jp/README.jp.markdown +0 -68
- data/features/collections.feature +0 -145
- data/features/create_sites.feature +0 -158
- data/features/data.feature +0 -105
- data/features/drafts.feature +0 -46
- data/features/embed_filters.feature +0 -107
- data/features/frontmatter_defaults.feature +0 -136
- data/features/include_tag.feature +0 -68
- data/features/markdown.feature +0 -67
- data/features/pagination.feature +0 -82
- data/features/permalinks.feature +0 -85
- data/features/post_data.feature +0 -261
- data/features/post_excerpts.feature +0 -50
- data/features/rendering.feature +0 -34
- data/features/site_configuration.feature +0 -283
- data/features/site_data.feature +0 -107
- data/features/step_definitions/jekyll_steps.rb +0 -201
- data/features/support/env.rb +0 -65
- data/jekyll.gemspec +0 -66
- data/lib/site_template/css/main.css +0 -410
- data/script/bootstrap +0 -4
- data/script/branding +0 -11
- data/script/cibuild +0 -7
- data/script/console +0 -38
- data/script/proof +0 -22
- data/script/rebund +0 -140
- data/script/test +0 -17
- data/site/.gitignore +0 -4
- data/site/CNAME +0 -1
- data/site/README +0 -1
- data/site/_config.yml +0 -9
- data/site/_data/docs.yml +0 -46
- data/site/_includes/analytics.html +0 -30
- data/site/_includes/anchor_links.html +0 -32
- data/site/_includes/css/font-awesome.css +0 -44
- data/site/_includes/css/gridism.css +0 -110
- data/site/_includes/css/normalize.css +0 -1
- data/site/_includes/css/pygments.css +0 -72
- data/site/_includes/css/style.css +0 -1045
- data/site/_includes/docs_contents.html +0 -8
- data/site/_includes/docs_contents_mobile.html +0 -10
- data/site/_includes/docs_option.html +0 -11
- data/site/_includes/docs_ul.html +0 -20
- data/site/_includes/footer.html +0 -15
- data/site/_includes/header.html +0 -18
- data/site/_includes/news_contents.html +0 -33
- data/site/_includes/news_contents_mobile.html +0 -11
- data/site/_includes/news_item.html +0 -24
- data/site/_includes/primary-nav-items.html +0 -17
- data/site/_includes/section_nav.html +0 -22
- data/site/_includes/top.html +0 -17
- data/site/_layouts/default.html +0 -13
- data/site/_layouts/docs.html +0 -23
- data/site/_layouts/news.html +0 -19
- data/site/_layouts/news_item.html +0 -27
- data/site/_posts/2013-05-06-jekyll-1-0-0-released.markdown +0 -23
- data/site/_posts/2013-05-08-jekyll-1-0-1-released.markdown +0 -27
- data/site/_posts/2013-05-12-jekyll-1-0-2-released.markdown +0 -28
- data/site/_posts/2013-06-07-jekyll-1-0-3-released.markdown +0 -25
- data/site/_posts/2013-07-14-jekyll-1-1-0-released.markdown +0 -27
- data/site/_posts/2013-07-24-jekyll-1-1-1-released.markdown +0 -31
- data/site/_posts/2013-07-25-jekyll-1-0-4-released.markdown +0 -20
- data/site/_posts/2013-07-25-jekyll-1-1-2-released.markdown +0 -20
- data/site/_posts/2013-09-06-jekyll-1-2-0-released.markdown +0 -23
- data/site/_posts/2013-09-14-jekyll-1-2-1-released.markdown +0 -19
- data/site/_posts/2013-10-28-jekyll-1-3-0-rc1-released.markdown +0 -19
- data/site/_posts/2013-11-04-jekyll-1-3-0-released.markdown +0 -43
- data/site/_posts/2013-11-26-jekyll-1-3-1-released.markdown +0 -21
- data/site/_posts/2013-12-07-jekyll-1-4-0-released.markdown +0 -30
- data/site/_posts/2013-12-09-jekyll-1-4-1-released.markdown +0 -20
- data/site/_posts/2013-12-16-jekyll-1-4-2-released.markdown +0 -18
- data/site/_posts/2014-01-13-jekyll-1-4-3-released.markdown +0 -26
- data/site/_posts/2014-03-24-jekyll-1-5-0-released.markdown +0 -19
- data/site/_posts/2014-03-27-jekyll-1-5-1-released.markdown +0 -26
- data/site/_posts/2014-05-06-jekyll-turns-2-0-0.markdown +0 -31
- data/site/_posts/2014-05-08-jekyll-2-0-3-released.markdown +0 -18
- data/site/_posts/2014-06-04-jekyll-stickers-1-dollar-stickermule.markdown +0 -19
- data/site/_posts/2014-06-28-jekyll-turns-21-i-mean-2-1-0.markdown +0 -31
- data/site/_posts/2014-07-01-jekyll-2-1-1-released.markdown +0 -30
- data/site/_posts/2014-07-29-jekyll-2-2-0-released.markdown +0 -19
- data/site/css/screen.css +0 -31
- data/site/docs/assets.md +0 -66
- data/site/docs/collections.md +0 -259
- data/site/docs/configuration.md +0 -536
- data/site/docs/continuous-integration.md +0 -177
- data/site/docs/contributing.md +0 -133
- data/site/docs/datafiles.md +0 -108
- data/site/docs/deployment-methods.md +0 -127
- data/site/docs/drafts.md +0 -21
- data/site/docs/extras.md +0 -18
- data/site/docs/frontmatter.md +0 -191
- data/site/docs/github-pages.md +0 -91
- data/site/docs/history.md +0 -1514
- data/site/docs/index.md +0 -58
- data/site/docs/installation.md +0 -106
- data/site/docs/migrations.md +0 -11
- data/site/docs/pages.md +0 -86
- data/site/docs/pagination.md +0 -212
- data/site/docs/permalinks.md +0 -188
- data/site/docs/plugins.md +0 -561
- data/site/docs/posts.md +0 -211
- data/site/docs/quickstart.md +0 -26
- data/site/docs/resources.md +0 -43
- data/site/docs/sites.md +0 -29
- data/site/docs/structure.md +0 -190
- data/site/docs/templates.md +0 -376
- data/site/docs/troubleshooting.md +0 -147
- data/site/docs/upgrading.md +0 -146
- data/site/docs/usage.md +0 -74
- data/site/docs/variables.md +0 -382
- data/site/docs/windows.md +0 -44
- data/site/favicon.ico +0 -0
- data/site/feed.xml +0 -48
- data/site/fonts/FontAwesome.otf +0 -0
- data/site/fonts/fontawesome-webfont.eot +0 -0
- data/site/fonts/fontawesome-webfont.svg +0 -504
- data/site/fonts/fontawesome-webfont.ttf +0 -0
- data/site/fonts/fontawesome-webfont.woff +0 -0
- data/site/freenode.txt +0 -1
- data/site/img/article-footer.png +0 -0
- data/site/img/footer-arrow.png +0 -0
- data/site/img/footer-logo.png +0 -0
- data/site/img/jekyll-sticker.jpg +0 -0
- data/site/img/logo-2x.png +0 -0
- data/site/img/logo-rss.png +0 -0
- data/site/img/octojekyll.png +0 -0
- data/site/index.html +0 -90
- data/site/js/html5shiv.min.js +0 -4
- data/site/js/respond.min.js +0 -5
- data/site/news/index.html +0 -10
- data/site/news/releases/index.html +0 -10
- data/test/fixtures/broken_front_matter1.erb +0 -5
- data/test/fixtures/broken_front_matter2.erb +0 -4
- data/test/fixtures/broken_front_matter3.erb +0 -7
- data/test/fixtures/exploit_front_matter.erb +0 -4
- data/test/fixtures/front_matter.erb +0 -4
- data/test/helper.rb +0 -80
- data/test/source/+/%# +.md +0 -6
- data/test/source/+/foo.md +0 -7
- data/test/source/.htaccess +0 -8
- data/test/source/_config.dev.toml +0 -2
- data/test/source/_data/categories/dairy.yaml +0 -6
- data/test/source/_data/languages.yml +0 -2
- data/test/source/_data/members.json +0 -12
- data/test/source/_data/members.yaml +0 -7
- data/test/source/_data/products.yml +0 -4
- data/test/source/_drafts/draft-properties.text +0 -11
- data/test/source/_includes/include.html +0 -1
- data/test/source/_includes/params.html +0 -7
- data/test/source/_includes/sig.markdown +0 -3
- data/test/source/_layouts/default.html +0 -27
- data/test/source/_layouts/post/simple.html +0 -1
- data/test/source/_layouts/simple.html +0 -1
- data/test/source/_methods/_do_not_read_me.md +0 -5
- data/test/source/_methods/configuration.md +0 -8
- data/test/source/_methods/sanitized_path.md +0 -5
- data/test/source/_methods/site/_dont_include_me_either.md +0 -5
- data/test/source/_methods/site/generate.md +0 -6
- data/test/source/_methods/site/initialize.md +0 -4
- data/test/source/_methods/um_hi.md +0 -6
- data/test/source/_plugins/dummy.rb +0 -8
- data/test/source/_posts/2008-02-02-not-published.textile +0 -8
- data/test/source/_posts/2008-02-02-published.textile +0 -8
- data/test/source/_posts/2008-10-18-foo-bar.textile +0 -8
- data/test/source/_posts/2008-11-21-complex.textile +0 -8
- data/test/source/_posts/2008-12-03-permalinked-post.textile +0 -9
- data/test/source/_posts/2008-12-13-include.markdown +0 -8
- data/test/source/_posts/2009-01-27-array-categories.textile +0 -10
- data/test/source/_posts/2009-01-27-categories.textile +0 -7
- data/test/source/_posts/2009-01-27-category.textile +0 -7
- data/test/source/_posts/2009-01-27-empty-categories.textile +0 -7
- data/test/source/_posts/2009-01-27-empty-category.textile +0 -7
- data/test/source/_posts/2009-01-27-no-category.textile +0 -6
- data/test/source/_posts/2009-03-12-hash-#1.markdown +0 -6
- data/test/source/_posts/2009-05-18-empty-tag.textile +0 -6
- data/test/source/_posts/2009-05-18-empty-tags.textile +0 -6
- data/test/source/_posts/2009-05-18-tag.textile +0 -6
- data/test/source/_posts/2009-05-18-tags.textile +0 -9
- data/test/source/_posts/2009-06-22-empty-yaml.textile +0 -3
- data/test/source/_posts/2009-06-22-no-yaml.textile +0 -1
- data/test/source/_posts/2010-01-08-triple-dash.markdown +0 -5
- data/test/source/_posts/2010-01-09-date-override.textile +0 -7
- data/test/source/_posts/2010-01-09-time-override.textile +0 -7
- data/test/source/_posts/2010-01-09-timezone-override.textile +0 -7
- data/test/source/_posts/2010-01-16-override-data.textile +0 -4
- data/test/source/_posts/2011-04-12-md-extension.md +0 -7
- data/test/source/_posts/2011-04-12-text-extension.text +0 -0
- data/test/source/_posts/2013-01-02-post-excerpt.markdown +0 -14
- data/test/source/_posts/2013-01-12-nil-layout.textile +0 -6
- data/test/source/_posts/2013-01-12-no-layout.textile +0 -5
- data/test/source/_posts/2013-03-19-not-a-post.markdown/.gitkeep +0 -0
- data/test/source/_posts/2013-04-11-custom-excerpt.markdown +0 -10
- data/test/source/_posts/2013-05-10-number-category.textile +0 -7
- data/test/source/_posts/2013-07-22-post-excerpt-with-layout.markdown +0 -23
- data/test/source/_posts/2013-08-01-mkdn-extension.mkdn +0 -0
- data/test/source/_posts/2013-12-17-include-variable-filters.markdown +0 -21
- data/test/source/_posts/2013-12-20-properties.text +0 -11
- data/test/source/_posts/2014-01-06-permalink-traversal.md +0 -5
- data/test/source/_posts/2014-03-03-yaml-with-dots.md +0 -5
- data/test/source/_posts/2014-03-22-escape-+ %20[].markdown +0 -6
- data/test/source/_posts/es/2008-11-21-nested.textile +0 -8
- data/test/source/_sass/_grid.scss +0 -1
- data/test/source/_slides/example-slide-1.html +0 -4
- data/test/source/_slides/example-slide-2.html +0 -7
- data/test/source/_slides/example-slide-3.html +0 -5
- data/test/source/_with.dots/all.dots/2.4.0.md +0 -5
- data/test/source/_with.dots/file.with.dots.md +0 -0
- data/test/source/about.html +0 -6
- data/test/source/category/_posts/2008-9-23-categories.textile +0 -6
- data/test/source/contacts.html +0 -5
- data/test/source/contacts/bar.html +0 -5
- data/test/source/contacts/index.html +0 -5
- data/test/source/css/main.scss +0 -4
- data/test/source/css/screen.css +0 -76
- data/test/source/deal.with.dots.html +0 -7
- data/test/source/environment.html +0 -5
- data/test/source/exploit.md +0 -5
- data/test/source/foo/_posts/bar/2008-12-12-topical-post.textile +0 -8
- data/test/source/index.html +0 -22
- data/test/source/js/coffeescript.coffee +0 -10
- data/test/source/pgp.key +0 -2
- data/test/source/products.yml +0 -4
- data/test/source/properties.html +0 -8
- data/test/source/sitemap.xml +0 -32
- data/test/source/static_files.html +0 -4
- data/test/source/symlink-test/symlinked-file +0 -22
- data/test/source/unpublished.html +0 -7
- data/test/source/win/_posts/2009-05-24-yaml-linebreak.markdown +0 -7
- data/test/source/z_category/_posts/2008-9-23-categories.textile +0 -6
- data/test/suite.rb +0 -11
- data/test/test_cleaner.rb +0 -77
- data/test/test_coffeescript.rb +0 -49
- data/test/test_collections.rb +0 -224
- data/test/test_command.rb +0 -53
- data/test/test_configuration.rb +0 -201
- data/test/test_convertible.rb +0 -49
- data/test/test_document.rb +0 -193
- data/test/test_draft.rb +0 -56
- data/test/test_entry_filter.rb +0 -124
- data/test/test_excerpt.rb +0 -131
- data/test/test_filters.rb +0 -207
- data/test/test_generated_site.rb +0 -97
- data/test/test_kramdown.rb +0 -62
- data/test/test_layout_reader.rb +0 -34
- data/test/test_liquid_extensions.rb +0 -31
- data/test/test_log_adapter.rb +0 -59
- data/test/test_new_command.rb +0 -104
- data/test/test_page.rb +0 -254
- data/test/test_path_sanitization.rb +0 -18
- data/test/test_post.rb +0 -741
- data/test/test_rdiscount.rb +0 -22
- data/test/test_redcarpet.rb +0 -77
- data/test/test_redcloth.rb +0 -86
- data/test/test_related_posts.rb +0 -47
- data/test/test_sass.rb +0 -26
- data/test/test_site.rb +0 -452
- data/test/test_tags.rb +0 -509
- data/test/test_url.rb +0 -28
- data/test/test_utils.rb +0 -67
@@ -0,0 +1,203 @@
|
|
1
|
+
/**
|
2
|
+
* Reset some basic elements
|
3
|
+
*/
|
4
|
+
body, h1, h2, h3, h4, h5, h6,
|
5
|
+
p, blockquote, pre, hr,
|
6
|
+
dl, dd, ol, ul, figure {
|
7
|
+
margin: 0;
|
8
|
+
padding: 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Basic styling
|
15
|
+
*/
|
16
|
+
body {
|
17
|
+
font-family: $base-font-family;
|
18
|
+
font-size: $base-font-size;
|
19
|
+
line-height: $base-line-height;
|
20
|
+
font-weight: 300;
|
21
|
+
color: $text-color;
|
22
|
+
background-color: $background-color;
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Set `margin-bottom` to maintain vertycal rhythm
|
29
|
+
*/
|
30
|
+
h1, h2, h3, h4, h5, h6,
|
31
|
+
p, blockquote, pre,
|
32
|
+
ul, ol, dl, figure,
|
33
|
+
%vertical-rhythm {
|
34
|
+
margin-bottom: $spacing-unit / 2;
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Images
|
41
|
+
*/
|
42
|
+
img {
|
43
|
+
max-width: 100%;
|
44
|
+
vertical-align: middle;
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Figures
|
51
|
+
*/
|
52
|
+
figure > img {
|
53
|
+
display: block;
|
54
|
+
}
|
55
|
+
|
56
|
+
figcaption {
|
57
|
+
font-size: $small-font-size;
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Lists
|
64
|
+
*/
|
65
|
+
ul, ol {
|
66
|
+
margin-left: $spacing-unit;
|
67
|
+
}
|
68
|
+
|
69
|
+
li {
|
70
|
+
> ul,
|
71
|
+
> ol {
|
72
|
+
margin-bottom: 0;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
/**
|
79
|
+
* Headings
|
80
|
+
*/
|
81
|
+
h1, h2, h3, h4, h5, h6 {
|
82
|
+
font-weight: 300;
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
/**
|
88
|
+
* Links
|
89
|
+
*/
|
90
|
+
a {
|
91
|
+
color: $brand-color;
|
92
|
+
text-decoration: none;
|
93
|
+
|
94
|
+
&:visited {
|
95
|
+
color: darken($brand-color, 15%);
|
96
|
+
}
|
97
|
+
|
98
|
+
&:hover {
|
99
|
+
color: $text-color;
|
100
|
+
text-decoration: underline;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Blockquotes
|
108
|
+
*/
|
109
|
+
blockquote {
|
110
|
+
color: $grey-color;
|
111
|
+
border-left: 4px solid $grey-color-light;
|
112
|
+
padding-left: $spacing-unit / 2;
|
113
|
+
font-size: 18px;
|
114
|
+
letter-spacing: -1px;
|
115
|
+
font-style: italic;
|
116
|
+
|
117
|
+
> :last-child {
|
118
|
+
margin-bottom: 0;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Code formatting
|
126
|
+
*/
|
127
|
+
pre,
|
128
|
+
code {
|
129
|
+
font-size: 15px;
|
130
|
+
border: 1px solid $grey-color-light;
|
131
|
+
border-radius: 3px;
|
132
|
+
background-color: #eef;
|
133
|
+
}
|
134
|
+
|
135
|
+
code {
|
136
|
+
padding: 1px 5px;
|
137
|
+
}
|
138
|
+
|
139
|
+
pre {
|
140
|
+
padding: 8px 12px;
|
141
|
+
overflow-x: scroll;
|
142
|
+
|
143
|
+
> code {
|
144
|
+
border: 0;
|
145
|
+
padding-right: 0;
|
146
|
+
padding-left: 0;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Wrapper
|
154
|
+
*/
|
155
|
+
.wrapper {
|
156
|
+
max-width: -webkit-calc(800px - (#{$spacing-unit} * 2));
|
157
|
+
max-width: calc(800px - (#{$spacing-unit} * 2));
|
158
|
+
margin-right: auto;
|
159
|
+
margin-left: auto;
|
160
|
+
padding-right: $spacing-unit;
|
161
|
+
padding-left: $spacing-unit;
|
162
|
+
@extend %clearfix;
|
163
|
+
|
164
|
+
@include media-query($on-laptop) {
|
165
|
+
max-width: -webkit-calc(800px - (#{$spacing-unit}));
|
166
|
+
max-width: calc(800px - (#{$spacing-unit}));
|
167
|
+
padding-right: $spacing-unit / 2;
|
168
|
+
padding-left: $spacing-unit / 2;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Clearfix
|
176
|
+
*/
|
177
|
+
%clearfix {
|
178
|
+
|
179
|
+
&:after {
|
180
|
+
content: "";
|
181
|
+
display: table;
|
182
|
+
clear: both;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
/**
|
189
|
+
* Icons
|
190
|
+
*/
|
191
|
+
.icon {
|
192
|
+
|
193
|
+
> svg {
|
194
|
+
display: inline-block;
|
195
|
+
width: 16px;
|
196
|
+
height: 16px;
|
197
|
+
vertical-align: middle;
|
198
|
+
|
199
|
+
path {
|
200
|
+
fill: $grey-color;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
@@ -0,0 +1,236 @@
|
|
1
|
+
/**
|
2
|
+
* Site header
|
3
|
+
*/
|
4
|
+
.site-header {
|
5
|
+
border-top: 5px solid $grey-color-dark;
|
6
|
+
border-bottom: 1px solid $grey-color-light;
|
7
|
+
min-height: 56px;
|
8
|
+
|
9
|
+
// Positioning context for the mobile navigation icon
|
10
|
+
position: relative;
|
11
|
+
}
|
12
|
+
|
13
|
+
.site-title {
|
14
|
+
font-size: 26px;
|
15
|
+
line-height: 56px;
|
16
|
+
letter-spacing: -1px;
|
17
|
+
margin-bottom: 0;
|
18
|
+
float: left;
|
19
|
+
|
20
|
+
&,
|
21
|
+
&:visited {
|
22
|
+
color: $grey-color-dark;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.site-nav {
|
27
|
+
float: right;
|
28
|
+
line-height: 56px;
|
29
|
+
|
30
|
+
.menu-icon {
|
31
|
+
display: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
.page-link {
|
35
|
+
color: $text-color;
|
36
|
+
line-height: $base-line-height;
|
37
|
+
|
38
|
+
// Gaps between nav items, but not on the first one
|
39
|
+
&:not(:first-child) {
|
40
|
+
margin-left: 20px;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
@include media-query($on-palm) {
|
45
|
+
position: absolute;
|
46
|
+
top: 9px;
|
47
|
+
right: 30px;
|
48
|
+
background-color: $background-color;
|
49
|
+
border: 1px solid $grey-color-light;
|
50
|
+
border-radius: 5px;
|
51
|
+
text-align: right;
|
52
|
+
|
53
|
+
.menu-icon {
|
54
|
+
display: block;
|
55
|
+
float: right;
|
56
|
+
width: 36px;
|
57
|
+
height: 26px;
|
58
|
+
line-height: 0;
|
59
|
+
padding-top: 10px;
|
60
|
+
text-align: center;
|
61
|
+
|
62
|
+
> svg {
|
63
|
+
width: 18px;
|
64
|
+
height: 15px;
|
65
|
+
|
66
|
+
path {
|
67
|
+
fill: $grey-color-dark;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
.trigger {
|
73
|
+
clear: both;
|
74
|
+
display: none;
|
75
|
+
}
|
76
|
+
|
77
|
+
&:hover .trigger {
|
78
|
+
display: block;
|
79
|
+
padding-bottom: 5px;
|
80
|
+
}
|
81
|
+
|
82
|
+
.page-link {
|
83
|
+
display: block;
|
84
|
+
padding: 5px 10px;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Site footer
|
93
|
+
*/
|
94
|
+
.site-footer {
|
95
|
+
border-top: 1px solid $grey-color-light;
|
96
|
+
padding: $spacing-unit 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
.footer-heading {
|
100
|
+
font-size: 18px;
|
101
|
+
margin-bottom: $spacing-unit / 2;
|
102
|
+
}
|
103
|
+
|
104
|
+
.contact-list,
|
105
|
+
.social-media-list {
|
106
|
+
list-style: none;
|
107
|
+
margin-left: 0;
|
108
|
+
}
|
109
|
+
|
110
|
+
.footer-col-wrapper {
|
111
|
+
font-size: 15px;
|
112
|
+
color: $grey-color;
|
113
|
+
margin-left: -$spacing-unit / 2;
|
114
|
+
@extend %clearfix;
|
115
|
+
}
|
116
|
+
|
117
|
+
.footer-col {
|
118
|
+
float: left;
|
119
|
+
margin-bottom: $spacing-unit / 2;
|
120
|
+
padding-left: $spacing-unit / 2;
|
121
|
+
}
|
122
|
+
|
123
|
+
.footer-col-1 {
|
124
|
+
width: -webkit-calc(35% - (#{$spacing-unit} / 2));
|
125
|
+
width: calc(35% - (#{$spacing-unit} / 2));
|
126
|
+
}
|
127
|
+
|
128
|
+
.footer-col-2 {
|
129
|
+
width: -webkit-calc(20% - (#{$spacing-unit} / 2));
|
130
|
+
width: calc(20% - (#{$spacing-unit} / 2));
|
131
|
+
}
|
132
|
+
|
133
|
+
.footer-col-3 {
|
134
|
+
width: -webkit-calc(45% - (#{$spacing-unit} / 2));
|
135
|
+
width: calc(45% - (#{$spacing-unit} / 2));
|
136
|
+
}
|
137
|
+
|
138
|
+
@include media-query($on-laptop) {
|
139
|
+
.footer-col-1,
|
140
|
+
.footer-col-2 {
|
141
|
+
width: -webkit-calc(50% - (#{$spacing-unit} / 2));
|
142
|
+
width: calc(50% - (#{$spacing-unit} / 2));
|
143
|
+
}
|
144
|
+
|
145
|
+
.footer-col-3 {
|
146
|
+
width: -webkit-calc(100% - (#{$spacing-unit} / 2));
|
147
|
+
width: calc(100% - (#{$spacing-unit} / 2));
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
@include media-query($on-palm) {
|
152
|
+
.footer-col {
|
153
|
+
float: none;
|
154
|
+
width: -webkit-calc(100% - (#{$spacing-unit} / 2));
|
155
|
+
width: calc(100% - (#{$spacing-unit} / 2));
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Page content
|
163
|
+
*/
|
164
|
+
.page-content {
|
165
|
+
padding: $spacing-unit 0;
|
166
|
+
}
|
167
|
+
|
168
|
+
.page-heading {
|
169
|
+
font-size: 20px;
|
170
|
+
}
|
171
|
+
|
172
|
+
.post-list {
|
173
|
+
margin-left: 0;
|
174
|
+
list-style: none;
|
175
|
+
|
176
|
+
> li {
|
177
|
+
margin-bottom: $spacing-unit;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
|
181
|
+
.post-meta {
|
182
|
+
font-size: $small-font-size;
|
183
|
+
color: $grey-color;
|
184
|
+
}
|
185
|
+
|
186
|
+
.post-link {
|
187
|
+
display: block;
|
188
|
+
font-size: 24px;
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
/**
|
194
|
+
* Posts
|
195
|
+
*/
|
196
|
+
.post-header {
|
197
|
+
margin-bottom: $spacing-unit;
|
198
|
+
}
|
199
|
+
|
200
|
+
.post-title {
|
201
|
+
font-size: 42px;
|
202
|
+
letter-spacing: -1px;
|
203
|
+
line-height: 1;
|
204
|
+
|
205
|
+
@include media-query($on-laptop) {
|
206
|
+
font-size: 36px;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
.post-content {
|
211
|
+
margin-bottom: $spacing-unit;
|
212
|
+
|
213
|
+
h2 {
|
214
|
+
font-size: 32px;
|
215
|
+
|
216
|
+
@include media-query($on-laptop) {
|
217
|
+
font-size: 28px;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
h3 {
|
222
|
+
font-size: 26px;
|
223
|
+
|
224
|
+
@include media-query($on-laptop) {
|
225
|
+
font-size: 22px;
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
h4 {
|
230
|
+
font-size: 20px;
|
231
|
+
|
232
|
+
@include media-query($on-laptop) {
|
233
|
+
font-size: 18px;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
/**
|
2
|
+
* Syntax highlighting styles
|
3
|
+
*/
|
4
|
+
.highlight {
|
5
|
+
background: #fff;
|
6
|
+
@extend %vertical-rhythm;
|
7
|
+
|
8
|
+
.c { color: #998; font-style: italic } // Comment
|
9
|
+
.err { color: #a61717; background-color: #e3d2d2 } // Error
|
10
|
+
.k { font-weight: bold } // Keyword
|
11
|
+
.o { font-weight: bold } // Operator
|
12
|
+
.cm { color: #998; font-style: italic } // Comment.Multiline
|
13
|
+
.cp { color: #999; font-weight: bold } // Comment.Preproc
|
14
|
+
.c1 { color: #998; font-style: italic } // Comment.Single
|
15
|
+
.cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
|
16
|
+
.gd { color: #000; background-color: #fdd } // Generic.Deleted
|
17
|
+
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
|
18
|
+
.ge { font-style: italic } // Generic.Emph
|
19
|
+
.gr { color: #a00 } // Generic.Error
|
20
|
+
.gh { color: #999 } // Generic.Heading
|
21
|
+
.gi { color: #000; background-color: #dfd } // Generic.Inserted
|
22
|
+
.gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
|
23
|
+
.go { color: #888 } // Generic.Output
|
24
|
+
.gp { color: #555 } // Generic.Prompt
|
25
|
+
.gs { font-weight: bold } // Generic.Strong
|
26
|
+
.gu { color: #aaa } // Generic.Subheading
|
27
|
+
.gt { color: #a00 } // Generic.Traceback
|
28
|
+
.kc { font-weight: bold } // Keyword.Constant
|
29
|
+
.kd { font-weight: bold } // Keyword.Declaration
|
30
|
+
.kp { font-weight: bold } // Keyword.Pseudo
|
31
|
+
.kr { font-weight: bold } // Keyword.Reserved
|
32
|
+
.kt { color: #458; font-weight: bold } // Keyword.Type
|
33
|
+
.m { color: #099 } // Literal.Number
|
34
|
+
.s { color: #d14 } // Literal.String
|
35
|
+
.na { color: #008080 } // Name.Attribute
|
36
|
+
.nb { color: #0086B3 } // Name.Builtin
|
37
|
+
.nc { color: #458; font-weight: bold } // Name.Class
|
38
|
+
.no { color: #008080 } // Name.Constant
|
39
|
+
.ni { color: #800080 } // Name.Entity
|
40
|
+
.ne { color: #900; font-weight: bold } // Name.Exception
|
41
|
+
.nf { color: #900; font-weight: bold } // Name.Function
|
42
|
+
.nn { color: #555 } // Name.Namespace
|
43
|
+
.nt { color: #000080 } // Name.Tag
|
44
|
+
.nv { color: #008080 } // Name.Variable
|
45
|
+
.ow { font-weight: bold } // Operator.Word
|
46
|
+
.w { color: #bbb } // Text.Whitespace
|
47
|
+
.mf { color: #099 } // Literal.Number.Float
|
48
|
+
.mh { color: #099 } // Literal.Number.Hex
|
49
|
+
.mi { color: #099 } // Literal.Number.Integer
|
50
|
+
.mo { color: #099 } // Literal.Number.Oct
|
51
|
+
.sb { color: #d14 } // Literal.String.Backtick
|
52
|
+
.sc { color: #d14 } // Literal.String.Char
|
53
|
+
.sd { color: #d14 } // Literal.String.Doc
|
54
|
+
.s2 { color: #d14 } // Literal.String.Double
|
55
|
+
.se { color: #d14 } // Literal.String.Escape
|
56
|
+
.sh { color: #d14 } // Literal.String.Heredoc
|
57
|
+
.si { color: #d14 } // Literal.String.Interpol
|
58
|
+
.sx { color: #d14 } // Literal.String.Other
|
59
|
+
.sr { color: #009926 } // Literal.String.Regex
|
60
|
+
.s1 { color: #d14 } // Literal.String.Single
|
61
|
+
.ss { color: #990073 } // Literal.String.Symbol
|
62
|
+
.bp { color: #999 } // Name.Builtin.Pseudo
|
63
|
+
.vc { color: #008080 } // Name.Variable.Class
|
64
|
+
.vg { color: #008080 } // Name.Variable.Global
|
65
|
+
.vi { color: #008080 } // Name.Variable.Instance
|
66
|
+
.il { color: #099 } // Literal.Number.Integer.Long
|
67
|
+
}
|