jekyll-v4-theme-primer 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (297) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +22 -0
  3. data/README.md +116 -0
  4. data/_includes/.gitkeep +1 -0
  5. data/_includes/head-custom-google-analytics.html +10 -0
  6. data/_includes/head-custom.html +9 -0
  7. data/_includes/theme.html +11 -0
  8. data/_layouts/default.html +29 -0
  9. data/_layouts/home.html +4 -0
  10. data/_layouts/page.html +4 -0
  11. data/_layouts/post.html +4 -0
  12. data/_sass/@primer/css/actionlist/action-list-item-divider.scss +48 -0
  13. data/_sass/@primer/css/actionlist/action-list-item.scss +593 -0
  14. data/_sass/@primer/css/actionlist/action-list-tree.scss +118 -0
  15. data/_sass/@primer/css/actionlist/action-list-variables.scss +8 -0
  16. data/_sass/@primer/css/actionlist/action-list.scss +67 -0
  17. data/_sass/@primer/css/actionlist/index.scss +6 -0
  18. data/_sass/@primer/css/alerts/flash.scss +1 -0
  19. data/_sass/@primer/css/alerts/index.scss +3 -0
  20. data/_sass/@primer/css/autocomplete/autocomplete.scss +1 -0
  21. data/_sass/@primer/css/autocomplete/index.scss +4 -0
  22. data/_sass/@primer/css/autocomplete/suggester.scss +92 -0
  23. data/_sass/@primer/css/avatars/avatar-parent-child.scss +17 -0
  24. data/_sass/@primer/css/avatars/avatar-stack.scss +1 -0
  25. data/_sass/@primer/css/avatars/avatar.scss +1 -0
  26. data/_sass/@primer/css/avatars/circle-badge.scss +55 -0
  27. data/_sass/@primer/css/avatars/index.scss +7 -0
  28. data/_sass/@primer/css/base/base.scss +160 -0
  29. data/_sass/@primer/css/base/index.scss +6 -0
  30. data/_sass/@primer/css/base/kbd.scss +19 -0
  31. data/_sass/@primer/css/base/normalize.scss +381 -0
  32. data/_sass/@primer/css/base/octicons.scss +6 -0
  33. data/_sass/@primer/css/base/typography-base.scss +89 -0
  34. data/_sass/@primer/css/blankslate/blankslate.scss +1 -0
  35. data/_sass/@primer/css/blankslate/index.scss +2 -0
  36. data/_sass/@primer/css/box/box-overlay.scss +42 -0
  37. data/_sass/@primer/css/box/box.scss +1 -0
  38. data/_sass/@primer/css/box/index.scss +3 -0
  39. data/_sass/@primer/css/branch-name/branch-name.scss +31 -0
  40. data/_sass/@primer/css/branch-name/index.scss +3 -0
  41. data/_sass/@primer/css/breadcrumb/breadcrumb.scss +1 -0
  42. data/_sass/@primer/css/breadcrumb/index.scss +3 -0
  43. data/_sass/@primer/css/buttons/button-group.scss +92 -0
  44. data/_sass/@primer/css/buttons/button.scss +340 -0
  45. data/_sass/@primer/css/buttons/index.scss +4 -0
  46. data/_sass/@primer/css/buttons/misc.scss +231 -0
  47. data/_sass/@primer/css/color-modes/index.scss +12 -0
  48. data/_sass/@primer/css/color-modes/native.scss +22 -0
  49. data/_sass/@primer/css/color-modes/themes/dark.scss +6 -0
  50. data/_sass/@primer/css/color-modes/themes/dark_colorblind.scss +6 -0
  51. data/_sass/@primer/css/color-modes/themes/dark_dimmed.scss +6 -0
  52. data/_sass/@primer/css/color-modes/themes/dark_high_contrast.scss +6 -0
  53. data/_sass/@primer/css/color-modes/themes/dark_tritanopia.scss +6 -0
  54. data/_sass/@primer/css/color-modes/themes/light.scss +6 -0
  55. data/_sass/@primer/css/color-modes/themes/light_colorblind.scss +6 -0
  56. data/_sass/@primer/css/color-modes/themes/light_high_contrast.scss +6 -0
  57. data/_sass/@primer/css/color-modes/themes/light_tritanopia.scss +6 -0
  58. data/_sass/@primer/css/core/index.scss +30 -0
  59. data/_sass/@primer/css/dropdown/dropdown.scss +1 -0
  60. data/_sass/@primer/css/dropdown/index.scss +2 -0
  61. data/_sass/@primer/css/forms/FormControl.scss +1 -0
  62. data/_sass/@primer/css/forms/form-control.scss +267 -0
  63. data/_sass/@primer/css/forms/form-group.scss +287 -0
  64. data/_sass/@primer/css/forms/form-select.scss +46 -0
  65. data/_sass/@primer/css/forms/form-validation.scss +369 -0
  66. data/_sass/@primer/css/forms/index.scss +9 -0
  67. data/_sass/@primer/css/forms/input-group.scss +71 -0
  68. data/_sass/@primer/css/forms/radio-group.scss +62 -0
  69. data/_sass/@primer/css/header/header.scss +47 -0
  70. data/_sass/@primer/css/header/index.scss +2 -0
  71. data/_sass/@primer/css/index.scss +19 -0
  72. data/_sass/@primer/css/labels/counters.scss +1 -0
  73. data/_sass/@primer/css/labels/diffstat.scss +37 -0
  74. data/_sass/@primer/css/labels/index.scss +7 -0
  75. data/_sass/@primer/css/labels/issue-labels.scss +23 -0
  76. data/_sass/@primer/css/labels/labels.scss +1 -0
  77. data/_sass/@primer/css/labels/mixins.scss +37 -0
  78. data/_sass/@primer/css/labels/states.scss +1 -0
  79. data/_sass/@primer/css/layout/app-frame.scss +156 -0
  80. data/_sass/@primer/css/layout/container.scss +30 -0
  81. data/_sass/@primer/css/layout/grid-offset.scss +20 -0
  82. data/_sass/@primer/css/layout/grid.scss +65 -0
  83. data/_sass/@primer/css/layout/index.scss +8 -0
  84. data/_sass/@primer/css/layout/layout.scss +1 -0
  85. data/_sass/@primer/css/layout/page-layout.scss +413 -0
  86. data/_sass/@primer/css/layout/stack.scss +220 -0
  87. data/_sass/@primer/css/links/index.scss +3 -0
  88. data/_sass/@primer/css/links/link.scss +60 -0
  89. data/_sass/@primer/css/loaders/index.scss +2 -0
  90. data/_sass/@primer/css/loaders/loaders.scss +19 -0
  91. data/_sass/@primer/css/markdown/blob-csv.scss +29 -0
  92. data/_sass/@primer/css/markdown/code.scss +77 -0
  93. data/_sass/@primer/css/markdown/footnotes.scss +55 -0
  94. data/_sass/@primer/css/markdown/headings.scss +96 -0
  95. data/_sass/@primer/css/markdown/images.scss +130 -0
  96. data/_sass/@primer/css/markdown/index.scss +9 -0
  97. data/_sass/@primer/css/markdown/lists.scss +98 -0
  98. data/_sass/@primer/css/markdown/markdown-body.scss +96 -0
  99. data/_sass/@primer/css/markdown/tables.scss +36 -0
  100. data/_sass/@primer/css/marketing/buttons/button.scss +164 -0
  101. data/_sass/@primer/css/marketing/buttons/index.scss +3 -0
  102. data/_sass/@primer/css/marketing/index.scss +15 -0
  103. data/_sass/@primer/css/marketing/links/index.scss +3 -0
  104. data/_sass/@primer/css/marketing/links/link.scss +50 -0
  105. data/_sass/@primer/css/marketing/support/index.scss +2 -0
  106. data/_sass/@primer/css/marketing/support/variables.scss +127 -0
  107. data/_sass/@primer/css/marketing/type/index.scss +3 -0
  108. data/_sass/@primer/css/marketing/type/typography.scss +118 -0
  109. data/_sass/@primer/css/marketing/utilities/animations.scss +51 -0
  110. data/_sass/@primer/css/marketing/utilities/borders.scss +4 -0
  111. data/_sass/@primer/css/marketing/utilities/filters.scss +3 -0
  112. data/_sass/@primer/css/marketing/utilities/index.scss +6 -0
  113. data/_sass/@primer/css/marketing/utilities/layout.scss +51 -0
  114. data/_sass/@primer/css/navigation/filter-list.scss +82 -0
  115. data/_sass/@primer/css/navigation/index.scss +8 -0
  116. data/_sass/@primer/css/navigation/menu.scss +1 -0
  117. data/_sass/@primer/css/navigation/sidenav.scss +99 -0
  118. data/_sass/@primer/css/navigation/subnav.scss +146 -0
  119. data/_sass/@primer/css/navigation/tabnav.scss +1 -0
  120. data/_sass/@primer/css/navigation/underline-nav.scss +1 -0
  121. data/_sass/@primer/css/overlay/index.scss +2 -0
  122. data/_sass/@primer/css/overlay/overlay.scss +1 -0
  123. data/_sass/@primer/css/pagination/index.scss +3 -0
  124. data/_sass/@primer/css/pagination/pagination.scss +156 -0
  125. data/_sass/@primer/css/popover/index.scss +3 -0
  126. data/_sass/@primer/css/popover/popover.scss +1 -0
  127. data/_sass/@primer/css/primitives/index.scss +10 -0
  128. data/_sass/@primer/css/primitives/temp-typography-tokens.scss +22 -0
  129. data/_sass/@primer/css/product/index.scss +28 -0
  130. data/_sass/@primer/css/progress/index.scss +3 -0
  131. data/_sass/@primer/css/progress/progress.scss +1 -0
  132. data/_sass/@primer/css/select-menu/index.scss +3 -0
  133. data/_sass/@primer/css/select-menu/select-menu.scss +463 -0
  134. data/_sass/@primer/css/subhead/index.scss +3 -0
  135. data/_sass/@primer/css/subhead/subhead.scss +1 -0
  136. data/_sass/@primer/css/support/index.scss +10 -0
  137. data/_sass/@primer/css/support/mixins/color-modes.scss +109 -0
  138. data/_sass/@primer/css/support/mixins/layout.scss +58 -0
  139. data/_sass/@primer/css/support/mixins/misc.scss +73 -0
  140. data/_sass/@primer/css/support/mixins/typography.scss +91 -0
  141. data/_sass/@primer/css/support/variables/layout.scss +230 -0
  142. data/_sass/@primer/css/support/variables/misc.scss +18 -0
  143. data/_sass/@primer/css/support/variables/typography.scss +43 -0
  144. data/_sass/@primer/css/table-object/index.scss +1 -0
  145. data/_sass/@primer/css/table-object/table-object.scss +23 -0
  146. data/_sass/@primer/css/timeline/index.scss +2 -0
  147. data/_sass/@primer/css/timeline/timeline-item.scss +1 -0
  148. data/_sass/@primer/css/toasts/index.scss +2 -0
  149. data/_sass/@primer/css/toasts/toasts.scss +127 -0
  150. data/_sass/@primer/css/toggle-switch/index.scss +2 -0
  151. data/_sass/@primer/css/toggle-switch/toggle-switch.scss +1 -0
  152. data/_sass/@primer/css/tooltips/index.scss +2 -0
  153. data/_sass/@primer/css/tooltips/tooltips.scss +281 -0
  154. data/_sass/@primer/css/truncate/index.scss +2 -0
  155. data/_sass/@primer/css/truncate/truncate.scss +2 -0
  156. data/_sass/@primer/css/utilities/animations.scss +196 -0
  157. data/_sass/@primer/css/utilities/borders.scss +74 -0
  158. data/_sass/@primer/css/utilities/box-shadow.scss +25 -0
  159. data/_sass/@primer/css/utilities/colors.scss +95 -0
  160. data/_sass/@primer/css/utilities/details.scss +105 -0
  161. data/_sass/@primer/css/utilities/flexbox.scss +52 -0
  162. data/_sass/@primer/css/utilities/index.scss +14 -0
  163. data/_sass/@primer/css/utilities/layout.scss +96 -0
  164. data/_sass/@primer/css/utilities/margin.scss +71 -0
  165. data/_sass/@primer/css/utilities/padding.scss +56 -0
  166. data/_sass/@primer/css/utilities/typography.scss +332 -0
  167. data/_sass/@primer/css/utilities/visibility-display.scss +123 -0
  168. data/_sass/@primer/primitives/dist/scss/colors/_dark.scss +443 -0
  169. data/_sass/@primer/primitives/dist/scss/colors/_dark_colorblind.scss +443 -0
  170. data/_sass/@primer/primitives/dist/scss/colors/_dark_dimmed.scss +443 -0
  171. data/_sass/@primer/primitives/dist/scss/colors/_dark_high_contrast.scss +443 -0
  172. data/_sass/@primer/primitives/dist/scss/colors/_dark_tritanopia.scss +443 -0
  173. data/_sass/@primer/primitives/dist/scss/colors/_light.scss +443 -0
  174. data/_sass/@primer/primitives/dist/scss/colors/_light_colorblind.scss +443 -0
  175. data/_sass/@primer/primitives/dist/scss/colors/_light_high_contrast.scss +443 -0
  176. data/_sass/@primer/primitives/dist/scss/colors/_light_tritanopia.scss +443 -0
  177. data/_sass/@primer/primitives/dist/scss/spacing/_normal.scss +11 -0
  178. data/_sass/@primer/primitives/dist/scss/typography/_normal.scss +15 -0
  179. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/base/size/size.scss +21 -0
  180. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/base/typography/typography.scss +8 -0
  181. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/border.scss +14 -0
  182. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +10 -0
  183. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +7 -0
  184. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +7 -0
  185. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size.scss +51 -0
  186. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/viewport.scss +10 -0
  187. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/typography/typography.scss +44 -0
  188. data/_sass/@primer/view-components/LICENSE.txt +21 -0
  189. data/_sass/@primer/view-components/README.md +17 -0
  190. data/_sass/@primer/view-components/app/assets/javascripts/primer_view_components.js +2 -0
  191. data/_sass/@primer/view-components/app/assets/javascripts/primer_view_components.js.map +1 -0
  192. data/_sass/@primer/view-components/app/assets/styles/primer_view_components.css +3 -0
  193. data/_sass/@primer/view-components/app/assets/styles/primer_view_components.css.map +1 -0
  194. data/_sass/@primer/view-components/app/components/primer/alpha/action_list.css +1 -0
  195. data/_sass/@primer/view-components/app/components/primer/alpha/action_list.css.json +1 -0
  196. data/_sass/@primer/view-components/app/components/primer/alpha/auto_complete.css +1 -0
  197. data/_sass/@primer/view-components/app/components/primer/alpha/auto_complete.css.json +1 -0
  198. data/_sass/@primer/view-components/app/components/primer/alpha/banner.css +1 -0
  199. data/_sass/@primer/view-components/app/components/primer/alpha/banner.css.json +1 -0
  200. data/_sass/@primer/view-components/app/components/primer/alpha/button_marketing.css +1 -0
  201. data/_sass/@primer/view-components/app/components/primer/alpha/button_marketing.css.json +1 -0
  202. data/_sass/@primer/view-components/app/components/primer/alpha/dialog.css +1 -0
  203. data/_sass/@primer/view-components/app/components/primer/alpha/dialog.css.json +1 -0
  204. data/_sass/@primer/view-components/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
  205. data/_sass/@primer/view-components/app/components/primer/alpha/dropdown/menu.js +1 -0
  206. data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.css +1 -0
  207. data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.css.json +1 -0
  208. data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.d.ts +1 -0
  209. data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.js +1 -0
  210. data/_sass/@primer/view-components/app/components/primer/alpha/image_crop.d.ts +1 -0
  211. data/_sass/@primer/view-components/app/components/primer/alpha/image_crop.js +1 -0
  212. data/_sass/@primer/view-components/app/components/primer/alpha/layout.css +1 -0
  213. data/_sass/@primer/view-components/app/components/primer/alpha/layout.css.json +1 -0
  214. data/_sass/@primer/view-components/app/components/primer/alpha/menu.css +1 -0
  215. data/_sass/@primer/view-components/app/components/primer/alpha/menu.css.json +1 -0
  216. data/_sass/@primer/view-components/app/components/primer/alpha/modal_dialog.d.ts +18 -0
  217. data/_sass/@primer/view-components/app/components/primer/alpha/modal_dialog.js +150 -0
  218. data/_sass/@primer/view-components/app/components/primer/alpha/nav_list.d.ts +25 -0
  219. data/_sass/@primer/view-components/app/components/primer/alpha/nav_list.js +130 -0
  220. data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.css +1 -0
  221. data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.css.json +1 -0
  222. data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.d.ts +12 -0
  223. data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.js +47 -0
  224. data/_sass/@primer/view-components/app/components/primer/alpha/tab_nav.css +1 -0
  225. data/_sass/@primer/view-components/app/components/primer/alpha/tab_nav.css.json +1 -0
  226. data/_sass/@primer/view-components/app/components/primer/alpha/text_field.css +3 -0
  227. data/_sass/@primer/view-components/app/components/primer/alpha/text_field.css.json +1 -0
  228. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.css +1 -0
  229. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.css.json +1 -0
  230. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.d.ts +29 -0
  231. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.js +144 -0
  232. data/_sass/@primer/view-components/app/components/primer/alpha/tool_tip.d.ts +25 -0
  233. data/_sass/@primer/view-components/app/components/primer/alpha/tool_tip.js +389 -0
  234. data/_sass/@primer/view-components/app/components/primer/alpha/underline_nav.css +1 -0
  235. data/_sass/@primer/view-components/app/components/primer/alpha/underline_nav.css.json +1 -0
  236. data/_sass/@primer/view-components/app/components/primer/alpha/x_banner.d.ts +11 -0
  237. data/_sass/@primer/view-components/app/components/primer/alpha/x_banner.js +35 -0
  238. data/_sass/@primer/view-components/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
  239. data/_sass/@primer/view-components/app/components/primer/beta/auto_complete/auto_complete.js +1 -0
  240. data/_sass/@primer/view-components/app/components/primer/beta/avatar.css +1 -0
  241. data/_sass/@primer/view-components/app/components/primer/beta/avatar.css.json +1 -0
  242. data/_sass/@primer/view-components/app/components/primer/beta/avatar_stack.css +1 -0
  243. data/_sass/@primer/view-components/app/components/primer/beta/avatar_stack.css.json +1 -0
  244. data/_sass/@primer/view-components/app/components/primer/beta/blankslate.css +1 -0
  245. data/_sass/@primer/view-components/app/components/primer/beta/blankslate.css.json +1 -0
  246. data/_sass/@primer/view-components/app/components/primer/beta/border_box.css +1 -0
  247. data/_sass/@primer/view-components/app/components/primer/beta/border_box.css.json +1 -0
  248. data/_sass/@primer/view-components/app/components/primer/beta/breadcrumbs.css +1 -0
  249. data/_sass/@primer/view-components/app/components/primer/beta/breadcrumbs.css.json +1 -0
  250. data/_sass/@primer/view-components/app/components/primer/beta/button.css +1 -0
  251. data/_sass/@primer/view-components/app/components/primer/beta/button.css.json +1 -0
  252. data/_sass/@primer/view-components/app/components/primer/beta/clipboard_copy.d.ts +1 -0
  253. data/_sass/@primer/view-components/app/components/primer/beta/clipboard_copy.js +43 -0
  254. data/_sass/@primer/view-components/app/components/primer/beta/counter.css +1 -0
  255. data/_sass/@primer/view-components/app/components/primer/beta/counter.css.json +1 -0
  256. data/_sass/@primer/view-components/app/components/primer/beta/flash.css +1 -0
  257. data/_sass/@primer/view-components/app/components/primer/beta/flash.css.json +1 -0
  258. data/_sass/@primer/view-components/app/components/primer/beta/label.css +1 -0
  259. data/_sass/@primer/view-components/app/components/primer/beta/label.css.json +1 -0
  260. data/_sass/@primer/view-components/app/components/primer/beta/link.css +1 -0
  261. data/_sass/@primer/view-components/app/components/primer/beta/link.css.json +1 -0
  262. data/_sass/@primer/view-components/app/components/primer/beta/popover.css +1 -0
  263. data/_sass/@primer/view-components/app/components/primer/beta/popover.css.json +1 -0
  264. data/_sass/@primer/view-components/app/components/primer/beta/progress_bar.css +1 -0
  265. data/_sass/@primer/view-components/app/components/primer/beta/progress_bar.css.json +1 -0
  266. data/_sass/@primer/view-components/app/components/primer/beta/truncate.css +1 -0
  267. data/_sass/@primer/view-components/app/components/primer/beta/truncate.css.json +1 -0
  268. data/_sass/@primer/view-components/app/components/primer/local_time.d.ts +1 -0
  269. data/_sass/@primer/view-components/app/components/primer/local_time.js +1 -0
  270. data/_sass/@primer/view-components/app/components/primer/primer.d.ts +15 -0
  271. data/_sass/@primer/view-components/app/components/primer/primer.js +15 -0
  272. data/_sass/@primer/view-components/app/components/primer/state_component.css +1 -0
  273. data/_sass/@primer/view-components/app/components/primer/state_component.css.json +1 -0
  274. data/_sass/@primer/view-components/app/components/primer/subhead_component.css +1 -0
  275. data/_sass/@primer/view-components/app/components/primer/subhead_component.css.json +1 -0
  276. data/_sass/@primer/view-components/app/components/primer/tab_container_component.d.ts +1 -0
  277. data/_sass/@primer/view-components/app/components/primer/tab_container_component.js +1 -0
  278. data/_sass/@primer/view-components/app/components/primer/time_ago_component.d.ts +1 -0
  279. data/_sass/@primer/view-components/app/components/primer/time_ago_component.js +1 -0
  280. data/_sass/@primer/view-components/app/components/primer/timeline_item_component.css +1 -0
  281. data/_sass/@primer/view-components/app/components/primer/timeline_item_component.css.json +1 -0
  282. data/_sass/@primer/view-components/app/components/primer/truncate.css +1 -0
  283. data/_sass/@primer/view-components/app/components/primer/truncate.css.json +1 -0
  284. data/_sass/@primer/view-components/lib/primer/forms/primer_multi_input.d.ts +10 -0
  285. data/_sass/@primer/view-components/lib/primer/forms/primer_multi_input.js +45 -0
  286. data/_sass/@primer/view-components/lib/primer/forms/primer_text_field.d.ts +1 -0
  287. data/_sass/@primer/view-components/lib/primer/forms/primer_text_field.js +62 -0
  288. data/_sass/@primer/view-components/package.json +95 -0
  289. data/_sass/@primer/view-components/static/arguments.json +2586 -0
  290. data/_sass/@primer/view-components/static/audited_at.json +100 -0
  291. data/_sass/@primer/view-components/static/constants.json +1157 -0
  292. data/_sass/@primer/view-components/static/statuses.json +100 -0
  293. data/_sass/jekyll-theme-primer.scss +8 -0
  294. data/_sass/primer.scss +4 -0
  295. data/_sass/rouge.scss +213 -0
  296. data/assets/css/style.scss +4 -0
  297. metadata +444 -0
