jekyll-theme-minimalistic 0.3.2 → 0.3.3

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: 35e636d23476097f0b30bc9341812c08773ee6f950037258d61fc618492ca9e1
4
- data.tar.gz: 2ecf2d2e7176219dd8c012727f26da7590054d687ea908837e44829487b845ba
3
+ metadata.gz: 3c47a2432e900a2a43c9cb42b9f1609992371f6ebd477532a275c56c114e3f45
4
+ data.tar.gz: 2f757384295ec31bc4312d0b7fc2ce640993dd2bdff23f5e7e9a744f5a1ca5a9
5
5
  SHA512:
6
- metadata.gz: 4686aecbe73980753d70898136639f8e303aa0b90156af3e4e64ca5150227d10a86bc3bcc41f5c7ac7d9ee0041e095fad11a9759eca8e0b6857a6075ffcbbdd4
7
- data.tar.gz: a3a8f627a3264f5f25e92b948a65669ad4f259c41c1b73f5aebd86001d7a627baff7b55acb68a78cc8ab47637eba6c79a20ea624e5cf7e46b222c8fb84f8dc6d
6
+ metadata.gz: 2580036e656d27a366c1e95a7ccff7779ac218daa8b1bc5ca0f8df046c737cbabbd96d7b39ff182783275eb8c60c45d369aa041d2574cfe186a4125d1d5fe44a
7
+ data.tar.gz: a6ca519e8b04d171ba00361259db3773447504fd8ba03991f10d09454b6cfe40e61a44fbbd4be548c42682cae7a478ec4c4dce8d0143886696bff84c85c25402
@@ -0,0 +1,25 @@
1
+ <div class="link-wrapper-mobile" id="link-wrapper-mobile">
2
+ {% if site.platforms %}
3
+ {%- for platform in site.platforms %}
4
+ <nobr><a href="{{ platform.link }}" rel="me">{{ platform.icon }}&nbsp;{{ platform.name }}</a>
5
+ {%- unless forloop.last %}<span style="margin-left: 6px;"></span>{% endunless %}</nobr>
6
+ {%- endfor %}
7
+ {% endif %}
8
+
9
+ {% if site.navigation %}
10
+ <h3 class="sidebar-h3">Contents:</h3>
11
+ <ul class="content">
12
+ {%- for item in site.navigation %}
13
+ <li><a href="{{ item.link }}">{{ item.name }}</a>
14
+ {% if item.sublist %}
15
+ <ul class="sublist">
16
+ {%- for subitem in item.sublist %}
17
+ <li><a href="{{ subitem.link }}">{{ subitem.name }}</a></li>
18
+ {%- endfor %}
19
+ </ul>
20
+ {% endif %}
21
+ </li>
22
+ {%- endfor %}
23
+ </ul>
24
+ {% endif %}
25
+ </div>
@@ -1,34 +1,4 @@
1
1
  <div class="link-wrapper">
2
- <style scoped>
3
- h3 {
4
- margin: 1em 0 0.25em 0;
5
- }
6
-
7
- ul.link a {
8
- color:var(--clr-h1-and-bold);
9
- text-decoration:none;
10
- }
11
-
12
- ul.link a:hover, a:focus {
13
- color: var(--clr-a-text-hvr);
14
- }
15
-
16
- ul.content {
17
- margin-left: -1.4em;
18
- }
19
-
20
- ul.content a:hover, a:focus {
21
- text-decoration: underline;
22
- }
23
-
24
- .sublist {
25
- margin: 0 0 0;
26
- }
27
-
28
- ul.sublist {
29
- margin-left: -1.5em;
30
- }
31
- </style>
32
2
  {% if site.platforms %}
33
3
  <ul class="link">
34
4
  {%- for platform in site.platforms %}
@@ -38,7 +8,7 @@
38
8
  {% endif %}
39
9
 
40
10
  {% if site.navigation %}
41
- <h3>Contents:</h3>
11
+ <h3 class="sidebar-h3">Contents:</h3>
42
12
  <ul class="content">
43
13
  {%- for item in site.navigation %}
44
14
  <li><a href="{{ item.link }}">{{ item.name }}</a>
@@ -23,6 +23,7 @@
23
23
  <header>
24
24
  {%- include header.html -%}
25
25
  </header>
26
+ {% include mobile.html %}
26
27
  <div class="sidebar-footer">
27
28
  {%- include footer.html -%}
28
29
  </div>
@@ -2,6 +2,10 @@
2
2
  @import "colors";
3
3
  @import "rouge-github";
4
4
 
