jekyll-docs-theme 0.1.2 → 1.0.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +20 -16
  3. data/README.md +8 -35
  4. data/_includes/anchor_headings.html +109 -0
  5. data/_includes/fa-icon.html +13 -0
  6. data/_includes/footer/content-post.html +4 -0
  7. data/_includes/footer/content-pre.html +4 -0
  8. data/_includes/footer/content.html +137 -0
  9. data/_includes/footer/full.html +13 -0
  10. data/_includes/footer/scripts-post.html +4 -0
  11. data/_includes/footer/scripts-pre.html +4 -0
  12. data/_includes/footer/scripts.html +48 -0
  13. data/_includes/head/base.html +3 -0
  14. data/_includes/head/content-post.html +0 -0
  15. data/_includes/head/content-pre.html +0 -0
  16. data/_includes/head/content.html +8 -0
  17. data/_includes/head/full.html +9 -0
  18. data/_includes/head/stylesheets-post.html +0 -0
  19. data/_includes/head/stylesheets-pre.html +0 -0
  20. data/_includes/head/stylesheets.html +16 -0
  21. data/_includes/internal/variables.html +21 -0
  22. data/_includes/masthead.html +13 -0
  23. data/_includes/masthead/button.html +11 -0
  24. data/_includes/masthead/buttons.html +30 -0
  25. data/_includes/masthead/title.html +7 -0
  26. data/_includes/navigation.html +37 -19
  27. data/_includes/toc.html +87 -0
  28. data/_layouts/default.html +4 -4
  29. data/_layouts/full.html +5 -3
  30. data/_layouts/page.html +46 -11
  31. data/_sass/abstracts/_highlight-dark.scss +136 -0
  32. data/_sass/abstracts/_highlight-light.scss +251 -0
  33. data/_sass/abstracts/_themer.scss +18 -0
  34. data/_sass/abstracts/_variables.scss +6 -0
  35. data/_sass/base/_anchor.scss +20 -0
  36. data/_sass/base/_body.scss +12 -0
  37. data/_sass/base/_scope-markdown.scss +94 -0
  38. data/_sass/components/_alert.scss +5 -0
  39. data/_sass/components/_footer.scss +39 -0
  40. data/_sass/components/_header.scss +22 -0
  41. data/_sass/components/_highlight.scss +59 -0
  42. data/_sass/components/_masthead.scss +62 -0
  43. data/_sass/components/_mobile-toc.scss +30 -0
  44. data/_sass/components/_sidebar.scss +84 -0
  45. data/_sass/utilities/_colors.scss +301 -0
  46. data/_sass/utilities/_js.scss +3 -0
  47. data/assets/css/styles.scss +38 -50
  48. data/assets/js/docs.js +49 -0
  49. metadata +48 -27
  50. data/_includes/footer.html +0 -91
  51. data/_includes/head.html +0 -26
  52. data/_includes/jumbotron.html +0 -21
  53. data/assets/css/docs.css +0 -1527
  54. data/assets/js/docs.min.js +0 -49
