lions-jekyll-theme 0.1.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c60dddbe962c03fd18a91e72e76754abf4b8df73e5a6f2b4ff631310f06a65d9
4
- data.tar.gz: 43042f45d6dbace2a2bd9470f51b3d61dd2f386d3a35764ddb01b706936a15f4
3
+ metadata.gz: b04e0a2daf1f99be9254da7847cec14d3ca6cc6368b59ed31c8239a7bafe9d3a
4
+ data.tar.gz: a5c150f5a191e13e30969b886723f6bc96eb76e02e86c495df82bf690c0111a0
5
5
  SHA512:
6
- metadata.gz: 8fd753aa812010b9b1c3a4dfeb0f4460de8b9c88e673672871968c9fe2867a120dafc343ea99f74f2caa091905b3aeb67380b540463e2ba8fff8f8a156bd0580
7
- data.tar.gz: 2517efd58dbefa73febe3214207ef9b22a1a3d8994b9660fb301a6c7005fbd0127f62075e36b41c24ef46cc7e017aebbdeaed1d17dd6331b22e70407d344e9aa
6
+ metadata.gz: 8086d938cc255f0c969db9ceb24dd9f252f819d0a1dc1fe8a984320c173297f98290331b5f2cc6fc45fe5f70968cd8033e78f8788ca2db8ecf9d96f3c237a8d6
7
+ data.tar.gz: 17c4f9a4a05b8a1665923ececfb35d8bd2496898f03df7aa11d0ad62688f18e3ae0aeb5a21f1bd02364302e75b9a7c7f5cc9e35f183b3695e0107040f9351191
@@ -3,23 +3,17 @@
3
3
 
4
4
  <div class="wrapper">
5
5
  <div class="footer-social-wrapper">
6
- <table class="footer-social-table">
7
- <tr>
8
- {%- for social in site.socials -%}
9
- <td>
10
- <a href="{{ social.link }}" target="#">
11
- {%- if social.platform == 'email' -%}
12
- <svg class="footer-social-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"/></svg>
13
- {%- elsif social.platform == 'github' -%}
14
- <svg class="footer-social-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
15
- {%- elsif social.platform == 'linkedin' -%}
16
- <svg class="footer-social-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"/></svg>
17
- {%- endif -%}
18
- </a>
19
- </td>
20
- {%- endfor -%}
21
- </tr>
22
- </table>
6
+ {%- for social in site.socials -%}
7
+ <a href="{{ social.link }}" target="#">
8
+ {%- if social.platform == 'email' -%}
9
+ <svg class="footer-social-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"/></svg>
10
+ {%- elsif social.platform == 'github' -%}
11
+ <svg class="footer-social-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
12
+ {%- elsif social.platform == 'linkedin' -%}
13
+ <svg class="footer-social-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"/></svg>
14
+ {%- endif -%}
15
+ </a>
16
+ {%- endfor -%}
23
17
  </div>
24
18
  </div>
25
19
  </footer>
@@ -17,7 +17,7 @@
17
17
  </span>
18
18
  </label>
19
19
 
20
- <table class="header-table">
20
+ <table class="header-table show-on-bigger-screen">
21
21
  <tr>
22
22
  {%- for path in page_paths -%}
23
23
  <td>
@@ -29,6 +29,19 @@
29
29
  {%- endfor -%}
30
30
  </tr>
31
31
  </table>
32
+
33
+ <table class="trigger header-table show-on-smaller-screen ">
34
+ {%- for path in page_paths -%}
35
+ <tr>
36
+ <td>
37
+ {%- assign my_page = site.pages | where: "path", path | first -%}
38
+ {%- if my_page.title -%}
39
+ <a class="page-link header-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
40
+ {%- endif -%}
41
+ </td>
42
+ </tr>
43
+ {%- endfor -%}
44
+ </table>
32
45
  </nav>
33
46
  {%- endif -%}
34
47
  </div>
data/_layouts/home.html CHANGED
@@ -4,7 +4,19 @@ layout: base
4
4
 
5
5
  <div class="home flex-container wrapper page-content">
6
6
  <div class="wrapper">
7
- {%- include sidebar.html -%}
7
+ <div class="sidebar-parent">
8
+ <input type="checkbox" id="sidebar-toggle" class="sidebar-toggle" />
9
+ <label for="sidebar-toggle">
10
+ <div class="sidebar-toggle-box">
11
+ <img class="sidebar-toggle-picture" src="{{ site.author.profile_picture }}" />
12
+ <span class="sidebar-toggle-icon menu-icon">
13
+ <svg xmlns="http://www.w3.org/2000/svg" height="16" width="10" viewBox="0 0 320 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"/></svg>
14
+ </span>
15
+ </div>
16
+ </label>
17
+
18
+ {%- include sidebar.html -%}
19
+ </div>
8
20
  </div>
