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.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -21
- data/README.MD +1 -1
- data/_includes/blog/blog.liquid +50 -50
- data/_includes/blog/features.liquid +36 -36
- data/_includes/blog/full.liquid +3 -3
- data/_includes/blog/list.liquid +41 -41
- data/_includes/blog/post.liquid +6 -6
- data/_includes/components/analytics.google.liquid +11 -11
- data/_includes/components/analytics.liquid +11 -11
- data/_includes/components/comments.disqus.liquid +17 -17
- data/_includes/components/comments.gitalk.liquid +22 -22
- data/_includes/components/comments.liquid +13 -13
- data/_includes/components/navmenu.items.liquid +51 -51
- data/_includes/components/navmenu.liquid +4 -4
- data/_includes/components/pagination.liquid +83 -83
- data/_includes/components/prevnext.liquid +1 -1
- data/_includes/components/search.baidu.liquid +7 -7
- data/_includes/components/search.bing.liquid +6 -6
- data/_includes/components/search.google.liquid +6 -6
- data/_includes/components/search.liquid +21 -21
- data/_includes/components/social_button.liquid +9 -9
- data/_includes/components/social_link.liquid +14 -14
- data/_includes/components/title.liquid +41 -41
- data/_includes/components/toc.liquid +28 -28
- data/_includes/custom/analytics.liquid +3 -3
- data/_includes/custom/blog.liquid +3 -3
- data/_includes/custom/body.liquid +3 -3
- data/_includes/custom/comments.liquid +3 -3
- data/_includes/custom/favicon.liquid +11 -0
- data/_includes/custom/footer.liquid +3 -3
- data/_includes/custom/head.liquid +3 -3
- data/_includes/custom/katex.liquid +15 -15
- data/_includes/custom/mathjax.liquid +19 -19
- data/_includes/custom/search.liquid +3 -3
- data/_includes/extensions/toc.liquid +182 -182
- data/_includes/functions/get_config.liquid +11 -11
- data/_includes/functions/get_config_data.liquid +23 -23
- data/_includes/functions/get_icon.liquid +5 -5
- data/_includes/functions/get_page_meta.liquid +74 -60
- data/_includes/functions/get_page_thumbnail.liquid +22 -23
- data/_includes/functions/get_page_title.liquid +7 -7
- data/_includes/functions/get_recent_posts.liquid +17 -17
- data/_includes/functions/get_taxonomy_link.liquid +9 -9
- data/_includes/head/head.liquid +11 -12
- data/_includes/head/meta.liquid +50 -41
- data/_includes/head/requirements.liquid +87 -87
- data/_includes/head/styles.liquid +10 -10
- data/_includes/js/codes.js +116 -116
- data/_includes/js/scrollspy.js +16 -16
- data/_includes/layout/article.liquid +74 -71
- data/_includes/layout/footer.liquid +53 -53
- data/_includes/layout/header.liquid +31 -31
- data/_includes/layout/hero.liquid +29 -29
- data/_includes/layout/page.liquid +33 -33
- data/_includes/layout/pagehead.liquid +17 -17
- data/_includes/layout/sidebar.liquid +178 -178
- data/_includes/localize +29 -29
- data/_includes/notice +6 -6
- data/_includes/version +1 -1
- data/_layouts/article.liquid +10 -10
- data/_layouts/default.liquid +132 -131
- data/_layouts/home.liquid +20 -20
- data/_layouts/page.liquid +9 -9
- data/_layouts/post.liquid +9 -9
- data/_layouts/system.liquid +35 -35
- data/_layouts/taxonomy.liquid +67 -67
- data/_sass/_databook.scss +42 -42
- data/_sass/_debug.scss +7 -7
- data/_sass/_variables.scss +24 -24
- data/_sass/base/_mixins.scss +32 -32
- data/_sass/base/_normalize.scss +45 -45
- data/_sass/base/_responsive.scss +28 -28
- data/_sass/components/_archive.scss +49 -49
- data/_sass/components/_blog.scss +249 -249
- data/_sass/components/_forms.scss +30 -30
- data/_sass/components/_hero.scss +70 -70
- data/_sass/components/_misc.scss +3 -3
- data/_sass/components/_notice.scss +27 -27
- data/_sass/components/_notification.scss +10 -10
- data/_sass/components/_post.scss +19 -19
- data/_sass/components/_sidebar.scss +303 -303
- data/_sass/components/_tabs.scss +67 -67
- data/_sass/components/_text.scss +27 -27
- data/_sass/components/_toc.scss +50 -50
- data/_sass/layout/_article.scss +211 -211
- data/_sass/layout/_body.scss +26 -26
- data/_sass/layout/_footer.scss +75 -75
- data/_sass/layout/_header.scss +124 -124
- data/_sass/layout/_main.scss +8 -8
- data/_sass/layout/_misc.scss +7 -7
- data/_sass/layout/_navbar.scss +323 -323
- data/_sass/layout/_sidebar.scss +115 -115
- data/_sass/layout/_wrapper.scss +7 -7
- data/_sass/theme/_scheme.scss +112 -112
- data/_sass/typography/_article.scss +49 -49
- data/_sass/typography/_doc.scss +104 -104
- data/_sass/typography/_highlight.scss +208 -208
- data/_sass/typography/_markdown.scss +18 -18
- data/_sass/typography/_table.scss +119 -119
- data/_sass/typography/_typography.scss +103 -108
- data/_sass/utilities/_thinscrollbar.scss +35 -35
- data/assets/databook/css/databook.scss +6 -6
- data/assets/databook/js/databook.js +8 -8
- data/assets/databook/js/search.js +47 -47
- data/assets/databook/version.json +9 -9
- data/assets/search.json +30 -30
- metadata +8 -8
- data/_includes/head/opengraph.liquid +0 -1
data/_sass/components/_tabs.scss
CHANGED
@@ -1,67 +1,67 @@
|
|
1
|
-
.c-tabs {
|
2
|
-
display: flex;
|
3
|
-
flex-wrap: wrap;
|
4
|
-
|
5
|
-
&__input {
|
6
|
-
display: none;
|
7
|
-
}
|
8
|
-
|
9
|
-
&__button {
|
10
|
-
order: 0;
|
11
|
-
padding: .5rem;
|
12
|
-
border: 1px solid #aaa;
|
13
|
-
min-width: 3rem;
|
14
|
-
text-align: center;
|
15
|
-
position: relative;
|
16
|
-
background-color: #f2f2f2;
|
17
|
-
|
18
|
-
&:first-of-type {
|
19
|
-
margin-left: 1rem;
|
20
|
-
border-top-left-radius: .25rem;
|
21
|
-
&::before {
|
22
|
-
background-color: #aaa;
|
23
|
-
content: "";
|
24
|
-
width: 1rem;
|
25
|
-
left: -1rem;
|
26
|
-
bottom: -1px;
|
27
|
-
height: 1px;
|
28
|
-
position: absolute;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
&:last-of-type {
|
33
|
-
margin-right: 1rem;
|
34
|
-
border-top-right-radius: .25rem;
|
35
|
-
&::after {
|
36
|
-
background-color: #aaa;
|
37
|
-
content: "";
|
38
|
-
width: 1rem;
|
39
|
-
right: -1rem;
|
40
|
-
bottom: -1px;
|
41
|
-
height: 1px;
|
42
|
-
position: absolute;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
&:not(:first-of-type){
|
47
|
-
border-left: none;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
&__pane {
|
52
|
-
order: 1;
|
53
|
-
display: none;
|
54
|
-
width: 100%;
|
55
|
-
}
|
56
|
-
|
57
|
-
&__input:checked + &__button {
|
58
|
-
font-weight: bold;
|
59
|
-
border-bottom-color: transparent;
|
60
|
-
background-color: transparent;
|
61
|
-
}
|
62
|
-
|
63
|
-
&__input:checked + &__button + &__pane {
|
64
|
-
display: block;
|
65
|
-
}
|
66
|
-
|
67
|
-
}
|
1
|
+
.c-tabs {
|
2
|
+
display: flex;
|
3
|
+
flex-wrap: wrap;
|
4
|
+
|
5
|
+
&__input {
|
6
|
+
display: none;
|
7
|
+
}
|
8
|
+
|
9
|
+
&__button {
|
10
|
+
order: 0;
|
11
|
+
padding: .5rem;
|
12
|
+
border: 1px solid #aaa;
|
13
|
+
min-width: 3rem;
|
14
|
+
text-align: center;
|
15
|
+
position: relative;
|
16
|
+
background-color: #f2f2f2;
|
17
|
+
|
18
|
+
&:first-of-type {
|
19
|
+
margin-left: 1rem;
|
20
|
+
border-top-left-radius: .25rem;
|
21
|
+
&::before {
|
22
|
+
background-color: #aaa;
|
23
|
+
content: "";
|
24
|
+
width: 1rem;
|
25
|
+
left: -1rem;
|
26
|
+
bottom: -1px;
|
27
|
+
height: 1px;
|
28
|
+
position: absolute;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
&:last-of-type {
|
33
|
+
margin-right: 1rem;
|
34
|
+
border-top-right-radius: .25rem;
|
35
|
+
&::after {
|
36
|
+
background-color: #aaa;
|
37
|
+
content: "";
|
38
|
+
width: 1rem;
|
39
|
+
right: -1rem;
|
40
|
+
bottom: -1px;
|
41
|
+
height: 1px;
|
42
|
+
position: absolute;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
&:not(:first-of-type){
|
47
|
+
border-left: none;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
&__pane {
|
52
|
+
order: 1;
|
53
|
+
display: none;
|
54
|
+
width: 100%;
|
55
|
+
}
|
56
|
+
|
57
|
+
&__input:checked + &__button {
|
58
|
+
font-weight: bold;
|
59
|
+
border-bottom-color: transparent;
|
60
|
+
background-color: transparent;
|
61
|
+
}
|
62
|
+
|
63
|
+
&__input:checked + &__button + &__pane {
|
64
|
+
display: block;
|
65
|
+
}
|
66
|
+
|
67
|
+
}
|
data/_sass/components/_text.scss
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
.c-list {
|
2
|
-
border-collapse: collapse;
|
3
|
-
width: 100%;
|
4
|
-
margin-bottom: 1rem;
|
5
|
-
color: var(--db-text-color-active);
|
6
|
-
vertical-align: top;
|
7
|
-
border-color: var(--db-border-color);
|
8
|
-
|
9
|
-
td {
|
10
|
-
padding: .5rem .5rem;
|
11
|
-
|
12
|
-
&:not(:first-child) {
|
13
|
-
text-align: center;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
|
17
|
-
tr {
|
18
|
-
&:not(:last-child) {
|
19
|
-
border-bottom: 1px solid var(--db-border-color);
|
20
|
-
}
|
21
|
-
|
22
|
-
&:hover {
|
23
|
-
background-color: var(--db-highlight-color-hover);
|
24
|
-
}
|
25
|
-
|
26
|
-
}
|
27
|
-
}
|
1
|
+
.c-list {
|
2
|
+
border-collapse: collapse;
|
3
|
+
width: 100%;
|
4
|
+
margin-bottom: 1rem;
|
5
|
+
color: var(--db-text-color-active);
|
6
|
+
vertical-align: top;
|
7
|
+
border-color: var(--db-border-color);
|
8
|
+
|
9
|
+
td {
|
10
|
+
padding: .5rem .5rem;
|
11
|
+
|
12
|
+
&:not(:first-child) {
|
13
|
+
text-align: center;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
tr {
|
18
|
+
&:not(:last-child) {
|
19
|
+
border-bottom: 1px solid var(--db-border-color);
|
20
|
+
}
|
21
|
+
|
22
|
+
&:hover {
|
23
|
+
background-color: var(--db-highlight-color-hover);
|
24
|
+
}
|
25
|
+
|
26
|
+
}
|
27
|
+
}
|
data/_sass/components/_toc.scss
CHANGED
@@ -1,50 +1,50 @@
|
|
1
|
-
.c-toc {
|
2
|
-
--db-toc-spacing: 1rem;
|
3
|
-
font-size: small;
|
4
|
-
border: 1px solid var(--db-border-color);
|
5
|
-
border-radius: $border-radius-object;
|
6
|
-
display: inline-block;
|
7
|
-
padding: var(--db-toc-spacing) 1rem;
|
8
|
-
width: 100%;
|
9
|
-
|
10
|
-
&__header {
|
11
|
-
border-bottom: 1px dashed var(--db-border-color-inactive);;
|
12
|
-
color: var(--db-text-color-inactive);
|
13
|
-
font-weight: bold;
|
14
|
-
margin-bottom: var(--db-toc-spacing);
|
15
|
-
text-align: center;
|
16
|
-
padding-bottom: var(--db-toc-spacing);
|
17
|
-
}
|
18
|
-
|
19
|
-
&__item {
|
20
|
-
margin-left: 1rem;
|
21
|
-
line-height: 1.8rem;
|
22
|
-
|
23
|
-
a {
|
24
|
-
color: var(--db-text-color-inactive);
|
25
|
-
|
26
|
-
&.is-active {
|
27
|
-
color: var(--db-text-color-active);
|
28
|
-
font-weight: bold;
|
29
|
-
}
|
30
|
-
|
31
|
-
&:hover {
|
32
|
-
text-decoration: underline;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
ol,
|
38
|
-
ul {
|
39
|
-
margin: 0 !important;
|
40
|
-
margin-left: 1rem !important;
|
41
|
-
}
|
42
|
-
|
43
|
-
|
44
|
-
@media #{$wide-screen} {
|
45
|
-
display: block;
|
46
|
-
padding: .5rem;
|
47
|
-
--db-toc-spacing: .5rem;
|
48
|
-
}
|
49
|
-
|
50
|
-
}
|
1
|
+
.c-toc {
|
2
|
+
--db-toc-spacing: 1rem;
|
3
|
+
font-size: small;
|
4
|
+
border: 1px solid var(--db-border-color);
|
5
|
+
border-radius: $border-radius-object;
|
6
|
+
display: inline-block;
|
7
|
+
padding: var(--db-toc-spacing) 1rem;
|
8
|
+
width: 100%;
|
9
|
+
|
10
|
+
&__header {
|
11
|
+
border-bottom: 1px dashed var(--db-border-color-inactive);;
|
12
|
+
color: var(--db-text-color-inactive);
|
13
|
+
font-weight: bold;
|
14
|
+
margin-bottom: var(--db-toc-spacing);
|
15
|
+
text-align: center;
|
16
|
+
padding-bottom: var(--db-toc-spacing);
|
17
|
+
}
|
18
|
+
|
19
|
+
&__item {
|
20
|
+
margin-left: 1rem;
|
21
|
+
line-height: 1.8rem;
|
22
|
+
|
23
|
+
a {
|
24
|
+
color: var(--db-text-color-inactive);
|
25
|
+
|
26
|
+
&.is-active {
|
27
|
+
color: var(--db-text-color-active);
|
28
|
+
font-weight: bold;
|
29
|
+
}
|
30
|
+
|
31
|
+
&:hover {
|
32
|
+
text-decoration: underline;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
ol,
|
38
|
+
ul {
|
39
|
+
margin: 0 !important;
|
40
|
+
margin-left: 1rem !important;
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
@media #{$wide-screen} {
|
45
|
+
display: block;
|
46
|
+
padding: .5rem;
|
47
|
+
--db-toc-spacing: .5rem;
|
48
|
+
}
|
49
|
+
|
50
|
+
}
|