jekyll-text-theme-fork 2.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +235 -0
  3. data/LICENSE +21 -0
  4. data/README.md +89 -0
  5. data/_data/authors.yml +0 -0
  6. data/_data/licenses.yml +16 -0
  7. data/_data/locale.yml +169 -0
  8. data/_data/navigation.yml +52 -0
  9. data/_data/variables.yml +64 -0
  10. data/_includes/analytics-providers/custom.html +3 -0
  11. data/_includes/analytics-providers/google.html +14 -0
  12. data/_includes/analytics.html +7 -0
  13. data/_includes/article/footer/author-profile.html +47 -0
  14. data/_includes/article/footer/custom.html +3 -0
  15. data/_includes/article/footer/license.html +14 -0
  16. data/_includes/article/footer/subscribe.html +6 -0
  17. data/_includes/article/top/custom.html +3 -0
  18. data/_includes/article-footer.html +55 -0
  19. data/_includes/article-header.html +49 -0
  20. data/_includes/article-info.html +96 -0
  21. data/_includes/article-list.html +144 -0
  22. data/_includes/article-section-navigator.html +54 -0
  23. data/_includes/aside/toc.html +1 -0
  24. data/_includes/author-links.html +120 -0
  25. data/_includes/comments-providers/custom.html +3 -0
  26. data/_includes/comments-providers/disqus.html +22 -0
  27. data/_includes/comments-providers/gitalk.html +39 -0
  28. data/_includes/comments-providers/valine.html +46 -0
  29. data/_includes/comments.html +11 -0
  30. data/_includes/extensions/bilibili.html +5 -0
  31. data/_includes/extensions/codepen.html +4 -0
  32. data/_includes/extensions/netease-cloud-music.html +4 -0
  33. data/_includes/extensions/slideshare.html +6 -0
  34. data/_includes/extensions/soundcloud.html +4 -0
  35. data/_includes/extensions/ted.html +5 -0
  36. data/_includes/extensions/youtube.html +4 -0
  37. data/_includes/footer.html +37 -0
  38. data/_includes/head/custom.html +3 -0
  39. data/_includes/head/favicon.html +26 -0
  40. data/_includes/head.html +24 -0
  41. data/_includes/header.html +44 -0
  42. data/_includes/main/bottom/custom.html +3 -0
  43. data/_includes/main/top/custom.html +3 -0
  44. data/_includes/markdown-enhancements/chart.html +15 -0
  45. data/_includes/markdown-enhancements/mathjax.html +17 -0
  46. data/_includes/markdown-enhancements/mermaid.html +10 -0
  47. data/_includes/markdown-enhancements.html +17 -0
  48. data/_includes/pageview-providers/custom/home.html +3 -0
  49. data/_includes/pageview-providers/custom/post.html +3 -0
  50. data/_includes/pageview-providers/leancloud/home.html +35 -0
  51. data/_includes/pageview-providers/leancloud/leancloud.js +72 -0
  52. data/_includes/pageview-providers/leancloud/post.html +31 -0
  53. data/_includes/pageview.html +29 -0
  54. data/_includes/paginator.html +98 -0
  55. data/_includes/scripts/archieve.js +135 -0
  56. data/_includes/scripts/article.js +24 -0
  57. data/_includes/scripts/aside/affix.js +26 -0
  58. data/_includes/scripts/aside/toc.js +35 -0
  59. data/_includes/scripts/common.js +7 -0
  60. data/_includes/scripts/components/lightbox.js +49 -0
  61. data/_includes/scripts/components/search.js +86 -0
  62. data/_includes/scripts/components/sidebar.js +30 -0
  63. data/_includes/scripts/home.js +3 -0
  64. data/_includes/scripts/lib/affix.js +111 -0
  65. data/_includes/scripts/lib/gallery.js +192 -0
  66. data/_includes/scripts/lib/lazyload.js +143 -0
  67. data/_includes/scripts/lib/modal.js +64 -0
  68. data/_includes/scripts/lib/scroll-to.js +13 -0
  69. data/_includes/scripts/lib/swiper.js +203 -0
  70. data/_includes/scripts/lib/throttle.js +28 -0
  71. data/_includes/scripts/lib/toc.js +107 -0
  72. data/_includes/scripts/page.js +3 -0
  73. data/_includes/scripts/utils/imagesLoad.js +28 -0
  74. data/_includes/scripts/utils/utils.js +39 -0
  75. data/_includes/scripts/variables.html +35 -0
  76. data/_includes/search-providers/custom/search.html +3 -0
  77. data/_includes/search-providers/default/search-data.js +14 -0
  78. data/_includes/search-providers/default/search.html +18 -0
  79. data/_includes/search-providers/default/search.js +112 -0
  80. data/_includes/search-providers/google-custom-search-engine/search.html +21 -0
  81. data/_includes/search-providers/google-custom-search-engine/search.js +33 -0
  82. data/_includes/search.html +20 -0
  83. data/_includes/sharing-providers/addthis.html +9 -0
  84. data/_includes/sharing-providers/addtoany.html +10 -0
  85. data/_includes/sharing-providers/custom.html +3 -0
  86. data/_includes/sharing.html +7 -0
  87. data/_includes/sidebar/toc.html +25 -0
  88. data/_includes/snippets/assign.html +9 -0
  89. data/_includes/snippets/get-article-title.html +11 -0
  90. data/_includes/snippets/get-lang.html +6 -0
  91. data/_includes/snippets/get-locale-string.html +12 -0
  92. data/_includes/snippets/get-nav-url.html +8 -0
  93. data/_includes/snippets/get-sources.html +2 -0
  94. data/_includes/snippets/get-string-from-locale-config.html +7 -0
  95. data/_includes/snippets/is_collection.html +6 -0
  96. data/_includes/snippets/page-url.html +2 -0
  97. data/_includes/snippets/prepend-baseurl.html +4 -0
  98. data/_includes/snippets/prepend-path.html +1 -0
  99. data/_includes/svg/icon/social/behance.svg +3 -0
  100. data/_includes/svg/icon/social/douban.svg +5 -0
  101. data/_includes/svg/icon/social/facebook.svg +3 -0
  102. data/_includes/svg/icon/social/flicker.svg +5 -0
  103. data/_includes/svg/icon/social/github.svg +3 -0
  104. data/_includes/svg/icon/social/googleplus.svg +3 -0
  105. data/_includes/svg/icon/social/linkedin.svg +3 -0
  106. data/_includes/svg/icon/social/mail.svg +6 -0
  107. data/_includes/svg/icon/social/medium.svg +3 -0
  108. data/_includes/svg/icon/social/npm.svg +9 -0
  109. data/_includes/svg/icon/social/pinterest.svg +3 -0
  110. data/_includes/svg/icon/social/qq.svg +3 -0
  111. data/_includes/svg/icon/social/telegram.svg +4 -0
  112. data/_includes/svg/icon/social/twitter.svg +3 -0
  113. data/_includes/svg/icon/social/weibo.svg +6 -0
  114. data/_includes/svg/icon/social/weixin.svg +3 -0
  115. data/_includes/svg/icon/social/zhihu.svg +3 -0
  116. data/_includes/svg/logo.svg +8 -0
  117. data/_includes/tags.html +52 -0
  118. data/_layouts/404.html +13 -0
  119. data/_layouts/archive.html +40 -0
  120. data/_layouts/article.html +29 -0
  121. data/_layouts/articles.html +89 -0
  122. data/_layouts/base.html +25 -0
  123. data/_layouts/home.html +43 -0
  124. data/_layouts/landing.html +178 -0
  125. data/_layouts/none.html +1 -0
  126. data/_layouts/page.html +270 -0
  127. data/_sass/additional/_alert.scss +29 -0
  128. data/_sass/additional/_photo-frame.scss +17 -0
  129. data/_sass/additional/_tag.scss +21 -0
  130. data/_sass/animate/_fade-in-down.scss +10 -0
  131. data/_sass/animate/_fade-in-up.scss +10 -0
  132. data/_sass/animate/_fade-in.scss +8 -0
  133. data/_sass/common/_classes.scss +24 -0
  134. data/_sass/common/_function.scss +15 -0
  135. data/_sass/common/_print.scss +20 -0
  136. data/_sass/common/_reset.scss +174 -0
  137. data/_sass/common/_variables.scss +150 -0
  138. data/_sass/common/classes/_animation.scss +13 -0
  139. data/_sass/common/classes/_clearfix.scss +19 -0
  140. data/_sass/common/classes/_clickable.scss +159 -0
  141. data/_sass/common/classes/_display.scss +13 -0
  142. data/_sass/common/classes/_flex.scss +394 -0
  143. data/_sass/common/classes/_grid.scss +80 -0
  144. data/_sass/common/classes/_horizontal-rules.scss +14 -0
  145. data/_sass/common/classes/_link.scss +12 -0
  146. data/_sass/common/classes/_media.scss +17 -0
  147. data/_sass/common/classes/_overflow.scss +26 -0
  148. data/_sass/common/classes/_pseudo.scss +33 -0
  149. data/_sass/common/classes/_shadow.scss +22 -0
  150. data/_sass/common/classes/_spacing.scss +81 -0
  151. data/_sass/common/classes/_split-line.scss +24 -0
  152. data/_sass/common/classes/_text.scss +37 -0
  153. data/_sass/common/classes/_transform.scss +4 -0
  154. data/_sass/common/classes/_transition.scss +4 -0
  155. data/_sass/common/classes/_user-select.scss +6 -0
  156. data/_sass/common/components/_button.scss +163 -0
  157. data/_sass/common/components/_card.scss +103 -0
  158. data/_sass/common/components/_gallery.scss +21 -0
  159. data/_sass/common/components/_hero.scss +70 -0
  160. data/_sass/common/components/_image.scss +19 -0
  161. data/_sass/common/components/_item.scss +100 -0
  162. data/_sass/common/components/_menu.scss +67 -0
  163. data/_sass/common/components/_modal.scss +39 -0
  164. data/_sass/common/components/_swiper.scss +48 -0
  165. data/_sass/common/components/_toc.scss +124 -0
  166. data/_sass/components/_article-content.scss +221 -0
  167. data/_sass/components/_article-footer.scss +17 -0
  168. data/_sass/components/_article-header.scss +50 -0
  169. data/_sass/components/_article-info.scss +25 -0
  170. data/_sass/components/_article-list.scss +18 -0
  171. data/_sass/components/_author-links.scss +43 -0
  172. data/_sass/components/_author-profile.scss +26 -0
  173. data/_sass/components/_extensions.scss +35 -0
  174. data/_sass/components/_footer.scss +33 -0
  175. data/_sass/components/_header.scss +123 -0
  176. data/_sass/components/_lightbox.scss +7 -0
  177. data/_sass/components/_main.scss +28 -0
  178. data/_sass/components/_search.scss +186 -0
  179. data/_sass/components/_tags.scss +24 -0
  180. data/_sass/custom.scss +3 -0
  181. data/_sass/layout/_404.scss +14 -0
  182. data/_sass/layout/_archive.scss +5 -0
  183. data/_sass/layout/_article.scss +29 -0
  184. data/_sass/layout/_articles.scss +17 -0
  185. data/_sass/layout/_base.scss +6 -0
  186. data/_sass/layout/_home.scss +15 -0
  187. data/_sass/layout/_landing.scss +23 -0
  188. data/_sass/layout/_page.scss +165 -0
  189. data/_sass/skins/_chocolate.scss +74 -0
  190. data/_sass/skins/_dark.scss +74 -0
  191. data/_sass/skins/_default.scss +74 -0
  192. data/_sass/skins/_forest.scss +74 -0
  193. data/_sass/skins/_ocean.scss +74 -0
  194. data/_sass/skins/_orange.scss +74 -0
  195. data/_sass/skins/highlight/_default.scss +0 -0
  196. data/_sass/skins/highlight/_tomorrow-night-blue.scss +2 -0
  197. data/_sass/skins/highlight/_tomorrow-night-bright.scss +2 -0
  198. data/_sass/skins/highlight/_tomorrow-night-eighties.scss +2 -0
  199. data/_sass/skins/highlight/_tomorrow-night.scss +2 -0
  200. data/_sass/skins/highlight/_tomorrow.scss +2 -0
  201. data/_sass/skins/highlight/tomorrow/_default.scss +10 -0
  202. data/_sass/skins/highlight/tomorrow/_highlight.scss +74 -0
  203. data/_sass/skins/highlight/tomorrow/_night-blue.scss +10 -0
  204. data/_sass/skins/highlight/tomorrow/_night-bright.scss +10 -0
  205. data/_sass/skins/highlight/tomorrow/_night-eighties.scss +10 -0
  206. data/_sass/skins/highlight/tomorrow/_night.scss +10 -0
  207. data/assets/android-chrome-192x192.png +0 -0
  208. data/assets/android-chrome-512x512.png +0 -0
  209. data/assets/apple-touch-icon.png +0 -0
  210. data/assets/browserconfig.xml +9 -0
  211. data/assets/css/main.scss +74 -0
  212. data/assets/favicon-16x16.png +0 -0
  213. data/assets/favicon-32x32.png +0 -0
  214. data/assets/favicon.ico +0 -0
  215. data/assets/images/logo/logo.svg +8 -0
  216. data/assets/mstile-144x144.png +0 -0
  217. data/assets/mstile-150x150.png +0 -0
  218. data/assets/mstile-310x150.png +0 -0
  219. data/assets/mstile-310x310.png +0 -0
  220. data/assets/mstile-70x70.png +0 -0
  221. data/assets/safari-pinned-tab.svg +38 -0
  222. data/assets/search.js +3 -0
  223. data/assets/site.webmanifest +19 -0
  224. metadata +371 -0
