jekyll-rtd-theme 1.1.4 → 2.0.0.pre.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +46 -29
  3. data/_includes/assets/defaults.liquid +69 -0
  4. data/_includes/assets/i18n.liquid +1 -0
  5. data/_includes/{reset → assets}/site_pages.liquid +0 -0
  6. data/_includes/assets/sw.caches.js +43 -0
  7. data/_includes/{extend → assets}/tabs.liquid +0 -0
  8. data/_includes/{reset → assets}/workdir.liquid +1 -14
  9. data/_includes/class/_breadcrumbs.liquid +33 -0
  10. data/_includes/class/_footer.liquid +41 -0
  11. data/_includes/{extend/toctree.liquid → class/_toctree.extend.liquid} +8 -17
  12. data/_includes/class/_toctree.liquid +23 -0
  13. data/_includes/class/addons-wrap.liquid +26 -0
  14. data/_includes/class/addons/analytics.liquid +11 -0
  15. data/_includes/class/addons/github.liquid +21 -0
  16. data/_includes/class/content-wrap.liquid +20 -0
  17. data/_includes/class/sidebar-wrap.liquid +18 -0
  18. data/_includes/head/links.liquid +16 -0
  19. data/_includes/head/metadata.liquid +21 -0
  20. data/_includes/head/script.extension.liquid +24 -0
  21. data/_includes/head/script.liquid +16 -0
  22. data/_includes/head/script.schema.liquid +27 -0
  23. data/_includes/head/title.liquid +1 -0
  24. data/_includes/{extend/list.liquid → list.extend.liquid} +5 -5
  25. data/_includes/list.liquid +3 -3
  26. data/_includes/shortcodes/danger.liquid +9 -0
  27. data/_includes/shortcodes/mermaid.liquid +1 -0
  28. data/_includes/shortcodes/note.liquid +9 -0
  29. data/_includes/shortcodes/tip.liquid +9 -0
  30. data/_includes/shortcodes/warning.liquid +9 -0
  31. data/_layouts/default.liquid +17 -233
  32. data/_layouts/plugins/compress.liquid +13 -10
  33. data/_layouts/plugins/extension.liquid +32 -22
  34. data/_sass/@primer/base/base.scss +90 -0
  35. data/_sass/@primer/base/index.scss +6 -0
  36. data/_sass/@primer/base/kbd.scss +21 -0
  37. data/_sass/@primer/base/normalize.scss +423 -0
  38. data/_sass/@primer/base/typography-base.scss +100 -0
  39. data/_sass/@primer/breadcrumb/breadcrumb.scss +28 -0
  40. data/_sass/@primer/breadcrumb/index.scss +3 -0
  41. data/_sass/@primer/buttons/button-group.scss +91 -0
  42. data/_sass/@primer/buttons/button.scss +296 -0
  43. data/_sass/@primer/buttons/index.scss +4 -0
  44. data/_sass/@primer/buttons/misc.scss +205 -0
  45. data/_sass/@primer/forms/form-control.scss +278 -0
  46. data/_sass/@primer/forms/form-group.scss +279 -0
  47. data/_sass/@primer/forms/form-select.scss +38 -0
  48. data/_sass/@primer/forms/form-validation.scss +369 -0
  49. data/_sass/@primer/forms/index.scss +7 -0
  50. data/_sass/@primer/forms/input-group.scss +53 -0
  51. data/_sass/@primer/forms/radio-group.scss +43 -0
  52. data/_sass/@primer/markdown/blob-csv.scss +31 -0
  53. data/_sass/@primer/markdown/code.scss +73 -0
  54. data/_sass/@primer/markdown/headings.scss +72 -0
  55. data/_sass/@primer/markdown/images.scss +131 -0
  56. data/_sass/@primer/markdown/index.scss +8 -0
  57. data/_sass/@primer/markdown/lists.scss +76 -0
  58. data/_sass/@primer/markdown/markdown-body.scss +99 -0
  59. data/_sass/@primer/markdown/tables.scss +38 -0
  60. data/_sass/@primer/support/index.scss +11 -0
  61. data/_sass/@primer/support/mixins/buttons.scss +184 -0
  62. data/_sass/@primer/support/mixins/layout.scss +55 -0
  63. data/_sass/@primer/support/mixins/misc.scss +32 -0
  64. data/_sass/@primer/support/mixins/typography.scss +88 -0
  65. data/_sass/@primer/support/variables/color-system.scss +243 -0
  66. data/_sass/@primer/support/variables/colors.scss +55 -0
  67. data/_sass/@primer/support/variables/layout.scss +149 -0
  68. data/_sass/@primer/support/variables/misc.scss +42 -0
  69. data/_sass/@primer/support/variables/typography.scss +43 -0
  70. data/_sass/@primer/utilities/animations.scss +187 -0
  71. data/_sass/@primer/utilities/borders.scss +184 -0
  72. data/_sass/@primer/utilities/box-shadow.scss +25 -0
  73. data/_sass/@primer/utilities/colors.scss +185 -0
  74. data/_sass/@primer/utilities/details.scss +34 -0
  75. data/_sass/@primer/utilities/flexbox.scss +121 -0
  76. data/_sass/@primer/utilities/index.scss +14 -0
  77. data/_sass/@primer/utilities/layout.scss +134 -0
  78. data/_sass/@primer/utilities/margin.scss +68 -0
  79. data/_sass/@primer/utilities/padding.scss +59 -0
  80. data/_sass/@primer/utilities/typography.scss +325 -0
  81. data/_sass/@primer/utilities/visibility-display.scss +82 -0
  82. data/_sass/_font-face.scss +65 -0
  83. data/_sass/_icons.scss +57 -0
  84. data/_sass/_layout.scss +75 -0
  85. data/_sass/_reset.scss +21 -0
  86. data/_sass/_root.scss +9 -0
  87. data/_sass/_variables.scss +32 -0
  88. data/_sass/class/addons-wrap.scss +39 -0
  89. data/_sass/class/admonition.scss +47 -0
  90. data/_sass/class/container.scss +11 -0
  91. data/_sass/class/content-wrap.scss +4 -0
  92. data/_sass/class/header.scss +10 -0
  93. data/_sass/class/highlight.scss +214 -0
  94. data/_sass/class/markdown-body.scss +57 -0
  95. data/_sass/class/sidebar-wrap.scss +83 -0
  96. data/_sass/class/title.scss +12 -0
  97. data/_sass/theme.scss +30 -0
  98. data/assets/404.liquid +3 -3
  99. data/assets/css/theme.min.css +1 -0
  100. data/assets/css/theme.scss +4 -0
  101. data/assets/js/mermaid.min.js +5 -5
  102. data/assets/js/theme.js +305 -1
  103. data/assets/js/theme.min.js +1 -0
  104. data/assets/pages.liquid +1 -1
  105. data/assets/robots.liquid +1 -1
  106. data/assets/search.liquid +5 -21
  107. data/assets/sitemap.liquid +2 -2
  108. data/assets/sw.caches.liquid +8 -0
  109. metadata +100 -67
  110. data/_includes/addons.liquid +0 -24
  111. data/_includes/addons/analytics.liquid +0 -8
  112. data/_includes/addons/github.liquid +0 -6
  113. data/_includes/addons/i18n.liquid +0 -13
  114. data/_includes/addons/plugins.liquid +0 -6
  115. data/_includes/album.liquid +0 -7
  116. data/_includes/assets/common.js +0 -65
  117. data/_includes/assets/custom.js +0 -0
  118. data/_includes/assets/custom.scss +0 -0
  119. data/_includes/assets/search.js +0 -76
  120. data/_includes/breadcrumbs.liquid +0 -43
  121. data/_includes/extra/footer.html +0 -0
  122. data/_includes/extra/head.html +0 -0
  123. data/_includes/footer.liquid +0 -37
  124. data/_includes/i18n/en.liquid +0 -29
  125. data/_includes/i18n/es.liquid +0 -29
  126. data/_includes/i18n/fr.liquid +0 -29
  127. data/_includes/i18n/it.liquid +0 -29
  128. data/_includes/i18n/ja.liquid +0 -29
  129. data/_includes/i18n/ko.liquid +0 -29
  130. data/_includes/i18n/ru.liquid +0 -29
  131. data/_includes/i18n/sv.liquid +0 -29
  132. data/_includes/i18n/zh-cn.liquid +0 -29
  133. data/_includes/reset/defaults.liquid +0 -86
  134. data/_includes/reset/i18n.liquid +0 -31
  135. data/_includes/reset/languages.liquid +0 -110
  136. data/_includes/toctree.liquid +0 -22
  137. data/_sass/_album.scss +0 -19
  138. data/_sass/_embed.scss +0 -23
  139. data/_sass/fluid.scss +0 -7
  140. data/_sass/jekyll-rtd-theme.scss +0 -128
  141. data/assets/css/rougify/base16.css +0 -1
  142. data/assets/css/rougify/base16.dark.css +0 -1
  143. data/assets/css/rougify/base16.light.css +0 -1
  144. data/assets/css/rougify/base16.monokai.css +0 -1
  145. data/assets/css/rougify/base16.monokai.dark.css +0 -1
  146. data/assets/css/rougify/base16.monokai.light.css +0 -1
  147. data/assets/css/rougify/base16.solarized.css +0 -1
  148. data/assets/css/rougify/base16.solarized.dark.css +0 -1
  149. data/assets/css/rougify/base16.solarized.light.css +0 -1
  150. data/assets/css/rougify/bw.css +0 -1
  151. data/assets/css/rougify/colorful.css +0 -1
  152. data/assets/css/rougify/github.css +0 -1
  153. data/assets/css/rougify/gruvbox.css +0 -1
  154. data/assets/css/rougify/gruvbox.dark.css +0 -1
  155. data/assets/css/rougify/gruvbox.light.css +0 -1
  156. data/assets/css/rougify/igorpro.css +0 -1
  157. data/assets/css/rougify/magritte.css +0 -1
  158. data/assets/css/rougify/molokai.css +0 -1
  159. data/assets/css/rougify/monokai.css +0 -1
  160. data/assets/css/rougify/monokai.sublime.css +0 -1
  161. data/assets/css/rougify/pastie.css +0 -1
  162. data/assets/css/rougify/thankful_eyes.css +0 -1
  163. data/assets/css/rougify/tulip.css +0 -1
  164. data/assets/css/theme.css +0 -4
  165. data/assets/js/anchor.min.js +0 -9
  166. data/assets/js/html5shiv.min.js +0 -4