5
+ html {
6
+ scroll-behavior: smooth;
7
+ }
8
+
5
9
  body {
6
10
  background-color: var(--clr-bg);
7
11
  padding:50px;
@@ -59,14 +63,39 @@ a:hover small {
59
63
  text-decoration: underline;
60
64
  }
61
65
 
66
+ ul.link a {
67
+ color:var(--clr-h1-and-bold);
68
+ text-decoration:none;
69
+ }
70
+
71
+ ul.link a:hover, a:focus {
72
+ color: var(--clr-a-text-hvr);
73
+ }
74
+
75
+ ul.content {
76
+ margin-left: -1.4em;
77
+ }
78
+
79
+ ul.content a:hover, a:focus {
80
+ text-decoration: underline;
81
+ }
82
+
83
+ .sublist {
84
+ margin: 0 0 0;
85
+ }
86
+
87
+ ul.sublist {
88
+ margin-left: -1.5em;
89
+ }
90
+
62
91
  p.link {
63
92
  margin:0 0 4px;
64
93
  }
65
94
 
66
95
  ul.link {
67
- list-style-type: none; /* Remove bullets */
68
- margin: 0; /* To remove default bottom margin */
69
- padding: 0.4px; /* To remove default left padding */
96
+ list-style-type: none;
97
+ margin: 0;
98
+ padding: 0.4px;
70
99
  }
71
100
 
72
101
  ul.link li + li {
@@ -77,6 +106,10 @@ ul.link:last-child {
77
106
  margin-bottom: 6px;
78
107
  }
79
108
 
109
+ .link-wrapper-mobile {
110
+ display: none !important;
111
+ }
112
+
80
113
  .wrapper {
81
114
  width:860px;
82
115
  margin: 0 auto;
@@ -210,6 +243,19 @@ hr {
210
243
  flex-basis: content;
211
244
  }
212
245
 
246
+ .sidebar-h3 {
247
+ margin: 1em 0 0.25em 0;
248
+ }
249
+
250
+ #link-wrapper-mobile a {
251
+ color:var(--clr-h1-and-bold);
252
+ text-decoration:none;
253
+ }
254
+
255
+ #link-wrapper-mobile a:hover, a:focus {
256
+ color: var(--clr-a-text-hvr);
257
+ }
258
+
213
259
 
214
260
  @media print, screen and (max-width: 960px) {
215
261
 
@@ -233,6 +279,29 @@ hr {
233
279
  }
234
280
 
235
281
  @media print, screen and (max-width: 720px) {
282
+ body {
283
+ word-wrap:break-word;
284
+ }
285
+
286
+ header {
287
+ padding:0;
288
+ overflow-x: hidden;
289
+ }
290
+
291
+ header ul, header p.view {
292
+ position:static;
293
+ }
294
+ .link-wrapper {
295
+ display: none !important;
296
+ }
297
+
298
+ .link-wrapper-mobile {
299
+ display:block !important;
300
+ }
301
+
302
+ .link-wrapper-mobile {
303
+ margin-bottom: 20px;
304
+ }
236
305
 
237
306
  .sidebar {
238
307
  float: none;
@@ -264,10 +333,6 @@ hr {
264
333
  overflow-x: hidden;
265
334
  }
266
335
 
267
- header {
268
- padding-right:320px;
269
- }
270
-
271
336
  section {
272
337
  border:1px solid var(--clr-splitter-blockquote-and-section);
273
338
  border-width:1px 0;
@@ -287,21 +352,6 @@ hr {
287
352
  .logo {
288
353
  display: none !important;
289
354
  }
290
- }
291
-
292
- @media print, screen and (max-width: 720px) {
293
- body {
294
- word-wrap:break-word;
295
- }
296
-
297
- header {
298
- padding:0;
299
- overflow-x: hidden;
300
- }
301
-
302
- header ul, header p.view {
303
- position:static;
304
- }
305
355
 
306
356
  pre, code {
307
357
  word-wrap:normal;
@@ -4,9 +4,9 @@
4
4
  @import "jekyll-theme-minimalistic";
5
5
 
6
6
  .logo {
7
- -webkit-border-radius: 8px;
8
- -moz-border-radius: 8px;
9
- border-radius: 8px;
7
+ -webkit-border-radius: 100%;
8
+ -moz-border-radius: 100%;
9
+ border-radius: 100%;
10
10
  margin-bottom: 10px;
11
11
  }
12
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-minimalistic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vaibhav Vikas
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-07-08 00:00:00.000000000 Z
12
+ date: 2022-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -128,6 +128,7 @@ files:
128
128
  - _includes/head-custom-google-analytics.html
129
129
  - _includes/head-custom.html
130
130
  - _includes/header.html
131
+ - _includes/mobile.html
131
132
  - _includes/sidebar.html
132
133
  - _layouts/default.html
133
134
  - _layouts/post.html