@@ -0,0 +1,7 @@
1
+ .popup-image {
2
+ cursor: pointer;
3
+ @include hover() {
4
+ @include box-shadow(2);
5
+ }
6
+ @include transition(map-get($clickable, transition));
7
+ }
@@ -0,0 +1,28 @@
1
+ .main {
2
+ width: 100%;
3
+ max-width: map-get($layout, content-max-width);
4
+ padding: 0 map-get($spacers, 5);
5
+ margin: 0 auto;
6
+ @include media-breakpoint-down(lg) {
7
+ padding: 0 map-get($spacers, 4);
8
+ }
9
+ @include media-breakpoint-down(md) {
10
+ padding: 0 map-get($spacers, 3);
11
+ }
12
+ }
13
+
14
+ .has-aside {
15
+ .main {
16
+ max-width: map-get($layout, content-max-width) + map-get($layout, aside-width);
17
+ @include media-breakpoint-down(lg) {
18
+ max-width: map-get($layout, content-max-width);
19
+ }
20
+ }
21
+ }
22
+
23
+ .full-width {
24
+ .main {
25
+ width: 100%;
26
+ max-width: 100%;
27
+ }
28
+ }
@@ -0,0 +1,186 @@
1
+ .search {
2
+ @include overflow(auto);
3
+
4
+ }
5
+ .search--google-custom-search-engine {
6
+ .main {
7
+ padding-top: map-get($spacers, 4);
8
+ padding-bottom: map-get($spacers, 4);
9
+ @include media-breakpoint-down(md) {
10
+ position: absolute;
11
+ padding: 0;
12
+ }
13
+ }
14
+ }
15
+
16
+ .search__header {
17
+ margin-top: map-get($spacers, 4);
18
+ font-size: map-get($base, font-size-h1);
19
+ font-weight: map-get($base, font-weight-bold);
20
+ color: $text-color-d;
21
+ .search--light & {
22
+ color: $text-color-theme-light-d;
23
+ }
24
+ .search--dark & {
25
+ color: $text-color-theme-dark-d;
26
+ }
27
+ @include media-breakpoint-down(md) {
28
+ display: none;
29
+ }
30
+ }
31
+
32
+ .search-bar {
33
+ @include flexbox();
34
+ margin: map-get($spacers, 3) 0 map-get($spacers, 4) 0;
35
+ }
36
+
37
+ .search-box {
38
+ position: relative;
39
+ width: 100%;
40
+ max-width: 22rem;
41
+ @include media-breakpoint-down(md) {
42
+ width: 100%;
43
+ max-width: none;
44
+ }
45
+ & > input {
46
+ display: inline-block;
47
+ width: 100%;
48
+ height: $button-height-lg;
49
+ padding: 0 2rem;
50
+ margin: 0;
51
+ line-height: 1 !important;
52
+ color: $text-color;
53
+ background-color: transparent;
54
+ border: 2px solid $border-color;
55
+ border-radius: map-get($button, pill-radius);
56
+ -webkit-appearance: none; /* fix iOS don't display box-shadow properly */
57
+ @include transition(box-shadow map-get($animation, duration) map-get($animation, timing-function));
58
+ @include focus {
59
+ box-shadow: 0 0 0 2px rgba($border-color, .4);
60
+ }
61
+ .search--light & {
62
+ color: $text-color-theme-light;
63
+ border-color: $text-color-theme-light;
64
+ @include focus {
65
+ box-shadow: 0 0 0 2px rgba($text-color-theme-light, .4);
66
+ }
67
+ }
68
+ .search--dark & {
69
+ color: $text-color-theme-dark;
70
+ border-color: $text-color-theme-dark;
71
+ @include focus {
72
+ box-shadow: 0 0 0 2px rgba($text-color-theme-dark, .4);
73
+ }
74
+ }
75
+ }
76
+ & > .search-box__icon-search {
77
+ color: $text-color-l;
78
+ .search--light & {
79
+ color: $text-color-theme-light-l;
80
+ }
81
+ .search--dark & {
82
+ color: $text-color-theme-dark-l;
83
+ }
84
+ }
85
+ & > .search-box__icon-clear {
86
+ & > a {
87
+ @include link-colors($text-color);
88
+ .search--light & {
89
+ @include link-colors($text-color-theme-light);
90
+ }
91
+ .search--dark & {
92
+ @include link-colors($text-color-theme-dark);
93
+ }
94
+ cursor: pointer;
95
+ }
96
+ }
97
+ & > .search-box__icon-search, & > .search-box__icon-clear {
98
+ position: absolute;
99
+ width: $button-height-lg;
100
+ height: $button-height-lg;
101
+ line-height: $button-height-lg;
102
+ text-align: center;
103
+ vertical-align: middle;
104
+ }
105
+ &.not-empty > .search-box__icon-clear {
106
+ display: block;
107
+ }
108
+ & > .search-box__icon-clear {
109
+ top: 0;
110
+ right: 0;
111
+ display: none;
112
+ }
113
+ & > .search-box__icon-search {
114
+ top: 0;
115
+ left: 0;
116
+ }
117
+ }
118
+
119
+ .search__cancel {
120
+ margin-left: map-get($spacers, 2);
121
+ font-weight: map-get($base, font-weight-bold);
122
+ white-space: nowrap;
123
+ }
124
+
125
+ .search-result {
126
+ margin: map-get($spacers, 4) 0;
127
+ font-size: map-get($base, font-size-sm);
128
+ line-height: map-get($base, line-height-sm);
129
+ }
130
+
131
+ .search-result__header {
132
+ margin: map-get($spacers, 3) 0 map-get($spacers, 2) 0;
133
+ font-size: map-get($base, font-size-lg);
134
+ font-weight: map-get($base, font-weight-bold);
135
+ color: $text-color-l;
136
+ text-transform: uppercase;
137
+ .search--light & {
138
+ color: $text-color-theme-light-l;
139
+ }
140
+ .search--dark & {
141
+ color: $text-color-theme-dark-l;
142
+ }
143
+ }
144
+
145
+ .search-result__item {
146
+ list-style-type: none;
147
+ a {
148
+ padding: map-get($spacers, 1) map-get($spacers, 3);
149
+ @include transition(none);
150
+ @include clickable($text-color, transparent, $text-color-3, $main-color-3);
151
+ .search--light & {
152
+ @include clickable($text-color-theme-light, transparent, $text-color-theme-dark, $main-color-theme-light);
153
+ }
154
+ .search--dark & {
155
+ @include clickable($text-color-theme-dark, transparent, $text-color-theme-light, $main-color-theme-dark);
156
+ }
157
+ }
158
+ &.active {
159
+ a {
160
+ @include plain() {
161
+ color: $text-color-3;
162
+ background-color: $main-color-3;
163
+ .search--light & {
164
+ color: $text-color-theme-dark;
165
+ background-color: $main-color-theme-light;
166
+ }
167
+ .search--dark & {
168
+ color: $text-color-theme-light;
169
+ background-color: $main-color-theme-dark;
170
+ }
171
+ }
172
+ @include active() {
173
+ @include transition(map-get($clickable, transition));
174
+ }
175
+ }
176
+ }
177
+ }
178
+
179
+ // google search
180
+ .gsc-control-cse {
181
+ *,
182
+ ::before,
183
+ ::after {
184
+ box-sizing: initial;
185
+ }
186
+ }
@@ -0,0 +1,24 @@
1
+ .site-tags {
2
+ .tag-button {
3
+ @include clickable($text-color-3, $main-color-3, default, default, $text-color-2,$main-color-2, $text-color-2,$main-color-2);
4
+ & > .tag-button__count {
5
+ display: inline-block;
6
+ margin-left: map-get($spacers, 1);
7
+ font-size: map-get($base, font-size-xs);
8
+ line-height: 1;
9
+ vertical-align: top;
10
+ }
11
+ }
12
+ .tag-button-1 {
13
+ @include clickable($text-color-1, rgba($main-color-1, .4), default, default, $text-color-2,$main-color-2, $text-color-2,$main-color-2);
14
+ }
15
+ .tag-button-2 {
16
+ @include clickable($text-color-1, rgba($main-color-1, .55), default, default, $text-color-2,$main-color-2, $text-color-2,$main-color-2);
17
+ }
18
+ .tag-button-3 {
19
+ @include clickable($text-color-1, rgba($main-color-1, .7), default, default, $text-color-2,$main-color-2, $text-color-2,$main-color-2);
20
+ }
21
+ .tag-button-4 {
22
+ @include clickable($text-color-1, rgba($main-color-1, .9), default, default, $text-color-2,$main-color-2, $text-color-2,$main-color-2);
23
+ }
24
+ }
data/_sass/custom.scss ADDED
@@ -0,0 +1,3 @@
1
+ /* start custom scss snippet */
2
+
3
+ /* end custom scss snippet */
@@ -0,0 +1,14 @@
1
+ .layout--404 {
2
+ .sign {
3
+ display: table;
4
+ margin: map-get($spacers, 4) auto;
5
+ margin-top: map-get($spacers, 5);
6
+ h1 {
7
+ font-size: map-get($base, font-size-xl) * 4;
8
+ line-height: 1;
9
+ }
10
+ p {
11
+ font-size: map-get($base, font-size-xl) * 1.2;
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,5 @@
1
+ .layout--archive {
2
+ & > .layout--archive__result {
3
+ margin: map-get($spacers, 4) 0;
4
+ }
5
+ }
@@ -0,0 +1,29 @@
1
+ .article__sharing {
2
+ margin: map-get($spacers, 4) 0;
3
+ }
4
+ .article__section-navigator {
5
+ padding-top: map-get($spacers, 3);
6
+ margin: map-get($spacers, 4) 0 map-get($spacers, 3) 0;
7
+ word-wrap: break-word;
8
+ @include split-line(top, 4px);
9
+ & > .previous, & > .next {
10
+ width: 50%;
11
+ & > span {
12
+ font-weight: map-get($base, font-weight-bold);
13
+ color: $text-color-l;
14
+ }
15
+ & > a {
16
+ display: block;
17
+ @include link-colors($text-color, $main-color-1);
18
+ }
19
+ }
20
+ & > .previous {
21
+ float: left;
22
+ padding-right: map-get($spacers, 2);
23
+ }
24
+ & > .next {
25
+ float: right;
26
+ padding-left: map-get($spacers, 2);
27
+ text-align: right;
28
+ }
29
+ }
@@ -0,0 +1,17 @@
1
+ .layout--articles {
2
+ margin: map-get($spacers, 4) 0;
3
+ margin-top: map-get($spacers, 5);
4
+ @include media-breakpoint-down(md) {
5
+ margin-top: map-get($spacers, 4);
6
+ }
7
+ .card__header {
8
+ font-size: map-get($base, font-size);
9
+ }
10
+ .card__image {
11
+ & > .overlay {
12
+ &, .card__header {
13
+ font-size: map-get($base, font-size-sm);
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ .icon {
2
+ display: block;
3
+ > svg {
4
+ display: block;
5
+ }
6
+ }
@@ -0,0 +1,15 @@
1
+ .layout--home {
2
+ .pagination {
3
+ margin: map-get($spacers, 4) 0;
4
+ }
5
+ .pagination__menu {
6
+ max-width: 100%;
7
+ @include overflow(auto);
8
+ }
9
+ .pagination__omit {
10
+ color: $text-color-l;
11
+ }
12
+ .items {
13
+ margin-top: map-get($spacers, 4) * 1.5;
14
+ }
15
+ }
@@ -0,0 +1,23 @@
1
+ .layout--landing {
2
+ .heros {
3
+ max-width: map-get($layout, content-max-width) * 2;
4
+ margin-right: auto;
5
+ margin-left: auto;
6
+ }
7
+ .hero {
8
+ img {
9
+ display: block;
10
+ width: 100%;
11
+ margin: 0 auto;
12
+ }
13
+ }
14
+ .hero__content {
15
+ margin-bottom: 0;
16
+ }
17
+ .hero__cover {
18
+ max-width: map-get($layout, content-max-width);
19
+ }
20
+ .hero__cover--full-width {
21
+ max-width: none;
22
+ }
23
+ }
@@ -0,0 +1,165 @@
1
+ body,
2
+ html,
3
+ .root,
4
+ .layout--page {
5
+ height: 100%;
6
+ }
7
+
8
+ .layout--page {
9
+ &.layout--page--sidebar {
10
+ .page__viewport,
11
+ .page__grid {
12
+ height: 100%;
13
+ }
14
+ @include media-breakpoint-down(lg) {
15
+ .page__main {
16
+ @include overflow(unset);
17
+ }
18
+ }
19
+ }
20
+ }
21
+
22
+ .page__main {
23
+ height: 100%;
24
+ color: $text-color;
25
+ .col-aside {
26
+ display: none;
27
+ & > aside {
28
+ position: absolute;
29
+ width: map-get($layout, aside-width);
30
+ @include overflow(hidden);
31
+ }
32
+ }
33
+ }
34
+
35
+ .page__main-inner {
36
+ position: relative;
37
+ @include flexbox();
38
+ @include flex-direction(column);
39
+ min-height: 100%;
40
+ background-color: $background-color;
41
+ }
42
+
43
+ .page__content {
44
+ @include flex(1);
45
+ width: 100%;
46
+ margin: 0 auto;
47
+ @media print {
48
+ padding-bottom: 0;
49
+ }
50
+ }
51
+ .hide-footer {
52
+ .page__content {
53
+ padding-bottom: 0;
54
+ }
55
+ }
56
+
57
+ .page__comments {
58
+ margin: map-get($spacers, 4) 0;
59
+ }
60
+
61
+ .page__aside {
62
+ .toc-aside {
63
+ padding: map-get($spacers, 5) 0 map-get($spacers, 3) map-get($spacers, 5);
64
+ }
65
+ }
66
+
67
+ .page__actions {
68
+ position: fixed;
69
+ bottom: map-get($spacers, 5);
70
+ left: map-get($spacers, 3);
71
+ z-index: map-get($z-indexes, actions);
72
+ display: none;
73
+ }
74
+
75
+ .page__sidebar {
76
+ z-index: map-get($z-indexes, sidebar);
77
+ display: block;
78
+ width: 80%;
79
+ max-width: map-get($layout, sidebar-width);
80
+ height: 100%;
81
+ background-color: $background-color;
82
+ @include split-line(right);
83
+ @include transition(transform map-get($animation, duration));
84
+ @include overflow(auto);
85
+ .sidebar-toc {
86
+ padding: map-get($spacers, 3) map-get($spacers, 3) map-get($spacers, 4) map-get($spacers, 4);
87
+ }
88
+ }
89
+ .sidebar-button {
90
+ @include clickable($text-color-d, rgba($main-color-3, .75));
91
+ }
92
+
93
+ .page__mask {
94
+ @include modal(map-get($z-indexes, mask));
95
+ cursor: pointer;
96
+ }
97
+ .layout--page--sidebar {
98
+ .page__main {
99
+ @include overflow(auto);
100
+ @media print {
101
+ @include overflow(unset);
102
+ }
103
+ }
104
+ }
105
+
106
+ .has-aside {
107
+ .col-aside {
108
+ position: relative;
109
+ display: block;
110
+ width: map-get($layout, aside-width);
111
+ & > aside {
112
+ &.fixed {
113
+ position: fixed;
114
+ -webkit-font-smoothing: subpixel-antialiased;
115
+ }
116
+ }
117
+ @include media-breakpoint-down(lg) {
118
+ display: none;
119
+ }
120
+ }
121
+ }
122
+
123
+ @include media-breakpoint-down(lg) {
124
+ .page__sidebar {
125
+ position: fixed;
126
+ @include transform(translate(- map-get($layout, sidebar-width), 0));
127
+ }
128
+
129
+ .page__actions {
130
+ display: block;
131
+ }
132
+
133
+ .show-sidebar {
134
+ .page__actions {
135
+ visibility: hidden;
136
+ }
137
+ .page__sidebar {
138
+ @include transform(translate(0));
139
+ }
140
+ .page__mask {
141
+ @include modal--show();
142
+ }
143
+ }
144
+ }
145
+
146
+ .hero--light {
147
+ .article__info {
148
+ color: $text-color-theme-light;
149
+ }
150
+ }
151
+ .hero--dark {
152
+ .article__info {
153
+ color: $text-color-theme-dark;
154
+ }
155
+ }
156
+
157
+ .page__main--immersive {
158
+ .page__header {
159
+ position: absolute;
160
+ width: 100%;
161
+ }
162
+ .hero__content {
163
+ padding-top: map-get($layout, header-height);
164
+ }
165
+ }
@@ -0,0 +1,74 @@
1
+ ///
2
+ // Skin: Chocolate
3
+ // Author: Tian Qi
4
+ // Email: kitian616@outlook.com
5
+ ///
6
+
7
+ // main colors
8
+ $main-color-1: #563a20;
9
+ $text-color-1: rgba(#fff, .85);
10
+
11
+ $main-color-2: #8a2827;
12
+ $text-color-2: rgba(#fff, .85);
13
+
14
+ $main-color-3: #b49b92;
15
+ $text-color-3: rgba(#fff, .85);
16
+
17
+ $main-color-theme-light: rgba(#000, .9);
18
+ $main-color-theme-dark: rgba(#fff, .9);
19
+
20
+ // page background
21
+ $background-color: #d2c2bc;
22
+
23
+ // text colors
24
+ $text-color-theme-light-d: rgba(#000, .95);
25
+ $text-color-theme-light: rgba(#000, .85);
26
+ $text-color-theme-light-l: rgba(#000, .5);
27
+
28
+ $text-color-theme-dark-d: #fff;
29
+ $text-color-theme-dark: rgba(#fff, .95);
30
+ $text-color-theme-dark-l: rgba(#fff, .85);
31
+
32
+ $text-color-d: $text-color-theme-light-d;
33
+ $text-color: $text-color-theme-light;
34
+ $text-color-l: $text-color-theme-light-l;
35
+
36
+ $text-background-color: rgba(#000, .05);
37
+
38
+ // header and footer colors
39
+ $header-text-color: $text-color-3;
40
+ $header-background: $main-color-3;
41
+
42
+ $footer-text-color: $text-color-3;
43
+ $footer-background: $main-color-3;
44
+
45
+ // border and shadow colors
46
+ $border-color: $main-color-3;
47
+ $border-color-l: mix(#000, $background-color, 10%);
48
+ $decorate-color: rgba(#000, .1);
49
+ $mask-color: rgba(#000, .9);
50
+ $select-color: rgba($main-color-3, .5);
51
+
52
+ // function colors
53
+ $green: #5baa34;
54
+ $blue: #1c7cd4;
55
+ $yellow: #c9771f;
56
+ $red: #da3d45;
57
+ $text-color-function: rgba(#fff, .85);
58
+
59
+ // logo colors
60
+ $mail-color: #0072c5;
61
+ $facebook-color: #4267b2;
62
+ $twitter-color: #1da1f2;
63
+ $weibo-color: #e6162d;
64
+ $google-plus-color:#ea4335;
65
+ $telegram-color: #32afed;
66
+ $medium-color: #000;
67
+ $zhihu-color: #0084ff;
68
+ $douban-color: #42bd56;
69
+ $linkedin-color: #1074af;
70
+ $github-color: #000;
71
+ $npm-color: #fff;
72
+
73
+ // highlight colors
74
+ @import "skins/highlight/tomorrow-night-eighties";
@@ -0,0 +1,74 @@
1
+ ///
2
+ // Skin: Dark
3
+ // Author: Tian Qi
4
+ // Email: kitian616@outlook.com
5
+ ///
6
+
7
+ // main colors
8
+ $main-color-1: #ff9500;
9
+ $text-color-1: rgba(#fff, .8);
10
+
11
+ $main-color-2: #ff006a;
12
+ $text-color-2: rgba(#fff, .8);
13
+
14
+ $main-color-3: #202020;
15
+ $text-color-3: rgba(#fff, .8);
16
+
17
+ $main-color-theme-light: rgba(#000, .8);
18
+ $main-color-theme-dark: rgba(#fff, .8);
19
+
20
+ // page background
21
+ $background-color: #121212;
22
+
23
+ // text colors
24
+ $text-color-theme-light-d: #000;
25
+ $text-color-theme-light: #222;
26
+ $text-color-theme-light-l: #888;
27
+
28
+ $text-color-theme-dark-d: rgba(#fff, .8);
29
+ $text-color-theme-dark: rgba(#fff, .7);
30
+ $text-color-theme-dark-l: rgba(#fff, .5);
31
+
32
+ $text-color-d: $text-color-theme-dark-d;
33
+ $text-color: $text-color-theme-dark;
34
+ $text-color-l: $text-color-theme-dark-l;
35
+
36
+ $text-background-color: rgba(#fff, .05);
37
+
38
+ // header and footer colors
39
+ $header-text-color: $text-color-3;
40
+ $header-background: $main-color-3;
41
+
42
+ $footer-text-color: $text-color-3;
43
+ $footer-background: $main-color-3;
44
+
45
+ // border and shadow colors
46
+ $border-color: mix(#fff, $background-color, 20%);
47
+ $border-color-l: mix(#fff, $background-color, 10%);
48
+ $decorate-color: rgba(#fff, .1);
49
+ $mask-color: rgba(#000, .9);
50
+ $select-color: rgba($main-color-1, .5);
51
+
52
+ // function colors
53
+ $green: #5baa34;
54
+ $blue: #1c7cd4;
55
+ $yellow: #c9771f;
56
+ $red: #da3d45;
57
+ $text-color-function: rgba(#fff, .8);
58
+
59
+ // logo colors
60
+ $mail-color: #0072c5;
61
+ $facebook-color: #4267b2;
62
+ $twitter-color: #1da1f2;
63
+ $weibo-color: #e6162d;
64
+ $google-plus-color:#ea4335;
65
+ $telegram-color: #32afed;
66
+ $medium-color: #000;
67
+ $zhihu-color: #0084ff;
68
+ $douban-color: #42bd56;
69
+ $linkedin-color: #1074af;
70
+ $github-color: #000;
71
+ $npm-color: #fff;
72
+
73
+ // highlight colors
74
+ @import "skins/highlight/tomorrow-night";