@@ -0,0 +1,82 @@
1
+ // Visibility and display utilities
2
+
3
+ // Responsive display utilities
4
+ @each $breakpoint, $variant in $responsive-variants {
5
+ @include breakpoint($breakpoint) {
6
+ @each $display in $display-values {
7
+ .d#{$variant}-#{$display} {
8
+ display: $display !important;
9
+ }
10
+ }
11
+ }
12
+ }
13
+
14
+ .v-hidden {
15
+ visibility: hidden !important;
16
+ }
17
+ .v-visible {
18
+ visibility: visible !important;
19
+ }
20
+
21
+ // Hide utilities for each breakpoint
22
+ // Each hide utility only applies to one breakpoint range.
23
+ @media (max-width: $width-sm - 1px) {
24
+ .hide-sm {
25
+ display: none !important;
26
+ }
27
+ }
28
+
29
+ @media (min-width: $width-sm) and (max-width: $width-md - 1px) {
30
+ .hide-md {
31
+ display: none !important;
32
+ }
33
+ }
34
+
35
+ @media (min-width: $width-md) and (max-width: $width-lg - 1px) {
36
+ .hide-lg {
37
+ display: none !important;
38
+ }
39
+ }
40
+
41
+ @media (min-width: $width-lg) {
42
+ .hide-xl {
43
+ display: none !important;
44
+ }
45
+ }
46
+
47
+ /* Set the table-layout to fixed */
48
+ .table-fixed {
49
+ table-layout: fixed !important;
50
+ }
51
+
52
+ // Only display content to screen readers
53
+ //
54
+ // See: http://a11yproject.com/posts/how-to-hide-content/
55
+ .sr-only {
56
+ position: absolute;
57
+ width: 1px;
58
+ height: 1px;
59
+ padding: 0;
60
+ overflow: hidden;
61
+ clip: rect(0, 0, 0, 0);
62
+ // Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1241631
63
+ word-wrap: normal;
64
+ border: 0;
65
+ }
66
+
67
+ // Only display content on focus
68
+ .show-on-focus {
69
+ position: absolute;
70
+ width: 1px;
71
+ height: 1px;
72
+ margin: 0;
73
+ overflow: hidden;
74
+ clip: rect(1px, 1px, 1px, 1px);
75
+
76
+ &:focus {
77
+ z-index: 20;
78
+ width: auto;
79
+ height: auto;
80
+ clip: auto;
81
+ }
82
+ }
@@ -0,0 +1,65 @@
1
+ @font-face {
2
+ font-family: "Lato";
3
+ font-weight: $font-weight-normal;
4
+ font-style: normal;
5
+ font-display: block;
6
+ src: url("fonts/lato-normal.woff2") format("woff2"),
7
+ url("fonts/lato-normal.woff") format("woff");
8
+ }
9
+
10
+ @font-face {
11
+ font-family: "Lato";
12
+ font-weight: $font-weight-normal;
13
+ font-style: italic;
14
+ font-display: block;
15
+ src: url("fonts/lato-normal-italic.woff2") format("woff2"),
16
+ url("fonts/lato-normal-italic.woff") format("woff");
17
+ }
18
+
19
+ @font-face {
20
+ font-family: "Lato";
21
+ font-weight: $font-weight-bold;
22
+ font-style: normal;
23
+ font-display: block;
24
+ src: url("fonts/lato-bold.woff2") format("woff2"),
25
+ url("fonts/lato-bold.woff") format("woff");
26
+ }
27
+
28
+ @font-face {
29
+ font-family: "Lato";
30
+ font-weight: $font-weight-bold;
31
+ font-style: italic;
32
+ font-display: block;
33
+ src: url("fonts/lato-bold-italic.woff2") format("woff2"),
34
+ url("fonts/lato-bold-italic.woff") format("woff");
35
+ }
36
+
37
+ @font-face {
38
+ font-family: "Roboto-Slab";
39
+ src: url("fonts/Roboto-Slab-Regular.woff2") format("woff2"),
40
+ url("fonts/Roboto-Slab-Regular.woff") format("woff");
41
+ font-weight: $font-weight-normal;
42
+ font-style: normal;
43
+ font-display: block;
44
+ }
45
+
46
+ @font-face {
47
+ font-family: "Roboto-Slab";
48
+ src: url("fonts/Roboto-Slab-Bold.woff2") format("woff2"),
49
+ url("fonts/Roboto-Slab-Bold.woff") format("woff");
50
+ font-weight: $font-weight-bold;
51
+ font-style: normal;
52
+ font-display: block;
53
+ }
54
+
55
+ @font-face {
56
+ font-family: "FontAwesome";
57
+ src: url("fonts/fontawesome-webfont.eot");
58
+ src: url("fonts/fontawesome-webfont.eot?#iefix") format("embedded-opentype"),
59
+ url("fonts/fontawesome-webfont.woff2") format("woff2"),
60
+ url("fonts/fontawesome-webfont.woff") format("woff"),
61
+ url("fonts/fontawesome-webfont.ttf") format("truetype"),
62
+ url("fonts/fontawesome-webfont.svg#fontawesomeregular") format("svg");
63
+ font-weight: normal;
64
+ font-style: normal;
65
+ }
@@ -0,0 +1,57 @@
1
+ // header
2
+ .fa-home:before {
3
+ content: "\f015";
4
+ }
5
+ .fa-bars:before {
6
+ content: "\f0c9";
7
+ }
8
+
9
+ // toctree
10
+ .fa-plus-square-o:before {
11
+ content: "\f196";
12
+ }
13
+
14
+ .fa-minus-square-o:before {
15
+ content: "\f147";
16
+ }
17
+
18
+ // addons
19
+ .fa-book:before {
20
+ content: "\f02d";
21
+ }
22
+
23
+ .fa-caret-down:before {
24
+ content: "\f0d7";
25
+ }
26
+ .fa-github:before {
27
+ content: "\f09b";
28
+ }
29
+
30
+ .fa-question-circle-o:before {
31
+ content: "\f29c";
32
+ }
33
+
34
+ .fa-download:before {
35
+ content: "\f019";
36
+ }
37
+
38
+ // breadcrumb
39
+ .fa-edit:before {
40
+ content: "\f044";
41
+ }
42
+
43
+ // footer
44
+ .fa-arrow-circle-left:before {
45
+ content: "\f0a8";
46
+ }
47
+
48
+ .fa-arrow-circle-right:before {
49
+ content: "\f0a9";
50
+ }
51
+ .fa-copyright:before {
52
+ content: "\f1f9";
53
+ }
54
+
55
+ .fa-exclamation-circle:before {
56
+ content: "\f06a";
57
+ }
@@ -0,0 +1,75 @@
1
+ .menu-sm {
2
+ position: fixed;
3
+ bottom: 0;
4
+ left: -85%;
5
+ width: 85%;
6
+ max-height: 100%;
7
+
8
+ &.shift {
9
+ left: 0;
10
+ }
11
+ }
12
+
13
+ .sidebar-wrap {
14
+ top: 0;
15
+
16
+ @extend .menu-sm;
17
+
18
+ .sidebar > :last-child {
19
+ margin-bottom: 5em;
20
+ }
21
+ }
22
+
23
+ .addons-wrap {
24
+ @extend .menu-sm;
25
+ }
26
+
27
+ .content-wrap {
28
+ &.shift {
29
+ position: fixed;
30
+ top: 0;
31
+ bottom: 0;
32
+ left: 85%;
33
+ min-width: 100%;
34
+ }
35
+ }
36
+
37
+ @include breakpoint(md) {
38
+ .menu-md {
39
+ left: 0;
40
+ width: $theme-menu-width;
41
+ }
42
+
43
+ .sidebar-wrap {
44
+ @extend .menu-md;
45
+
46
+ .sidebar {
47
+ width: $theme-menu-width + 20px;
48
+
49
+ .header,
50
+ .toctree {
51
+ width: $theme-menu-width;
52
+ }
53
+ }
54
+ }
55
+
56
+ .addons-wrap {
57
+ @extend .menu-md;
58
+ }
59
+
60
+ .content-wrap {
61
+ margin-left: $theme-menu-width;
62
+
63
+ &.shift {
64
+ position: relative;
65
+ left: 0;
66
+ min-width: 0;
67
+ }
68
+ }
69
+ }
70
+
71
+ @include breakpoint(xl) {
72
+ .content-wrap {
73
+ max-width: $width-xl - $theme-menu-width;
74
+ }
75
+ }
@@ -0,0 +1,21 @@
1
+ a {
2
+ color: $theme-link;
3
+
4
+ &:hover {
5
+ color: $theme-link-hover;
6
+ }
7
+ }
8
+
9
+ .fa {
10
+ display: inline-block;
11
+ font: normal normal normal 14px/1 "FontAwesome";
12
+ }
13
+
14
+ .breadcrumb-item {
15
+ margin: 0;
16
+
17
+ &::after {
18
+ padding-right: 3px;
19
+ padding-left: 3px;
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+ :root {
2
+ @for $level from 1 through 12 {
3
+ @if $level % 4 == 0 {
4
+ --toc-#{$level}: #{darken($theme-white, 4 * 8.8%)};
5
+ } @else {
6
+ --toc-#{$level}: #{darken($theme-white, $level % 4 * 8.8%)};
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,32 @@
1
+ // fonts
2
+ $body-font: "Lato", sans-serif;
3
+ $mono-font: monospace;
4
+ $head-font: "Roboto-Slab", sans-serif;
5
+
6
+ // reset
7
+ $box-shadow-focus: none;
8
+
9
+ // theme color
10
+ $theme-blue: #2980b9;
11
+ $theme-red: #e74c3c; // code
12
+ $theme-offgreen: #1abc9c;
13
+ $theme-orange: #e67e22;
14
+
15
+ $theme-white: lighten($black, 99%);
16
+ $theme-black: lighten($black, 15%);
17
+
18
+ // theme link
19
+ $theme-link: $blue;
20
+ $theme-link-hover: lighten($blue, 10%);
21
+ $theme-link-visited: lighten($purple, 10%);
22
+
23
+ // theme code
24
+
25
+ // theme mask
26
+ $theme-mask-white: transparentize($theme-white, 0.9);
27
+ $theme-mask-black: transparentize($theme-black, 0.9);
28
+
29
+ // theme menu
30
+ $theme-menu-width: 300px;
31
+ $theme-menu-background: darken($theme-black, 10%);
32
+ $theme-menu-active-background: darken($theme-blue, 20%);
@@ -0,0 +1,39 @@
1
+ .addons-wrap {
2
+ background-color: darken($theme-menu-background, 8%);
3
+
4
+ .status {
5
+ cursor: pointer;
6
+ background-color: darken($theme-menu-background, 5%);
7
+
8
+ .branch {
9
+ .fa {
10
+ color: $theme-white;
11
+ }
12
+
13
+ .name {
14
+ color: $green;
15
+ }
16
+ }
17
+ &:active {
18
+ background: $theme-menu-active-background;
19
+ }
20
+ }
21
+
22
+ .addons {
23
+ color: grey;
24
+
25
+ dl {
26
+ margin: 0;
27
+ }
28
+
29
+ dd {
30
+ display: inline-block;
31
+
32
+ a {
33
+ display: inline-block;
34
+ padding: 6px;
35
+ color: $theme-white;
36
+ }
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,47 @@
1
+ .admonition {
2
+ // fixed note
3
+ font-size: $h4-size;
4
+
5
+ // fixed
6
+ .content {
7
+ :first-child {
8
+ margin-top: 0;
9
+ }
10
+
11
+ :last-child {
12
+ margin-bottom: 0;
13
+ }
14
+ }
15
+
16
+ &.note {
17
+ background-color: lighten($theme-blue, 50%);
18
+
19
+ .title {
20
+ background: lighten($theme-blue, 20%);
21
+ }
22
+ }
23
+
24
+ &.tip {
25
+ background-color: lighten($theme-offgreen, 50%);
26
+
27
+ .title {
28
+ background: lighten($theme-offgreen, 0%);
29
+ }
30
+ }
31
+
32
+ &.warning {
33
+ background-color: lighten($theme-orange, 40%);
34
+
35
+ .title {
36
+ background: lighten($theme-orange, 20%);
37
+ }
38
+ }
39
+
40
+ &.danger {
41
+ background-color: lighten($theme-red, 40%);
42
+
43
+ .title {
44
+ background: lighten($theme-red, 20%);
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,11 @@
1
+ .container {
2
+ font-weight: 400;
3
+ color: $theme-black;
4
+ background: $theme-white;
5
+ }
6
+
7
+ @include breakpoint(xl) {
8
+ .container {
9
+ background: $theme-mask-black;
10
+ }
11
+ }