jekyll-rtd-theme 2.0.3 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -19
  3. data/_includes/class/_breadcrumbs.liquid +1 -1
  4. data/_includes/class/_footer.liquid +11 -9
  5. data/_includes/node/links.liquid +12 -3
  6. data/_includes/node/metadata.liquid +9 -1
  7. data/_includes/node/script.extension.liquid +1 -1
  8. data/_includes/node/script.liquid +2 -2
  9. data/_includes/reset/content.liquid +1 -0
  10. data/_includes/reset/variables.liquid +8 -7
  11. data/_includes/reset/version.liquid +1 -1
  12. data/_includes/shortcodes/danger.liquid +3 -3
  13. data/_includes/shortcodes/mermaid.liquid +3 -1
  14. data/_includes/shortcodes/note.liquid +3 -3
  15. data/_includes/shortcodes/tip.liquid +3 -3
  16. data/_includes/shortcodes/warning.liquid +2 -2
  17. data/_layouts/default.liquid +2 -2
  18. data/_layouts/{plugins → tasks}/compress.liquid +1 -1
  19. data/_layouts/{plugins/extension.liquid → tasks/shortcodes.liquid} +1 -1
  20. data/_sass/_direction.scss +92 -0
  21. data/_sass/_layout.scss +4 -3
  22. data/_sass/_variables.scss +9 -7
  23. data/_sass/class/markdown-body.scss +52 -7
  24. data/_sass/class/sidebar-wrap.scss +7 -2
  25. data/_sass/class/{admonition.scss → toasts.scss} +9 -3
  26. data/_sass/lib/@primer/css/base/README.md +24 -0
  27. data/_sass/{@primer → lib/@primer/css}/base/base.scss +0 -0
  28. data/_sass/{@primer → lib/@primer/css}/base/index.scss +0 -0
  29. data/_sass/{@primer → lib/@primer/css}/base/kbd.scss +0 -0
  30. data/_sass/{@primer → lib/@primer/css}/base/normalize.scss +1 -0
  31. data/_sass/{@primer → lib/@primer/css}/base/typography-base.scss +0 -0
  32. data/_sass/lib/@primer/css/breadcrumb/README.md +24 -0
  33. data/_sass/{@primer → lib/@primer/css}/breadcrumb/breadcrumb.scss +0 -0
  34. data/_sass/{@primer → lib/@primer/css}/breadcrumb/index.scss +0 -0
  35. data/_sass/lib/@primer/css/buttons/README.md +24 -0
  36. data/_sass/{@primer → lib/@primer/css}/buttons/button-group.scss +0 -0
  37. data/_sass/{@primer → lib/@primer/css}/buttons/button.scss +0 -0
  38. data/_sass/{@primer → lib/@primer/css}/buttons/index.scss +0 -0
  39. data/_sass/{@primer → lib/@primer/css}/buttons/misc.scss +0 -0
  40. data/_sass/lib/@primer/css/forms/README.md +24 -0
  41. data/_sass/{@primer → lib/@primer/css}/forms/form-control.scss +0 -0
  42. data/_sass/{@primer → lib/@primer/css}/forms/form-group.scss +0 -0
  43. data/_sass/{@primer → lib/@primer/css}/forms/form-select.scss +0 -0
  44. data/_sass/{@primer → lib/@primer/css}/forms/form-validation.scss +0 -0
  45. data/_sass/{@primer → lib/@primer/css}/forms/index.scss +0 -0
  46. data/_sass/{@primer → lib/@primer/css}/forms/input-group.scss +0 -0
  47. data/_sass/{@primer → lib/@primer/css}/forms/radio-group.scss +0 -0
  48. data/_sass/lib/@primer/css/loaders/README.md +24 -0
  49. data/_sass/{@primer → lib/@primer/css}/loaders/index.scss +0 -0
  50. data/_sass/{@primer → lib/@primer/css}/loaders/loaders.scss +0 -0
  51. data/_sass/lib/@primer/css/markdown/README.md +24 -0
  52. data/_sass/{@primer → lib/@primer/css}/markdown/blob-csv.scss +0 -0
  53. data/_sass/{@primer → lib/@primer/css}/markdown/code.scss +0 -0
  54. data/_sass/{@primer → lib/@primer/css}/markdown/headings.scss +0 -0
  55. data/_sass/{@primer → lib/@primer/css}/markdown/images.scss +0 -0
  56. data/_sass/{@primer → lib/@primer/css}/markdown/index.scss +0 -0
  57. data/_sass/{@primer → lib/@primer/css}/markdown/lists.scss +0 -0
  58. data/_sass/{@primer → lib/@primer/css}/markdown/markdown-body.scss +0 -0
  59. data/_sass/{@primer → lib/@primer/css}/markdown/tables.scss +0 -0
  60. data/_sass/lib/@primer/css/support/README.md +24 -0
  61. data/_sass/{@primer → lib/@primer/css}/support/index.scss +0 -0
  62. data/_sass/{@primer → lib/@primer/css}/support/mixins/buttons.scss +0 -0
  63. data/_sass/{@primer → lib/@primer/css}/support/mixins/layout.scss +0 -0
  64. data/_sass/{@primer → lib/@primer/css}/support/mixins/misc.scss +0 -0
  65. data/_sass/{@primer → lib/@primer/css}/support/mixins/typography.scss +0 -0
  66. data/_sass/{@primer → lib/@primer/css}/support/variables/color-system.scss +0 -0
  67. data/_sass/{@primer → lib/@primer/css}/support/variables/colors.scss +0 -0
  68. data/_sass/{@primer → lib/@primer/css}/support/variables/layout.scss +0 -0
  69. data/_sass/{@primer → lib/@primer/css}/support/variables/misc.scss +0 -0
  70. data/_sass/{@primer → lib/@primer/css}/support/variables/typography.scss +0 -0
  71. data/_sass/lib/@primer/css/utilities/README.md +24 -0
  72. data/_sass/{@primer → lib/@primer/css}/utilities/animations.scss +0 -0
  73. data/_sass/{@primer → lib/@primer/css}/utilities/borders.scss +0 -0
  74. data/_sass/{@primer → lib/@primer/css}/utilities/box-shadow.scss +0 -0
  75. data/_sass/{@primer → lib/@primer/css}/utilities/colors.scss +0 -0
  76. data/_sass/{@primer → lib/@primer/css}/utilities/details.scss +0 -0
  77. data/_sass/{@primer → lib/@primer/css}/utilities/flexbox.scss +0 -0
  78. data/_sass/{@primer → lib/@primer/css}/utilities/index.scss +0 -0
  79. data/_sass/{@primer → lib/@primer/css}/utilities/layout.scss +0 -0
  80. data/_sass/{@primer → lib/@primer/css}/utilities/margin.scss +0 -0
  81. data/_sass/{@primer → lib/@primer/css}/utilities/padding.scss +0 -0
  82. data/_sass/{@primer → lib/@primer/css}/utilities/typography.scss +0 -0
  83. data/_sass/{@primer → lib/@primer/css}/utilities/visibility-display.scss +0 -0
  84. data/_sass/lib/font-awesome/_icons.scss +2139 -0
  85. data/_sass/lib/font-awesome/_variables.scss +799 -0
  86. data/_sass/lib/material-design-lite/_color-definitions.scss +378 -0
  87. data/_sass/lib/material-design-lite/_functions.scss +19 -0
  88. data/_sass/lib/material-design-lite/_mixins.scss +301 -0
  89. data/_sass/lib/material-design-lite/_variables.scss +612 -0
  90. data/_sass/{class/highlight.scss → lib/rouge/github.scss} +0 -0
  91. data/_sass/theme.scss +17 -11
  92. data/assets/css/theme.min.css +1 -1
  93. data/assets/images/apple-touch-icon-300x300.jpg +0 -0
  94. data/assets/images/favicon-16x16.png +0 -0
  95. data/assets/images/favicon-32x32.png +0 -0
  96. data/assets/images/favicon-96x96.png +0 -0
  97. data/assets/{favicon.liquid → images/favicon.svg} +2 -7
  98. data/assets/js/theme.js +23 -10
  99. data/assets/js/theme.min.js +1 -1
  100. data/assets/pages.liquid +1 -1
  101. data/assets/sitemap.liquid +1 -1
  102. data/assets/sw.caches.liquid +1 -1
  103. metadata +76 -58
  104. data/_sass/_icons.scss +0 -57
