jekyll-rtd-theme 1.1.7 → 2.0.0.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -9
  3. data/_includes/addons/analytics.liquid +5 -12
  4. data/_includes/addons/github.liquid +16 -18
  5. data/_includes/assets/sw.caches.js +38 -28
  6. data/_includes/breadcrumbs.liquid +20 -36
  7. data/_includes/extend/toctree.liquid +6 -15
  8. data/_includes/footer.liquid +29 -32
  9. data/_includes/reset/defaults.liquid +3 -37
  10. data/_includes/reset/workdir.liquid +1 -14
  11. data/_includes/safe/shortcodes.liquid +9 -0
  12. data/_includes/shortcodes/danger.liquid +7 -0
  13. data/_includes/shortcodes/mermaid.liquid +1 -0
  14. data/_includes/shortcodes/note.liquid +7 -0
  15. data/_includes/shortcodes/tip.liquid +7 -0
  16. data/_includes/shortcodes/warning.liquid +7 -0
  17. data/_includes/toctree.liquid +2 -5
  18. data/_layouts/default.liquid +90 -147
  19. data/_layouts/plugins/compress.liquid +13 -10
  20. data/_layouts/plugins/extension.liquid +30 -22
  21. data/_sass/@primer/base/base.scss +90 -0
  22. data/_sass/@primer/base/index.scss +6 -0
  23. data/_sass/@primer/base/kbd.scss +21 -0
  24. data/_sass/@primer/base/normalize.scss +423 -0
  25. data/_sass/@primer/base/typography-base.scss +100 -0
  26. data/_sass/@primer/breadcrumb/breadcrumb.scss +28 -0
  27. data/_sass/@primer/breadcrumb/index.scss +3 -0
  28. data/_sass/@primer/buttons/button-group.scss +91 -0
  29. data/_sass/@primer/buttons/button.scss +296 -0
  30. data/_sass/@primer/buttons/index.scss +4 -0
  31. data/_sass/@primer/buttons/misc.scss +205 -0
  32. data/_sass/@primer/forms/form-control.scss +278 -0
  33. data/_sass/@primer/forms/form-group.scss +279 -0
  34. data/_sass/@primer/forms/form-select.scss +38 -0
  35. data/_sass/@primer/forms/form-validation.scss +369 -0
  36. data/_sass/@primer/forms/index.scss +7 -0
  37. data/_sass/@primer/forms/input-group.scss +53 -0
  38. data/_sass/@primer/forms/radio-group.scss +43 -0
  39. data/_sass/@primer/markdown/blob-csv.scss +31 -0
  40. data/_sass/@primer/markdown/code.scss +73 -0
  41. data/_sass/@primer/markdown/headings.scss +72 -0
  42. data/_sass/@primer/markdown/images.scss +131 -0
  43. data/_sass/@primer/markdown/index.scss +8 -0
  44. data/_sass/@primer/markdown/lists.scss +76 -0
  45. data/_sass/@primer/markdown/markdown-body.scss +99 -0
  46. data/_sass/@primer/markdown/tables.scss +38 -0
  47. data/_sass/@primer/support/index.scss +11 -0
  48. data/_sass/@primer/support/mixins/buttons.scss +184 -0
  49. data/_sass/@primer/support/mixins/layout.scss +55 -0
  50. data/_sass/@primer/support/mixins/misc.scss +32 -0
  51. data/_sass/@primer/support/mixins/typography.scss +88 -0
  52. data/_sass/@primer/support/variables/color-system.scss +243 -0
  53. data/_sass/@primer/support/variables/colors.scss +55 -0
  54. data/_sass/@primer/support/variables/layout.scss +149 -0
  55. data/_sass/@primer/support/variables/misc.scss +42 -0
  56. data/_sass/@primer/support/variables/typography.scss +43 -0
  57. data/_sass/@primer/utilities/animations.scss +187 -0
  58. data/_sass/@primer/utilities/borders.scss +184 -0
  59. data/_sass/@primer/utilities/box-shadow.scss +25 -0
  60. data/_sass/@primer/utilities/colors.scss +185 -0
  61. data/_sass/@primer/utilities/details.scss +34 -0
  62. data/_sass/@primer/utilities/flexbox.scss +121 -0
  63. data/_sass/@primer/utilities/index.scss +14 -0
  64. data/_sass/@primer/utilities/layout.scss +134 -0
  65. data/_sass/@primer/utilities/margin.scss +68 -0
  66. data/_sass/@primer/utilities/padding.scss +59 -0
  67. data/_sass/@primer/utilities/typography.scss +325 -0
  68. data/_sass/@primer/utilities/visibility-display.scss +82 -0
  69. data/_sass/_font-face.scss +65 -0
  70. data/_sass/_icons.scss +53 -0
  71. data/_sass/_layout.scss +76 -0
  72. data/_sass/_reset.scss +21 -0
  73. data/_sass/_root.scss +9 -0
  74. data/_sass/_variables.scss +29 -0
  75. data/_sass/class/addons-wrap.scss +39 -0
  76. data/_sass/class/container.scss +11 -0
  77. data/_sass/class/content-wrap.scss +4 -0
  78. data/_sass/class/header.scss +10 -0
  79. data/_sass/class/highlight.scss +214 -0
  80. data/_sass/class/markdown-body.scss +49 -0
  81. data/_sass/class/sidebar-wrap.scss +72 -0
  82. data/_sass/class/title.scss +13 -0
  83. data/_sass/theme.scss +29 -0
  84. data/assets/404.liquid +2 -4
  85. data/assets/css/theme.min.css +1 -0
  86. data/assets/css/theme.scss +4 -0
  87. data/assets/js/mermaid.min.js +6 -5
  88. data/assets/js/search.js +90 -0
  89. data/assets/js/theme.js +228 -0
  90. data/assets/js/theme.min.js +1 -0
  91. data/assets/search.liquid +5 -12
  92. metadata +79 -56
  93. data/_includes/addons.liquid +0 -28
  94. data/_includes/addons/i18n.liquid +0 -13
  95. data/_includes/addons/plugins.liquid +0 -6
  96. data/_includes/album.liquid +0 -7
  97. data/_includes/assets/common.js +0 -167
  98. data/_includes/assets/custom.js +0 -0
  99. data/_includes/assets/custom.scss +0 -0
  100. data/_includes/assets/search.js +0 -76
  101. data/_includes/extra/footer.html +0 -0
  102. data/_includes/extra/head.html +0 -0
  103. data/_includes/i18n/en.liquid +0 -29
  104. data/_includes/i18n/es.liquid +0 -29
  105. data/_includes/i18n/fr.liquid +0 -29
  106. data/_includes/i18n/it.liquid +0 -29
  107. data/_includes/i18n/ja.liquid +0 -29
  108. data/_includes/i18n/ko.liquid +0 -29
  109. data/_includes/i18n/ru.liquid +0 -29
  110. data/_includes/i18n/sv.liquid +0 -29
  111. data/_includes/i18n/zh-cn.liquid +0 -29
  112. data/_includes/reset/i18n.liquid +0 -31
  113. data/_includes/reset/languages.liquid +0 -110
  114. data/_sass/_album.scss +0 -19
  115. data/_sass/_embed.scss +0 -23
  116. data/_sass/fluid.scss +0 -7
  117. data/_sass/jekyll-rtd-theme.scss +0 -162
  118. data/assets/css/rougify/base16.css +0 -1
  119. data/assets/css/rougify/base16.dark.css +0 -1
  120. data/assets/css/rougify/base16.light.css +0 -1
  121. data/assets/css/rougify/base16.monokai.css +0 -1
  122. data/assets/css/rougify/base16.monokai.dark.css +0 -1
  123. data/assets/css/rougify/base16.monokai.light.css +0 -1
  124. data/assets/css/rougify/base16.solarized.css +0 -1
  125. data/assets/css/rougify/base16.solarized.dark.css +0 -1
  126. data/assets/css/rougify/base16.solarized.light.css +0 -1
  127. data/assets/css/rougify/bw.css +0 -1
  128. data/assets/css/rougify/colorful.css +0 -1
  129. data/assets/css/rougify/github.css +0 -1
  130. data/assets/css/rougify/gruvbox.css +0 -1
  131. data/assets/css/rougify/gruvbox.dark.css +0 -1
  132. data/assets/css/rougify/gruvbox.light.css +0 -1
  133. data/assets/css/rougify/igorpro.css +0 -1
  134. data/assets/css/rougify/magritte.css +0 -1
  135. data/assets/css/rougify/molokai.css +0 -1
  136. data/assets/css/rougify/monokai.css +0 -1
  137. data/assets/css/rougify/monokai.sublime.css +0 -1
  138. data/assets/css/rougify/pastie.css +0 -1
  139. data/assets/css/rougify/thankful_eyes.css +0 -1
  140. data/assets/css/rougify/tulip.css +0 -1
  141. data/assets/css/theme.css +0 -4
  142. data/assets/js/anchor.min.js +0 -9
  143. data/assets/js/html5shiv.min.js +0 -4
@@ -0,0 +1,7 @@
1
+ @import "../support/index.scss";
2
+ @import "./form-control.scss";
3
+ @import "./form-select.scss";
4
+ @import "./form-group.scss";
5
+ @import "./form-validation.scss";
6
+ @import "./input-group.scss";
7
+ @import "./radio-group.scss";
@@ -0,0 +1,53 @@
1
+ .input-group {
2
+ display: table;
3
+
4
+ .form-control {
5
+ position: relative;
6
+ width: 100%;
7
+
8
+ &:focus {
9
+ z-index: 2;
10
+ }
11
+
12
+ + .btn {
13
+ margin-left: 0;
14
+ }
15
+ }
16
+
17
+ // For when you want the input group to behave like inline-block.
18
+ &.inline {
19
+ display: inline-table;
20
+ }
21
+ }
22
+
23
+ .input-group .form-control,
24
+ .input-group-button {
25
+ display: table-cell;
26
+ }
27
+
28
+ .input-group-button {
29
+ width: 1%;
30
+ vertical-align: middle; // Match the inputs
31
+ }
32
+
33
+ .input-group .form-control:first-child,
34
+ .input-group-button:first-child .btn {
35
+ border-top-right-radius: 0;
36
+ border-bottom-right-radius: 0;
37
+ }
38
+
39
+ .input-group-button:first-child .btn {
40
+ // stylelint-disable-next-line primer/spacing
41
+ margin-right: -1px;
42
+ }
43
+
44
+ .input-group .form-control:last-child,
45
+ .input-group-button:last-child .btn {
46
+ border-top-left-radius: 0;
47
+ border-bottom-left-radius: 0;
48
+ }
49
+
50
+ .input-group-button:last-child .btn {
51
+ // stylelint-disable-next-line primer/spacing
52
+ margin-left: -1px;
53
+ }
@@ -0,0 +1,43 @@
1
+ // Tab like radio group
2
+
3
+ .radio-group {
4
+ @include clearfix;
5
+ }
6
+
7
+ .radio-label {
8
+ float: left;
9
+ // stylelint-disable-next-line primer/spacing
10
+ padding: 6px $spacer-3 6px ($spacer-3 + 12px + $spacer-2); // 12px is the size of the radio-input
11
+ // stylelint-disable-next-line primer/spacing
12
+ margin-left: -1px;
13
+ font-size: $body-font-size;
14
+ // stylelint-disable-next-line primer/typography
15
+ line-height: 20px; // Specifically not inherit our `<body>` default
16
+ color: $text-gray-dark;
17
+ cursor: pointer;
18
+ border: $border-width $border-style $border-color;
19
+
20
+ :checked + & {
21
+ position: relative;
22
+ z-index: 1;
23
+ border-color: $border-blue;
24
+ }
25
+
26
+ &:first-of-type {
27
+ margin-left: 0;
28
+ border-top-left-radius: $border-radius;
29
+ border-bottom-left-radius: $border-radius;
30
+ }
31
+
32
+ &:last-of-type {
33
+ border-top-right-radius: $border-radius;
34
+ border-bottom-right-radius: $border-radius;
35
+ }
36
+ }
37
+
38
+ .radio-input {
39
+ z-index: 3;
40
+ float: left;
41
+ // stylelint-disable-next-line primer/spacing
42
+ margin: 10px (-$spacer-5) 0 $spacer-3;
43
+ }
@@ -0,0 +1,31 @@
1
+ // stylelint-disable selector-max-type
2
+ .markdown-body .csv-data {
3
+ td,
4
+ th {
5
+ // stylelint-disable-next-line primer/spacing
6
+ padding: 5px;
7
+ overflow: hidden;
8
+ font-size: $font-size-small;
9
+ line-height: $lh-condensed-ultra;
10
+ text-align: left;
11
+ white-space: nowrap;
12
+ }
13
+
14
+ .blob-num {
15
+ // stylelint-disable-next-line primer/spacing
16
+ padding: 10px $spacer-2 9px;
17
+ text-align: right;
18
+ background: $bg-white;
19
+ border: 0;
20
+ }
21
+
22
+ tr {
23
+ border-top: 0;
24
+ }
25
+
26
+ th {
27
+ font-weight: $font-weight-bold;
28
+ background: $bg-gray;
29
+ border-top: 0;
30
+ }
31
+ }
@@ -0,0 +1,73 @@
1
+ // stylelint-disable selector-max-type
2
+ .markdown-body {
3
+ // Inline code snippets
4
+ code,
5
+ tt {
6
+ // stylelint-disable-next-line primer/spacing
7
+ padding: 0.2em 0.4em;
8
+ margin: 0;
9
+ // stylelint-disable-next-line primer/typography
10
+ font-size: 85%;
11
+ // stylelint-disable-next-line primer/colors
12
+ background-color: rgba($black, 0.05);
13
+ border-radius: $border-radius;
14
+
15
+ br {
16
+ display: none;
17
+ }
18
+ }
19
+
20
+ del code {
21
+ text-decoration: inherit;
22
+ }
23
+
24
+ pre {
25
+ word-wrap: normal;
26
+
27
+ // Code tags within code blocks (<pre>s)
28
+ > code {
29
+ padding: 0;
30
+ margin: 0;
31
+ // stylelint-disable-next-line primer/typography
32
+ font-size: 100%;
33
+ word-break: normal;
34
+ white-space: pre;
35
+ background: transparent;
36
+ border: 0;
37
+ }
38
+ }
39
+
40
+ .highlight {
41
+ margin-bottom: $spacer-3;
42
+
43
+ pre {
44
+ margin-bottom: 0;
45
+ word-break: normal;
46
+ }
47
+ }
48
+
49
+ .highlight pre,
50
+ pre {
51
+ padding: $spacer-3;
52
+ overflow: auto;
53
+ // stylelint-disable-next-line primer/typography
54
+ font-size: 85%;
55
+ // stylelint-disable-next-line primer/typography
56
+ line-height: 1.45;
57
+ background-color: $bg-gray;
58
+ border-radius: $border-radius;
59
+ }
60
+
61
+ pre code,
62
+ pre tt {
63
+ display: inline;
64
+ max-width: auto;
65
+ padding: 0;
66
+ margin: 0;
67
+ overflow: visible;
68
+ line-height: inherit;
69
+ word-wrap: normal;
70
+ background-color: transparent;
71
+ border: 0;
72
+ }
73
+ }
@@ -0,0 +1,72 @@
1
+ // Needs refactoring
2
+ // stylelint-disable selector-max-compound-selectors, selector-max-specificity
3
+ // stylelint-disable selector-max-type
4
+ .markdown-body {
5
+ // Headings
6
+ h1,
7
+ h2,
8
+ h3,
9
+ h4,
10
+ h5,
11
+ h6 {
12
+ margin-top: $spacer-4;
13
+ margin-bottom: $spacer-3;
14
+ font-weight: $font-weight-bold;
15
+ line-height: $lh-condensed;
16
+
17
+ .octicon-link {
18
+ color: $text-black;
19
+ vertical-align: middle;
20
+ visibility: hidden;
21
+ }
22
+
23
+ &:hover .anchor {
24
+ text-decoration: none;
25
+
26
+ .octicon-link {
27
+ visibility: visible;
28
+ }
29
+ }
30
+
31
+ tt,
32
+ code {
33
+ font-size: inherit;
34
+ }
35
+ }
36
+
37
+ h1 {
38
+ // stylelint-disable-next-line primer/spacing
39
+ padding-bottom: 0.3em;
40
+ // stylelint-disable-next-line primer/typography
41
+ font-size: 2em;
42
+ border-bottom: $border-width $border-style $border-gray-light;
43
+ }
44
+
45
+ h2 {
46
+ // stylelint-disable-next-line primer/spacing
47
+ padding-bottom: 0.3em;
48
+ // stylelint-disable-next-line primer/typography
49
+ font-size: 1.5em;
50
+ border-bottom: $border-width $border-style $border-gray-light;
51
+ }
52
+
53
+ h3 {
54
+ // stylelint-disable-next-line primer/typography
55
+ font-size: 1.25em;
56
+ }
57
+
58
+ h4 {
59
+ font-size: 1em;
60
+ }
61
+
62
+ h5 {
63
+ // stylelint-disable-next-line primer/typography
64
+ font-size: 0.875em;
65
+ }
66
+
67
+ h6 {
68
+ // stylelint-disable-next-line primer/typography
69
+ font-size: 0.85em;
70
+ color: $text-gray-light;
71
+ }
72
+ }
@@ -0,0 +1,131 @@
1
+ // Need to target base styles
2
+ // stylelint-disable selector-max-compound-selectors, selector-no-qualifying-type
3
+ // stylelint-disable selector-max-type
4
+ .markdown-body {
5
+ // Images & Stuff
6
+ img {
7
+ max-width: 100%;
8
+ // because we put padding on the images to hide header lines, and some people
9
+ // specify the width of their images in their markdown.
10
+ box-sizing: content-box;
11
+ background-color: $bg-white;
12
+
13
+ &[align="right"] {
14
+ // stylelint-disable-next-line primer/spacing
15
+ padding-left: 20px;
16
+ }
17
+
18
+ &[align="left"] {
19
+ // stylelint-disable-next-line primer/spacing
20
+ padding-right: 20px;
21
+ }
22
+ }
23
+
24
+ .emoji {
25
+ max-width: none;
26
+ vertical-align: text-top;
27
+ // Override `<img>` styles so Emjois don't clash with zebra striping in our tables
28
+ background-color: transparent;
29
+ }
30
+
31
+ // Gollum Image Tags
32
+
33
+ // Framed
34
+ span.frame {
35
+ display: block;
36
+ overflow: hidden;
37
+
38
+ > span {
39
+ display: block;
40
+ float: left;
41
+ width: auto;
42
+ // stylelint-disable-next-line primer/spacing
43
+ padding: 7px;
44
+ // stylelint-disable-next-line primer/spacing
45
+ margin: 13px 0 0;
46
+ overflow: hidden;
47
+ // stylelint-disable-next-line primer/borders
48
+ border: $border-width $border-style lighten($gray-300, 5%);
49
+ }
50
+
51
+ span img {
52
+ display: block;
53
+ float: left;
54
+ }
55
+
56
+ span span {
57
+ display: block;
58
+ // stylelint-disable-next-line primer/spacing
59
+ padding: 5px 0 0;
60
+ clear: both;
61
+ color: $text-gray-dark;
62
+ }
63
+ }
64
+
65
+ span.align-center {
66
+ display: block;
67
+ overflow: hidden;
68
+ clear: both;
69
+
70
+ > span {
71
+ display: block;
72
+ // stylelint-disable-next-line primer/spacing
73
+ margin: 13px auto 0;
74
+ overflow: hidden;
75
+ text-align: center;
76
+ }
77
+
78
+ span img {
79
+ margin: 0 auto;
80
+ text-align: center;
81
+ }
82
+ }
83
+
84
+ span.align-right {
85
+ display: block;
86
+ overflow: hidden;
87
+ clear: both;
88
+
89
+ > span {
90
+ display: block;
91
+ // stylelint-disable-next-line primer/spacing
92
+ margin: 13px 0 0;
93
+ overflow: hidden;
94
+ text-align: right;
95
+ }
96
+
97
+ span img {
98
+ margin: 0;
99
+ text-align: right;
100
+ }
101
+ }
102
+
103
+ span.float-left {
104
+ display: block;
105
+ float: left;
106
+ // stylelint-disable-next-line primer/spacing
107
+ margin-right: 13px;
108
+ overflow: hidden;
109
+
110
+ span {
111
+ // stylelint-disable-next-line primer/spacing
112
+ margin: 13px 0 0;
113
+ }
114
+ }
115
+
116
+ span.float-right {
117
+ display: block;
118
+ float: right;
119
+ // stylelint-disable-next-line primer/spacing
120
+ margin-left: 13px;
121
+ overflow: hidden;
122
+
123
+ > span {
124
+ display: block;
125
+ // stylelint-disable-next-line primer/spacing
126
+ margin: 13px auto 0;
127
+ overflow: hidden;
128
+ text-align: right;
129
+ }
130
+ }
131
+ }
@@ -0,0 +1,8 @@
1
+ @import "../support/index.scss";
2
+ @import "./markdown-body.scss";
3
+ @import "./headings.scss";
4
+ @import "./lists.scss";
5
+ @import "./tables.scss";
6
+ @import "./images.scss";
7
+ @import "./code.scss";
8
+ @import "./blob-csv.scss";
@@ -0,0 +1,76 @@
1
+ // Base styles
2
+ // stylelint-disable selector-no-qualifying-type
3
+ // stylelint-disable selector-max-type
4
+ .markdown-body {
5
+ // Lists, Blockquotes & Such
6
+ ul,
7
+ ol {
8
+ // stylelint-disable-next-line primer/spacing
9
+ padding-left: 2em;
10
+
11
+ &.no-list {
12
+ padding: 0;
13
+ list-style-type: none;
14
+ }
15
+ }
16
+
17
+ // Did someone complain about list spacing? Encourage them
18
+ // to create the spacing with their markdown formatting.
19
+ // List behavior should be controled by the markup, not the css.
20
+ //
21
+ // For lists with padding between items, use blank
22
+ // lines between items. This will generate paragraphs with
23
+ // padding to space things out.
24
+ //
25
+ // - item
26
+ //
27
+ // - item
28
+ //
29
+ // - item
30
+ //
31
+ // For list without padding, don't use blank lines.
32
+ //
33
+ // - item
34
+ // - item
35
+ // - item
36
+ //
37
+ // Modifying the css to emulate these behaviors merely brakes
38
+ // one case in the process of solving another. Don't change
39
+ // this unless it's really really a bug.
40
+ ul ul,
41
+ ul ol,
42
+ ol ol,
43
+ ol ul {
44
+ margin-top: 0;
45
+ margin-bottom: 0;
46
+ }
47
+
48
+ li {
49
+ word-wrap: break-all;
50
+ }
51
+
52
+ li > p {
53
+ margin-top: $spacer-3;
54
+ }
55
+
56
+ li + li {
57
+ margin-top: $em-spacer-3;
58
+ }
59
+
60
+ dl {
61
+ padding: 0;
62
+
63
+ dt {
64
+ padding: 0;
65
+ margin-top: $spacer-3;
66
+ font-size: 1em;
67
+ font-style: italic;
68
+ font-weight: $font-weight-bold;
69
+ }
70
+
71
+ dd {
72
+ padding: 0 $spacer-3;
73
+ margin-bottom: $spacer-3;
74
+ }
75
+ }
76
+ }