databook-theme 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -21
  3. data/README.MD +1 -1
  4. data/_includes/blog/blog.liquid +50 -50
  5. data/_includes/blog/features.liquid +36 -36
  6. data/_includes/blog/full.liquid +3 -3
  7. data/_includes/blog/list.liquid +41 -41
  8. data/_includes/blog/post.liquid +6 -6
  9. data/_includes/components/analytics.google.liquid +11 -11
  10. data/_includes/components/analytics.liquid +11 -11
  11. data/_includes/components/comments.disqus.liquid +17 -17
  12. data/_includes/components/comments.gitalk.liquid +22 -22
  13. data/_includes/components/comments.liquid +13 -13
  14. data/_includes/components/navmenu.items.liquid +51 -51
  15. data/_includes/components/navmenu.liquid +4 -4
  16. data/_includes/components/pagination.liquid +83 -83
  17. data/_includes/components/prevnext.liquid +1 -1
  18. data/_includes/components/search.baidu.liquid +7 -7
  19. data/_includes/components/search.bing.liquid +6 -6
  20. data/_includes/components/search.google.liquid +6 -6
  21. data/_includes/components/search.liquid +21 -21
  22. data/_includes/components/social_button.liquid +9 -9
  23. data/_includes/components/social_link.liquid +14 -14
  24. data/_includes/components/title.liquid +41 -41
  25. data/_includes/components/toc.liquid +28 -28
  26. data/_includes/custom/analytics.liquid +3 -3
  27. data/_includes/custom/blog.liquid +3 -3
  28. data/_includes/custom/body.liquid +3 -3
  29. data/_includes/custom/comments.liquid +3 -3
  30. data/_includes/custom/favicon.liquid +11 -0
  31. data/_includes/custom/footer.liquid +3 -3
  32. data/_includes/custom/head.liquid +3 -3
  33. data/_includes/custom/katex.liquid +15 -15
  34. data/_includes/custom/mathjax.liquid +19 -19
  35. data/_includes/custom/search.liquid +3 -3
  36. data/_includes/extensions/toc.liquid +182 -182
  37. data/_includes/functions/get_config.liquid +11 -11
  38. data/_includes/functions/get_config_data.liquid +23 -23
  39. data/_includes/functions/get_icon.liquid +5 -5
  40. data/_includes/functions/get_page_meta.liquid +74 -60
  41. data/_includes/functions/get_page_thumbnail.liquid +22 -23
  42. data/_includes/functions/get_page_title.liquid +7 -7
  43. data/_includes/functions/get_recent_posts.liquid +17 -17
  44. data/_includes/functions/get_taxonomy_link.liquid +9 -9
  45. data/_includes/head/head.liquid +11 -12
  46. data/_includes/head/meta.liquid +50 -41
  47. data/_includes/head/requirements.liquid +87 -87
  48. data/_includes/head/styles.liquid +10 -10
  49. data/_includes/js/codes.js +116 -116
  50. data/_includes/js/scrollspy.js +16 -16
  51. data/_includes/layout/article.liquid +74 -71
  52. data/_includes/layout/footer.liquid +53 -53
  53. data/_includes/layout/header.liquid +31 -31
  54. data/_includes/layout/hero.liquid +29 -29
  55. data/_includes/layout/page.liquid +33 -33
  56. data/_includes/layout/pagehead.liquid +17 -17
  57. data/_includes/layout/sidebar.liquid +178 -178
  58. data/_includes/localize +29 -29
  59. data/_includes/notice +6 -6
  60. data/_includes/version +1 -1
  61. data/_layouts/article.liquid +10 -10
  62. data/_layouts/default.liquid +132 -131
  63. data/_layouts/home.liquid +20 -20
  64. data/_layouts/page.liquid +9 -9
  65. data/_layouts/post.liquid +9 -9
  66. data/_layouts/system.liquid +35 -35
  67. data/_layouts/taxonomy.liquid +67 -67
  68. data/_sass/_databook.scss +42 -42
  69. data/_sass/_debug.scss +7 -7
  70. data/_sass/_variables.scss +24 -24
  71. data/_sass/base/_mixins.scss +32 -32
  72. data/_sass/base/_normalize.scss +45 -45
  73. data/_sass/base/_responsive.scss +28 -28
  74. data/_sass/components/_archive.scss +49 -49
  75. data/_sass/components/_blog.scss +249 -249
  76. data/_sass/components/_forms.scss +30 -30
  77. data/_sass/components/_hero.scss +70 -70
  78. data/_sass/components/_misc.scss +3 -3
  79. data/_sass/components/_notice.scss +27 -27
  80. data/_sass/components/_notification.scss +10 -10
  81. data/_sass/components/_post.scss +19 -19
  82. data/_sass/components/_sidebar.scss +303 -303
  83. data/_sass/components/_tabs.scss +67 -67
  84. data/_sass/components/_text.scss +27 -27
  85. data/_sass/components/_toc.scss +50 -50
  86. data/_sass/layout/_article.scss +211 -211
  87. data/_sass/layout/_body.scss +26 -26
  88. data/_sass/layout/_footer.scss +75 -75
  89. data/_sass/layout/_header.scss +124 -124
  90. data/_sass/layout/_main.scss +8 -8
  91. data/_sass/layout/_misc.scss +7 -7
  92. data/_sass/layout/_navbar.scss +323 -323
  93. data/_sass/layout/_sidebar.scss +115 -115
  94. data/_sass/layout/_wrapper.scss +7 -7
  95. data/_sass/theme/_scheme.scss +112 -112
  96. data/_sass/typography/_article.scss +49 -49
  97. data/_sass/typography/_doc.scss +104 -104
  98. data/_sass/typography/_highlight.scss +208 -208
  99. data/_sass/typography/_markdown.scss +18 -18
  100. data/_sass/typography/_table.scss +119 -119
  101. data/_sass/typography/_typography.scss +103 -108
  102. data/_sass/utilities/_thinscrollbar.scss +35 -35
  103. data/assets/databook/css/databook.scss +6 -6
  104. data/assets/databook/js/databook.js +8 -8
  105. data/assets/databook/js/search.js +47 -47
  106. data/assets/databook/version.json +9 -9
  107. data/assets/search.json +30 -30
  108. metadata +8 -8
  109. data/_includes/head/opengraph.liquid +0 -1