@@ -1,8 +1,8 @@
1
1
  .menu-sm {
2
2
  position: fixed;
3
3
  bottom: 0;
4
- left: -85%;
5
- width: 85%;
4
+ left: -$theme-menu-width-sm;
5
+ width: $theme-menu-width-sm;
6
6
  max-height: 100%;
7
7
 
8
8
  &.shift {
@@ -29,7 +29,7 @@
29
29
  position: fixed;
30
30
  top: 0;
31
31
  bottom: 0;
32
- left: 85%;
32
+ left: $theme-menu-width-sm;
33
33
  min-width: 100%;
34
34
  }
35
35
  }
@@ -44,6 +44,7 @@
44
44
  @extend .menu-md;
45
45
 
46
46
  .sidebar {
47
+ // 20px for scroll
47
48
  width: $theme-menu-width + 20px;
48
49
 
49
50
  .header,
@@ -1,15 +1,12 @@
1
1
  // fonts
2
- $body-font: "Lato", sans-serif;
3
- $mono-font: monospace;
2
+ $body-font: "Lato", BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
3
+ $mono-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
4
4
  $head-font: "Roboto-Slab", sans-serif;
5
5
 
6
- // reset
7
- $box-shadow-focus: none;
8
-
9
6
  // theme color
10
7
  $theme-blue: #2980b9;
11
8
  $theme-red: #e74c3c;
12
- $theme-offgreen: #1abc9c;
9
+ $theme-green: #1abc9c;
13
10
  $theme-orange: #e67e22;
14
11
 
15
12
  $theme-white: lighten($black, 99%);
@@ -21,12 +18,17 @@ $theme-link-hover: lighten($blue, 10%);
21
18
  $theme-link-visited: lighten($purple, 10%);
22
19
 
23
20
  // theme code
21
+ $theme-code: $theme-black;
22
+ $theme-code-background: $bg-gray;
23
+ $theme-code-inline: $theme-red;
24
+ $theme-code-inline-background: darken($theme-white, 2%);
24
25
 
25
26
  // theme mask
26
27
  $theme-mask-white: transparentize($theme-white, 0.9);
27
28
  $theme-mask-black: transparentize($theme-black, 0.9);
28
29
 
29
30
  // theme menu
31
+ $theme-menu-width-sm: 85%;
30
32
  $theme-menu-width: 300px;
31
33
  $theme-menu-background: darken($theme-black, 10%);
32
- $theme-menu-active-background: darken($theme-blue, 20%);
34
+ $theme-menu-active-background: darken($theme-blue, 15%);
@@ -1,4 +1,19 @@
1
1
  .markdown-body {
2
+ .d-lang {
3
+ position: relative;
4
+
5
+ &:after {
6
+ position: absolute;
7
+ right: 0px;
8
+ top: 0px;
9
+ font-family: $mono-font;
10
+ font-size: $font-size-small;
11
+ content: attr(data-lang);
12
+ padding: 0 5px;
13
+ color: lighten($text-gray-light, 30%);
14
+ }
15
+ }
16
+
2
17
  // 400
3
18
  font-weight: $font-weight-normal;
4
19
 
@@ -20,7 +35,8 @@
20
35
  h3,
21
36
  h4,
22
37
  h5,
23
- h6 {
38
+ h6,
39
+ dt {
24
40
  font-family: $head-font;
25
41
  }
26
42
 
@@ -29,23 +45,32 @@
29
45
  font-size: $body-font-size;
30
46
  }
31
47
 
32
- // ruby highlight fixed
48
+ // ruby highlight fixed, TODO: line number display
33
49
  figure {
34
50
  margin: 0;
35
51
  }
36
52
 
53
+ .anchor {
54
+ // overwrite to right
55
+ float: none;
56
+ padding-right: 0;
57
+ margin-left: 3px;
58
+ // rtl
59
+ margin-right: 3px;
60
+ }
61
+
37
62
  // improved
38
63
  code,
39
64
  tt {
40
65
  font-size: $font-size-small;
41
66
  border: $border;
42
- color: $theme-red;
43
- background-color: darken($theme-white, 2%);
67
+ color: $theme-code-inline;
68
+ background-color: $theme-code-inline-background;
44
69
  }
45
70
 
46
71
  pre {
47
72
  > code {
48
- color: $theme-black;
73
+ color: $theme-code;
49
74
  }
50
75
  }
51
76
 
@@ -53,10 +78,11 @@
53
78
  pre {
54
79
  font-size: $font-size-small;
55
80
  border: $border;
81
+ background-color: $theme-code-background;
56
82
  }
57
83
 
58
- .highlight pre {
59
- background-color: transparent;
84
+ div.highlighter-rouge {
85
+ @extend .d-lang;
60
86
  }
61
87
 
62
88
  // search
@@ -65,4 +91,23 @@
65
91
  list-style: none;
66
92
  }
67
93
  }
94
+
95
+ // improved checkbox
96
+ .task-list-item-checkbox {
97
+ margin-right: 3px;
98
+ }
99
+
100
+ // mermaid improved
101
+ .mermaid-wrap {
102
+ @extend .d-lang;
103
+ // mdl
104
+ @include shadow-2dp();
105
+
106
+ // .mermaid:not([data-processed="true"])
107
+ .mermaid {
108
+ font-size: $font-size-small;
109
+ font-family: $mono-font;
110
+ white-space: pre;
111
+ }
112
+ }
68
113
  }
@@ -32,6 +32,11 @@
32
32
 
33
33
  > ul {
34
34
  // the first level links
35
+ > .toc > a {
36
+ padding-left: $spacer-4 / 2;
37
+ }
38
+
39
+ // the first level links not current
35
40
  > .toc:not(.current) > a {
36
41
  &:hover {
37
42
  background: $theme-mask-white;
@@ -78,7 +83,7 @@
78
83
  @for $level from 1 through 11 {
79
84
  &.level-#{$level}.current {
80
85
  > a {
81
- padding-left: 1.5em * ($level - 1 + 0.5);
86
+ padding-left: $spacer-4 * ($level - 1 + 0.5);
82
87
  background: var(--toc-#{$level});
83
88
  }
84
89
 
@@ -88,7 +93,7 @@
88
93
  }
89
94
 
90
95
  .level-#{$level + 1} > a {
91
- padding-left: 1.5em * ($level + 0.5);
96
+ padding-left: $spacer-4 * ($level + 0.5);
92
97
  }
93
98
  }
94
99
  }
@@ -1,6 +1,12 @@
1
- .admonition {
1
+ .toasts {
2
2
  // fixed note
3
3
  font-size: $h4-size;
4
+ // mdl
5
+ @include shadow-2dp();
6
+
7
+ .title {
8
+ box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.14);
9
+ }
4
10
 
5
11
  // fixed
6
12
  .content {
@@ -22,10 +28,10 @@
22
28
  }
23
29
 
24
30
  &.tip {
25
- background-color: lighten($theme-offgreen, 50%);
31
+ background-color: lighten($theme-green, 50%);
26
32
 
27
33
  .title {
28
- background: lighten($theme-offgreen, 0%);
34
+ background: lighten($theme-green, 0%);
29
35
  }
30
36
  }
31
37
 
@@ -0,0 +1,24 @@
1
+ ---
2
+ bundle: "base"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `base` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/base/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/base.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) © [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss
@@ -1,4 +1,5 @@
1
1
  // stylelint-disable
2
+ /*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */
2
3
 
3
4
  /**
4
5
  * 1. Change the default font family in all browsers (opinionated).
@@ -0,0 +1,24 @@
1
+ ---
2
+ bundle: "breadcrumb"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `breadcrumb` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/breadcrumb/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/breadcrumb.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) © [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss
@@ -0,0 +1,24 @@
1
+ ---
2
+ bundle: "buttons"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `buttons` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/buttons/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/buttons.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) © [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss
@@ -0,0 +1,24 @@
1
+ ---
2
+ bundle: "forms"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `forms` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/forms/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/forms.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) © [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss
@@ -0,0 +1,24 @@
1
+ ---
2
+ bundle: "loaders"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `loaders` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/loaders/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/loaders.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) © [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss
@@ -0,0 +1,24 @@
1
+ ---
2
+ bundle: "markdown"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `markdown` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/markdown/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/markdown.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) © [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss
@@ -0,0 +1,24 @@
1
+ ---
2
+ bundle: "support"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `support` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/support/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/support.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) © [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss