jekyll-theme-chirpy 3.0.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.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/404.html +20 -0
  3. data/LICENSE +21 -0
  4. data/README.md +223 -0
  5. data/_config.yml +204 -0
  6. data/_data/contact.yml +30 -0
  7. data/_data/date_format.yml +7 -0
  8. data/_data/label.yml +19 -0
  9. data/_data/rights.yml +11 -0
  10. data/_data/share.yml +27 -0
  11. data/_includes/css-selector.html +10 -0
  12. data/_includes/disqus.html +25 -0
  13. data/_includes/favicons.html +32 -0
  14. data/_includes/footer.html +29 -0
  15. data/_includes/google-analytics.html +14 -0
  16. data/_includes/head.html +80 -0
  17. data/_includes/js-selector.html +39 -0
  18. data/_includes/lozad.html +10 -0
  19. data/_includes/mermaid.html +29 -0
  20. data/_includes/mode-toggle.html +145 -0
  21. data/_includes/no-linenos.html +10 -0
  22. data/_includes/panel.html +57 -0
  23. data/_includes/post-nav.html +28 -0
  24. data/_includes/post-paginator.html +80 -0
  25. data/_includes/post-sharing.html +23 -0
  26. data/_includes/read-time.html +19 -0
  27. data/_includes/refactor-content.html +66 -0
  28. data/_includes/related-posts.html +106 -0
  29. data/_includes/search-loader.html +28 -0
  30. data/_includes/search-results.html +19 -0
  31. data/_includes/sidebar.html +91 -0
  32. data/_includes/timeago.html +27 -0
  33. data/_includes/topbar.html +48 -0
  34. data/_includes/trending-tags.html +36 -0
  35. data/_includes/update-list.html +24 -0
  36. data/_layouts/archives.html +36 -0
  37. data/_layouts/categories.html +100 -0
  38. data/_layouts/category.html +24 -0
  39. data/_layouts/compress.html +10 -0
  40. data/_layouts/default.html +51 -0
  41. data/_layouts/home.html +96 -0
  42. data/_layouts/page.html +34 -0
  43. data/_layouts/post.html +130 -0
  44. data/_layouts/tag.html +24 -0
  45. data/_layouts/tags.html +21 -0
  46. data/_plugins/posts-lastmod-hook.rb +14 -0
  47. data/_sass/addon/commons.scss +1629 -0
  48. data/_sass/addon/module.scss +118 -0
  49. data/_sass/addon/syntax.scss +176 -0
  50. data/_sass/addon/variables.scss +27 -0
  51. data/_sass/colors/dark-syntax.scss +84 -0
  52. data/_sass/colors/dark-typography.scss +135 -0
  53. data/_sass/colors/light-syntax.scss +75 -0
  54. data/_sass/colors/light-typography.scss +76 -0
  55. data/_sass/jekyll-theme-chirpy.scss +22 -0
  56. data/_sass/layout/archives.scss +137 -0
  57. data/_sass/layout/categories.scss +64 -0
  58. data/_sass/layout/category-tag.scss +66 -0
  59. data/_sass/layout/home.scss +156 -0
  60. data/_sass/layout/post.scss +349 -0
  61. data/_sass/layout/tags.scss +18 -0
  62. data/_tabs/about.md +8 -0
  63. data/_tabs/archives.md +7 -0
  64. data/_tabs/categories.md +6 -0
  65. data/_tabs/tags.md +6 -0
  66. data/app.js +8 -0
  67. data/assets/css/style.scss +7 -0
  68. data/assets/img/favicons/android-icon-144x144.png +0 -0
  69. data/assets/img/favicons/android-icon-192x192.png +0 -0
  70. data/assets/img/favicons/android-icon-36x36.png +0 -0
  71. data/assets/img/favicons/android-icon-48x48.png +0 -0
  72. data/assets/img/favicons/android-icon-72x72.png +0 -0
  73. data/assets/img/favicons/android-icon-96x96.png +0 -0
  74. data/assets/img/favicons/apple-icon-114x114.png +0 -0
  75. data/assets/img/favicons/apple-icon-120x120.png +0 -0
  76. data/assets/img/favicons/apple-icon-144x144.png +0 -0
  77. data/assets/img/favicons/apple-icon-152x152.png +0 -0
  78. data/assets/img/favicons/apple-icon-180x180.png +0 -0
  79. data/assets/img/favicons/apple-icon-57x57.png +0 -0
  80. data/assets/img/favicons/apple-icon-60x60.png +0 -0
  81. data/assets/img/favicons/apple-icon-72x72.png +0 -0
  82. data/assets/img/favicons/apple-icon-76x76.png +0 -0
  83. data/assets/img/favicons/apple-icon-precomposed.png +0 -0
  84. data/assets/img/favicons/apple-icon.png +0 -0
  85. data/assets/img/favicons/browserconfig.xml +20 -0
  86. data/assets/img/favicons/favicon-16x16.png +0 -0
  87. data/assets/img/favicons/favicon-32x32.png +0 -0
  88. data/assets/img/favicons/favicon-96x96.png +0 -0
  89. data/assets/img/favicons/favicon.ico +0 -0
  90. data/assets/img/favicons/manifest.json +58 -0
  91. data/assets/img/favicons/ms-icon-144x144.png +0 -0
  92. data/assets/img/favicons/ms-icon-150x150.png +0 -0
  93. data/assets/img/favicons/ms-icon-310x310.png +0 -0
  94. data/assets/img/favicons/ms-icon-70x70.png +0 -0
  95. data/assets/js/data/cache-list.js +69 -0
  96. data/assets/js/data/search.json +17 -0
  97. data/assets/js/dist/categories.min.js +6 -0
  98. data/assets/js/dist/home.min.js +6 -0
  99. data/assets/js/dist/page.min.js +6 -0
  100. data/assets/js/dist/post.min.js +6 -0
  101. data/assets/js/dist/pvreport.min.js +6 -0
  102. data/assets/js/lib/jquery.disqusloader.min.js +8 -0
  103. data/feed.xml +60 -0
  104. data/index.html +4 -0
  105. data/robots.txt +10 -0
  106. data/sw.js +61 -0
  107. metadata +247 -0
@@ -0,0 +1,22 @@
1
+ /*!
2
+ * The styles for Jekyll theme Chirpy
3
+ *
4
+ * Chirpy v3.0.1 (https://github.com/cotes2020/jekyll-theme-chirpy)
5
+ * © 2021 Cotes Chung
6
+ * MIT Licensed
7
+ */
8
+
9
+ @import "colors/light-typography";
10
+ @import "colors/dark-typography";
11
+
12
+ @import "addon/module";
13
+ @import "addon/variables";
14
+ @import 'addon/syntax';
15
+ @import "addon/commons";
16
+
17
+ @import "layout/home";
18
+ @import "layout/post";
19
+ @import "layout/tags";
20
+ @import "layout/archives";
21
+ @import "layout/categories";
22
+ @import "layout/category-tag";
@@ -0,0 +1,137 @@
1
+ /*
2
+ Style for Archives
3
+ */
4
+
5
+ %date-timeline {
6
+ content: "";
7
+ width: 4px;
8
+ left: 75px;
9
+ display: inline-block;
10
+ float: left;
11
+ position: relative;
12
+ background-color: var(--timeline-color);
13
+ }
14
+
15
+ #archives {
16
+ letter-spacing: 0.03rem;
17
+ li {
18
+ font-size: 1.1rem;
19
+ line-height: 3rem;
20
+ &:nth-child(odd) {
21
+ background-color: var(--main-wrapper-bg, #fff);
22
+ background-image: linear-gradient(
23
+ to left, #fff, #fbfbfb, #fbfbfb, #fbfbfb, #fff);
24
+ }
25
+ > div {
26
+ white-space: nowrap;
27
+ overflow: hidden;
28
+ text-overflow: ellipsis;
29
+ }
30
+ }
31
+
32
+ span.lead {
33
+ font-size: 1.5rem;
34
+ position: relative;
35
+ left: 8px;
36
+
37
+ &:not(:first-child) {
38
+ position: relative;
39
+ left: 4px;
40
+ &::after {
41
+ left: 67px;
42
+ }
43
+ }
44
+
45
+ &::after { /* Year dot */
46
+ content: "";
47
+ display: block;
48
+ position: relative;
49
+ -webkit-border-radius: 50%;
50
+ -moz-border-radius: 50%;
51
+ border-radius: 50%;
52
+ width: 12px;
53
+ height: 12px;
54
+ top: -26px;
55
+ left: 63px;
56
+ border: 3px solid;
57
+ background-color: var(--timeline-year-dot-color);
58
+ border-color: var(--timeline-node-bg);
59
+ box-shadow: 0 0 2px 0 #c2c6cc;
60
+ z-index: 1;
61
+ }
62
+ } // #archives span.lead
63
+
64
+ .date {
65
+ white-space: nowrap;
66
+ display: inline-block;
67
+ &.month {
68
+ width: 1.4rem;
69
+ text-align: center;
70
+
71
+ ~ a::before {
72
+ /* A dot for Month and Day */
73
+ content: "";
74
+ display: inline-block;
75
+ position: relative;
76
+ -webkit-border-radius: 50%;
77
+ -moz-border-radius: 50%;
78
+ border-radius: 50%;
79
+ width: 8px;
80
+ height: 8px;
81
+ float: left;
82
+ top: 1.35rem;
83
+ left: 69px;
84
+ background-color: var(--timeline-node-bg);
85
+ box-shadow: 0 0 3px 0 #c2c6cc;
86
+ z-index: 1;
87
+ }
88
+ }
89
+ &.day {
90
+ font-size: 85%;
91
+ font-family: 'Lato', sans-serif;
92
+ text-align: center;
93
+ margin-right: -2px;
94
+ width: 1.2rem;
95
+ position: relative;
96
+ left: -.15rem;
97
+ }
98
+ } // #archives .date
99
+
100
+ ul {
101
+ > li {
102
+ > div > a {
103
+ /* post title in Archvies */
104
+ margin-left: 2.5rem;
105
+ position: relative;
106
+ top: 0.1rem;
107
+ }
108
+ &::after {
109
+ @extend %date-timeline;
110
+ height: 2.8rem;
111
+ top: -1.3rem;
112
+ }
113
+ &:first-child::before {
114
+ @extend %date-timeline;
115
+ height: 3.06rem;
116
+ top: -1.61rem;
117
+ }
118
+ }
119
+ &:not(:last-child) > li:last-child::after {
120
+ height: 3.4rem;
121
+ }
122
+ &:last-child > li:last-child::after {
123
+ display: none;
124
+ }
125
+ } // #archives ul
126
+
127
+ } // #archives
128
+
129
+
130
+ @media all and (max-width: 576px) {
131
+ #archives {
132
+ margin-top: -1rem;
133
+ ul {
134
+ letter-spacing: 0;
135
+ }
136
+ }
137
+ }
@@ -0,0 +1,64 @@
1
+ /*
2
+ Style for Tab Categories
3
+ */
4
+
5
+ %category-icon-color {
6
+ color: gray;
7
+ }
8
+
9
+ .categories {
10
+ margin-bottom: 2rem;
11
+ .card-header {
12
+ padding-right: 12px;
13
+ }
14
+ .list-group-item {
15
+ border-left: none;
16
+ border-right: none;
17
+ padding-left: 2rem;
18
+ > i {
19
+ @extend %category-icon-color;
20
+ }
21
+ &:first-child {
22
+ border-top-left-radius: 0;
23
+ border-top-right-radius: 0;
24
+ }
25
+
26
+ }
27
+
28
+ .card-header > span > i:first-child {
29
+ @extend %category-icon-color;
30
+ }
31
+
32
+ i {
33
+ &.far, &.fas {
34
+ font-size: 86%; // fontawesome icons
35
+ }
36
+ }
37
+
38
+ } // .categories
39
+
40
+ .category-trigger {
41
+ width: 1.7rem;
42
+ height: 1.7rem;
43
+ border-radius: 50%;
44
+ text-align: center;
45
+ color: #6c757d!important;
46
+ > i.fas {
47
+ position: relative;
48
+ height: 0.7rem;
49
+ width: 1rem;
50
+ transition: 300ms ease all;
51
+ }
52
+ }
53
+
54
+ @media (hover: hover) { // only works on desktop
55
+ .category-trigger:hover {
56
+ background-color: var(--categories-hover-bg);
57
+ }
58
+ }
59
+
60
+ .rotate {
61
+ -ms-transform: rotate(-90deg); /* IE 9 */
62
+ -webkit-transform: rotate(-90deg); /* Safari 3-8 */
63
+ transform: rotate(-90deg);
64
+ }
@@ -0,0 +1,66 @@
1
+ /*
2
+ Style for page Category and Tag
3
+ */
4
+
5
+ #page-category, #page-tag {
6
+ ul > li {
7
+ line-height: 1.5rem;
8
+ padding: 0.6rem 0;
9
+ &::before { // dot
10
+ background: #999;
11
+ width: 5px;
12
+ height: 5px;
13
+ border-radius: 50%;
14
+ display: block;
15
+ content: "";
16
+ position: relative;
17
+ top: 0.6rem;
18
+ margin-right: 0.5rem;
19
+ }
20
+ > a { /* post's title */
21
+ font-size: 1.1rem;
22
+ @extend %no-bottom-border;
23
+ }
24
+ > span:last-child {
25
+ white-space: nowrap;
26
+ }
27
+ /* post's date */
28
+ }
29
+ }
30
+
31
+ #page-tag h1 > i { // tag icon
32
+ font-size: 1.2rem;
33
+ }
34
+
35
+ #page-category h1 > i {
36
+ font-size: 1.25rem;
37
+ }
38
+
39
+ a:hover {
40
+ #page-category &,
41
+ #page-tag &,
42
+ #access-lastmod & {
43
+ @extend %link-hover;
44
+ margin-bottom: -1px; // Avoid jumping
45
+ }
46
+ }
47
+
48
+ .dash {
49
+ margin: 0 .5rem .6rem .5rem;
50
+ border-bottom: 2px dotted var(--dash-color);
51
+ }
52
+
53
+ @media all and (max-width: 576px) {
54
+ #page-category, #page-tag {
55
+ ul > li {
56
+ &::before {
57
+ margin: 0 .5rem;
58
+ }
59
+ > a {
60
+ white-space: nowrap;
61
+ overflow: hidden;
62
+ text-overflow: ellipsis;
63
+ }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,156 @@
1
+ /*
2
+ Style for Homepage
3
+ */
4
+
5
+ #post-list {
6
+ margin-top: 1rem;
7
+ padding-right: 0.5rem;
8
+
9
+ .post-preview {
10
+ padding-top: 1.5rem;
11
+ padding-bottom: 1rem;
12
+ border-bottom: 1px solid var(--main-border-color);
13
+
14
+ h1 {
15
+ font-size: 1.4rem;
16
+ margin: 0;
17
+ }
18
+
19
+ .post-meta {
20
+ i {
21
+ font-size: 0.73rem;
22
+ }
23
+ span:not(:last-child) {
24
+ margin-right: 1.2rem;
25
+ }
26
+ }
27
+
28
+ .post-content {
29
+ margin-top: 0.6rem;
30
+ margin-bottom: 0.6rem;
31
+ color: var(--post-list-text-color);
32
+ > p {
33
+ /* Make preview shorter on the homepage */
34
+ margin: 0;
35
+ overflow: hidden;
36
+ text-overflow: ellipsis;
37
+ display: -webkit-box;
38
+ -webkit-line-clamp: 2;
39
+ -webkit-box-orient: vertical;
40
+ }
41
+ }
42
+
43
+ .pin {
44
+ > i {
45
+ transform: rotate(45deg);
46
+ padding-left: 3px;
47
+ color: var(--pin-color);
48
+ }
49
+ > span {
50
+ display: none;
51
+ }
52
+ }
53
+
54
+ } // .post-preview
55
+
56
+ } // #post-list
57
+
58
+ .pagination {
59
+ font-size: 1rem;
60
+ a:hover {
61
+ text-decoration: none;
62
+ }
63
+
64
+ .page-item {
65
+ .page-link {
66
+ color: var(--btn-patinator-text-color);
67
+ width: 2.5rem;
68
+ height: 2.5rem;
69
+ padding: 0;
70
+ text-align: center;
71
+ display: -webkit-box;
72
+ display: flex;
73
+ -webkit-box-pack: center;
74
+ justify-content: center;
75
+ -webkit-box-align: center;
76
+ align-items: center;
77
+ border-radius: 50%;
78
+ border: 1px solid var(--btn-paginator-border-color);
79
+ font-family: 'Lato', sans-serif;
80
+ background-color: var(--button-bg);
81
+ &:hover {
82
+ background-color: var(--btn-paginator-hover-color)
83
+ }
84
+ }
85
+ &.active {
86
+ .page-link {
87
+ background-color: var(--btn-active-bg);
88
+ border-color: var(--btn-active-border-color);
89
+ box-shadow: 0 0 8px 0 var(--btn-paginator-shadow) !important;
90
+ color: var(--btn-text-color);
91
+ }
92
+ }
93
+ &.disabled {
94
+ cursor: not-allowed;
95
+ .page-link {
96
+ color: rgba(108, 117, 125, 0.57);
97
+ border-color: var(--btn-paginator-border-color);
98
+ background-color: var(--button-bg);
99
+ }
100
+ }
101
+ &:first-child .page-link,
102
+ &:last-child .page-link {
103
+ border-radius: 50%;
104
+ }
105
+ &:not(:last-child) {
106
+ margin-right: 0.7rem;
107
+ }
108
+ } // .page-item
109
+
110
+ } // .pagination
111
+
112
+ /* Hide SideBar and TOC */
113
+ @media all and (max-width: 830px) {
114
+ .pagination {
115
+ justify-content: center;
116
+ }
117
+ }
118
+
119
+ /* Sidebar is visible */
120
+ @media all and (min-width: 831px) {
121
+
122
+ #post-list {
123
+ margin-top: 1.5rem;
124
+ .post-preview .post-meta {
125
+ .pin {
126
+ background: var(--pin-bg);
127
+ border-radius: 5px;
128
+ line-height: 1.4rem;
129
+ height: 1.3rem;
130
+ margin-top: 3px;
131
+ padding-left: 1px;
132
+ padding-right: 6px;
133
+
134
+ > span {
135
+ display: inline;
136
+ }
137
+ }
138
+ }
139
+ }
140
+
141
+ .pagination {
142
+ font-size: 0.85rem;
143
+ .page-item .page-link {
144
+ width: 2.2rem;
145
+ height: 2.2rem;
146
+ }
147
+ }
148
+
149
+ }
150
+
151
+ /* Pannel hidden */
152
+ @media all and (max-width: 1200px) {
153
+ #post-list {
154
+ padding-right: 0;
155
+ }
156
+ }