jekyll-theme-hydeout 3.7.0 → 3.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +0 -0
- data/README.md +167 -163
- data/_includes/category-links.html +0 -0
- data/_includes/comments.html +0 -0
- data/_includes/copyright.html +0 -0
- data/_includes/custom-foot.html +0 -0
- data/_includes/custom-head.html +0 -0
- data/_includes/custom-icon-links.html +0 -0
- data/_includes/custom-nav-links.html +0 -0
- data/_includes/disqus.html +0 -0
- data/_includes/favicons.html +0 -0
- data/_includes/font-includes.html +0 -0
- data/_includes/google-analytics.html +0 -0
- data/_includes/head.html +0 -0
- data/_includes/page-links.html +0 -0
- data/_includes/pagination-newer.html +0 -0
- data/_includes/pagination-older.html +0 -0
- data/_includes/post-meta.html +0 -0
- data/_includes/post-tags.html +0 -0
- data/_includes/related_posts.html +0 -0
- data/_includes/search-form.html +0 -0
- data/_includes/sidebar-icon-links.html +0 -0
- data/_includes/sidebar-nav-links.html +0 -0
- data/_includes/sidebar.html +0 -0
- data/_includes/svg/back-arrow.svg +0 -0
- data/_includes/svg/download.svg +0 -0
- data/_includes/svg/feed.svg +0 -0
- data/_includes/svg/github.svg +0 -0
- data/_includes/svg/search.svg +0 -0
- data/_includes/svg/tags.svg +0 -0
- data/_includes/tags-list.html +0 -0
- data/_layouts/category.html +0 -0
- data/_layouts/default.html +0 -0
- data/_layouts/index.html +0 -0
- data/_layouts/page.html +0 -0
- data/_layouts/post.html +0 -0
- data/_layouts/search.html +0 -0
- data/_layouts/tags.html +0 -0
- data/_sass/hydeout.scss +0 -0
- data/_sass/hydeout/_base.scss +0 -0
- data/_sass/hydeout/_code.scss +0 -0
- data/_sass/hydeout/_layout.scss +306 -298
- data/_sass/hydeout/_masthead.scss +0 -0
- data/_sass/hydeout/_message.scss +0 -0
- data/_sass/hydeout/_pagination.scss +0 -0
- data/_sass/hydeout/_posts.scss +0 -0
- data/_sass/hydeout/_search.scss +0 -0
- data/_sass/hydeout/_syntax.scss +0 -0
- data/_sass/hydeout/_tags.scss +0 -0
- data/_sass/hydeout/_type.scss +0 -0
- data/_sass/hydeout/_variables.scss +0 -0
- data/assets/css/main.scss +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8b6186e8fc0867a2364926d9242887c10f5b8f3
|
4
|
+
data.tar.gz: b67f562ffa575888c0cbd5918948e4fbd767a46c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f8fdc3d6f8963fd1d4fb285f15582fc2a18ee26bd42a05da0854792393c36aed5b15c85225b7a94580bcacdf319364fb7702ab40cc84e32962f4a6daaccf485
|
7
|
+
data.tar.gz: 36ae8c142eaa2df9dbf072199b371fc5bab5c7869684e2733d0ce7cb88eea02a5539716b77c550949c4b9b44d926070fbe50e206edf6e9f0b18f196db6cc53ef
|
data/LICENSE.md
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -1,163 +1,167 @@
|
|
1
|
-
# Hydeout
|
2
|
-
|
3
|
-
Hydeout updates the original [Hyde](https://github.com/poole/hyde)
|
4
|
-
theme for [Jekyll](http://jekyllrb.com) 3.x and adds new functionality.
|
5
|
-
|
6
|
-
![Desktop](/_screenshots/1.png?raw=true)
|
7
|
-
<img alt="Mobile home page" src="/_screenshots/2.png?raw=true" width="300px" />
|
8
|
-
<img alt="Mobile post page" src="/_screenshots/3.png?raw=true" width="300px" />
|
9
|
-
|
10
|
-
### Usage
|
11
|
-
|
12
|
-
Hydeout is available as the `jekyll-theme-hydeout` Ruby Gem.
|
13
|
-
Add `gem "jekyll-theme-hydeout", "~> 3.4"` to your Gemfile and run
|
14
|
-
`bundle install`.
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
layout:
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
[
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
* `_includes/
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
layout:
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
---
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
1
|
+
# Hydeout
|
2
|
+
|
3
|
+
Hydeout updates the original [Hyde](https://github.com/poole/hyde)
|
4
|
+
theme for [Jekyll](http://jekyllrb.com) 3.x and adds new functionality.
|
5
|
+
|
6
|
+
![Desktop](/_screenshots/1.png?raw=true)
|
7
|
+
<img alt="Mobile home page" src="/_screenshots/2.png?raw=true" width="300px" />
|
8
|
+
<img alt="Mobile post page" src="/_screenshots/3.png?raw=true" width="300px" />
|
9
|
+
|
10
|
+
### Usage
|
11
|
+
|
12
|
+
Hydeout is available as the `jekyll-theme-hydeout` Ruby Gem.
|
13
|
+
Add `gem "jekyll-theme-hydeout", "~> 3.4"` to your Gemfile and run
|
14
|
+
`bundle install`.
|
15
|
+
|
16
|
+
If you're installing on Github pages, you may also have to add
|
17
|
+
`remote_theme: fongandrew/hydeout` to your `_config.yml`. [See the Github
|
18
|
+
instructions for more details.](https://help.github.com/articles/adding-a-jekyll-theme-to-your-github-pages-site/)
|
19
|
+
|
20
|
+
Hydeout uses pagination, so if you have an `index.md`, you'll need to swap
|
21
|
+
it with an `index.html` that uses the `index` layout:
|
22
|
+
|
23
|
+
```
|
24
|
+
---
|
25
|
+
layout: index
|
26
|
+
title: Home
|
27
|
+
---
|
28
|
+
```
|
29
|
+
|
30
|
+
You'll also need to add a setting to `_config.yml` telling Jekyll how many posts
|
31
|
+
to include per page (e.g. `paginate: 5`).
|
32
|
+
|
33
|
+
### Keep It Simple
|
34
|
+
|
35
|
+
In keeping with the original Hyde theme, Hydeout aims to keep the overall
|
36
|
+
design lightweight and plugin-free. JavaScript is currently limited only
|
37
|
+
to Disqus and Google Analytics (and is only loaded if you provide configuration
|
38
|
+
variables).
|
39
|
+
|
40
|
+
Hydeout makes heavy use of Flexbox in its CSS. If Flexbox is not available,
|
41
|
+
the CSS degrades into a single column layout.
|
42
|
+
|
43
|
+
### Customization
|
44
|
+
|
45
|
+
Hydeout replaces Hyde's class-based theming with the use
|
46
|
+
of the following SASS variables:
|
47
|
+
|
48
|
+
```scss
|
49
|
+
$sidebar-bg-color: #202020 !default;
|
50
|
+
$sidebar-sticky: true !default;
|
51
|
+
$layout-reverse: false !default;
|
52
|
+
$link-color: #268bd2 !default;
|
53
|
+
```
|
54
|
+
|
55
|
+
To override these variables, create your own `assets/css/main.scss` file.
|
56
|
+
Define your own variables, then import in Hydeout's SCSS, like so:
|
57
|
+
|
58
|
+
```scss
|
59
|
+
---
|
60
|
+
# Jekyll needs front matter for SCSS files
|
61
|
+
---
|
62
|
+
|
63
|
+
$sidebar-bg-color: #ac4142;
|
64
|
+
$link-color: #ac4142;
|
65
|
+
$sidebar-sticky: false;
|
66
|
+
@import "hydeout";
|
67
|
+
```
|
68
|
+
|
69
|
+
See the [_variables](_sass/hydeout/_variables.scss) file for other variables
|
70
|
+
you can override.
|
71
|
+
|
72
|
+
You can see the full set of partials you can replace in the
|
73
|
+
[`_includes`](_includes) folder, but there are a few worth noting:
|
74
|
+
|
75
|
+
* `_includes/copyright.html` - Insert your own copyright here.
|
76
|
+
|
77
|
+
* `_includes/custom-head.html` - Insert custom head tags (e.g. to load your
|
78
|
+
own stylesheets)
|
79
|
+
|
80
|
+
* `_includes/custom-foot.html` - Insert custom elements at the end of the
|
81
|
+
body (e.g. for custom JS)
|
82
|
+
|
83
|
+
* `_includes/custom-nav-links.html` - Additional nav links to insert at the
|
84
|
+
end of the list of links in the sidebar.
|
85
|
+
|
86
|
+
Pro-tip: The `nav`s in the sidebar are flexboxes. Use the `order` property
|
87
|
+
to order your links.
|
88
|
+
|
89
|
+
* `_includes/custom-icon-links.html`- Additional icon links to insert at the
|
90
|
+
end of the icon links at the bottom of the sidebar. You can use the `order`
|
91
|
+
property to re-order.
|
92
|
+
|
93
|
+
* `_includes/favicons.html` - Replace references to `favicon.ico` and
|
94
|
+
`favicon.png` with your own favicons references.
|
95
|
+
|
96
|
+
* `_includes/font-includes.html` - The Abril Fatface font used for the site
|
97
|
+
title is loaded here. If you're overriding that font in the CSS, be sure
|
98
|
+
to also remove the font load reference here.
|
99
|
+
|
100
|
+
### New Features
|
101
|
+
|
102
|
+
* Hydeout adds a new tags page (accessible in the sidebar). Just create a
|
103
|
+
new page with the tags layout:
|
104
|
+
|
105
|
+
```
|
106
|
+
---
|
107
|
+
layout: tags
|
108
|
+
title: Tags
|
109
|
+
---
|
110
|
+
```
|
111
|
+
|
112
|
+
* Hydeout adds a new "category" layout for dedicated category pages.
|
113
|
+
Category pages are automatically added to the sidebar. All other pages
|
114
|
+
must have `sidebar_link: true` in their front matter to show up in
|
115
|
+
the sidebar. To create a category page, use the `category` layout"
|
116
|
+
|
117
|
+
```
|
118
|
+
---
|
119
|
+
layout: category
|
120
|
+
title: My Category
|
121
|
+
---
|
122
|
+
|
123
|
+
Description of "My Category"
|
124
|
+
```
|
125
|
+
|
126
|
+
* You can control how pages are sorted by using the `sidebar_sort_order`
|
127
|
+
parameter in the front matter. This works for both category and non-category
|
128
|
+
pages, although non-category pages will always come first. Take a look at
|
129
|
+
[`_includes/sidebar-nav-links.html`](./_includes/sidebar-nav-links.html) if
|
130
|
+
you want to customize this behavior.
|
131
|
+
|
132
|
+
```
|
133
|
+
---
|
134
|
+
layout: page
|
135
|
+
title: My page
|
136
|
+
sidebar_sort_order: 123
|
137
|
+
---
|
138
|
+
|
139
|
+
Some content.
|
140
|
+
```
|
141
|
+
|
142
|
+
* A simple redirect-to-Google search is available. Just create a page with
|
143
|
+
the `search` layout.
|
144
|
+
|
145
|
+
```
|
146
|
+
---
|
147
|
+
layout: search
|
148
|
+
title: Google Search
|
149
|
+
---
|
150
|
+
```
|
151
|
+
|
152
|
+
* Disqus integration is ready out of the box. Just add the following to
|
153
|
+
your config file:
|
154
|
+
|
155
|
+
```yaml
|
156
|
+
disqus:
|
157
|
+
shortname: my-disqus-shortname
|
158
|
+
```
|
159
|
+
|
160
|
+
If you don't want Disqus or want to use something else, override
|
161
|
+
`comments.html`.
|
162
|
+
|
163
|
+
* For Google Analytics support, define a `google_analytics` variable with
|
164
|
+
your property ID in your config file.
|
165
|
+
|
166
|
+
There's also a bunch of minor tweaks and adjustments throughout the
|
167
|
+
theme. Hope this works for you!
|
File without changes
|
data/_includes/comments.html
CHANGED
File without changes
|
data/_includes/copyright.html
CHANGED
File without changes
|
data/_includes/custom-foot.html
CHANGED
File without changes
|
data/_includes/custom-head.html
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/_includes/disqus.html
CHANGED
File without changes
|
data/_includes/favicons.html
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/_includes/head.html
CHANGED
File without changes
|
data/_includes/page-links.html
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/_includes/post-meta.html
CHANGED
File without changes
|
data/_includes/post-tags.html
CHANGED
File without changes
|
File without changes
|
data/_includes/search-form.html
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/_includes/sidebar.html
CHANGED
File without changes
|
File without changes
|
data/_includes/svg/download.svg
CHANGED
File without changes
|
data/_includes/svg/feed.svg
CHANGED
File without changes
|
data/_includes/svg/github.svg
CHANGED
File without changes
|
data/_includes/svg/search.svg
CHANGED
File without changes
|
data/_includes/svg/tags.svg
CHANGED
File without changes
|
data/_includes/tags-list.html
CHANGED
File without changes
|
data/_layouts/category.html
CHANGED
File without changes
|
data/_layouts/default.html
CHANGED
File without changes
|
data/_layouts/index.html
CHANGED
File without changes
|
data/_layouts/page.html
CHANGED
File without changes
|
data/_layouts/post.html
CHANGED
File without changes
|
data/_layouts/search.html
CHANGED
File without changes
|
data/_layouts/tags.html
CHANGED
File without changes
|
data/_sass/hydeout.scss
CHANGED
File without changes
|
data/_sass/hydeout/_base.scss
CHANGED
File without changes
|
data/_sass/hydeout/_code.scss
CHANGED
File without changes
|
data/_sass/hydeout/_layout.scss
CHANGED
@@ -1,298 +1,306 @@
|
|
1
|
-
/*
|
2
|
-
Layout
|
3
|
-
|
4
|
-
Styles for managing the structural hierarchy of the site.
|
5
|
-
Hydeout features the large colored sidebar from Hyde that houses the
|
6
|
-
site name, intro, and "footer" content. Sidebar is on top of content on
|
7
|
-
mobile and expands into sidebar on larger width displays.
|
8
|
-
|
9
|
-
Sidebar CSS assumes HTML looks like this for post pages:
|
10
|
-
|
11
|
-
body
|
12
|
-
> #sidebar
|
13
|
-
> header (primary sidebar content -- i.e. title)
|
14
|
-
> h1 (home page only, otherwise div or span)
|
15
|
-
> secondary nav content we may want to hide on certain pages
|
16
|
-
> .container
|
17
|
-
> h1 (non-home page)
|
18
|
-
> .content
|
19
|
-
|
20
|
-
Basic approach is to color in body, make sidebar background transparent,
|
21
|
-
and then fill in the .container or .content elements depending on how far
|
22
|
-
we want the sidebar or header to stretch.
|
23
|
-
*/
|
24
|
-
|
25
|
-
body {
|
26
|
-
color: rgba(255,255,255,.75);
|
27
|
-
background-color: $sidebar-bg-color;
|
28
|
-
background-image: linear-gradient(
|
29
|
-
to bottom,
|
30
|
-
lighten($sidebar-bg-color, 7%),
|
31
|
-
darken($sidebar-bg-color, 7%));
|
32
|
-
display: flex;
|
33
|
-
flex-direction: column;
|
34
|
-
min-width: 100vw;
|
35
|
-
min-height: 100vh;
|
36
|
-
}
|
37
|
-
|
38
|
-
#sidebar {
|
39
|
-
flex: 0 0 auto;
|
40
|
-
padding: $section-spacing;
|
41
|
-
|
42
|
-
.site-title {
|
43
|
-
font-family: "Abril Fatface", serif;
|
44
|
-
font-weight: normal;
|
45
|
-
font-size: $large-font-size;
|
46
|
-
color: rgba(255,255,255,.75);
|
47
|
-
margin-top: 0;
|
48
|
-
margin-bottom: $heading-spacing;
|
49
|
-
|
50
|
-
a {
|
51
|
-
color: inherit;
|
52
|
-
&:hover { color: $sidebar-title-color; }
|
53
|
-
}
|
54
|
-
|
55
|
-
.back-arrow { margin-right: 0.5rem; }
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
// Container is flexbox as well -- we want content div to stretch and fill
|
60
|
-
.container {
|
61
|
-
flex: 1 1 auto;
|
62
|
-
display: flex;
|
63
|
-
flex-direction: column;
|
64
|
-
|
65
|
-
> .content {
|
66
|
-
flex-grow: 1;
|
67
|
-
|
68
|
-
}
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
// Hide
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
}
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
$section-spacing
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
}
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
//
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
}
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
}
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
}
|
244
|
-
|
245
|
-
#sidebar
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
1
|
+
/*
|
2
|
+
Layout
|
3
|
+
|
4
|
+
Styles for managing the structural hierarchy of the site.
|
5
|
+
Hydeout features the large colored sidebar from Hyde that houses the
|
6
|
+
site name, intro, and "footer" content. Sidebar is on top of content on
|
7
|
+
mobile and expands into sidebar on larger width displays.
|
8
|
+
|
9
|
+
Sidebar CSS assumes HTML looks like this for post pages:
|
10
|
+
|
11
|
+
body
|
12
|
+
> #sidebar
|
13
|
+
> header (primary sidebar content -- i.e. title)
|
14
|
+
> h1 (home page only, otherwise div or span)
|
15
|
+
> secondary nav content we may want to hide on certain pages
|
16
|
+
> .container
|
17
|
+
> h1 (non-home page)
|
18
|
+
> .content
|
19
|
+
|
20
|
+
Basic approach is to color in body, make sidebar background transparent,
|
21
|
+
and then fill in the .container or .content elements depending on how far
|
22
|
+
we want the sidebar or header to stretch.
|
23
|
+
*/
|
24
|
+
|
25
|
+
body {
|
26
|
+
color: rgba(255,255,255,.75);
|
27
|
+
background-color: $sidebar-bg-color;
|
28
|
+
background-image: linear-gradient(
|
29
|
+
to bottom,
|
30
|
+
lighten($sidebar-bg-color, 7%),
|
31
|
+
darken($sidebar-bg-color, 7%));
|
32
|
+
display: flex;
|
33
|
+
flex-direction: column;
|
34
|
+
min-width: 100vw;
|
35
|
+
min-height: 100vh;
|
36
|
+
}
|
37
|
+
|
38
|
+
#sidebar {
|
39
|
+
flex: 0 0 auto;
|
40
|
+
padding: $section-spacing;
|
41
|
+
|
42
|
+
.site-title {
|
43
|
+
font-family: "Abril Fatface", serif;
|
44
|
+
font-weight: normal;
|
45
|
+
font-size: $large-font-size;
|
46
|
+
color: rgba(255,255,255,.75);
|
47
|
+
margin-top: 0;
|
48
|
+
margin-bottom: $heading-spacing;
|
49
|
+
|
50
|
+
a {
|
51
|
+
color: inherit;
|
52
|
+
&:hover { color: $sidebar-title-color; }
|
53
|
+
}
|
54
|
+
|
55
|
+
.back-arrow { margin-right: 0.5rem; }
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
// Container is flexbox as well -- we want content div to stretch and fill
|
60
|
+
.container {
|
61
|
+
flex: 1 1 auto;
|
62
|
+
display: flex;
|
63
|
+
flex-direction: column;
|
64
|
+
|
65
|
+
> .content {
|
66
|
+
flex-grow: 1;
|
67
|
+
padding-bottom: $section-spacing * 2;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.content {
|
72
|
+
background: $body-bg;
|
73
|
+
color: $body-color;
|
74
|
+
padding: $section-spacing;
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
/* -----------------------------------------------------------
|
79
|
+
Mobile view
|
80
|
+
----------------------------------------------------------- */
|
81
|
+
|
82
|
+
// Hide secondary nav content in sidebar
|
83
|
+
// Hide lead paragraph in sidebar
|
84
|
+
#sidebar {
|
85
|
+
header ~ *, header ~ nav, p.lead {
|
86
|
+
display: none;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
// Make header elements blend into sidebar / background
|
91
|
+
.container > header {
|
92
|
+
background: transparent;
|
93
|
+
color: white;
|
94
|
+
margin: ($heading-spacing - $section-spacing)
|
95
|
+
$section-spacing
|
96
|
+
$section-spacing;
|
97
|
+
|
98
|
+
h1, h2 {
|
99
|
+
color: white;
|
100
|
+
|
101
|
+
&:last-child {
|
102
|
+
margin-bottom: 0;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
|
108
|
+
/* -----------------------------------------------------------
|
109
|
+
Mobile view for home page)
|
110
|
+
----------------------------------------------------------- */
|
111
|
+
|
112
|
+
.home #sidebar {
|
113
|
+
|
114
|
+
// Center sidebar content
|
115
|
+
text-align: center;
|
116
|
+
|
117
|
+
// Bigger title
|
118
|
+
.site-title {
|
119
|
+
font-size: 3.25rem;
|
120
|
+
color: $sidebar-title-color;
|
121
|
+
}
|
122
|
+
|
123
|
+
// Show secondary nav content + lead
|
124
|
+
header ~ *, p.lead {
|
125
|
+
display: block;
|
126
|
+
}
|
127
|
+
|
128
|
+
header {
|
129
|
+
~ nav {
|
130
|
+
display: flex;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
// Slightly more bottom padding to compensate for heading not match 100% of
|
135
|
+
// line-height on top
|
136
|
+
> *:last-child {
|
137
|
+
margin-bottom: 0.5rem;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
|
142
|
+
/* -----------------------------------------------------------
|
143
|
+
Tablet / Desktop view
|
144
|
+
----------------------------------------------------------- */
|
145
|
+
|
146
|
+
@media (min-width: $large-breakpoint) {
|
147
|
+
body {
|
148
|
+
flex-direction: row;
|
149
|
+
height: 100vh;
|
150
|
+
overflow-y: auto;
|
151
|
+
-webkit-overflow-scrolling: touch;
|
152
|
+
> * {
|
153
|
+
max-height: 100vh;
|
154
|
+
overflow-y: auto;
|
155
|
+
-webkit-overflow-scrolling: touch;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
/* Undo mobile CSS */
|
160
|
+
|
161
|
+
#sidebar, .home #sidebar {
|
162
|
+
width: $sidebar-width;
|
163
|
+
text-align: left;
|
164
|
+
|
165
|
+
> *:last-child {
|
166
|
+
margin-bottom: 0;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
#sidebar {
|
171
|
+
.site-title {
|
172
|
+
font-size: 3.25rem;
|
173
|
+
|
174
|
+
a { color: $sidebar-title-color; }
|
175
|
+
.back-arrow { display: none; }
|
176
|
+
}
|
177
|
+
|
178
|
+
p.lead, header ~ * {
|
179
|
+
display: block;
|
180
|
+
}
|
181
|
+
|
182
|
+
header ~ nav {
|
183
|
+
display: flex;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
.index #sidebar { margin-bottom: 0; }
|
188
|
+
|
189
|
+
// Make entire container background white to contrast against sidebar
|
190
|
+
.container {
|
191
|
+
background: $body-bg;
|
192
|
+
color: $body-color;
|
193
|
+
padding: $section-spacing * 2
|
194
|
+
$section-spacing * 2
|
195
|
+
0;
|
196
|
+
height: 100vh;
|
197
|
+
|
198
|
+
> header {
|
199
|
+
color: inherit;
|
200
|
+
margin: 0;
|
201
|
+
h1, h2 {
|
202
|
+
color: inherit;
|
203
|
+
|
204
|
+
&:last-child {
|
205
|
+
margin-bottom: $heading-spacing;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
> * {
|
211
|
+
max-width: 38rem;
|
212
|
+
padding: 0;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
|
218
|
+
/* -----------------------------------------------------------
|
219
|
+
Sidebar links + nav
|
220
|
+
----------------------------------------------------------- */
|
221
|
+
|
222
|
+
#sidebar a {
|
223
|
+
color: #fff;
|
224
|
+
|
225
|
+
svg {
|
226
|
+
fill: rgba(255, 255, 255, 0.85);
|
227
|
+
}
|
228
|
+
|
229
|
+
&:hover, &:focus, &.active {
|
230
|
+
svg { fill: #fff; }
|
231
|
+
}
|
232
|
+
|
233
|
+
&:hover, &:focus {
|
234
|
+
text-decoration: underline;
|
235
|
+
&.icon {
|
236
|
+
text-decoration: none;
|
237
|
+
}
|
238
|
+
}
|
239
|
+
|
240
|
+
&.active {
|
241
|
+
font-weight: bold;
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
#sidebar nav {
|
246
|
+
display: flex;
|
247
|
+
}
|
248
|
+
|
249
|
+
#sidebar-nav-links {
|
250
|
+
flex-flow: column nowrap;
|
251
|
+
}
|
252
|
+
|
253
|
+
#sidebar-icon-links {
|
254
|
+
max-width: 100%;
|
255
|
+
flex-flow: row wrap;
|
256
|
+
justify-content: center;
|
257
|
+
margin-top: 1rem;
|
258
|
+
|
259
|
+
@media (min-width: $large-breakpoint) {
|
260
|
+
margin-left: -0.25em;
|
261
|
+
justify-content: flex-start;
|
262
|
+
}
|
263
|
+
}
|
264
|
+
|
265
|
+
#sidebar nav > * {
|
266
|
+
display: block;
|
267
|
+
line-height: 1.75;
|
268
|
+
}
|
269
|
+
|
270
|
+
#sidebar nav > .icon {
|
271
|
+
font-size: 1.5rem;
|
272
|
+
display: inline-block;
|
273
|
+
margin: 0 0.25em;
|
274
|
+
}
|
275
|
+
|
276
|
+
|
277
|
+
/* -----------------------------------------------------------
|
278
|
+
Sticky sidebar
|
279
|
+
|
280
|
+
Set $sidebar-stick variable to affix sidebar contents to the
|
281
|
+
bottom of the sidebar in tablets and up.
|
282
|
+
----------------------------------------------------------- */
|
283
|
+
|
284
|
+
@if $sidebar-sticky {
|
285
|
+
@media (min-width: $large-breakpoint) {
|
286
|
+
body {
|
287
|
+
align-items: flex-end;
|
288
|
+
}
|
289
|
+
}
|
290
|
+
}
|
291
|
+
|
292
|
+
|
293
|
+
/* -----------------------------------------------------------
|
294
|
+
Reverse layout
|
295
|
+
|
296
|
+
Flip the orientation of the page by placing the `#sidebar`
|
297
|
+
on the right.
|
298
|
+
----------------------------------------------------------- */
|
299
|
+
|
300
|
+
@if $layout-reverse {
|
301
|
+
@media (min-width: $large-breakpoint) {
|
302
|
+
.container {
|
303
|
+
order: -1;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
}
|
File without changes
|
data/_sass/hydeout/_message.scss
CHANGED
File without changes
|
File without changes
|
data/_sass/hydeout/_posts.scss
CHANGED
File without changes
|
data/_sass/hydeout/_search.scss
CHANGED
File without changes
|
data/_sass/hydeout/_syntax.scss
CHANGED
File without changes
|
data/_sass/hydeout/_tags.scss
CHANGED
File without changes
|
data/_sass/hydeout/_type.scss
CHANGED
File without changes
|
File without changes
|
data/assets/css/main.scss
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-hydeout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Fong
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.6.14
|
163
|
+
rubygems_version: 2.6.14.1
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: The Hyde theme for Jekyll, refreshed.
|