hamilton 0.2.0 → 0.2.1

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: 0f23682df3cb6831343b61f61e1487adf606bb6804ab8d153a89b121b8fc1ff8
4
- data.tar.gz: 2b3e9c15249658a97b85736db6cf3b233149554933dea0e96268e40e420bb1f1
3
+ metadata.gz: 8cd80acdca501fbae7b5560210d090032763498ed17efcfc46cfe6b52c68962d
4
+ data.tar.gz: 4c4f0b0d3bd5a892bb048062abe03329cb09947030c41eb268233b2cfd058b16
5
5
  SHA512:
6
- metadata.gz: bcc572b9fb7f92577d70ea9c05d177d2e61c2c5dd345ae9cebb4159b11e33373df974cd2b74a7401bf20fc7e946516f8f96cd4bae716c875ce67e9a959cc7e4b
7
- data.tar.gz: 1e88ccc32a4f1df6d1eba3b1794d0c073af0fc9a5955df50ddc115ef1ff16b835d7fb664655d0535902aef9ea5f1123abe666200968f9a74baf07c15225b652d
6
+ metadata.gz: a253517c3e604150fac61e09f351f698e769bfe0b67eb5716cb0314c043285e1fa94712321f4411c1affd2b8289c254f6a74020fd6697891d200ba9a3c6ba35b
7
+ data.tar.gz: 02d8fe88393a82bb4f5926b6bf077a31021193055c89f6695e614ec8ac0b6c00004994e1ae70dc9f82a6968d2fe4036d693390a6dec673db596723bb42f78d1c
@@ -1,10 +1,8 @@
1
1
  {% if page.toc %}
2
2
  <aside class="post-aside">
3
- <div class="post-toc-container">
4
- <h2 class="post-toc-title">Table of Contents</h2>
5
- <nav class="post-toc">
6
- {% include toc.html html=content %}
7
- </nav>
8
- </div>
3
+ <h2 class="post-toc-title">Table of Contents</h2>
4
+ <nav class="post-toc-container">
5
+ {% include toc.html html=content %}
6
+ </nav>
9
7
  </aside>
10
8
  {% endif %}
@@ -202,7 +202,9 @@
202
202
  }
203
203
 
204
204
  .post-aside {
205
- min-width: 30%;
205
+ @include relative-font-size(0.8);
206
+ max-width: 30%;
207
+ min-width: 20%;
206
208
  height: 100vh;
207
209
  position: sticky;
208
210
  top: 0;
@@ -212,58 +214,61 @@
212
214
  visibility: hidden;
213
215
  max-width: 0%;
214
216
  min-width: 0%;
217
+ margin-left: 0;
215
218
  }
216
219
  }
217
220
  }
218
221
 
222
+ .post-toc-title {
223
+ @include relative-font-size(0.95);
224
+ padding: $spacing-unit / 2;
225
+ margin-top: $spacing-unit / 2;
226
+ margin-bottom: 0;
227
+ border: 1px solid;
228
+ border-top-left-radius: 0.3em;
229
+ border-top-right-radius: 0.3em;
230
+ }
231
+
219
232
  .post-toc-container {
220
- @include relative-font-size(0.8);
221
233
  max-height: 60vh;
222
234
  overflow-y: scroll;
223
235
  border: 1px solid;
224
- border-radius: 0.3em;
225
- margin-top: $spacing-unit / 2;
236
+ border-bottom-left-radius: 0.3em;
237
+ border-bottom-right-radius: 0.3em;
226
238
 
227
- .post-toc-title {
228
- padding: $spacing-unit / 2;
229
- margin-bottom: 0;
239
+ ul {
240
+ list-style: none;
241
+ margin: 0;
242
+ padding: 0;
243
+ width: 100%;
230
244
  }
231
245
 
232
- .post-toc {
233
- ul {
234
- list-style: none;
235
- margin: 0;
236
- padding: 0;
237
- width: 100%;
238
- }
246
+ a {
247
+ display: block;
248
+ padding: 0.25rem 0.75rem;
249
+ font-weight: bold;
250
+ border-bottom: 1px solid;
251
+ }
239
252
 
240
- a {
241
- display: block;
242
- padding: 0.25rem 0.75rem;
243
- font-weight: bold;
244
- border-bottom: 1px solid;
245
- }
246
-
247
- li ul > li a {
248
- padding-left: 1.25rem;
249
- font-weight: normal;
250
- }
251
-
252
- li ul li ul > li a {
253
- padding-left: 1.75rem;
254
- }
255
-
256
- li ul li ul li ul > li a {
257
- padding-left: 2.25rem;
258
- }
259
-
260
- li ul li ul li ul li ul > li a {
261
- padding-left: 2.75rem;
262
- }
263
-
264
- li ul li ul li ul li ul li ul > li a {
265
- padding-left: 3.25rem
266
- }
253
+ li ul > li a {
254
+ padding-left: 1.25rem;
255
+ font-weight: normal;
256
+ }
257
+
258
+ li ul li ul > li a {
259
+ padding-left: 1.75rem;
260
+ }
261
+
262
+ li ul li ul li ul > li a {
263
+ padding-left: 2.25rem;
264
+ }
265
+
266
+ li ul li ul li ul li ul > li a {
267
+ padding-left: 2.75rem;
268
+ }
269
+
270
+ li ul li ul li ul li ul li ul > li a {
271
+ padding-left: 3.25rem
267
272
  }
268
273
  }
269
274
 
@@ -135,18 +135,17 @@ table {
135
135
  color: $text-color-light;
136
136
  }
137
137
 
138
- .post-toc-container {
138
+ .post-toc-title {
139
+ background-color: $border-color;
139
140
  border-color: $border-color-light;
141
+ }
140
142
 
141
- .post-toc-title {
142
- background-color: $border-color;
143
- }
143
+ .post-toc-container {
144
+ border-color: $border-color-light;
144
145
 
145
- .post-toc {
146
- a {
147
- color: $text-color-light;
148
- border-bottom-color: $border-color-light;
149
- }
146
+ a {
147
+ color: $text-color-light;
148
+ border-bottom-color: $border-color-light;
150
149
  }
151
150
  }
152
151
 
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.0
4
+ version: 0.2.1
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-15 00:00:00.000000000 Z
11
+ date: 2020-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
- rubygems_version: 3.0.1
160
+ rubygems_version: 3.0.6
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Another minimal style of Jekyll theme for writers