hamilton 0.2.1 → 0.2.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: 8cd80acdca501fbae7b5560210d090032763498ed17efcfc46cfe6b52c68962d
4
- data.tar.gz: 4c4f0b0d3bd5a892bb048062abe03329cb09947030c41eb268233b2cfd058b16
3
+ metadata.gz: 5863c0ae5bd0dd57607c3e6c4cd3536d7cf1b2564dfd3f1ce3aec4ef7beb32fc
4
+ data.tar.gz: de8e44bbad769991cd9d2e0a37857e684682ed9c9a71560a287aa00c4d0a8f43
5
5
  SHA512:
6
- metadata.gz: a253517c3e604150fac61e09f351f698e769bfe0b67eb5716cb0314c043285e1fa94712321f4411c1affd2b8289c254f6a74020fd6697891d200ba9a3c6ba35b
7
- data.tar.gz: 02d8fe88393a82bb4f5926b6bf077a31021193055c89f6695e614ec8ac0b6c00004994e1ae70dc9f82a6968d2fe4036d693390a6dec673db596723bb42f78d1c
6
+ metadata.gz: 9b61aebd1e2c870c02b60780be7923137eb1ab1d8837393a2f821f52527a4fa29f4e9cceb93972c13a5782989e813adb924d11157b7d306b81b69814e6c0ec79
7
+ data.tar.gz: c32489eac2d31e5b20eedab0e4f16ffcde448528817738659d35e902f36db2fa4bafb9587177d822dcb55b75fd2556b8ad11da801c1deb19976f85db6984802a
@@ -66,7 +66,7 @@ layout: page
66
66
  <ul class="post-list-by-taxonomy">
67
67
  {%- for post in posts -%}
68
68
  <li>
69
- <time datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m-%d" }}</time> &raquo; <a href="{{ post.url }}">{{ post.title | escape }}</a>
69
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m-%d" }}</time> &raquo; <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
70
70
  </li>
71
71
  {%- endfor -%}
72
72
  </ul>
@@ -29,7 +29,7 @@ layout: page
29
29
  {%- assign posts = taxonomy.items -%}
30
30
  {%- for post in posts -%}
31
31
  <li>
32
- <time datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m-%d" }}</time> &raquo; <a href="{{ post.url }}">{{ post.title | escape }}</a>
32
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m-%d" }}</time> &raquo; <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
33
33
  </li>
34
34
  {%- endfor -%}
35
35
  </ul>
@@ -68,6 +68,7 @@ figure > img {
68
68
 
69
69
  figcaption {
70
70
  font-size: $small-font-size;
71
+ margin-top: $spacing-unit / 2;
71
72
  }
72
73
 
73
74
  /**
@@ -207,6 +207,7 @@
207
207
  min-width: 20%;
208
208
  height: 100vh;
209
209
  position: sticky;
210
+ position: -webkit-sticky;
210
211
  top: 0;
211
212
  margin-left: $spacing-unit / 2;
212
213
 
@@ -227,6 +228,12 @@
227
228
  border: 1px solid;
228
229
  border-top-left-radius: 0.3em;
229
230
  border-top-right-radius: 0.3em;
231
+
232
+ @include media-query($on-medium) {
233
+ padding: 0;
234
+ border: 0;
235
+ margin: 0;
236
+ }
230
237
  }
231
238
 
232
239
  .post-toc-container {
@@ -236,6 +243,18 @@
236
243
  border-bottom-left-radius: 0.3em;
237
244
  border-bottom-right-radius: 0.3em;
238
245
 
246
+ /* Hide scrollbar for Chrome, Safari and Opera */
247
+ &::-webkit-scrollbar {
248
+ display: none;
249
+ }
250
+
251
+ /* Hide scrollbar for IE and Edge */
252
+ -ms-overflow-style: none;
253
+
254
+ @include media-query($on-medium) {
255
+ border: 0;
256
+ }
257
+
239
258
  ul {
240
259
  list-style: none;
241
260
  margin: 0;
@@ -9,8 +9,8 @@ $base-line-height: 1.4 !default;
9
9
 
10
10
  // Layouts
11
11
  $spacing-unit: 30px !default;
12
- $content-width: 1000px !default;
12
+ $content-width: 935px !default;
13
13
 
14
14
  $on-small: 500px !default;
15
- $on-medium: 800px !default;
16
- $on-large: 1000px !default;
15
+ $on-medium: 735px !default;
16
+ $on-large: 935px !default;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamilton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shangzhi Huang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-23 00:00:00.000000000 Z
11
+ date: 2020-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll