databook-theme 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.MD +1 -0
  4. data/_includes/blog/blog.liquid +50 -0
  5. data/_includes/blog/features.liquid +36 -0
  6. data/_includes/blog/full.liquid +3 -0
  7. data/_includes/blog/list.liquid +41 -0
  8. data/_includes/blog/post.liquid +6 -0
  9. data/_includes/components/analytics.google.liquid +11 -0
  10. data/_includes/components/analytics.liquid +11 -0
  11. data/_includes/components/comments.disqus.liquid +17 -0
  12. data/_includes/components/comments.gitalk.liquid +22 -0
  13. data/_includes/components/comments.liquid +13 -0
  14. data/_includes/components/navmenu.items.liquid +51 -0
  15. data/_includes/components/navmenu.liquid +4 -0
  16. data/_includes/components/pagination.liquid +83 -0
  17. data/_includes/components/prevnext.liquid +1 -0
  18. data/_includes/components/search.baidu.liquid +7 -0
  19. data/_includes/components/search.bing.liquid +6 -0
  20. data/_includes/components/search.google.liquid +6 -0
  21. data/_includes/components/search.liquid +21 -0
  22. data/_includes/components/social_button.liquid +9 -0
  23. data/_includes/components/social_link.liquid +14 -0
  24. data/_includes/components/title.liquid +41 -0
  25. data/_includes/components/toc.liquid +28 -0
  26. data/_includes/custom/analytics.liquid +3 -0
  27. data/_includes/custom/blog.liquid +3 -0
  28. data/_includes/custom/body.liquid +3 -0
  29. data/_includes/custom/comments.liquid +3 -0
  30. data/_includes/custom/footer.liquid +3 -0
  31. data/_includes/custom/head.liquid +3 -0
  32. data/_includes/custom/katex.liquid +15 -0
  33. data/_includes/custom/mathjax.liquid +19 -0
  34. data/_includes/custom/search.liquid +3 -0
  35. data/_includes/extensions/toc.liquid +182 -0
  36. data/_includes/functions/get_config.liquid +11 -0
  37. data/_includes/functions/get_config_data.liquid +23 -0
  38. data/_includes/functions/get_icon.liquid +5 -0
  39. data/_includes/functions/get_page_meta.liquid +60 -0
  40. data/_includes/functions/get_page_thumbnail.liquid +23 -0
  41. data/_includes/functions/get_page_title.liquid +7 -0
  42. data/_includes/functions/get_recent_posts.liquid +17 -0
  43. data/_includes/functions/get_taxonomy_link.liquid +9 -0
  44. data/_includes/head/head.liquid +12 -0
  45. data/_includes/head/meta.liquid +41 -0
  46. data/_includes/head/opengraph.liquid +1 -0
  47. data/_includes/head/requirements.liquid +87 -0
  48. data/_includes/head/styles.liquid +10 -0
  49. data/_includes/js/codes.js +116 -0
  50. data/_includes/js/scrollspy.js +16 -0
  51. data/_includes/layout/article.liquid +71 -0
  52. data/_includes/layout/footer.liquid +53 -0
  53. data/_includes/layout/header.liquid +31 -0
  54. data/_includes/layout/hero.liquid +29 -0
  55. data/_includes/layout/page.liquid +33 -0
  56. data/_includes/layout/pagehead.liquid +17 -0
  57. data/_includes/layout/sidebar.liquid +178 -0
  58. data/_includes/localize +29 -0
  59. data/_includes/notice +6 -0
  60. data/_includes/version +1 -0
  61. data/_layouts/article.liquid +10 -0
  62. data/_layouts/default.liquid +131 -0
  63. data/_layouts/home.liquid +20 -0
  64. data/_layouts/page.liquid +9 -0
  65. data/_layouts/post.liquid +9 -0
  66. data/_layouts/system.liquid +35 -0
  67. data/_layouts/taxonomy.liquid +67 -0
  68. data/_sass/_custom.scss +0 -0
  69. data/_sass/_databook.scss +42 -0
  70. data/_sass/_debug.scss +7 -0
  71. data/_sass/_variables.scss +24 -0
  72. data/_sass/base/_misc.scss +0 -0
  73. data/_sass/base/_mixins.scss +32 -0
  74. data/_sass/base/_normalize.scss +45 -0
  75. data/_sass/base/_responsive.scss +28 -0
  76. data/_sass/components/_archive.scss +49 -0
  77. data/_sass/components/_blog.scss +249 -0
  78. data/_sass/components/_forms.scss +30 -0
  79. data/_sass/components/_hero.scss +70 -0
  80. data/_sass/components/_misc.scss +3 -0
  81. data/_sass/components/_notice.scss +27 -0
  82. data/_sass/components/_notification.scss +10 -0
  83. data/_sass/components/_post.scss +19 -0
  84. data/_sass/components/_sidebar.scss +303 -0
  85. data/_sass/components/_tabs.scss +67 -0
  86. data/_sass/components/_text.scss +27 -0
  87. data/_sass/components/_toc.scss +50 -0
  88. data/_sass/layout/_article.scss +211 -0
  89. data/_sass/layout/_body.scss +26 -0
  90. data/_sass/layout/_footer.scss +76 -0
  91. data/_sass/layout/_header.scss +124 -0
  92. data/_sass/layout/_main.scss +8 -0
  93. data/_sass/layout/_misc.scss +7 -0
  94. data/_sass/layout/_navbar.scss +323 -0
  95. data/_sass/layout/_sidebar.scss +115 -0
  96. data/_sass/layout/_wrapper.scss +7 -0
  97. data/_sass/theme/_scheme.scss +112 -0
  98. data/_sass/typography/_article.scss +49 -0
  99. data/_sass/typography/_doc.scss +104 -0
  100. data/_sass/typography/_highlight.scss +208 -0
  101. data/_sass/typography/_markdown.scss +18 -0
  102. data/_sass/typography/_table.scss +119 -0
  103. data/_sass/typography/_typography.scss +108 -0
  104. data/_sass/utilities/_thinscrollbar.scss +35 -0
  105. data/assets/databook/css/databook.scss +6 -0
  106. data/assets/databook/img/avatar.png +0 -0
  107. data/assets/databook/img/logo.png +0 -0
  108. data/assets/databook/js/databook.js +8 -0
  109. data/assets/databook/js/search.js +47 -0
  110. data/assets/databook/version.json +9 -0
  111. data/assets/favicon.ico +0 -0
  112. data/assets/search.json +30 -0
  113. metadata +224 -0