9
21
  <div class="wrapper">
10
22
  {{ content }}
@@ -208,12 +208,6 @@ html {
208
208
  padding-right: $spacing-unit * .5;
209
209
  padding-left: $spacing-unit * .5;
210
210
  @extend %clearfix;
211
-
212
- @media screen and (min-width: $on-large) {
213
- max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
214
- padding-right: $spacing-unit;
215
- padding-left: $spacing-unit;
216
- }
217
211
  }
218
212
 
219
213
 
@@ -263,16 +257,9 @@ table {
263
257
  width: 100%;
264
258
  height: 100%;
265
259
  }
266
- tr {
267
- }
268
- th, td {
269
- // padding: ($spacing-unit * .05) ($spacing-unit * .05);
270
- }
271
260
  th {
272
261
  background-color: $table-header-bg-color;
273
262
  }
274
- td {
275
- }
276
263
 
277
264
  @include media-query($on-laptop) {
278
265
  display: block;
@@ -282,8 +269,35 @@ table {
282
269
  }
283
270
  }
284
271
 
272
+
273
+
274
+ /**
275
+ * Conditional
276
+ */
277
+ @media all and (width >= $on-medium) {
278
+ .show-on-bigger-screen {
279
+ display: block;
280
+ }
281
+
282
+ .show-on-smaller-screen {
283
+ display: none;
284
+ }
285
+ }
286
+
287
+ @media all and (width < $on-medium) {
288
+ nav .show-on-bigger-screen {
289
+ display: none;
290
+ }
291
+
292
+ .show-on-smaller-screen {
293
+ display: block;
294
+ }
295
+ }
296
+
297
+
298
+
285
299
  /*
286
- * fonts
300
+ * Fonts
287
301
  */
288
302
  @font-face {
289
303
  font-family: JetBrains;
@@ -19,27 +19,26 @@
19
19
  // margin-bottom: 0;
20
20
  padding-left: 1rem;
21
21
  padding-right: 1rem;
22
+ padding-top: 5px;
23
+ padding-bottom: 5px;
22
24
  float: left;
23
25
  transition: 0.5s ease;
24
26
  height: 100%;
25
27
 
26
- @include media-query($on-palm) {
27
- padding-right: 45px;
28
- }
29
-
30
- &:visited {
31
- // color: $site-title-color;
32
- }
28
+ // @include media-query($on-palm) {
29
+ // padding-right: 45px;
30
+ // }
33
31
  }
34
32
 
35
33
  .site-nav {
36
34
  position: absolute;
35
+ z-index: 2;
37
36
  top: 9px;
38
- height: 100%;
39
37
  right: $spacing-unit * .5;
40
38
  background-color: $background-color;
41
39
  border: 1px solid $border-color-01;
42
40
  border-radius: 5px;
41
+ margin-top: 5px;
43
42
  text-align: right;
44
43
 
45
44
  .nav-trigger {
@@ -75,14 +74,15 @@
75
74
 
76
75
  input:checked ~ .trigger {
77
76
  display: block;
78
- // padding-bottom: 5px;
77
+ padding-bottom: 5px;
79
78
  }
80
79
 
81
80
  .page-link {
82
81
  color: $text-color;
82
+ text-align: right;
83
83
  // line-height: $base-line-height;
84
84
  display: block;
85
- // padding: 5px 10px;
85
+ padding: 5px 10px;
86
86
 
87
87
  // Gaps between nav items, but not on the last one
88
88
  &:not(:last-child) {
@@ -91,7 +91,7 @@
91
91
  margin-left: 20px;
92
92
  }
93
93
 
94
- @media screen and (min-width: $on-medium) {
94
+ @media all and (width >= $on-medium) {
95
95
  position: static;
96
96
  float: right;
97
97
  border: none;
@@ -105,9 +105,9 @@
105
105
  display: none;
106
106
  }
107
107
 
108
- input ~ .trigger {
109
- display: block;
110
- }
108
+ // input ~ .trigger {
109
+ // display: block;
110
+ // }
111
111
 
112
112
  .page-link {
113
113
  display: block;
@@ -142,7 +142,87 @@
142
142
  }
143
143
  }
144
144
 
145
-
145
+
146
+
147
+ /**
148
+ * Sidebar
149
+ */
150
+ .sidebar-parent {
151
+ .sidebar-toggle {
152
+ display: none;
153
+ }
154
+
155
+ .sidebar-toggle-box {
156
+ position: absolute;
157
+ top: 85px;
158
+ left: 10px;
159
+ z-index: 1;
160
+ display: flex;
161
+ align-items: center;
162
+ padding: 0.25rem;
163
+ border: solid 1px $border-color-01;
164
+ border-radius: 1rem;
165
+ cursor: pointer;
166
+ transition: ease-in-out 0.3s;
167
+
168
+ &:hover {
169
+ transform: translateX(0.5rem);
170
+ }
171
+ }
172
+
173
+ .sidebar-toggle-picture {
174
+ width: 2.5rem;
175
+ height: 2.5rem;
176
+ border-radius: 50%;
177
+ }
178
+
179
+ .sidebar-toggle-icon {
180
+ fill: $border-color-03;
181
+ transform: scale(1.5, 1.5);
182
+ margin-left: 0.2rem;
183
+ }
184
+
185
+ input {
186
+ ~ .sidebar {
187
+ left: -300px;
188
+ }
189
+
190
+ &:checked {
191
+ ~ .sidebar {
192
+ left: 0px;
193
+ }
194
+
195
+ + label > .sidebar-toggle-box {
196
+ width: 20rem;
197
+ justify-content: end;
198
+
199
+ &:hover {
200
+ transform: translateX(-0.5rem);
201
+ }
202
+
203
+ > .sidebar-toggle-picture {
204
+ transform: translateX(0.9rem);
205
+ }
206
+
207
+ > .sidebar-toggle-icon {
208
+ transform: rotate(0.5turn) translatex(2.7rem) scale(1.5, 1.5);
209
+ }
210
+ }
211
+ }
212
+ }
213
+
214
+ @media all and (width >= $on-medium) {
215
+ label[for="sidebar-toggle"] {
216
+ display: none;
217
+ }
218
+
219
+ input ~ .sidebar {
220
+ display: block;
221
+ }
222
+ }
223
+ }
224
+
225
+
146
226
 
147
227
  /**
148
228
  * Site footer
@@ -156,18 +236,12 @@
156
236
  height: 3rem;
157
237
  width: 30vw;
158
238
  min-width: 200px;
159
- display: block;
239
+ display: flex;
240
+ justify-content: space-evenly;
160
241
  margin-left: auto;
161
242
  margin-right: auto;
162
243
  }
163
244
 
164
- .footer-social-table {
165
- vertical-align: middle;
166
- border: none;
167
- width: 100%;
168
- height: 100%;
169
- }
170
-
171
245
  .footer-social-icon {
172
246
  height: 12vw;
173
247
  max-height: 30px;
@@ -189,8 +263,8 @@
189
263
  * Page content
190
264
  */
191
265
  .page-content {
192
- padding: $spacing-unit 0;
193
- // flex: 1 0 auto;
266
+ padding-top: 1rem;
267
+ padding-bottom: 1rem;
194
268
  }
195
269
 
196
270
  .page-heading {
@@ -338,11 +412,25 @@
338
412
  }
339
413
 
340
414
  .sidebar {
341
- max-width: 14rem;
415
+ max-width: 15rem;
342
416
  width: auto;
343
417
  font-family: JetBrains;
344
418
  white-space: nowrap;
345
419
  margin-right: 2rem;
420
+ transition: 0.3s linear;
421
+
422
+ @media all and (width < $on-medium) {
423
+ position: absolute;
424
+ top: 85px;
425
+ left: 0px;
426
+ z-index: 1;
427
+ padding: 1rem;
428
+ border: solid $border-color-01;
429
+ border-left: none;
430
+ border-top-right-radius: 3rem;
431
+ border-bottom-right-radius: 3rem;
432
+ background: black;
433
+ }
346
434
  }
347
435
 
348
436
  .profile-picture {
@@ -376,3 +464,4 @@
376
464
  font-weight: lighter;
377
465
  margin-left: 0.33rem;
378
466
  }
467
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lions-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anders Gilliland
@@ -75,5 +75,6 @@ requirements: []
75
75
  rubygems_version: 3.3.5
76
76
  signing_key:
77
77
  specification_version: 4
78
- summary: A custom theme built specfically for my website https://ablion.dev
78
+ summary: A custom theme built specfically for my website https://ablion.dev, now with
79
+ support for mobile devices.
79
80
  test_files: []