jekyll-twitter-theme 0.1.1 → 0.2.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/home.html +16 -6
  3. data/_sass/_main.scss +61 -26
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '058fe07683c1ede02dcdde4a255c51abc7f265a7afd7e6ec97ecddbc73a45033'
4
- data.tar.gz: cdabad6983ba18fd3bb70237fb323b203ff8f06c09b39fa6866de2cbe36d0f48
3
+ metadata.gz: 5abd93f345935d30d84fc0a06fa52fc9480759a4cb379cec3ddd476ee897281d
4
+ data.tar.gz: 2e87cfb2fbc1112a59eb444a06ccda6f30dcd87a0bfcc59ac4cca4ba17235b54
5
5
  SHA512:
6
- metadata.gz: 836418f9e0215150269f7b9eb5ad93a842a4a0e3742354a26bed17415003beed4523b9973142b066103ace1512c4bab25754f07ee5cfcf951f66484da44d76bb
7
- data.tar.gz: 2da7cbe80b12d30ffc1e718f02c677a96e9404c26b1e828d11ed8fe31eefc36a861b02c734d43ecf24d1b52f744aabb92957631c085beb356ee770614a8483aa
6
+ metadata.gz: b5f4d2de06343e5dc59de8082645350b5eb729357a992186782ba5d285ba38ab8c7bc8e688d30345b29600e68502233c3d0dea5f23c9ef806536f5d39dfdebaa
7
+ data.tar.gz: cf22a0bb81180e78380198cac35fd766dd016a0135d6c79eadacfb8f70c184c5919b41c59a6323ad57b236a7f5f3020aa82aaf6b85e403fe27067b9b8b6699b4
@@ -13,12 +13,22 @@ layout: default
13
13
  {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
14
14
  <a class="post-item" href="{{ post.url | relative_url }}">
15
15
  <article class="post-inner">
16
- <img class="post-thumbnail"
17
- src="{{ post.thumbnail | relative_url | default: site.global.post.default_thumbnail }}">
18
- <div class="post-details">
19
- <span class="post-title">{{ post.title }}</span>
20
- <span class="post-date">{{ post.date | date: date_format }}</span>
21
- <span class="post-description">{{ post.description }}</span>
16
+ <div class="post-thumbnail-container">
17
+ <img class="post-thumbnail"
18
+ src="{{ post.thumbnail | relative_url | default: site.global.post.default_thumbnail }}">
19
+ </div>
20
+ <div class="post-inner-right">
21
+ <div class="post-details">
22
+ <span class="post-title">{{ post.title }}</span>
23
+ <span class="post-date">{{ post.date | date: date_format }}</span>
24
+ <span class="post-description">{{ post.description }}</span>
25
+ </div>
26
+ <div class="post-decorations">
27
+ <div class="post-decoration-icon">{% include tw_reply_icon.html %}</div>
28
+ <div class="post-decoration-icon">{% include tw_retweet_icon.html %}</div>
29
+ <div class="post-decoration-icon">{% include tw_like_icon.html %}</div>
30
+ <div class="post-decoration-icon">{% include tw_share_icon.html %}</div>
31
+ </div>
22
32
  </div>
23
33
  </article>
24
34
  </a>
@@ -106,7 +106,7 @@ header {
106
106
  text-decoration: none;
107
107
  color: $color-font;
108
108
  }
109
- >a {
109
+ > a {
110
110
  width: 100%;
111
111
  @include desktop_collapsed() {
112
112
  width: fit-content;
@@ -269,7 +269,7 @@ main {
269
269
  width: $width-body;
270
270
  max-width: $width-body;
271
271
  border-right: 1px solid $color-border;
272
- margin-bottom: 20px;
272
+ //margin-bottom: 20px;
273
273
  @include desktop_collapsed_lv4() {
274
274
  width: 100%;
275
275
  }
@@ -318,7 +318,7 @@ main {
318
318
  border-radius: 50%;
319
319
  width: 39px;
320
320
  height: 39px;
321
- transition: .2s ease;
321
+ transition: 0.2s ease;
322
322
  &:hover {
323
323
  background: rgba($color-primary, 0.15);
324
324
  }
@@ -332,11 +332,12 @@ main {
332
332
  }
333
333
 
334
334
  .posts-container {
335
+ background: $color-background-hover;
335
336
  display: flex;
336
337
  flex-direction: column;
337
- padding-left: 20px;
338
- padding-right: 20px;
339
- padding-top: 20px;
338
+ //padding-left: 20px;
339
+ //padding-right: 20px;
340
+ //padding-top: 20px;
340
341
  width: 100%;
341
342
  @include smartphone() {
342
343
  padding: 12px !important;
@@ -346,14 +347,16 @@ main {
346
347
  color: $color-font;
347
348
  }
348
349
  .post-item {
350
+ background: $color-background;
349
351
  padding: 10px;
350
- border-radius: 12px;
351
- border: 1px solid $color-border;
352
+ border-top: 1px solid $color-border;
352
353
  display: flex;
353
354
  flex-direction: row;
354
- margin-bottom: 12px;
355
+ &:first-child {
356
+ margin-top: 10px;
357
+ }
355
358
  &:last-child {
356
- margin-bottom: 0;
359
+ border-bottom: 1px solid $color-border;
357
360
  }
358
361
  &:hover {
359
362
  background: $color-background-hover;
@@ -362,13 +365,21 @@ main {
362
365
  display: flex;
363
366
  flex-direction: row;
364
367
  width: 100%;
368
+ .post-inner-right {
369
+ display: flex;
370
+ flex-direction: column;
371
+ width: 100%;
372
+ }
365
373
  }
366
- .post-thumbnail {
367
- border-radius: 12px;
368
- object-fit: cover;
369
- width: 120px;
370
- height: 120px;
374
+ .post-thumbnail-container {
375
+ height: 100%;
371
376
  margin-right: 10px;
377
+ .post-thumbnail {
378
+ border-radius: 12px;
379
+ object-fit: cover;
380
+ width: 120px;
381
+ height: 120px;
382
+ }
372
383
  }
373
384
  .post-details {
374
385
  display: flex;
@@ -394,6 +405,19 @@ main {
394
405
  @include elipse_by_line(3);
395
406
  }
396
407
  }
408
+ .post-decorations {
409
+ display: flex;
410
+ flex-direction: row;
411
+ justify-content: space-between;
412
+ max-width: 425px;
413
+ margin-top: auto;
414
+ .post-decoration-icon {
415
+ svg {
416
+ width: 1.25em;
417
+ fill: $color-font-thin;
418
+ }
419
+ }
420
+ }
397
421
  }
398
422
  }
399
423
 
@@ -458,7 +482,8 @@ main {
458
482
  -webkit-text-size-adjust: 100%;
459
483
  line-height: 1.5;
460
484
  color: #24292e;
461
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
485
+ font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji,
486
+ Segoe UI Emoji;
462
487
  font-size: 16px;
463
488
  line-height: 1.5;
464
489
  word-wrap: break-word;
@@ -646,7 +671,7 @@ main {
646
671
  -webkit-appearance: none;
647
672
  appearance: none;
648
673
  }
649
- :checked+.radio-label {
674
+ :checked + .radio-label {
650
675
  position: relative;
651
676
  z-index: 1;
652
677
  border-color: #0366d6;
@@ -899,10 +924,10 @@ main {
899
924
  body:after {
900
925
  clear: both;
901
926
  }
902
- body> :first-child {
927
+ body > :first-child {
903
928
  margin-top: 0 !important;
904
929
  }
905
- body> :last-child {
930
+ body > :last-child {
906
931
  margin-bottom: 0 !important;
907
932
  }
908
933
  a:not([href]) {
@@ -932,10 +957,10 @@ main {
932
957
  color: #6a737d;
933
958
  border-left: 0.25em solid #dfe2e5;
934
959
  }
935
- blockquote> :first-child {
960
+ blockquote > :first-child {
936
961
  margin-top: 0;
937
962
  }
938
- blockquote> :last-child {
963
+ blockquote > :last-child {
939
964
  margin-bottom: 0;
940
965
  }
941
966
  h1,
@@ -987,10 +1012,10 @@ main {
987
1012
  li {
988
1013
  word-wrap: break-all;
989
1014
  }
990
- li>p {
1015
+ li > p {
991
1016
  margin-top: 16px;
992
1017
  }
993
- li+li {
1018
+ li + li {
994
1019
  margin-top: 0.25em;
995
1020
  }
996
1021
  dl {
@@ -1048,7 +1073,7 @@ main {
1048
1073
  pre {
1049
1074
  word-wrap: normal;
1050
1075
  }
1051
- pre>code {
1076
+ pre > code {
1052
1077
  padding: 0;
1053
1078
  margin: 0;
1054
1079
  font-size: 100%;
@@ -1197,7 +1222,7 @@ main {
1197
1222
  .task-list-item {
1198
1223
  list-style-type: none;
1199
1224
  }
1200
- .task-list-item+.task-list-item {
1225
+ .task-list-item + .task-list-item {
1201
1226
  margin-top: 3px;
1202
1227
  }
1203
1228
  .task-list-item input {
@@ -1216,4 +1241,14 @@ main {
1216
1241
  h1 {
1217
1242
  font-size: 74px !important;
1218
1243
  }
1219
- }
1244
+ }
1245
+
1246
+ .row {
1247
+ display: flex;
1248
+ flex-direction: row;
1249
+ }
1250
+
1251
+ .col {
1252
+ display: flex;
1253
+ flex-direction: column;
1254
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-twitter-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - kento
7
+ - Kento Oki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-17 00:00:00.000000000 Z
11
+ date: 2021-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll