jekyll-readthedocs 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d95ae1c87b1ed96f23b69389de879a059457d2290943858a895f0fef65c7551
4
- data.tar.gz: 24099875bab1a00bbc2db6e351d0de8587db4c712e6e98ebcd42d1d6d665a3b8
3
+ metadata.gz: 30f994066a2aec8d7a30a6a54294d3b229a9d86ab06d26f91af11cb73a0102e7
4
+ data.tar.gz: dc5f20b3192831e0617384ebd8ba741596aa2fef3f28e9c60ddf45defcc2ae43
5
5
  SHA512:
6
- metadata.gz: 3317e0bcae3c6f7e8812436c3465916c36dfd86907d1936ba867f41ddb3966115f43f578050577bad3ee01de32c92cf87612aa759d8322ce94b9bfaf423208a1
7
- data.tar.gz: 12b8b1bf95f03488d77cb41762fcbb993c267b4feeff9f8f60bd1d6cd12787678b6afce54675ae305db3ddb690a975d52687ca7576ffb2485b7e534d800ca0d9
6
+ metadata.gz: 208bf423bff6e525981902610daafe0d4ee8a8c0d3ca774dbcff6216b54e9af92d8cbcfc192cd8506c83c7e0687bf1a82e6666bc00aaef894c069a21e7463b28
7
+ data.tar.gz: 1970e0c4683ccf3559928c4e5b90c2ed3916b3866ea34ad42db4f122fc2737399d3467d17bd242056b181e625d0337e2af324ab8835a5e79f5a1a98a5d76ac10
@@ -1,12 +1,7 @@
1
1
  <div class="site-sidebar">
2
- <div class="no-scroll-bar">
3
2
 
4
3
  <a class="sidebar-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
5
4
 
6
- <form method="get" action="{{ site.baseurl }}/search.html">
7
- <input type="text" name="q" placeholder="Search blog">
8
- </form>
9
-
10
5
  {% assign default_paths = site.pages | map: "path" %}
11
6
  {% assign page_paths = site.header_pages | default: default_paths %}
12
7
  <!-- {% if page_paths %} -->
@@ -22,6 +17,10 @@
22
17
  </span>
23
18
  </label>
24
19
 
20
+ <form class="trigger" method="get" action="{{ site.baseurl }}/search.html">
21
+ <input type="text" name="q" placeholder="Search blog">
22
+ </form>
23
+
25
24
  <ul id="page-list" class="trigger sidebar-list">
26
25
  {% for path in page_paths %}
27
26
  {% assign my_page = site.pages | where: "path", path | first %}
@@ -45,5 +44,4 @@
45
44
  {% endif %}
46
45
  </nav>
47
46
 
48
- </div>
49
47
  </div>
@@ -30,84 +30,6 @@
30
30
  }
31
31
  }
32
32
 
33
- .site-nav {
34
- float: right;
35
- line-height: $base-line-height * $base-font-size * 2.25;
36
-
37
- .nav-trigger {
38
- display: none;
39
- }
40
-
41
- .menu-icon {
42
- display: none;
43
- }
44
-
45
- .page-link {
46
- color: $text-color;
47
- line-height: $base-line-height;
48
-
49
- // Gaps between nav items, but not on the last one
50
- &:not(:last-child) {
51
- margin-right: 20px;
52
- }
53
- }
54
-
55
- @include media-query($on-palm) {
56
- position: absolute;
57
- top: 9px;
58
- right: 0;
59
- background-color: #171A2F;
60
- // border: 1px solid $grey-color-light;
61
- // border-radius: 5px;
62
- text-align: right;
63
-
64
- label[for="nav-trigger"] {
65
- display: block;
66
- float: right;
67
- width: 36px;
68
- height: 36px;
69
- z-index: 2;
70
- cursor: pointer;
71
- }
72
-
73
- .menu-icon {
74
- display: block;
75
- float: right;
76
- width: 36px;
77
- height: 26px;
78
- line-height: 0;
79
- padding-top: 10px;
80
- text-align: center;
81
-
82
- > svg path {
83
- fill: $grey-color-dark;
84
- }
85
- }
86
-
87
- input ~ .trigger {
88
- clear: both;
89
- display: none;
90
- }
91
-
92
- input:checked ~ .trigger {
93
- display: block;
94
- padding-bottom: 5px;
95
- }
96
-
97
- .page-link {
98
- display: block;
99
- padding: 5px 10px;
100
-
101
- &:not(:last-child) {
102
- margin-right: 0;
103
- }
104
- margin-left: 20px;
105
- }
106
- }
107
- }
108
-
109
-
110
-
111
33
  /**
112
34
  * Site footer
113
35
  */