@@ -0,0 +1,369 @@
1
+ // Needs refactoring
2
+ // stylelint-disable selector-no-qualifying-type, selector-max-type
3
+ dl.form-group > dd, // TODO: Deprecate
4
+ .form-group > .form-group-body {
5
+ .form-control {
6
+ &.is-autocheck-loading,
7
+ &.is-autocheck-successful,
8
+ &.is-autocheck-errored {
9
+ // stylelint-disable-next-line primer/spacing
10
+ padding-right: 30px; // Leave some space for our validation icons
11
+ }
12
+
13
+ &.is-autocheck-loading {
14
+ background-image: url('/images/spinners/octocat-spinner-16px.gif');
15
+ }
16
+
17
+ &.is-autocheck-successful {
18
+ background-image: url('/images/modules/ajax/success.png');
19
+ }
20
+
21
+ &.is-autocheck-errored {
22
+ background-image: url('/images/modules/ajax/error.png');
23
+ }
24
+ }
25
+ }
26
+
27
+ // Retinization of form validation icons that aren't octicons yet
28
+ @include retina-media-query {
29
+ dl.form-group > dd, // TODO: Deprecate
30
+ .form-group > .form-group-body {
31
+ .form-control {
32
+ &.is-autocheck-loading,
33
+ &.is-autocheck-successful,
34
+ &.is-autocheck-errored {
35
+ background-size: 16px 16px;
36
+ }
37
+
38
+ &.is-autocheck-loading {
39
+ background-image: url('/images/spinners/octocat-spinner-32.gif');
40
+ }
41
+
42
+ &.is-autocheck-successful {
43
+ background-image: url('/images/modules/ajax/success@2x.png');
44
+ }
45
+
46
+ &.is-autocheck-errored {
47
+ background-image: url('/images/modules/ajax/error@2x.png');
48
+ }
49
+ }
50
+ }
51
+ }
52
+
53
+ // Inline verification
54
+ // This overrides primer's inline form stuff
55
+ .status-indicator {
56
+ display: inline-block;
57
+ width: 16px;
58
+ height: 16px;
59
+ // stylelint-disable-next-line primer/spacing
60
+ margin-left: 5px;
61
+
62
+ .octicon {
63
+ display: none;
64
+ }
65
+ }
66
+
67
+ .status-indicator-success {
68
+ // Override primer
69
+ &::before {
70
+ content: '';
71
+ }
72
+
73
+ .octicon-check {
74
+ display: inline-block;
75
+ color: var(--color-success-fg);
76
+ fill: var(--color-success-fg);
77
+ }
78
+
79
+ .octicon-x {
80
+ display: none;
81
+ }
82
+ }
83
+
84
+ .status-indicator-failed {
85
+ // Override primer
86
+ &::before {
87
+ content: '';
88
+ }
89
+
90
+ .octicon-check {
91
+ display: none;
92
+ }
93
+
94
+ .octicon-x {
95
+ display: inline-block;
96
+ color: var(--color-danger-fg);
97
+ fill: var(--color-danger-fg);
98
+ }
99
+ }
100
+
101
+ .status-indicator-loading {
102
+ width: 16px;
103
+ background-image: url('/images/spinners/octocat-spinner-32-EAF2F5.gif');
104
+ background-repeat: no-repeat;
105
+ background-position: 0 0;
106
+ background-size: 16px;
107
+ }
108
+
109
+ .inline-form {
110
+ display: inline-block;
111
+
112
+ .btn-plain {
113
+ background-color: transparent;
114
+ border: 0;
115
+ }
116
+ }
117
+
118
+ // Drag and drop
119
+ //
120
+ // Previously part of `_forms.scss` in Primer. Needs accounting for.
121
+
122
+ .drag-and-drop {
123
+ // stylelint-disable-next-line primer/spacing
124
+ padding: 7px 10px;
125
+ margin: 0;
126
+ // stylelint-disable-next-line primer/typography
127
+ font-size: 13px;
128
+ // stylelint-disable-next-line primer/typography
129
+ line-height: 16px;
130
+ color: var(--color-fg-muted);
131
+ background-color: var(--color-canvas-subtle);
132
+ border: $border-width $border-style var(--color-border-default);
133
+ border-top: 0;
134
+ border-bottom-right-radius: $border-radius;
135
+ border-bottom-left-radius: $border-radius;
136
+
137
+ .default,
138
+ .loading,
139
+ .error {
140
+ display: none;
141
+ }
142
+
143
+ .error {
144
+ color: var(--color-danger-fg);
145
+ }
146
+
147
+ // Spinner
148
+ img {
149
+ vertical-align: top;
150
+ }
151
+ }
152
+
153
+ .is-default .drag-and-drop .default {
154
+ display: inline-block;
155
+ }
156
+
157
+ .is-uploading .drag-and-drop .loading {
158
+ display: inline-block;
159
+ }
160
+
161
+ .is-bad-file .drag-and-drop .bad-file {
162
+ display: inline-block;
163
+ }
164
+
165
+ .is-duplicate-filename .drag-and-drop .duplicate-filename {
166
+ display: inline-block;
167
+ }
168
+
169
+ .is-too-big .drag-and-drop .too-big {
170
+ display: inline-block;
171
+ }
172
+
173
+ .is-hidden-file .drag-and-drop .hidden-file {
174
+ display: inline-block;
175
+ }
176
+
177
+ .is-empty .drag-and-drop .empty {
178
+ display: inline-block;
179
+ }
180
+
181
+ .is-bad-permissions .drag-and-drop .bad-permissions {
182
+ display: inline-block;
183
+ }
184
+
185
+ .is-repository-required .drag-and-drop .repository-required {
186
+ display: inline-block;
187
+ }
188
+
189
+ .drag-and-drop-error-info {
190
+ font-weight: $font-weight-normal;
191
+ color: var(--color-fg-muted);
192
+
193
+ a {
194
+ color: var(--color-accent-fg);
195
+ }
196
+ }
197
+
198
+ .is-failed .drag-and-drop .failed-request {
199
+ display: inline-block;
200
+ }
201
+
202
+ .manual-file-chooser {
203
+ position: absolute;
204
+ width: 240px;
205
+ // stylelint-disable-next-line primer/spacing
206
+ padding: 5px;
207
+ // stylelint-disable-next-line primer/spacing
208
+ margin-left: -80px;
209
+ cursor: pointer;
210
+ opacity: 0.0001;
211
+ }
212
+
213
+ .manual-file-chooser:hover + .manual-file-chooser-text {
214
+ text-decoration: underline;
215
+ }
216
+
217
+ .btn {
218
+ // align manual-file-chooser inside a button
219
+ .manual-file-chooser {
220
+ top: 0;
221
+ padding: 0;
222
+ // stylelint-disable-next-line primer/typography
223
+ line-height: 34px;
224
+ }
225
+ }
226
+
227
+ // Focused Textarea styles
228
+ .upload-enabled {
229
+ textarea {
230
+ display: block;
231
+ // stylelint-disable-next-line primer/borders
232
+ border-bottom: $border-width dashed var(--color-border-default);
233
+ border-bottom-right-radius: 0;
234
+ border-bottom-left-radius: 0;
235
+ }
236
+
237
+ &.focused {
238
+ border-color: var(--color-accent-fg);
239
+ border-radius: $border-radius;
240
+ outline: none;
241
+ // stylelint-disable-next-line primer/box-shadow
242
+ box-shadow: 0 0 0 2px var(--color-accent-fg);
243
+
244
+ .form-control {
245
+ border-color: transparent;
246
+ border-bottom-color: var(--color-accent-fg);
247
+ box-shadow: none;
248
+ }
249
+
250
+ .drag-and-drop {
251
+ border-color: transparent;
252
+ }
253
+ }
254
+ }
255
+
256
+ // Dropping a file on top
257
+ .dragover textarea,
258
+ .dragover .drag-and-drop {
259
+ // stylelint-disable-next-line primer/box-shadow
260
+ box-shadow: rgba(#c9ff00, 1) 0 0 3px;
261
+ }
262
+
263
+ .write-content {
264
+ position: relative;
265
+ }
266
+
267
+ // Form style with a write and a preview tab
268
+ .previewable-comment-form {
269
+ position: relative;
270
+
271
+ .tabnav {
272
+ position: relative;
273
+ padding: $spacer-2 $spacer-2 0;
274
+ }
275
+
276
+ .comment {
277
+ border: $border-width $border-style var(--color-border-default);
278
+ }
279
+
280
+ .comment-form-error {
281
+ margin-bottom: $spacer-2;
282
+ }
283
+
284
+ .write-content,
285
+ .preview-content {
286
+ display: none;
287
+ margin: 0 $spacer-2 $spacer-2;
288
+ }
289
+
290
+ &.write-selected .write-content,
291
+ &.preview-selected .preview-content {
292
+ display: block;
293
+ }
294
+
295
+ textarea {
296
+ display: block;
297
+ width: 100%;
298
+ min-height: 100px;
299
+ max-height: 500px;
300
+ padding: $spacer-2;
301
+ resize: vertical;
302
+ }
303
+ }
304
+
305
+ // Used in our boxed-group-less form styles. Give the submit button enough space
306
+ // to breathe without the need for the extra hr.
307
+ .form-action-spacious {
308
+ // stylelint-disable-next-line primer/spacing
309
+ margin-top: 10px;
310
+ }
311
+
312
+ // A two column form, with a .main and a .sidebar column
313
+ //
314
+ // Override some `.timeline-comment-wrapper` defaults.
315
+ // The `div` is needed to be more specific than the other class.
316
+ div.composer {
317
+ margin-top: 0;
318
+ border: 0;
319
+ }
320
+
321
+ // Override the previewable comment form defaults
322
+ .composer .comment-form-textarea {
323
+ height: 200px;
324
+ min-height: 200px;
325
+ }
326
+
327
+ .composer .tabnav {
328
+ // stylelint-disable-next-line primer/spacing
329
+ margin: 0 0 10px;
330
+ }
331
+
332
+ // Misc CSS
333
+ //
334
+ // Previously part of `_forms.scss` in Primer. Needs accounting for.
335
+
336
+ h2.account {
337
+ // stylelint-disable-next-line primer/spacing
338
+ margin: 15px 0 0;
339
+ // stylelint-disable-next-line primer/typography
340
+ font-size: 18px;
341
+ font-weight: $font-weight-normal;
342
+ color: var(--color-fg-muted);
343
+ }
344
+
345
+ p.explain {
346
+ position: relative;
347
+ font-size: $font-size-small;
348
+ color: var(--color-fg-muted);
349
+
350
+ strong {
351
+ color: var(--color-fg-default);
352
+ }
353
+
354
+ .octicon {
355
+ // stylelint-disable-next-line primer/spacing
356
+ margin-right: 5px;
357
+ color: var(--color-fg-muted);
358
+ }
359
+
360
+ .minibutton {
361
+ top: -4px;
362
+ float: right;
363
+ }
364
+ }
365
+
366
+ // fix for chrome bug, see https://github.com/github/github/issues/53931
367
+ .form-group label {
368
+ position: static;
369
+ }
@@ -0,0 +1,9 @@
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';
8
+ // new pvc components
9
+ @import './FormControl.scss';
@@ -0,0 +1,71 @@
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
+ // within input group, if button exists change focus styles to match input (no offset)
23
+ &:focus-within {
24
+ // stylelint-disable-next-line selector-max-type
25
+ button {
26
+ outline-offset: 0;
27
+ }
28
+ }
29
+
30
+ // Autocomplete with embedded icon
31
+ .form-control.autocomplete-embedded-icon-wrap {
32
+ display: inline-flex;
33
+ padding: $spacer-1 * 1.25 $spacer-2;
34
+ }
35
+ }
36
+
37
+ .input-group .form-control,
38
+ .input-group-button {
39
+ display: table-cell;
40
+ }
41
+
42
+ .input-group-button {
43
+ width: 1%;
44
+ vertical-align: middle; // Match the inputs
45
+ }
46
+
47
+ .input-group-button--autocomplete-embedded-icon {
48
+ vertical-align: bottom;
49
+ }
50
+
51
+ .input-group .form-control:first-child,
52
+ .input-group-button:first-child .btn {
53
+ border-top-right-radius: 0;
54
+ border-bottom-right-radius: 0;
55
+ }
56
+
57
+ .input-group-button:first-child .btn {
58
+ // stylelint-disable-next-line primer/spacing
59
+ margin-right: -1px;
60
+ }
61
+
62
+ .input-group .form-control:last-child,
63
+ .input-group-button:last-child .btn {
64
+ border-top-left-radius: 0;
65
+ border-bottom-left-radius: 0;
66
+ }
67
+
68
+ .input-group-button:last-child .btn {
69
+ // stylelint-disable-next-line primer/spacing
70
+ margin-left: -1px;
71
+ }
@@ -0,0 +1,62 @@
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: var(--color-fg-default);
17
+ cursor: pointer;
18
+ border: $border-width $border-style var(--color-border-default);
19
+
20
+ :checked + & {
21
+ position: relative;
22
+ z-index: 1;
23
+ border-color: var(--color-accent-emphasis);
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
+ .octicon {
38
+ margin-left: $spacer-1;
39
+ color: var(--color-fg-subtle);
40
+ }
41
+ }
42
+
43
+ .radio-input {
44
+ z-index: 3;
45
+ float: left;
46
+ // stylelint-disable-next-line primer/spacing
47
+ margin: 10px (-$spacer-5) 0 $spacer-3;
48
+
49
+ &:disabled {
50
+ position: relative; // enables z-index
51
+
52
+ + .radio-label {
53
+ color: var(--color-primer-fg-disabled);
54
+ cursor: default;
55
+ background-color: var(--color-neutral-subtle);
56
+
57
+ .octicon {
58
+ color: inherit;
59
+ }
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,47 @@
1
+ .Header {
2
+ z-index: 32; // TODO: Figure out z-index system
3
+ display: flex;
4
+ padding: $spacer-3;
5
+ font-size: $h5-size;
6
+ line-height: $lh-default;
7
+ color: var(--color-header-text);
8
+ background-color: var(--color-header-bg);
9
+ align-items: center;
10
+ flex-wrap: nowrap;
11
+ }
12
+
13
+ .Header-item {
14
+ display: flex;
15
+ margin-right: $spacer-3;
16
+ align-self: stretch;
17
+ align-items: center;
18
+ flex-wrap: nowrap;
19
+ }
20
+
21
+ .Header-item--full {
22
+ flex: auto;
23
+ }
24
+
25
+ .Header-link {
26
+ font-weight: $font-weight-bold;
27
+ color: var(--color-header-logo);
28
+ white-space: nowrap;
29
+
30
+ &:hover,
31
+ &:focus {
32
+ color: var(--color-header-text);
33
+ text-decoration: none;
34
+ }
35
+ }
36
+
37
+ .Header-input {
38
+ color: var(--color-header-text);
39
+ background-color: var(--color-header-search-bg);
40
+ border: $border-width $border-style var(--color-header-search-border);
41
+ box-shadow: none;
42
+
43
+ &::placeholder {
44
+ // stylelint-disable-next-line primer/colors
45
+ color: rgba(255, 255, 255, 0.75);
46
+ }
47
+ }
@@ -0,0 +1,2 @@
1
+ @import '../support/index.scss';
2
+ @import './header.scss';
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * Primer CSS
3
+ * https://primer.style
4
+ *
5
+ * Released under MIT license.
6
+ */
7
+
8
+ // Primer main file
9
+ //
10
+ // Imports all Primer files in their intended order for easy mass-inclusion.
11
+ // Should you need specific files, you can easily use separate `@import`s.
12
+
13
+ // CSS color variables
14
+ @import './color-modes/index.scss';
15
+
16
+ // Global requirements
17
+ @import './core/index.scss';
18
+ @import './product/index.scss';
19
+ @import './marketing/index.scss';
@@ -0,0 +1 @@
1
+ @import '@primer/view-components/app/components/primer/beta/counter';
@@ -0,0 +1,37 @@
1
+ // diffstat
2
+ //
3
+ // Green/red blocks showing additions and deletions
4
+
5
+ .diffstat {
6
+ font-size: $h6-size;
7
+ font-weight: $font-weight-bold;
8
+ color: var(--color-fg-muted);
9
+ white-space: nowrap;
10
+ cursor: default;
11
+ }
12
+
13
+ .diffstat-block-deleted,
14
+ .diffstat-block-added,
15
+ .diffstat-block-neutral {
16
+ display: inline-block;
17
+ width: $spacer-2;
18
+ height: $spacer-2;
19
+ // stylelint-disable-next-line primer/spacing
20
+ margin-left: 1px;
21
+ outline-offset: -1px; // Support Firefox custom colors
22
+ }
23
+
24
+ .diffstat-block-deleted {
25
+ background-color: var(--color-danger-emphasis);
26
+ outline: 1px solid var(--color-border-subtle); // Support Firefox custom colors
27
+ }
28
+
29
+ .diffstat-block-added {
30
+ background-color: var(--color-diffstat-addition-bg);
31
+ outline: 1px solid var(--color-border-subtle); // Support Firefox custom colors
32
+ }
33
+
34
+ .diffstat-block-neutral {
35
+ background-color: var(--color-neutral-muted);
36
+ outline: 1px solid var(--color-border-subtle); // Support Firefox custom colors
37
+ }
@@ -0,0 +1,7 @@
1
+ @import '../support/index.scss';
2
+ @import './mixins.scss';
3
+ @import './issue-labels.scss';
4
+ @import './labels.scss';
5
+ @import './states.scss';
6
+ @import './counters.scss';
7
+ @import './diffstat.scss';
@@ -0,0 +1,23 @@
1
+ // Issue Labels
2
+
3
+ // TODO: Replace with .Label once solid backgrounds are supported
4
+
5
+ .IssueLabel {
6
+ @include labels-base;
7
+
8
+ .g-emoji {
9
+ position: relative;
10
+ top: -0.05em;
11
+ display: inline-block;
12
+ font-size: 1em;
13
+ line-height: $lh-condensed-ultra;
14
+ }
15
+
16
+ &:hover {
17
+ text-decoration: none;
18
+ }
19
+ }
20
+
21
+ .IssueLabel--big {
22
+ @include labels-large;
23
+ }
@@ -0,0 +1 @@
1
+ @import '@primer/view-components/app/components/primer/beta/label';
@@ -0,0 +1,37 @@
1
+ // Label mixins
2
+
3
+ // Default: 20px
4
+ // Large: 24px
5
+ // Inline: em based
6
+
7
+ @mixin labels-base {
8
+ display: inline-block;
9
+ // stylelint-disable-next-line primer/spacing
10
+ padding: 0 7px;
11
+ font-size: $font-size-small;
12
+ font-weight: $font-weight-semibold;
13
+ line-height: 18px;
14
+ white-space: nowrap;
15
+ border: $border-width $border-style transparent;
16
+ border-radius: 2em;
17
+ }
18
+
19
+ @mixin labels-large {
20
+ // stylelint-disable-next-line primer/spacing
21
+ padding-right: 10px;
22
+ // stylelint-disable-next-line primer/spacing
23
+ padding-left: 10px;
24
+ line-height: 22px;
25
+ }
26
+
27
+ // Inline
28
+ //
29
+ // Doesn't increase height of parent element
30
+ // Can be used with different font-sizes
31
+
32
+ @mixin labels--inline {
33
+ display: inline;
34
+ // stylelint-disable-next-line primer/spacing
35
+ padding: 0.12em $em-spacer-5;
36
+ font-size: 85%;
37
+ }
@@ -0,0 +1 @@
1
+ @import '@primer/view-components/app/components/primer/state_component';