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,211 +1,211 @@
1
- .l-page {
2
- display: flex;
3
- flex-direction: row;
4
- border: 1px solid transparent;
5
- border-radius: $border-radius-control;
6
- margin: 0 auto;
7
- width: 100%;
8
- flex-wrap: wrap;
9
-
10
- &__header {
11
- width: 100%;
12
- position: relative;
13
- }
14
-
15
- &__side {
16
- order: 1;
17
- margin-bottom: 1.5rem;
18
- width: 100%;
19
-
20
- &:empty {
21
- display: none;
22
- }
23
-
24
- @media #{$wide-screen} {
25
- order: 3;
26
- width: 15rem;
27
- margin-bottom: 0;
28
- padding: 0 1.5rem;
29
-
30
- position: sticky;
31
- align-self: flex-start;
32
- top: 1em;
33
-
34
- &:empty {
35
- display: unset;
36
- }
37
- }
38
- }
39
-
40
- &__content {
41
- order: 2;
42
- flex: 1;
43
- margin: 2rem 0;
44
- display: flex;
45
- flex-direction: column;
46
- width: 100%;
47
- }
48
-
49
- &__footer {
50
- width: 100%;
51
- }
52
-
53
- + #{&} {
54
- margin-top: 4rem;
55
-
56
- &::before {
57
- content: '';
58
- height: 4px;
59
- width: 100%;
60
- border-top: 1px solid var(--db-border-color);
61
- border-bottom: 1px solid var(--db-border-color);
62
- margin-bottom: 2rem;
63
- }
64
- }
65
- }
66
-
67
-
68
-
69
- .c-title {
70
- display: flex;
71
- align-items: flex-end;
72
- flex-direction: row;
73
- flex-wrap: wrap;
74
- padding: 1.5rem 0;
75
- margin-top: 2rem;
76
- margin-bottom: 1rem;
77
-
78
- &__tagline {
79
- width: 100%;
80
- color: var(--db-text-color-inactive);
81
- margin-top: .5rem;
82
- }
83
-
84
- &__title {
85
- flex: 1;
86
- display: flex;
87
- align-items: flex-end;
88
- font-size: 3rem;
89
- font-weight: bold;
90
- flex: 1;
91
- color: var(--db-text-color-important);
92
- }
93
-
94
- &__right {
95
- color: var(--db-text-color-inactive);
96
- }
97
-
98
- &__divider {
99
- border: none;
100
- border-bottom: 1px solid var(--db-border-color);
101
- margin-top: 1.5rem;
102
- margin-bottom: .5rem;
103
- width: 100%;
104
- }
105
-
106
- &__meta {
107
- flex: 1;
108
- color: var(--db-text-color-inactive);
109
- }
110
-
111
- &__indicator {
112
- color: var(--db-text-color-inactive);
113
- }
114
-
115
- &__breadcrumb {
116
- width: 100%;
117
- color: var(--db-text-color-inactive);
118
- margin-bottom: 1rem;
119
- }
120
-
121
- a:hover {
122
- text-decoration: underline;
123
- }
124
- }
125
-
126
- .c-breadcrumb {
127
- &__item {
128
- &::after {
129
- margin: 0 .5rem;
130
- }
131
-
132
- &:not(:last-child)::after {
133
- content: "/";
134
- }
135
-
136
- &:last-child::after {
137
- @include fontawesome-text;
138
- content: "\f105";
139
- }
140
- }
141
- }
142
-
143
-
144
- .c-meta {
145
-
146
- &__item {
147
- color: var(--db-text-color-inactive);
148
-
149
- &::before {
150
- @include fontawesome-text;
151
- font-size: 0.8rem;
152
- margin-right: 0.25rem;
153
- }
154
-
155
- &:not(:last-child)::after {
156
- content: "·";
157
- margin-right: 0.5rem;
158
- margin-left: 0.5rem;
159
- opacity: 66%;
160
- }
161
-
162
-
163
- a:not(:last-child)::after {
164
- content: " ";
165
- display: inline-block;
166
- margin-right: .25rem;
167
- }
168
-
169
- &--time::before {
170
- content: "\f017";
171
- }
172
-
173
- &--authors::before {
174
- content: "\f4ff";
175
- }
176
-
177
- &--categories::before {
178
- content: "\f07c";
179
- }
180
-
181
- &--tags::before {
182
- content: "\f02c";
183
- font-weight: 600;
184
- }
185
-
186
- &--source::before {
187
- content: "\f121";
188
- font-weight: 600;
189
- }
190
-
191
- &--sticky::before {
192
- content: "\f08d";
193
- font-weight: 600;
194
- }
195
-
196
- &--featured::before {
197
- content: "\f058";
198
- font-weight: 600;
199
- }
200
-
201
- }
202
- }
203
-
204
- .c-thumbnail {
205
- width: 100%;
206
-
207
- img {
208
- max-width: 100%;
209
- margin: 0 auto;
210
- }
211
- }
1
+ .l-page {
2
+ display: flex;
3
+ flex-direction: row;
4
+ border: 1px solid transparent;
5
+ border-radius: $border-radius-control;
6
+ margin: 0 auto;
7
+ width: 100%;
8
+ flex-wrap: wrap;
9
+
10
+ &__header {
11
+ width: 100%;
12
+ position: relative;
13
+ }
14
+
15
+ &__side {
16
+ order: 1;
17
+ margin-bottom: 1.5rem;
18
+ width: 100%;
19
+
20
+ &:empty {
21
+ display: none;
22
+ }
23
+
24
+ @media #{$wide-screen} {
25
+ order: 3;
26
+ width: 15rem;
27
+ margin-bottom: 0;
28
+ padding: 0 1.5rem;
29
+
30
+ position: sticky;
31
+ align-self: flex-start;
32
+ top: 1em;
33
+
34
+ &:empty {
35
+ display: unset;
36
+ }
37
+ }
38
+ }
39
+
40
+ &__content {
41
+ order: 2;
42
+ flex: 1;
43
+ margin: 2rem 0;
44
+ width: 100%;
45
+ }
46
+
47
+ &__footer {
48
+ width: 100%;
49
+ }
50
+
51
+ + #{&} {
52
+ margin-top: 4rem;
53
+
54
+ &::before {
55
+ content: '';
56
+ height: 4px;
57
+ width: 100%;
58
+ border-top: 1px solid var(--db-border-color);
59
+ border-bottom: 1px solid var(--db-border-color);
60
+ margin-bottom: 2rem;
61
+ }
62
+ }
63
+ }
64
+
65
+
66
+
67
+ .c-title {
68
+ display: flex;
69
+ align-items: flex-end;
70
+ flex-direction: row;
71
+ flex-wrap: wrap;
72
+ padding: 1.5rem 0;
73
+ margin-top: 2rem;
74
+ margin-bottom: 1rem;
75
+
76
+ &__tagline {
77
+ width: 100%;
78
+ color: var(--db-text-color-inactive);
79
+ margin-top: .5rem;
80
+ }
81
+
82
+ &__title {
83
+ flex: 1;
84
+ display: flex;
85
+ align-items: flex-end;
86
+ font-size: 3rem;
87
+ font-weight: bold;
88
+ flex: 1;
89
+ color: var(--db-text-color-important);
90
+ }
91
+
92
+ &__right {
93
+ color: var(--db-text-color-inactive);
94
+ }
95
+
96
+ &__divider {
97
+ border: none;
98
+ border-bottom: 1px solid var(--db-border-color);
99
+ margin-top: 1.5rem;
100
+ margin-bottom: .5rem;
101
+ width: 100%;
102
+ }
103
+
104
+ &__meta {
105
+ flex: 1;
106
+ color: var(--db-text-color-inactive);
107
+ }
108
+
109
+ &__indicator {
110
+ color: var(--db-text-color-inactive);
111
+ }
112
+
113
+ &__breadcrumb {
114
+ width: 100%;
115
+ color: var(--db-text-color-inactive);
116
+ margin-bottom: 1rem;
117
+ }
118
+
119
+ a:hover {
120
+ text-decoration: underline;
121
+ }
122
+ }
123
+
124
+ .c-breadcrumb {
125
+ &__item {
126
+ &::after {
127
+ margin: 0 .5rem;
128
+ }
129
+
130
+ &:not(:last-child)::after {
131
+ content: "/";
132
+ }
133
+
134
+ &:last-child::after {
135
+ @include fontawesome-text;
136
+ content: "\f105";
137
+ }
138
+ }
139
+ }
140
+
141
+
142
+ .c-meta {
143
+
144
+ &__item {
145
+ color: var(--db-text-color-inactive);
146
+
147
+ &::before {
148
+ @include fontawesome-text;
149
+ font-size: 0.8rem;
150
+ margin-right: 0.25rem;
151
+ }
152
+
153
+ &:not(:last-child)::after {
154
+ content: "·";
155
+ margin-right: 0.5rem;
156
+ margin-left: 0.5rem;
157
+ opacity: 66%;
158
+ }
159
+
160
+
161
+ a:not(:last-child)::after {
162
+ content: " ";
163
+ display: inline-block;
164
+ margin-right: .25rem;
165
+ }
166
+
167
+ &--time::before {
168
+ content: "\f017";
169
+ }
170
+
171
+ &--authors::before {
172
+ content: "\f4ff";
173
+ }
174
+
175
+ &--categories::before {
176
+ content: "\f07c";
177
+ }
178
+
179
+ &--tags::before {
180
+ content: "\f02c";
181
+ font-weight: 600;
182
+ }
183
+
184
+ &--source::before {
185
+ content: "\f121";
186
+ font-weight: 600;
187
+ }
188
+
189
+ &--sticky::before {
190
+ content: "\f08d";
191
+ font-weight: 600;
192
+ }
193
+
194
+ &--featured::before {
195
+ content: "\f058";
196
+ font-weight: 600;
197
+ }
198
+
199
+ }
200
+ }
201
+
202
+ .c-thumbnail {
203
+ width: 100%;
204
+ text-align: center;
205
+ margin-bottom: 2rem;
206
+
207
+ img {
208
+ max-width: 100%;
209
+ margin: 0 auto;
210
+ }
211
+ }
@@ -1,26 +1,26 @@
1
- .l-body {
2
- flex: 1;
3
- flex-direction: column;
4
- display: flex;
5
- padding: $page-spacing-small;
6
- margin: auto;
7
- width: 100%;
8
-
9
- @media #{$medium-screen} {
10
- padding: $page-spacing-medium * .5 $page-spacing-medium;
11
- }
12
-
13
- @media #{$large-screen} {
14
- padding: $page-spacing-large * .5 $page-spacing-large;
15
- }
16
-
17
- @media #{$wide-screen} {
18
- padding: $page-spacing-large * .5 $page-spacing-wide;
19
- max-width: $page-max-width + $page-spacing-wide * 2;
20
-
21
- @at-root .l-wrapper.is-wide #{&} {
22
- max-width: unset;
23
- }
24
- }
25
-
26
- }
1
+ .l-body {
2
+ flex: 1;
3
+ flex-direction: column;
4
+ display: flex;
5
+ padding: $page-spacing-small;
6
+ margin: auto;
7
+ width: 100%;
8
+
9
+ @media #{$medium-screen} {
10
+ padding: $page-spacing-medium * .5 $page-spacing-medium;
11
+ }
12
+
13
+ @media #{$large-screen} {
14
+ padding: $page-spacing-large * .5 $page-spacing-large;
15
+ }
16
+
17
+ @media #{$wide-screen} {
18
+ padding: $page-spacing-large * .5 $page-spacing-wide;
19
+ max-width: $page-max-width + $page-spacing-wide * 2;
20
+
21
+ @at-root .l-wrapper.is-wide #{&} {
22
+ max-width: unset;
23
+ }
24
+ }
25
+
26
+ }
@@ -1,76 +1,76 @@
1
- :root {
2
- --db-footer-vertical-padding: .5rem;
3
-
4
- @media #{$medium-screen} {
5
- --db-footer-vertical-padding: .75rem;
6
- }
7
-
8
- @media #{$large-screen} {
9
- --db-footer-vertical-padding: 1rem;
10
- }
11
-
12
- }
13
-
14
-
15
- .l-footer {
16
- --db-footer-horizontal-padding: calc(var(--db-header-horizontal-padding) * 2);
17
-
18
- @media #{$medium-screen} {
19
- --db-footer-horizontal-padding: var(--db-header-horizontal-padding);
20
- }
21
- @at-root .l-wrapper.has-sidebar #{&} {
22
- --db-footer-horizontal-padding: calc(var(--db-header-horizontal-padding) * 2);
23
- }
24
-
25
- border-top: 1px solid var(--db-border-color);
26
- display: flex;
27
- font-size: small;
28
- flex-direction: row;
29
- color: var(--db-text-color-inactive);
30
- flex-wrap: wrap;
31
- line-height: 2em;
32
- padding: var(--db-footer-vertical-padding) var(--db-footer-horizontal-padding);
33
-
34
- &__left {
35
- text-align: left;
36
- }
37
-
38
- &__middle {
39
- flex: 1;
40
- text-align: center;
41
- }
42
-
43
- &__right {
44
- text-align: right;
45
- }
46
-
47
- &__custom {
48
- width: 100%;
49
- margin-bottom: 1rem;
50
-
51
- &:empty {
52
- display: none;
53
- }
54
- }
55
-
56
- &__text {
57
- width: 100%;
58
- }
59
-
60
-
61
- a {
62
- @include text-link;
63
- }
64
- }
65
-
66
- .c-footer-list {
67
- display: flex;
68
-
69
- &__item {
70
- &:not(:first-child)::before {
71
- content: "•";
72
- margin: 0 .25rem;
73
- color: var(--db-text-color-disabled);
74
- }
75
- }
1
+ :root {
2
+ --db-footer-vertical-padding: .5rem;
3
+
4
+ @media #{$medium-screen} {
5
+ --db-footer-vertical-padding: .75rem;
6
+ }
7
+
8
+ @media #{$large-screen} {
9
+ --db-footer-vertical-padding: 1rem;
10
+ }
11
+
12
+ }
13
+
14
+
15
+ .l-footer {
16
+ --db-footer-horizontal-padding: calc(var(--db-header-horizontal-padding) * 2);
17
+
18
+ @media #{$medium-screen} {
19
+ --db-footer-horizontal-padding: var(--db-header-horizontal-padding);
20
+ }
21
+ @at-root .l-wrapper.has-sidebar #{&} {
22
+ --db-footer-horizontal-padding: calc(var(--db-header-horizontal-padding) * 2);
23
+ }
24
+
25
+ border-top: 1px solid var(--db-border-color);
26
+ display: flex;
27
+ font-size: small;
28
+ flex-direction: row;
29
+ color: var(--db-text-color-inactive);
30
+ flex-wrap: wrap;
31
+ line-height: 2em;
32
+ padding: var(--db-footer-vertical-padding) var(--db-footer-horizontal-padding);
33
+
34
+ &__left {
35
+ text-align: left;
36
+ }
37
+
38
+ &__middle {
39
+ flex: 1;
40
+ text-align: center;
41
+ }
42
+
43
+ &__right {
44
+ text-align: right;
45
+ }
46
+
47
+ &__custom {
48
+ width: 100%;
49
+ margin-bottom: 1rem;
50
+
51
+ &:empty {
52
+ display: none;
53
+ }
54
+ }
55
+
56
+ &__text {
57
+ width: 100%;
58
+ }
59
+
60
+
61
+ a {
62
+ @include text-link;
63
+ }
64
+ }
65
+
66
+ .c-footer-list {
67
+ display: flex;
68
+
69
+ &__item {
70
+ &:not(:first-child)::before {
71
+ content: "•";
72
+ margin: 0 .25rem;
73
+ color: var(--db-text-color-disabled);
74
+ }
75
+ }
76
76
  }