@@ -287,28 +209,100 @@
287
209
  }
288
210
  }
289
211
 
212
+
213
+
290
214
  .site-sidebar {
291
- z-index: 1000;
215
+ z-index: 200;
292
216
  height: 100%;
293
217
  width: 300px;
294
218
  position: fixed;
295
219
  background-color: #171A2F;
296
220
  overflow-x: hidden;
297
- overflow-y: hidden;
221
+ overflow-y: scroll;
298
222
 
299
223
  @include media-query($on-palm) {
300
- height: 50px;
301
- width: 100%;
302
224
  position: absolute;
303
225
  top: 0;
226
+ width: 100%;
227
+ height: auto;
228
+ line-height: $base-line-height * $base-font-size * 0.6;
229
+
230
+ input:checked {
231
+ height: auto;
232
+ max-height: none;
233
+ }
304
234
  }
305
235
 
306
- .no-scroll-bar {
307
- width: 320px;
308
- padding-right: 20px;
309
- overflow-x: hidden;
310
- overflow-y: scroll;
236
+ .site-nav {
237
+ background-color: #171A2F;
238
+
239
+ width: 100%;
311
240
  height: 100%;
241
+
242
+ .nav-trigger {
243
+ display: none;
244
+ }
245
+
246
+ .menu-icon {
247
+ display: none;
248
+ }
249
+
250
+ .page-link {
251
+ color: $text-color;
252
+ line-height: $base-line-height;
253
+
254
+ // Gaps between nav items, but not on the last one
255
+ &:not(:last-child) {
256
+ margin-right: 20px;
257
+ }
258
+ }
259
+
260
+ @include media-query($on-palm) {
261
+ background-color: #171A2F;
262
+
263
+ label[for="nav-trigger"] {
264
+ position: absolute;
265
+ top: 9px;
266
+ right: 0;
267
+ width: 36px;
268
+ height: 36px;
269
+ cursor: pointer;
270
+ }
271
+
272
+ .menu-icon {
273
+ display: block;
274
+ float: right;
275
+ width: 36px;
276
+ height: 26px;
277
+ line-height: 0;
278
+ padding-top: 10px;
279
+ text-align: center;
280
+
281
+ > svg path {
282
+ fill: $grey-color-dark;
283
+ }
284
+ }
285
+
286
+ input ~ .trigger {
287
+ clear: both;
288
+ display: none;
289
+ }
290
+
291
+ input:checked ~ .trigger {
292
+ display: block;
293
+ padding-bottom: 5px;
294
+ }
295
+
296
+ .page-link {
297
+ display: block;
298
+ padding: 5px 10px;
299
+
300
+ &:not(:last-child) {
301
+ margin-right: 0;
302
+ }
303
+ margin-left: 20px;
304
+ }
305
+ }
312
306
  }
313
307
 
314
308
  .sidebar-title {
@@ -330,6 +324,7 @@
330
324
  }
331
325
 
332
326
  .sidebar-list {
327
+ z-index: 300px;
333
328
  margin-top: 20px;
334
329
  list-style: none;
335
330
  margin-left: 0;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-readthedocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timothée Mazzucotelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2018-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll