jekyll-docs-theme 0.1.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +20 -16
  3. data/README.md +11 -34
  4. data/_includes/fa-icon.html +13 -0
  5. data/_includes/footer/content-post.html +4 -0
  6. data/_includes/footer/content-pre.html +4 -0
  7. data/_includes/footer/content.html +137 -0
  8. data/_includes/footer/full.html +13 -0
  9. data/_includes/footer/scripts-post.html +4 -0
  10. data/_includes/footer/scripts-pre.html +4 -0
  11. data/_includes/footer/scripts.html +48 -0
  12. data/_includes/head/base.html +3 -0
  13. data/_includes/head/content-post.html +0 -0
  14. data/_includes/head/content-pre.html +0 -0
  15. data/_includes/head/content.html +8 -0
  16. data/_includes/head/full.html +9 -0
  17. data/_includes/head/stylesheets-post.html +0 -0
  18. data/_includes/head/stylesheets-pre.html +0 -0
  19. data/_includes/head/stylesheets.html +16 -0
  20. data/_includes/internal/variables.html +21 -0
  21. data/_includes/jekyll-docs-theme/anchor_headings.html +34 -0
  22. data/_includes/jekyll-docs-theme/toc.html +38 -0
  23. data/_includes/jekyll-docs-theme/vendor/anchor_headings.html +110 -0
  24. data/_includes/jekyll-docs-theme/vendor/toc.html +112 -0
  25. data/_includes/masthead.html +13 -0
  26. data/_includes/masthead/button.html +11 -0
  27. data/_includes/masthead/buttons.html +30 -0
  28. data/_includes/masthead/title.html +7 -0
  29. data/_includes/navigation.html +50 -20
  30. data/_includes/sidebar/content-post.html +0 -0
  31. data/_includes/sidebar/content-pre.html +0 -0
  32. data/_includes/sidebar/content.html +10 -0
  33. data/_layouts/default.html +10 -4
  34. data/_layouts/full.html +5 -3
  35. data/_layouts/page.html +31 -11
  36. data/_sass/abstracts/_highlight-dark.scss +136 -0
  37. data/_sass/abstracts/_highlight-light.scss +251 -0
  38. data/_sass/abstracts/_themer.scss +18 -0
  39. data/_sass/abstracts/_variables.scss +6 -0
  40. data/_sass/base/_anchor.scss +20 -0
  41. data/_sass/base/_blockquote.scss +19 -0
  42. data/_sass/base/_body.scss +12 -0
  43. data/_sass/base/_horizontal-rule.scss +9 -0
  44. data/_sass/base/_scope-markdown.scss +108 -0
  45. data/_sass/components/_alert.scss +5 -0
  46. data/_sass/components/_footer.scss +39 -0
  47. data/_sass/components/_header.scss +22 -0
  48. data/_sass/components/_highlight.scss +59 -0
  49. data/_sass/components/_masthead.scss +62 -0
  50. data/_sass/components/_mobile-toc.scss +30 -0
  51. data/_sass/components/_sidebar.scss +86 -0
  52. data/_sass/utilities/_colors.scss +301 -0
  53. data/_sass/utilities/_js.scss +3 -0
  54. data/assets/css/styles.scss +40 -50
  55. data/assets/js/docs.js +49 -0
  56. metadata +54 -26
  57. data/_includes/footer.html +0 -91
  58. data/_includes/head.html +0 -26
  59. data/_includes/jumbotron.html +0 -21
  60. data/assets/css/docs.css +0 -1527
  61. data/assets/js/docs.min.js +0 -49
@@ -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,19 @@
1
+ blockquote {
2
+ @include themer(border-bottom-color, (
3
+ 'dark': $site-ui-border-color-dark,
4
+ 'light': $site-ui-border-color-light,
5
+ ));
6
+
7
+ @include themer(color, (
8
+ 'dark': rgba($color-dark, 60%),
9
+ 'light': rgba($color-light, 60%),
10
+ ));
11
+
12
+ border-left-style: solid;
13
+ border-left-width: 4px;
14
+ padding: 0.5rem 1.25rem;
15
+
16
+ *:last-child {
17
+ margin-bottom: 0;
18
+ }
19
+ }
@@ -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,9 @@
1
+ hr {
2
+ @include themer(border-top-color, (
3
+ 'dark': $site-ui-border-color-dark,
4
+ 'light': $site-ui-border-color-light,
5
+ ));
6
+
7
+ margin-bottom: 2.5rem;
8
+ margin-top: 2.5rem;
9
+ }
@@ -0,0 +1,108 @@
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, h4, h5, h6 {
55
+ font-size: 1.5rem;
56
+ font-weight: bold;
57
+ margin-bottom: 0.75rem;
58
+ margin-top: 1.75rem;
59
+ }
60
+
61
+ h4 {
62
+ font-size: 1.25rem;
63
+ }
64
+
65
+ h5 {
66
+ font-size: 1.15rem;
67
+ }
68
+
69
+ h6 {
70
+ font-size: 1rem;
71
+ }
72
+
73
+ img {
74
+ display: block;
75
+ max-width: 100%;
76
+ }
77
+
78
+ table {
79
+ width: 100%;
80
+
81
+ thead,
82
+ tr {
83
+ @include themer(border-bottom-color, (
84
+ 'dark': $site-ui-border-color-dark,
85
+ 'light': $site-ui-border-color-light,
86
+ ));
87
+
88
+ border-bottom-style: solid;
89
+ }
90
+
91
+ thead {
92
+ border-bottom-width: 2px;
93
+ }
94
+
95
+ tr {
96
+ border-bottom-width: 1px;
97
+
98
+ &:last-child {
99
+ border-bottom: 0;
100
+ }
101
+ }
102
+
103
+ td,
104
+ th {
105
+ padding: 0.5rem 0.25rem;
106
+ }
107
+ }
108
+ }
@@ -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
+ }
@@ -0,0 +1,22 @@
1
+ .navbar-custom {
2
+ a {
3
+ border-bottom: 0;
4
+ }
5
+
6
+ .navbar-brand {
7
+ font-weight: bold;
8
+ }
9
+
10
+ .icon-bar {
11
+ @include themer(background, (
12
+ 'dark': $site-ui-brand-dark,
13
+ 'light': $site-ui-brand-light,
14
+ ));
15
+
16
+ border-radius: 1px;
17
+ display: block;
18
+ height: 2px;
19
+ margin: 4px 0;
20
+ width: 22px;
21
+ }
22
+ }
@@ -0,0 +1,59 @@
1
+ @if $site-ui-mode == 'auto' {
2
+ @media (prefers-color-scheme: dark) {
3
+ @include highlight-dark-theme();
4
+ }
5
+
6
+ @media (prefers-color-scheme: light) {
7
+ @include highlight-light-theme();
8
+ }
9
+ }
10
+ @else if $site-ui-mode == 'dark' {
11
+ @include highlight-dark-theme();
12
+ }
13
+ @else if $site-ui-mode == 'light' {
14
+ @include highlight-light-theme();
15
+ }
16
+
17
+ .highlight {
18
+ @include themer(background-color, (
19
+ 'dark': #3f3f3f,
20
+ 'light': #f7f7f9,
21
+ ));
22
+ @include themer(border-color, (
23
+ 'dark': #222222,
24
+ 'light': #e1e1e8,
25
+ ));
26
+
27
+ border-style: solid;
28
+ border-width: 1px;
29
+ border-radius: 4px;
30
+ padding: 9px 14px;
31
+ margin-bottom: 14px;
32
+ }
33
+
34
+ .highlight pre {
35
+ background-color: transparent;
36
+ border: 0;
37
+ padding: 0;
38
+ margin-top: 0;
39
+ margin-bottom: 0;
40
+ }
41
+
42
+ .highlight pre code {
43
+ @include themer(color, (
44
+ 'dark': #fdce93,
45
+ 'light': #333,
46
+ ));
47
+
48
+ font-size: inherit;
49
+ white-space: pre;
50
+ }
51
+
52
+ .highlight pre .lineno {
53
+ display: inline-block;
54
+ color: #bebec5;
55
+ margin-right: 10px;
56
+ padding-right: 5px;
57
+ text-align: right;
58
+ width: 22px;
59
+ }
@@ -0,0 +1,62 @@
1
+ .site-masthead {
2
+ @include themer(background, (
3
+ 'dark': $site-ui-header-dark-color1,
4
+ 'light': $site-ui-header-light-color1,
5
+ ));
6
+ @include themer(background, (
7
+ 'dark': linear-gradient(135deg, $site-ui-header-dark-color1, $site-ui-header-dark-color2),
8
+ 'light': linear-gradient(135deg, $site-ui-header-light-color1, $site-ui-header-light-color2),
9
+ ));
10
+
11
+ color: white;
12
+ position: relative;
13
+
14
+ &::after {
15
+ @include themer(background, (
16
+ 'dark': linear-gradient(135deg, transparent 50px, $background-color-dark 50px),
17
+ 'light': linear-gradient(135deg, transparent 50px, $background-color-light 50px),
18
+ ));
19
+
20
+ bottom: 0;
21
+ content: "";
22
+ height: 50px;
23
+ position: absolute;
24
+ right: 0;
25
+ width: 30%;
26
+ }
27
+ }
28
+
29
+ .site-masthead__button {
30
+ @include themer(border-color, (
31
+ 'dark': $site-ui-masthead-color-dark,
32
+ 'light': $site-ui-masthead-color-light,
33
+ ));
34
+ @include themer(color, (
35
+ 'dark': $site-ui-masthead-color-dark,
36
+ 'light': $site-ui-masthead-color-light,
37
+ ));
38
+
39
+ border-radius: 5px;
40
+ border-style: solid;
41
+ border-width: 1px;
42
+ display: inline-block;
43
+ font-size: 1.25rem;
44
+ padding: 0.75rem 2rem;
45
+
46
+ &:hover {
47
+ @include themer(background-color, (
48
+ 'dark': $site-ui-masthead-color-dark,
49
+ 'light': $site-ui-masthead-color-light,
50
+ ));
51
+ @include themer(color, (
52
+ 'dark': $site-ui-brand-dark,
53
+ 'light': $site-ui-brand-light,
54
+ ));
55
+
56
+ text-decoration: none;
57
+ }
58
+ }
59
+
60
+ .site-masthead__version {
61
+ font-size: 0.8rem;
62
+ }
@@ -0,0 +1,30 @@
1
+ .mobile-toc {
2
+ h2 {
3
+ font-size: 1rem;
4
+ font-weight: bold;
5
+ }
6
+
7
+ ul {
8
+ padding-left: 1.4rem;
9
+ }
10
+
11
+ .toggle-toc {
12
+ @include themer(color, (
13
+ 'dark': $site-ui-brand-dark,
14
+ 'light': $site-ui-brand-light,
15
+ ));
16
+
17
+ background-color: transparent;
18
+ border: none;
19
+ cursor: pointer;
20
+ padding: 0;
21
+
22
+ &::before {
23
+ content: '[';
24
+ }
25
+
26
+ &::after {
27
+ content: ']';
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,86 @@
1
+ // Only hide nested ULs if they are accessible via JS
2
+ .js .page-sidebar {
3
+ ul ul {
4
+ display: none;
5
+ }
6
+ }
7
+
8
+ .page-sidebar {
9
+ max-height: 100vh;
10
+ position: -webkit-sticky;
11
+ position: sticky;
12
+ overflow: auto;
13
+ top: 20px;
14
+
15
+ a {
16
+ @include themer(color, (
17
+ 'dark': #c7c7c7,
18
+ 'light': #999,
19
+ ));
20
+
21
+ border-bottom: 0;
22
+ }
23
+
24
+ ul {
25
+ padding-left: 15px;
26
+
27
+ & ul {
28
+ font-size: 90%;
29
+ }
30
+
31
+ li {
32
+ list-style: none;
33
+ }
34
+
35
+ a {
36
+ border-bottom: 0;
37
+ display: block;
38
+ font-weight: 500;
39
+ position: relative;
40
+
41
+ &:focus,
42
+ &:hover {
43
+ @include themer(color, (
44
+ 'dark': $site-ui-brand-dark,
45
+ 'light': $site-ui-brand-light,
46
+ ));
47
+
48
+ background-color: transparent;
49
+ }
50
+
51
+ &.active,
52
+ &.active:focus,
53
+ &.active:hover {
54
+ @include themer(color, (
55
+ 'dark': $site-ui-brand-dark,
56
+ 'light': $site-ui-brand-light,
57
+ ));
58
+
59
+ font-weight: 700;
60
+
61
+ // In order to prevent being affected by the extra width misaligning
62
+ // content, we'll do position absolute the border.
63
+ &::before {
64
+ @include themer(border-left-color, (
65
+ 'dark': $site-ui-brand-dark,
66
+ 'light': $site-ui-brand-light,
67
+ ));
68
+
69
+ border-left-style: solid;
70
+ border-left-width: $sidebar-border-width;
71
+ content: '';
72
+ display: block;
73
+ height: 100%;
74
+ left: 0;
75
+ position: absolute;
76
+ top: 0;
77
+ }
78
+ }
79
+
80
+ // Unhide any nested ULs when this TOC section is active
81
+ &.active + ul {
82
+ display: block;
83
+ }
84
+ }
85
+ }
86
+ }