@@ -1,24 +1,24 @@
1
- $medium-breakpoint: 768px;
2
- $large-breakpoint: 1200px;
3
- $wide-breakpoint: 1400px;
4
-
5
- $header-height: 2.5rem; // 40px
6
- $side-width: 18rem; // 288px
7
-
8
- $border-radius-control: .4rem;
9
- $border-radius-object: .2rem;
10
-
11
- $spacing-unit: 2rem;
12
-
13
- $spacing-control: 1rem;
14
- $spacing-object: .5rem;
15
- $spacing-text: .25rem;
16
-
17
- $header-object-size: 2rem;
18
-
19
- $page-spacing-small: 2rem;
20
- $page-spacing-medium: 4rem;
21
- $page-spacing-large: 8rem;
22
- $page-spacing-wide: 12rem;
23
-
24
- $page-max-width: 72rem;
1
+ $medium-breakpoint: 768px;
2
+ $large-breakpoint: 1200px;
3
+ $wide-breakpoint: 1400px;
4
+
5
+ $header-height: 2.5rem; // 40px
6
+ $side-width: 18rem; // 288px
7
+
8
+ $border-radius-control: .4rem;
9
+ $border-radius-object: .2rem;
10
+
11
+ $spacing-unit: 2rem;
12
+
13
+ $spacing-control: 1rem;
14
+ $spacing-object: .5rem;
15
+ $spacing-text: .25rem;
16
+
17
+ $header-object-size: 2rem;
18
+
19
+ $page-spacing-small: 2rem;
20
+ $page-spacing-medium: 4rem;
21
+ $page-spacing-large: 8rem;
22
+ $page-spacing-wide: 12rem;
23
+
24
+ $page-max-width: 72rem;
@@ -1,32 +1,32 @@
1
- @mixin flex-center {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- }
6
-
7
- @mixin text-link {
8
- color: inherit;
9
- text-decoration: none;
10
-
11
- &:hover {
12
- color: inherit;
13
- text-decoration: underline;
14
- }
15
- }
16
-
17
- @mixin fontawesome-icon {
18
- display: flex;
19
- align-items: center;
20
- justify-content: center;
21
- user-select: none;
22
- font-family: 'Font Awesome 5 Free';
23
-
24
- &::before {
25
- font-weight: 600;
26
- }
27
- }
28
-
29
- @mixin fontawesome-text {
30
- font-family: 'Font Awesome 5 Free';
31
- font-weight: 600;
32
- }
1
+ @mixin flex-center {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ }
6
+
7
+ @mixin text-link {
8
+ color: inherit;
9
+ text-decoration: none;
10
+
11
+ &:hover {
12
+ color: inherit;
13
+ text-decoration: underline;
14
+ }
15
+ }
16
+
17
+ @mixin fontawesome-icon {
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ user-select: none;
22
+ font-family: 'Font Awesome 5 Free';
23
+
24
+ &::before {
25
+ font-weight: 600;
26
+ }
27
+ }
28
+
29
+ @mixin fontawesome-text {
30
+ font-family: 'Font Awesome 5 Free';
31
+ font-weight: 600;
32
+ }
@@ -1,45 +1,45 @@
1
- html {
2
- box-sizing: border-box;
3
- font-size: 16px;
4
- overflow-y: scroll;
5
- font-family: Content, Roboto, sans-serif;
6
- font-weight: normal;
7
-
8
- *,
9
- *:before,
10
- *:after {
11
- box-sizing: inherit;
12
- margin: 0;
13
- padding: 0;
14
- }
15
- }
16
-
17
- body {
18
- font-size: 1rem;
19
- font-family:
20
- "Helvetica Neue",
21
- Helvetica,
22
- Arial,
23
- STXihei, "华文细黑",
24
- "Microsoft YaHei", "微软雅黑",
25
- Heiti, "黑体",
26
- sans-serif;
27
- }
28
-
29
- template {
30
- display: none;
31
- }
32
-
33
- [hidden] {
34
- display: none;
35
- }
36
-
37
- a {
38
- color: inherit;
39
- text-decoration: none;
40
-
41
- &:hover {
42
- color: inherit;
43
- text-decoration: none;
44
- }
45
- }
1
+ html {
2
+ box-sizing: border-box;
3
+ font-size: 16px;
4
+ overflow-y: scroll;
5
+ font-family: Content, Roboto, sans-serif;
6
+ font-weight: normal;
7
+
8
+ *,
9
+ *:before,
10
+ *:after {
11
+ box-sizing: inherit;
12
+ margin: 0;
13
+ padding: 0;
14
+ }
15
+ }
16
+
17
+ body {
18
+ font-size: 1rem;
19
+ font-family:
20
+ "Helvetica Neue",
21
+ Helvetica,
22
+ Arial,
23
+ STXihei, "华文细黑",
24
+ "Microsoft YaHei", "微软雅黑",
25
+ Heiti, "黑体",
26
+ sans-serif;
27
+ }
28
+
29
+ template {
30
+ display: none;
31
+ }
32
+
33
+ [hidden] {
34
+ display: none;
35
+ }
36
+
37
+ a {
38
+ color: inherit;
39
+ text-decoration: none;
40
+
41
+ &:hover {
42
+ color: inherit;
43
+ text-decoration: none;
44
+ }
45
+ }
@@ -1,28 +1,28 @@
1
- // (<768px)
2
- $small-screen: "";
3
-
4
- // (≥768px)
5
- $medium-screen: "screen and (min-width: #{$medium-breakpoint})";
6
-
7
- // (≥1200px)
8
- $large-screen: "screen and (min-width: #{$large-breakpoint})";
9
-
10
- // (≥1400px)
11
- $wide-screen: "screen and (min-width: #{$wide-breakpoint})";
12
-
13
- :root {
14
- --db-header-height: #{$header-height};
15
- --db-control-spacing: 1rem;
16
-
17
- @media #{$medium-screen} {
18
- --db-header-height: #{$header-height * 1.5};
19
- }
20
-
21
- @media #{$medium-screen} {
22
- --db-control-spacing: 2rem;
23
- }
24
- @media #{$large-screen} {
25
- --db-control-spacing: 4rem;
26
- }
27
-
28
- }
1
+ // (<768px)
2
+ $small-screen: "";
3
+
4
+ // (≥768px)
5
+ $medium-screen: "screen and (min-width: #{$medium-breakpoint})";
6
+
7
+ // (≥1200px)
8
+ $large-screen: "screen and (min-width: #{$large-breakpoint})";
9
+
10
+ // (≥1400px)
11
+ $wide-screen: "screen and (min-width: #{$wide-breakpoint})";
12
+
13
+ :root {
14
+ --db-header-height: #{$header-height};
15
+ --db-control-spacing: 1rem;
16
+
17
+ @media #{$medium-screen} {
18
+ --db-header-height: #{$header-height * 1.5};
19
+ }
20
+
21
+ @media #{$medium-screen} {
22
+ --db-control-spacing: 2rem;
23
+ }
24
+ @media #{$large-screen} {
25
+ --db-control-spacing: 4rem;
26
+ }
27
+
28
+ }
@@ -1,49 +1,49 @@
1
- .c-archive {
2
- display: flex;
3
- flex-wrap: wrap;
4
-
5
- &__link {
6
- border: 1px solid var(--db-border-color);
7
- width: calc(25% - 1rem);
8
- margin: .25rem .5rem;
9
- padding: .5rem;
10
- border-radius: $border-radius-object;
11
- color: var(--db-text-color-inactive);
12
-
13
- &:hover {
14
- text-decoration: none;
15
- background-color: var(--db-background-hover-color);
16
- }
17
- }
18
-
19
- &__count {
20
- float: right;
21
- margin-right: .25rem;
22
- }
23
-
24
- &__tab {
25
- order: 2;
26
- display: none;
27
- margin-top: 2rem;
28
- }
29
-
30
- &__toggler {
31
- display: none;
32
- position: fixed;
33
- top: 0;
34
- left: 0;
35
- width: 0;
36
- height: 0;
37
- }
38
-
39
- &__toggler:target + &__link {
40
- background-color: var(--db-control-color);
41
- border-color: var(--db-control-border-color);
42
- color: var(--db-control-text-color);
43
- }
44
-
45
- &__toggler:target + &__link + &__tab {
46
- display: initial;
47
- }
48
-
49
- }
1
+ .c-archive {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+
5
+ &__link {
6
+ border: 1px solid var(--db-border-color);
7
+ width: calc(25% - 1rem);
8
+ margin: .25rem .5rem;
9
+ padding: .5rem;
10
+ border-radius: $border-radius-object;
11
+ color: var(--db-text-color-inactive);
12
+
13
+ &:hover {
14
+ text-decoration: none;
15
+ background-color: var(--db-background-hover-color);
16
+ }
17
+ }
18
+
19
+ &__count {
20
+ float: right;
21
+ margin-right: .25rem;
22
+ }
23
+
24
+ &__tab {
25
+ order: 2;
26
+ display: none;
27
+ margin-top: 2rem;
28
+ }
29
+
30
+ &__toggler {
31
+ display: none;
32
+ position: fixed;
33
+ top: 0;
34
+ left: 0;
35
+ width: 0;
36
+ height: 0;
37
+ }
38
+
39
+ &__toggler:target + &__link {
40
+ background-color: var(--db-control-color);
41
+ border-color: var(--db-control-border-color);
42
+ color: var(--db-control-text-color);
43
+ }
44
+
45
+ &__toggler:target + &__link + &__tab {
46
+ display: initial;
47
+ }
48
+
49
+ }