@@ -0,0 +1,112 @@
1
+ @mixin scheme-light {
2
+ --db-accent-color-h: 223;
3
+ --db-accent-color-s: 5%;
4
+ --db-accent-color-l: 50%;
5
+ --db-accent-color: hsl(var(--db-accent-color-h), var(--db-accent-color-s), var(--db-accent-color-l));
6
+
7
+ --db-overlay-color-rgb: 0, 0, 0;
8
+ --db-hover-color-rgb: 255, 255, 255;
9
+
10
+
11
+ --db-background-color: hsl(0, 0%, 100%);
12
+ --db-background-hover-color: var(--db-surface-color);
13
+
14
+ --db-border-color: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 80%);
15
+ --db-border-color-inactive: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 90%);
16
+
17
+ --db-surface-color: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 95%);
18
+ --db-surface-overlay: radial-gradient(#FFFFFF22, #FFFFFF00);
19
+ --db-surface-shadow-color: hsla(var(--db-accent-color-h), var(--db-accent-color-s), 50%, 33%);
20
+ --db-surface-hover-color: hsla(var(--db-accent-color-h), var(--db-accent-color-s), 50%, .2);
21
+
22
+ --db-control-color: hsl(var(--db-accent-color-h), calc(var(--db-accent-color-s) * 1.5), 33%);
23
+ --db-control-border-color: hsl(var(--db-accent-color-h), calc(var(--db-accent-color-s) * 1.5), 22%);
24
+ --db-control-text-color: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 95%);
25
+ --db-control-shadow-color: hsla(var(--db-accent-color-h), var(--db-accent-color-s), 50%, 33%);
26
+
27
+ --db-text-color-active: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 5%);
28
+ --db-text-color-important: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 15%);
29
+ --db-text-color-inactive: hsl(var(--db-accent-color-h), calc(var(--db-accent-color-s) * .66), 40%);
30
+ --db-text-color-disabled: hsl(var(--db-accent-color-h), calc(var(--db-accent-color-s) * .33), 60%);
31
+
32
+ --db-highlight-color: hsla(var(--db-accent-color-h), var(--db-accent-color-s), 50%, 15%);
33
+ --db-highlight-color-hover: hsla(var(--db-accent-color-h), var(--db-accent-color-s), 50%, 20%);
34
+ }
35
+
36
+ @mixin scheme-dark {
37
+ --db-accent-color-h: 223;
38
+ --db-accent-color-s: 5%;
39
+ --db-accent-color-l: 50%;
40
+ --db-accent-color: hsl(var(--db-accent-color-h), var(--db-accent-color-s), var(--db-accent-color-l));
41
+
42
+ --db-overlay-color-rgb: 255, 255, 255;
43
+ --db-hover-color-rgb: 0, 0, 0;
44
+
45
+ --db-background-color: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 8%);
46
+ --db-background-hover-color: var(--db-surface-color);
47
+
48
+ --db-border-color: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 30%);
49
+ --db-border-color-inactive: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 20%);
50
+
51
+ --db-surface-color: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 15%);
52
+ --db-surface-overlay: radial-gradient(#FFFFFF11, #FFFFFF11);
53
+ --db-surface-hover-color: hsla(var(--db-accent-color-h), var(--db-accent-color-s), 50%, 80%);
54
+ --db-surface-shadow-color: transparent;
55
+
56
+ --db-control-color: hsl(var(--db-accent-color-h), calc(var(--db-accent-color-s) * .3), 70%);
57
+ --db-control-border-color: hsl(var(--db-accent-color-h), calc(var(--db-accent-color-s) * .3), 80%);
58
+ --db-control-text-color: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 15%);
59
+ --db-control-shadow-color: transparent;
60
+
61
+ --db-text-color-active: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 95%);
62
+ --db-text-color-important: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 85%);
63
+ --db-text-color-inactive: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 60%);
64
+ --db-text-color-disabled: hsl(var(--db-accent-color-h), var(--db-accent-color-s), 40%);
65
+
66
+ --db-highlight-color: hsla(var(--db-accent-color-h), var(--db-accent-color-s), 50%, 85%);
67
+ --db-highlight-color-hover: hsla(var(--db-accent-color-h), var(--db-accent-color-s), 50%, 80%);
68
+
69
+ img {
70
+ filter: brightness(.8) contrast(1.2);
71
+ }
72
+ }
73
+
74
+ :root {
75
+ color-scheme: normal;
76
+
77
+ &[data-color-scheme="light"] {
78
+ color-scheme: light;
79
+ }
80
+
81
+ @include scheme-light;
82
+
83
+ @media (prefers-color-scheme: dark) {
84
+ @include scheme-dark;
85
+ }
86
+
87
+ &[data-color-scheme="dark"] {
88
+ color-scheme: dark;
89
+ @include scheme-dark;
90
+ }
91
+
92
+ &[data-accent-color="red"] {
93
+ --db-accent-color-h: 2;
94
+ }
95
+ &[data-accent-color="yellow"] {
96
+ --db-accent-color-h: 37;
97
+ }
98
+ &[data-accent-color="green"] {
99
+ --db-accent-color-h: 137;
100
+ }
101
+ &[data-accent-color="blue"] {
102
+ --db-accent-color-h: 223;
103
+ }
104
+ &[data-accent-color="purple"] {
105
+ --db-accent-color-h: 293;
106
+ }
107
+ &[data-accent-color] {
108
+ --db-accent-color-s: 66%;
109
+ accent-color: var(--db-accent-color);
110
+ }
111
+
112
+ }
@@ -0,0 +1,49 @@
1
+ .l-typography--article {
2
+ h1 {
3
+ --db-h-font-size: 3rem;
4
+ --db-h-padding: 1rem;
5
+ --db-h-margin: 1rem;
6
+ --db-h-border: 1px solid var(--db-border-color);
7
+ }
8
+ h2 {
9
+ --db-h-font-size: 1.75rem;
10
+ --db-h-padding: .75rem;
11
+ --db-h-margin: .75rem;
12
+ --db-h-border: 1px solid var(--db-border-color);
13
+ }
14
+ h3 {
15
+ --db-h-font-size: 1.5rem;
16
+ --db-h-padding: .75rem;
17
+ --db-h-margin: .75rem;
18
+ --db-h-border: 1px dashed var(--db-border-color);
19
+ }
20
+ h4 {
21
+ --db-h-font-size: 1.4rem;
22
+ --db-h-padding: .25rem;
23
+ --db-h-margin: .25rem;
24
+ }
25
+ h5 {
26
+ --db-h-font-size: 1.3rem;
27
+ --db-h-padding: .25rem;
28
+ --db-h-margin: .25rem;
29
+ }
30
+ h6 {
31
+ --db-h-font-size: 1.2rem;
32
+ --db-h-padding: .25rem;
33
+ --db-h-margin: .25rem;
34
+ }
35
+
36
+
37
+ h1, h2, h3, h4, h5, h6 {
38
+ font-weight: bold;
39
+ font-size: var(--db-h-font-size);
40
+ padding: var(--db-h-padding) 0;
41
+ border-bottom: var(--db-h-border, none);
42
+
43
+ margin-bottom: var(--db-h-margin);
44
+
45
+ &:not(:first-child) {
46
+ margin-top: calc(var(--db-h-margin) * 1.5);
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,104 @@
1
+ $background-color: var(--db-surface-color);
2
+ $border-color: var(--db-accent-color);
3
+
4
+ .l-typography--doc {
5
+ h1 {
6
+ --db-h-font-size: 2rem;
7
+ --db-h-padding: 1rem;
8
+ --db-h-margin: 2rem;
9
+ --db-h-border-width: 1.5rem;
10
+ --db-h-background-color: #{$border-color};
11
+ --db-h-color: var(--db-control-text-color);
12
+ --db-h-border-left: #{$border-color};
13
+ --db-h-border-radius: #{$border-radius-object} 0 0 #{$border-radius-object};
14
+ }
15
+ h2 {
16
+ --db-h-font-size: 1.75rem;
17
+ --db-h-padding: .5rem 1rem;
18
+ --db-h-margin: 1.5rem;
19
+ --db-h-border-width: .8rem;
20
+ --db-h-background-color: #{$background-color};
21
+ --db-h-border-left: #{$border-color};
22
+ --db-h-border-bottom: #{$border-color};
23
+ --db-h-border-radius: #{$border-radius-object} 0 0 #{$border-radius-object};
24
+ }
25
+ h3 {
26
+ --db-h-font-size: 1.5rem;
27
+ --db-h-padding: .5rem .5rem;
28
+ --db-h-margin: 1.75rem;
29
+ --db-h-border-width: .6rem;
30
+ --db-h-border-left: #{$border-color};
31
+ --db-h-border-bottom: #{$border-color};
32
+ --db-h-border-radius: #{$border-radius-object} #{$border-radius-object} 0 #{$border-radius-object};
33
+ }
34
+ h4 {
35
+ --db-h-font-size: 1.4rem;
36
+ --db-h-padding: .25rem .5rem;
37
+ --db-h-border-width: .5rem;
38
+ --db-h-margin: 1.5rem;
39
+ --db-h-border-left: #{$border-color};
40
+ --db-h-border-radius: #{$border-radius-object};
41
+ }
42
+ h5 {
43
+ --db-h-font-size: 1.3rem;
44
+ --db-h-padding: 0 .5rem;
45
+ --db-h-border-width: .4rem;
46
+ --db-h-margin: 1rem;
47
+ --db-h-border-left: #{$border-color};
48
+ --db-h-border-radius: #{$border-radius-object};
49
+ }
50
+ h6 {
51
+ --db-h-font-size: 1.2rem;
52
+ --db-h-padding: 0 .5rem;
53
+ --db-h-border-width: .3rem;
54
+ --db-h-margin: 1rem;
55
+ --db-h-border-left: #{$border-color};
56
+ --db-h-border-radius: #{$border-radius-object};
57
+ }
58
+
59
+ h1, h2, h3, h4, h5, h6 {
60
+ position: relative;
61
+ background-color: var(--db-h-background-color);
62
+ font-weight: bold;
63
+ color: var(--db-h-color, var(--db-text-color-important));
64
+ font-size: var(--db-h-font-size);
65
+ padding: var(--db-h-padding);
66
+ margin-bottom: var(--db-h-margin);
67
+
68
+ &:not(:first-child) {
69
+ margin-top: var(--db-h-margin);
70
+ }
71
+
72
+ &::before {
73
+ background-color: var(--db-h-border-left, unset);
74
+ content: "";
75
+ width: var(--db-h-border-width);
76
+ left: calc(0px - var(--db-h-border-width));
77
+ height: 100%;
78
+ position: absolute;
79
+ top: 0;
80
+ border-radius: var(--db-h-border-radius, unset);
81
+ }
82
+
83
+ &::after {
84
+ background-color: var(--db-h-border-bottom, unset);
85
+ content: "";
86
+ width: 100%;
87
+ left: 0;
88
+ bottom: 0;
89
+ height: 1px;
90
+ position: absolute;
91
+ }
92
+
93
+ }
94
+
95
+ h1 {
96
+ border-radius: 0 #{$border-radius-object} #{$border-radius-object} 0;
97
+ }
98
+
99
+ blockquote {
100
+ h1, h2, h3, h4, h5, h6 {
101
+ margin-left: 1rem;
102
+ }
103
+ }
104
+ }
@@ -0,0 +1,208 @@
1
+ // https://github.com/pages-themes/minimal/blob/master/_sass/rouge-github.scss
2
+
3
+ .highlight {
4
+ .cm {
5
+ color: #999988;
6
+ font-style: italic;
7
+ }
8
+ .cp {
9
+ color: #999999;
10
+ font-weight: bold;
11
+ }
12
+ .c1 {
13
+ color: #999988;
14
+ font-style: italic;
15
+ }
16
+ .cs {
17
+ color: #999999;
18
+ font-weight: bold;
19
+ font-style: italic;
20
+ }
21
+ .c, .cd {
22
+ color: #999988;
23
+ font-style: italic;
24
+ }
25
+ .err {
26
+ color: #a61717;
27
+ background-color: #e3d2d2;
28
+ }
29
+ .gd {
30
+ color: #000000;
31
+ background-color: #ffdddd;
32
+ }
33
+ .ge {
34
+ color: #000000;
35
+ font-style: italic;
36
+ }
37
+ .gr {
38
+ color: #aa0000;
39
+ }
40
+ .gh {
41
+ color: #999999;
42
+ }
43
+ .gi {
44
+ color: #000000;
45
+ background-color: #ddffdd;
46
+ }
47
+ .go {
48
+ color: #888888;
49
+ }
50
+ .gp {
51
+ color: #555555;
52
+ }
53
+ .gs {
54
+ font-weight: bold;
55
+ }
56
+ .gu {
57
+ color: #aaaaaa;
58
+ }
59
+ .gt {
60
+ color: #aa0000;
61
+ }
62
+ .kc {
63
+ color: #000000;
64
+ font-weight: bold;
65
+ }
66
+ .kd {
67
+ color: #000000;
68
+ font-weight: bold;
69
+ }
70
+ .kn {
71
+ color: #000000;
72
+ font-weight: bold;
73
+ }
74
+ .kp {
75
+ color: #000000;
76
+ font-weight: bold;
77
+ }
78
+ .kr {
79
+ color: #000000;
80
+ font-weight: bold;
81
+ }
82
+ .kt {
83
+ color: #445588;
84
+ font-weight: bold;
85
+ }
86
+ .k, .kv {
87
+ color: #000000;
88
+ font-weight: bold;
89
+ }
90
+ .mf {
91
+ color: #009999;
92
+ }
93
+ .mh {
94
+ color: #009999;
95
+ }
96
+ .il {
97
+ color: #009999;
98
+ }
99
+ .mi {
100
+ color: #009999;
101
+ }
102
+ .mo {
103
+ color: #009999;
104
+ }
105
+ .m, .mb, .mx {
106
+ color: #009999;
107
+ }
108
+ .sb {
109
+ color: #d14;
110
+ }
111
+ .sc {
112
+ color: #d14;
113
+ }
114
+ .sd {
115
+ color: #d14;
116
+ }
117
+ .s2 {
118
+ color: #d14;
119
+ }
120
+ .se {
121
+ color: #d14;
122
+ }
123
+ .sh {
124
+ color: #d14;
125
+ }
126
+ .si {
127
+ color: #d14;
128
+ }
129
+ .sx {
130
+ color: #d14;
131
+ }
132
+ .sr {
133
+ color: #009926;
134
+ }
135
+ .s1 {
136
+ color: #d14;
137
+ }
138
+ .ss {
139
+ color: #990073;
140
+ }
141
+ .s {
142
+ color: #d14;
143
+ }
144
+ .na {
145
+ color: #008080;
146
+ }
147
+ .bp {
148
+ color: #999999;
149
+ }
150
+ .nb {
151
+ color: #0086B3;
152
+ }
153
+ .nc {
154
+ color: #445588;
155
+ font-weight: bold;
156
+ }
157
+ .no {
158
+ color: #008080;
159
+ }
160
+ .nd {
161
+ color: #3c5d5d;
162
+ font-weight: bold;
163
+ }
164
+ .ni {
165
+ color: #800080;
166
+ }
167
+ .ne {
168
+ color: #990000;
169
+ font-weight: bold;
170
+ }
171
+ .nf {
172
+ color: #990000;
173
+ font-weight: bold;
174
+ }
175
+ .nl {
176
+ color: #990000;
177
+ font-weight: bold;
178
+ }
179
+ .nn {
180
+ color: #555555;
181
+ }
182
+ .nt {
183
+ color: #000080;
184
+ }
185
+ .vc {
186
+ color: #008080;
187
+ }
188
+ .vg {
189
+ color: #008080;
190
+ }
191
+ .vi {
192
+ color: #008080;
193
+ }
194
+ .nv {
195
+ color: #008080;
196
+ }
197
+ .ow {
198
+ color: #000000;
199
+ font-weight: bold;
200
+ }
201
+ .o {
202
+ color: #000000;
203
+ font-weight: bold;
204
+ }
205
+ .w {
206
+ color: #bbbbbb;
207
+ }
208
+ }
@@ -0,0 +1,18 @@
1
+ .footnote {
2
+ color: #666;
3
+ &::before {
4
+ content: "[";
5
+ }
6
+ &::after {
7
+ content: "]";
8
+ }
9
+ }
10
+
11
+ .footnotes {
12
+ border-top: 1px dashed #ccc;
13
+ margin-top: 2rem;
14
+ padding-top: 1rem;
15
+ font-size: small;
16
+ margin-bottom: $spacing-unit / 2;
17
+ color: #666;
18
+ }
@@ -0,0 +1,119 @@
1
+ .l-typography {
2
+ --db-cell-padding: .6rem .8rem;
3
+ --db-cell-bold-border: 2px;
4
+ --db-cell-border-row: var(--db-border-color);
5
+ --db-cell-border-column: var(--db-border-color);
6
+
7
+ table:not(.rouge-table) {
8
+ border: 1px solid var(--db-border-color);
9
+ border-collapse: separate;
10
+ border-radius: $border-radius-object;
11
+ border-spacing: 0;
12
+ margin-top: 1rem;
13
+ margin-bottom: 1rem;
14
+ overflow: hidden;
15
+ width: 100%;
16
+
17
+ th, td {
18
+ padding: var(--db-cell-padding);
19
+ border-bottom: 1px solid var(--db-cell-border-row);
20
+ border-right: 1px solid var(--db-cell-border-column);
21
+ }
22
+
23
+ > *:last-child > tr:last-child > * {
24
+ border-bottom: none;
25
+ }
26
+
27
+ > * > tr > *:last-child {
28
+ border-right: none;
29
+ }
30
+
31
+ > *:not(:last-child) > tr:last-child {
32
+ position : relative;
33
+
34
+ &::after {
35
+ content: '';
36
+ position: absolute;
37
+ bottom: 0;
38
+ left: 0;
39
+ height: 0;
40
+ width: 100%;
41
+ border-bottom: var(--db-cell-bold-border) solid var(--db-border-color);
42
+ }
43
+ }
44
+
45
+ + .h-table--combined {
46
+ margin-top: calc(-1rem - 1px) !important;
47
+ border-top: none !important;
48
+ border-top-left-radius: 0 !important;
49
+ border-top-right-radius: 0 !important;
50
+ }
51
+ }
52
+
53
+ }
54
+
55
+ .h-table--small {
56
+ --db-cell-padding: .2rem .4rem;
57
+ font-size: 90%;
58
+ }
59
+
60
+ .h-table--row {
61
+ --db-cell-border-column: transparent;
62
+ }
63
+
64
+ .h-table--column {
65
+ --db-cell-border-row: transparent;
66
+ --db-cell-bold-border: 1px;
67
+ }
68
+
69
+ .h-table--grid {
70
+ --db-cell-border-row: var(--db-border-color);
71
+ --db-cell-border-column: var(--db-border-color);
72
+ }
73
+
74
+ .h-table--striped {
75
+ > tbody:first-child > tr:nth-child(even),
76
+ > tbody:not(:first-child) > tr:nth-child(odd) {
77
+ background-color: var(--db-highlight-color-hover);
78
+ }
79
+ }
80
+
81
+ .h-table--hover:not(.h-table--striped) {
82
+ > tbody > tr:hover {
83
+ background-color: var(--db-highlight-color-hover);
84
+ }
85
+ }
86
+
87
+ .h-table--hover.h-table--column {
88
+ // todo
89
+ td:hover {
90
+ }
91
+ }
92
+
93
+ .h-table--left {
94
+ text-align: left;
95
+ }
96
+
97
+ .h-table--center {
98
+ text-align: center;
99
+ }
100
+
101
+ .h-table--right {
102
+ text-align: right;
103
+ }
104
+
105
+ .h-table--justify {
106
+ text-align: justify;
107
+ }
108
+
109
+ .h-table--top td {
110
+ vertical-align: top;
111
+ }
112
+
113
+ .h-table--middle td {
114
+ vertical-align: middle;
115
+ }
116
+
117
+ .h-table--bottom td {
118
+ vertical-align: bottom;
119
+ }
@@ -0,0 +1,108 @@
1
+ .l-typography {
2
+ p {
3
+ margin: .5rem 0;
4
+ line-height: 1.5em;
5
+ }
6
+
7
+ ol, ul {
8
+ margin-left: 2em;
9
+ margin-top: .5rem;
10
+ margin-bottom: .5rem;
11
+
12
+ ol, ul {
13
+ margin-top: 0;
14
+ margin-bottom: 0;
15
+ }
16
+ }
17
+ li {
18
+ line-height: 1.5em;
19
+ margin: .25rem 0;
20
+ &::marker {
21
+ color: var(--db-text-color-important);
22
+ }
23
+
24
+ > p {
25
+ margin: .25rem 0;
26
+ &:first-child {
27
+ margin-top: 0;
28
+ }
29
+ &:last-child {
30
+ margin-bottom: 0;
31
+ }
32
+ }
33
+ }
34
+
35
+ dl {
36
+ line-height: 1.5em;
37
+ }
38
+ dt {
39
+ font-weight: bold;
40
+ margin: .25rem 0;
41
+ }
42
+ dd {
43
+ margin: .25rem 0 .25rem 2rem;
44
+ }
45
+
46
+ a {
47
+ color: revert;
48
+
49
+ &:hover {
50
+ color: revert;
51
+ text-decoration: revert;
52
+ }
53
+ }
54
+
55
+ .highlight code {
56
+ background-color: var(--db-surface-color);
57
+ border: 1px solid var(--db-border-color);
58
+ max-width: 100%;
59
+ overflow-x: auto;
60
+ border-radius: $border-radius-object;
61
+ margin: 1rem 0;
62
+
63
+ line-height: 1.5em;
64
+ padding: .5em 1rem;
65
+
66
+ display: block;
67
+
68
+ &::before {
69
+ content: ' ';
70
+ color: white;
71
+ }
72
+ }
73
+
74
+ code.language-plaintext {
75
+ padding: .2rem .4em;
76
+ margin: 0 .2rem;
77
+ font-size: .9em;
78
+ background-color: var(--db-surface-color);
79
+ border-radius: $border-radius-object;
80
+ white-space: nowrap;
81
+ }
82
+
83
+ hr {
84
+ border-top: 1px solid var(--db-border-color);
85
+ border-width: 1px 0 0 0;
86
+ margin: 1em 2em;
87
+ }
88
+
89
+ blockquote {
90
+ margin: .5rem 2rem;
91
+ color: var(--db-text-color-inactive);
92
+ border-left: 0.25em solid var(--db-border-color);
93
+ padding: .25rem 0 .25rem .5rem;
94
+ > * {
95
+ &:first-child {
96
+ margin-top: 0;
97
+ }
98
+ &:last-child {
99
+ margin-bottom: 0;
100
+ }
101
+ }
102
+ }
103
+
104
+ p:lang(zh) {
105
+ text-indent: 2em;
106
+ }
107
+
108
+ }