@@ -0,0 +1,251 @@
1
+ @mixin highlight-light-theme() {
2
+ .hll {
3
+ background-color: #ffc
4
+ }
5
+
6
+ .c {
7
+ color: #999
8
+ }
9
+
10
+ .err {
11
+ color: #A00;
12
+ background-color: #FAA
13
+ }
14
+
15
+ .k {
16
+ color: #069
17
+ }
18
+
19
+ .o {
20
+ color: #555
21
+ }
22
+
23
+ .cm {
24
+ color: #999
25
+ }
26
+
27
+ .cp {
28
+ color: #099
29
+ }
30
+
31
+ .c1 {
32
+ color: #999
33
+ }
34
+
35
+ .cs {
36
+ color: #999
37
+ }
38
+
39
+ .gd {
40
+ background-color: #FCC;
41
+ border: 1px solid #C00
42
+ }
43
+
44
+ .ge {
45
+ font-style: italic
46
+ }
47
+
48
+ .gr {
49
+ color: red
50
+ }
51
+
52
+ .gh {
53
+ color: #030
54
+ }
55
+
56
+ .gi {
57
+ background-color: #CFC;
58
+ border: 1px solid #0C0
59
+ }
60
+
61
+ .go {
62
+ color: #AAA
63
+ }
64
+
65
+ .gp {
66
+ color: #009
67
+ }
68
+
69
+ .gu {
70
+ color: #030
71
+ }
72
+
73
+ .gt {
74
+ color: #9C6
75
+ }
76
+
77
+ .kc {
78
+ color: #069
79
+ }
80
+
81
+ .kd {
82
+ color: #069
83
+ }
84
+
85
+ .kn {
86
+ color: #069
87
+ }
88
+
89
+ .kp {
90
+ color: #069
91
+ }
92
+
93
+ .kr {
94
+ color: #069
95
+ }
96
+
97
+ .kt {
98
+ color: #078
99
+ }
100
+
101
+ .m {
102
+ color: #F60
103
+ }
104
+
105
+ .s {
106
+ color: #d44950
107
+ }
108
+
109
+ .na {
110
+ color: #4f9fcf
111
+ }
112
+
113
+ .nb {
114
+ color: #366
115
+ }
116
+
117
+ .nc {
118
+ color: #0A8
119
+ }
120
+
121
+ .no {
122
+ color: #360
123
+ }
124
+
125
+ .nd {
126
+ color: #99F
127
+ }
128
+
129
+ .ni {
130
+ color: #999
131
+ }
132
+
133
+ .ne {
134
+ color: #C00
135
+ }
136
+
137
+ .nf {
138
+ color: #C0F
139
+ }
140
+
141
+ .nl {
142
+ color: #99F
143
+ }
144
+
145
+ .nn {
146
+ color: #0CF
147
+ }
148
+
149
+ .nt {
150
+ color: #2f6f9f
151
+ }
152
+
153
+ .nv {
154
+ color: #033
155
+ }
156
+
157
+ .ow {
158
+ color: #000
159
+ }
160
+
161
+ .w {
162
+ color: #bbb
163
+ }
164
+
165
+ .mf {
166
+ color: #F60
167
+ }
168
+
169
+ .mh {
170
+ color: #F60
171
+ }
172
+
173
+ .mi {
174
+ color: #F60
175
+ }
176
+
177
+ .mo {
178
+ color: #F60
179
+ }
180
+
181
+ .sb {
182
+ color: #C30
183
+ }
184
+
185
+ .sc {
186
+ color: #C30
187
+ }
188
+
189
+ .sd {
190
+ color: #C30;
191
+ font-style: italic
192
+ }
193
+
194
+ .s2 {
195
+ color: #C30
196
+ }
197
+
198
+ .se {
199
+ color: #C30
200
+ }
201
+
202
+ .sh {
203
+ color: #C30
204
+ }
205
+
206
+ .si {
207
+ color: #A00
208
+ }
209
+
210
+ .sx {
211
+ color: #C30
212
+ }
213
+
214
+ .sr {
215
+ color: #3AA
216
+ }
217
+
218
+ .s1 {
219
+ color: #C30
220
+ }
221
+
222
+ .ss {
223
+ color: #FC3
224
+ }
225
+
226
+ .bp {
227
+ color: #366
228
+ }
229
+
230
+ .vc {
231
+ color: #033
232
+ }
233
+
234
+ .vg {
235
+ color: #033
236
+ }
237
+
238
+ .vi {
239
+ color: #033
240
+ }
241
+
242
+ .il {
243
+ color: #F60
244
+ }
245
+
246
+ .css .o,
247
+ .css .o+.nt,
248
+ .css .nt+.nt {
249
+ color: #999
250
+ }
251
+ }
@@ -0,0 +1,18 @@
1
+ @mixin themer($property, $values) {
2
+ @if $site-ui-mode == 'auto' {
3
+ @media (prefers-color-scheme: dark) {
4
+ & {
5
+ #{$property}: map-get($values, 'dark');
6
+ }
7
+ }
8
+
9
+ @media (prefers-color-scheme: light) {
10
+ & {
11
+ #{$property}: map-get($values, 'light');
12
+ }
13
+ }
14
+ }
15
+ @else if $site-ui-mode == 'dark' or $site-ui-mode == 'light' {
16
+ #{$property}: map-get($values, $site-ui-mode);
17
+ }
18
+ }
@@ -0,0 +1,6 @@
1
+ $background-color-dark: #252525 !default;
2
+ $background-color-light: #ffffff !default;
3
+ $color-dark: #d8d8d8 !default;
4
+ $color-light: #222222 !default;
5
+
6
+ $sidebar-border-width: 2px !default;
@@ -0,0 +1,20 @@
1
+ a {
2
+ @include themer(color, (
3
+ 'dark': $site-ui-brand-dark,
4
+ 'light': $site-ui-brand-light,
5
+ ));
6
+
7
+ border-bottom: 1px dashed currentColor;
8
+ text-decoration: none;
9
+
10
+ &:active,
11
+ &:focus,
12
+ &:hover {
13
+ @include themer(color, (
14
+ 'dark': darken($site-ui-brand-dark, 10%),
15
+ 'light': darken($site-ui-brand-light, 10%),
16
+ ));
17
+
18
+ text-decoration: none;
19
+ }
20
+ }
@@ -0,0 +1,12 @@
1
+ body {
2
+ @include themer(background-color, (
3
+ 'dark': $background-color-dark,
4
+ 'light': $background-color-light,
5
+ ));
6
+ @include themer(color, (
7
+ 'dark': $color-dark,
8
+ 'light': $color-light,
9
+ ));
10
+
11
+ position: relative;
12
+ }
@@ -0,0 +1,94 @@
1
+ .scope-markdown {
2
+ code {
3
+ @include themer(color, (
4
+ 'dark': #ffa6a6,
5
+ 'light': #e83e8c,
6
+ ));
7
+ }
8
+
9
+ h1, h2, h3,
10
+ h4, h5, h6 {
11
+ .heading-anchor {
12
+ border-bottom: 0;
13
+ font-size: 0.8em;
14
+ opacity: 0.6;
15
+ transition: opacity 0.2s;
16
+ }
17
+
18
+ &:hover {
19
+ .heading-anchor {
20
+ opacity: 1;
21
+
22
+ &:active,
23
+ &:focus,
24
+ &:hover {
25
+ @include themer(color, (
26
+ 'dark': $site-ui-brand-dark,
27
+ 'light': $site-ui-brand-light,
28
+ ));
29
+
30
+ text-decoration: underline;
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ h1 {
37
+ font-size: 2.25rem;
38
+ }
39
+
40
+ h2 {
41
+ @include themer(border-bottom-color, (
42
+ 'dark': $site-ui-border-color-dark,
43
+ 'light': $site-ui-border-color-light,
44
+ ));
45
+
46
+ border-bottom-style: solid;
47
+ border-bottom-width: 1px;
48
+ font-size: 2rem;
49
+ margin-bottom: 1.25rem;
50
+ margin-top: 2rem;
51
+ padding-bottom: 0.5rem;
52
+ }
53
+
54
+ h3 {
55
+ font-size: 1.5rem;
56
+ margin-bottom: 0.75rem;
57
+ margin-top: 1.75rem;
58
+ }
59
+
60
+ img {
61
+ max-width: 100%;
62
+ }
63
+
64
+ table {
65
+ width: 100%;
66
+
67
+ thead,
68
+ tr {
69
+ @include themer(border-bottom-color, (
70
+ 'dark': $site-ui-border-color-dark,
71
+ 'light': $site-ui-border-color-light,
72
+ ));
73
+
74
+ border-bottom-style: solid;
75
+ }
76
+
77
+ thead {
78
+ border-bottom-width: 2px;
79
+ }
80
+
81
+ tr {
82
+ border-bottom-width: 1px;
83
+
84
+ &:last-child {
85
+ border-bottom: 0;
86
+ }
87
+ }
88
+
89
+ td,
90
+ th {
91
+ padding: 0.5rem 0.25rem;
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,5 @@
1
+ .alert {
2
+ p:last-of-type {
3
+ margin-bottom: 0;
4
+ }
5
+ }
@@ -0,0 +1,39 @@
1
+ .site-footer {
2
+ }
3
+
4
+ .site-footer__social-links {
5
+ .github-btn {
6
+ border: 0;
7
+ overflow: hidden
8
+ }
9
+
10
+ .twitter-follow-button {
11
+ width: 225px!important
12
+ }
13
+
14
+ .twitter-share-button {
15
+ width: 98px!important
16
+ }
17
+
18
+ }
19
+
20
+ .site-footer__links {
21
+ .list-inline-item {
22
+ &:not(:last-child)::after {
23
+ content: '\00b7';
24
+ padding-left: 0.5rem;
25
+ }
26
+ }
27
+ }
28
+
29
+ .site-footer__link {
30
+ border-bottom: 0;
31
+
32
+ span {
33
+ border-bottom: 1px dashed currentColor;
34
+ }
35
+ }
36
+
37
+ .site-footer__summary {
38
+ font-size: 0.8rem;
39
+ }