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,340 @@
1
+ // stylelint-disable selector-max-type, no-duplicate-selectors
2
+
3
+ // Base button styles
4
+ .btn {
5
+ position: relative;
6
+ display: inline-block;
7
+ // stylelint-disable-next-line primer/spacing
8
+ padding: 5px $spacer-3;
9
+ font-size: $body-font-size;
10
+ font-weight: $font-weight-semibold;
11
+ // stylelint-disable-next-line primer/typography
12
+ line-height: 20px; // Specifically not inherit our `<body>` default
13
+ white-space: nowrap;
14
+ vertical-align: middle;
15
+ cursor: pointer;
16
+ user-select: none;
17
+ border: $border-width $border-style;
18
+ border-radius: $border-radius;
19
+ appearance: none; // Corrects inability to style clickable `input` types in iOS.
20
+
21
+ &:hover {
22
+ text-decoration: none;
23
+ }
24
+
25
+ &:disabled,
26
+ &.disabled,
27
+ &[aria-disabled='true'] {
28
+ cursor: default;
29
+ }
30
+
31
+ i {
32
+ font-style: normal;
33
+ font-weight: $font-weight-semibold;
34
+ opacity: 0.75;
35
+ }
36
+
37
+ .octicon {
38
+ margin-right: $spacer-1;
39
+ color: var(--color-fg-muted);
40
+ vertical-align: text-bottom;
41
+
42
+ &:only-child {
43
+ margin-right: 0;
44
+ }
45
+ }
46
+
47
+ .Counter {
48
+ // stylelint-disable-next-line primer/spacing
49
+ margin-left: 2px;
50
+ color: inherit;
51
+ text-shadow: none;
52
+ vertical-align: top;
53
+ background-color: var(--color-btn-counter-bg);
54
+ }
55
+
56
+ .dropdown-caret {
57
+ margin-left: $spacer-1;
58
+ opacity: 0.8;
59
+ }
60
+ }
61
+
62
+ // Default button
63
+
64
+ .btn {
65
+ color: var(--color-btn-text);
66
+ background-color: var(--color-btn-bg);
67
+ border-color: var(--color-btn-border);
68
+ box-shadow: var(--color-btn-shadow), var(--color-btn-inset-shadow);
69
+ transition: 80ms cubic-bezier(0.33, 1, 0.68, 1);
70
+ transition-property: color, background-color, box-shadow, border-color;
71
+
72
+ &:hover,
73
+ &.hover,
74
+ [open] > & {
75
+ background-color: var(--color-btn-hover-bg);
76
+ border-color: var(--color-btn-hover-border);
77
+ transition-duration: 0.1s;
78
+ }
79
+
80
+ &:active {
81
+ background-color: var(--color-btn-active-bg);
82
+ border-color: var(--color-btn-active-border);
83
+ transition: none;
84
+ }
85
+
86
+ &.selected,
87
+ &[aria-selected='true'] {
88
+ background-color: var(--color-btn-selected-bg);
89
+ box-shadow: var(--color-primer-shadow-inset);
90
+ }
91
+
92
+ &:disabled,
93
+ &.disabled,
94
+ &[aria-disabled='true'] {
95
+ color: var(--color-primer-fg-disabled);
96
+ background-color: var(--color-btn-bg);
97
+ border-color: var(--color-btn-border);
98
+
99
+ .octicon {
100
+ color: var(--color-primer-fg-disabled);
101
+ }
102
+ }
103
+ }
104
+
105
+ // Primary button
106
+
107
+ .btn-primary {
108
+ color: var(--color-btn-primary-text);
109
+ background-color: var(--color-btn-primary-bg);
110
+ border-color: var(--color-btn-primary-border);
111
+ box-shadow: var(--color-btn-primary-shadow), var(--color-btn-primary-inset-shadow);
112
+
113
+ &:hover,
114
+ &.hover,
115
+ [open] > & {
116
+ background-color: var(--color-btn-primary-hover-bg);
117
+ border-color: var(--color-btn-primary-hover-border);
118
+ }
119
+
120
+ // fallback :focus state
121
+ &:focus {
122
+ @include focusOutlineOnEmphasis;
123
+
124
+ // remove fallback :focus if :focus-visible is supported
125
+ &:not(:focus-visible) {
126
+ outline: solid 1px transparent;
127
+ box-shadow: none;
128
+ }
129
+ }
130
+
131
+ // default focus state
132
+ &:focus-visible {
133
+ @include focusOutlineOnEmphasis;
134
+ }
135
+
136
+ &:active,
137
+ &.selected,
138
+ &[aria-selected='true'] {
139
+ background-color: var(--color-btn-primary-selected-bg);
140
+ box-shadow: var(--color-btn-primary-selected-shadow);
141
+ }
142
+
143
+ &:disabled,
144
+ &.disabled,
145
+ &[aria-disabled='true'] {
146
+ color: var(--color-btn-primary-disabled-text);
147
+ background-color: var(--color-btn-primary-disabled-bg);
148
+ border-color: var(--color-btn-primary-disabled-border);
149
+
150
+ .octicon {
151
+ color: var(--color-btn-primary-disabled-text);
152
+ }
153
+ }
154
+
155
+ .Counter {
156
+ color: inherit;
157
+ background-color: var(--color-btn-primary-counter-bg);
158
+ }
159
+
160
+ .octicon {
161
+ color: var(--color-btn-primary-icon);
162
+ }
163
+ }
164
+
165
+ // ensure links styled as button primary gets proper focus style
166
+ // stylelint-disable-next-line selector-no-qualifying-type
167
+ a.btn-primary {
168
+ // fallback :focus state
169
+ &:focus {
170
+ @include focusOutlineOnEmphasis;
171
+
172
+ // remove fallback :focus if :focus-visible is supported
173
+ &:not(:focus-visible) {
174
+ outline: solid 1px transparent;
175
+ box-shadow: none;
176
+ }
177
+ }
178
+
179
+ // default focus state
180
+ &:focus-visible {
181
+ @include focusOutlineOnEmphasis;
182
+ }
183
+ }
184
+
185
+ // Outline button
186
+
187
+ .btn-outline {
188
+ color: var(--color-btn-outline-text);
189
+
190
+ &:hover,
191
+ [open] > & {
192
+ color: var(--color-btn-outline-hover-text);
193
+ background-color: var(--color-btn-outline-hover-bg);
194
+ border-color: var(--color-btn-outline-hover-border);
195
+ box-shadow: var(--color-btn-outline-hover-shadow), var(--color-btn-outline-hover-inset-shadow);
196
+
197
+ .Counter {
198
+ background-color: var(--color-btn-outline-hover-counter-bg);
199
+ }
200
+
201
+ .octicon {
202
+ color: inherit;
203
+ }
204
+ }
205
+
206
+ &:active,
207
+ &.selected,
208
+ &[aria-selected='true'] {
209
+ color: var(--color-btn-outline-selected-text);
210
+ background-color: var(--color-btn-outline-selected-bg);
211
+ border-color: var(--color-btn-outline-selected-border);
212
+ box-shadow: var(--color-btn-outline-selected-shadow);
213
+
214
+ // fallback :focus state
215
+ &:focus {
216
+ @include focusOutlineOnEmphasis;
217
+
218
+ // remove fallback :focus if :focus-visible is supported
219
+ &:not(:focus-visible) {
220
+ outline: solid 1px transparent;
221
+ box-shadow: none;
222
+ }
223
+ }
224
+
225
+ // default focus state
226
+ &:focus-visible {
227
+ @include focusOutlineOnEmphasis;
228
+ }
229
+ }
230
+
231
+ &:disabled,
232
+ &.disabled,
233
+ &[aria-disabled='true'] {
234
+ color: var(--color-btn-outline-disabled-text);
235
+ background-color: var(--color-btn-outline-disabled-bg);
236
+ border-color: var(--color-btn-border);
237
+ box-shadow: none;
238
+
239
+ .Counter {
240
+ background-color: var(--color-btn-outline-disabled-counter-bg);
241
+ }
242
+ }
243
+
244
+ .Counter {
245
+ color: inherit;
246
+ background-color: var(--color-btn-outline-counter-bg);
247
+ }
248
+ }
249
+
250
+ // Danger button
251
+
252
+ .btn-danger {
253
+ color: var(--color-btn-danger-text);
254
+
255
+ .octicon {
256
+ color: var(--color-btn-danger-icon);
257
+ }
258
+
259
+ &:hover,
260
+ [open] > & {
261
+ color: var(--color-btn-danger-hover-text);
262
+ background-color: var(--color-btn-danger-hover-bg);
263
+ border-color: var(--color-btn-danger-hover-border);
264
+ box-shadow: var(--color-btn-danger-hover-shadow), var(--color-btn-danger-hover-inset-shadow);
265
+
266
+ .Counter {
267
+ background-color: var(--color-btn-danger-hover-counter-bg);
268
+ }
269
+
270
+ .octicon {
271
+ color: var(--color-btn-danger-hover-icon);
272
+ }
273
+ }
274
+
275
+ &:active,
276
+ &.selected,
277
+ &[aria-selected='true'] {
278
+ color: var(--color-btn-danger-selected-text);
279
+ background-color: var(--color-btn-danger-selected-bg);
280
+ border-color: var(--color-btn-danger-selected-border);
281
+ box-shadow: var(--color-btn-danger-selected-shadow);
282
+ }
283
+
284
+ &:disabled,
285
+ &.disabled,
286
+ &[aria-disabled='true'] {
287
+ color: var(--color-btn-danger-disabled-text);
288
+ background-color: var(--color-btn-danger-disabled-bg);
289
+ border-color: var(--color-btn-border);
290
+ box-shadow: none;
291
+
292
+ .Counter {
293
+ background-color: var(--color-btn-danger-disabled-counter-bg);
294
+ }
295
+
296
+ .octicon {
297
+ color: var(--color-btn-danger-disabled-text);
298
+ }
299
+ }
300
+
301
+ .Counter {
302
+ color: inherit;
303
+ background-color: var(--color-btn-danger-counter-bg);
304
+ }
305
+ }
306
+
307
+ // Sizes
308
+ //
309
+ // Tweak `line-height` to make them smaller.
310
+ .btn-sm {
311
+ // stylelint-disable-next-line primer/spacing
312
+ padding: 3px 12px;
313
+ font-size: $font-size-small;
314
+ // stylelint-disable-next-line primer/typography
315
+ line-height: 20px;
316
+
317
+ .octicon {
318
+ vertical-align: text-top;
319
+ }
320
+ }
321
+
322
+ // Large button adds more padding around text. Use font-size utils to increase font-size.. e.g, <p class="text-gamma"><button class="btn btn-large btn-primary" type="button">Big green button</button></p>
323
+ .btn-large {
324
+ // stylelint-disable-next-line primer/spacing
325
+ padding: $em-spacer-6 1.5em;
326
+ font-size: inherit;
327
+ line-height: $lh-default;
328
+
329
+ // stylelint-disable-next-line primer/borders
330
+ border-radius: 0.5em;
331
+ }
332
+
333
+ // Full-width button
334
+ //
335
+ // These buttons expand to the full width of their parent container
336
+ .btn-block {
337
+ display: block;
338
+ width: 100%;
339
+ text-align: center;
340
+ }
@@ -0,0 +1,4 @@
1
+ @import '../support/index.scss';
2
+ @import './button.scss';
3
+ @import './button-group.scss';
4
+ @import './misc.scss';
@@ -0,0 +1,231 @@
1
+ // stylelint-disable selector-max-type
2
+
3
+ // Link-like buttons
4
+ //
5
+ // This class is for styling <button> and <input> elements to look like links
6
+ .btn-link {
7
+ display: inline-block;
8
+ padding: 0;
9
+ font-size: inherit;
10
+ color: var(--color-accent-fg);
11
+ text-decoration: none;
12
+ white-space: nowrap;
13
+ cursor: pointer;
14
+ user-select: none;
15
+ background-color: transparent;
16
+ border: 0;
17
+ appearance: none; // Corrects inability to style clickable `input` types in iOS.
18
+
19
+ &:hover {
20
+ text-decoration: underline;
21
+ }
22
+
23
+ &:disabled,
24
+ &[aria-disabled='true'] {
25
+ &,
26
+ &:hover {
27
+ color: var(--color-primer-fg-disabled);
28
+ cursor: default;
29
+ }
30
+ }
31
+
32
+ &:not(.dropdown-item) {
33
+ &:focus,
34
+ &:focus-visible {
35
+ border-radius: $border-radius;
36
+ outline-offset: 0;
37
+ }
38
+ }
39
+ }
40
+
41
+ // Invisible button
42
+ //
43
+ // Typically used as a "cancel" button next to a .btn
44
+ .btn-invisible {
45
+ color: var(--color-accent-fg);
46
+ background-color: transparent; // Reset default gradient backgrounds and colors
47
+ border: 0;
48
+ border-radius: $border-radius;
49
+ box-shadow: none;
50
+
51
+ &:hover,
52
+ &.zeroclipboard-is-hover {
53
+ color: var(--color-accent-fg);
54
+ background-color: var(--color-btn-hover-bg);
55
+ outline: none;
56
+ box-shadow: none;
57
+ }
58
+
59
+ &:active,
60
+ &.selected,
61
+ &[aria-selected='true'],
62
+ &.zeroclipboard-is-active {
63
+ color: var(--color-accent-fg);
64
+ background: none;
65
+ border-color: var(--color-btn-active-border);
66
+
67
+ @include focusOutline;
68
+ }
69
+
70
+ &:active &.zeroclipboard-is-active {
71
+ background-color: var(--color-btn-selected-bg);
72
+ }
73
+
74
+ &:disabled,
75
+ &.disabled,
76
+ &[aria-disabled='true'] {
77
+ color: var(--color-primer-fg-disabled);
78
+ background-color: transparent;
79
+ }
80
+ }
81
+
82
+ // Octicon button
83
+ //
84
+ // Icon-only buttons
85
+ .btn-octicon {
86
+ display: inline-block;
87
+ // stylelint-disable-next-line primer/spacing
88
+ padding: 5px;
89
+ // stylelint-disable-next-line primer/spacing
90
+ margin-left: 5px;
91
+ line-height: $lh-condensed-ultra;
92
+ color: var(--color-fg-muted);
93
+ vertical-align: middle;
94
+
95
+ // For `<button>` elements
96
+ background: transparent;
97
+ border: 0;
98
+ box-shadow: none;
99
+
100
+ &:hover {
101
+ color: var(--color-accent-fg);
102
+ }
103
+
104
+ &:focus,
105
+ &:focus-visible {
106
+ border-radius: $border-radius;
107
+ }
108
+
109
+ &.disabled,
110
+ &[aria-disabled='true'] {
111
+ color: var(--color-primer-fg-disabled);
112
+ cursor: default;
113
+
114
+ &:hover {
115
+ color: var(--color-primer-fg-disabled);
116
+ }
117
+ }
118
+ }
119
+
120
+ .btn-octicon-danger:hover {
121
+ color: var(--color-danger-fg);
122
+ }
123
+
124
+ // Close button
125
+ //
126
+ // Typically used with an octicon-x
127
+ .close-button {
128
+ padding: 0;
129
+ color: var(--color-fg-muted);
130
+ background: transparent;
131
+ border: 0;
132
+
133
+ &:hover {
134
+ color: var(--color-fg-default);
135
+ }
136
+
137
+ &:active {
138
+ @include focusOutline;
139
+ }
140
+ }
141
+
142
+ // Hidden text button
143
+ //
144
+ // Use `.hidden-text-expander` to indicate and expand hidden text.
145
+ .hidden-text-expander {
146
+ display: block;
147
+
148
+ &.inline {
149
+ position: relative;
150
+ top: -1px;
151
+ display: inline-block;
152
+ // stylelint-disable-next-line primer/spacing
153
+ margin-left: 5px;
154
+ line-height: 0;
155
+ }
156
+ }
157
+
158
+ .hidden-text-expander a,
159
+ .ellipsis-expander {
160
+ display: inline-block;
161
+ height: 12px;
162
+ // stylelint-disable-next-line primer/spacing
163
+ padding: 0 5px 5px;
164
+ font-size: $font-size-small;
165
+ font-weight: $font-weight-bold;
166
+ // stylelint-disable-next-line primer/typography
167
+ line-height: 6px;
168
+ color: var(--color-fg-default);
169
+ text-decoration: none;
170
+ vertical-align: middle;
171
+ background: var(--color-neutral-muted);
172
+ border: 0;
173
+ // stylelint-disable-next-line primer/borders
174
+ border-radius: 1px;
175
+
176
+ &:hover {
177
+ text-decoration: none;
178
+ background-color: var(--color-accent-muted);
179
+ }
180
+
181
+ &:active {
182
+ color: var(--color-fg-on-emphasis);
183
+ background-color: var(--color-accent-emphasis);
184
+ }
185
+ }
186
+
187
+ // Social button count
188
+ // TODO: Deprecate? Use BtnGroup instead?
189
+
190
+ .btn-with-count {
191
+ float: left;
192
+ border-top-right-radius: 0;
193
+ border-bottom-right-radius: 0;
194
+
195
+ &:focus {
196
+ z-index: 1;
197
+ }
198
+ }
199
+
200
+ // Social count bubble
201
+ //
202
+ // A container that is used for social bubbles counts.
203
+
204
+ .social-count {
205
+ position: relative;
206
+ float: left;
207
+ // stylelint-disable-next-line primer/spacing
208
+ padding: 3px 12px;
209
+ font-size: $font-size-small;
210
+ font-weight: $font-weight-bold;
211
+ // stylelint-disable-next-line primer/typography
212
+ line-height: 20px;
213
+ color: var(--color-fg-default);
214
+ vertical-align: middle;
215
+ background-color: var(--color-canvas-default);
216
+ border: $border-width $border-style var(--color-btn-border);
217
+ border-left: 0;
218
+ border-top-right-radius: $border-radius;
219
+ border-bottom-right-radius: $border-radius;
220
+ box-shadow: var(--color-shadow-small), var(--color-primer-shadow-highlight);
221
+
222
+ &:hover,
223
+ &:active {
224
+ text-decoration: none;
225
+ }
226
+
227
+ &:hover {
228
+ color: var(--color-accent-fg);
229
+ cursor: pointer;
230
+ }
231
+ }
@@ -0,0 +1,12 @@
1
+ // All themes
2
+
3
+ @import './themes/light.scss';
4
+ @import './themes/light_colorblind.scss';
5
+ @import './themes/light_high_contrast.scss';
6
+ @import './themes/light_tritanopia.scss';
7
+ @import './themes/dark.scss';
8
+ @import './themes/dark_dimmed.scss';
9
+ @import './themes/dark_high_contrast.scss';
10
+ @import './themes/dark_colorblind.scss';
11
+ @import './themes/dark_tritanopia.scss';
12
+ @import './native.scss';
@@ -0,0 +1,22 @@
1
+ // color-scheme
2
+ // Enables color modes for native elements
3
+
4
+ @include color-mode(light) { color-scheme: light; }
5
+
6
+ @include color-mode(dark) { color-scheme: dark; }
7
+
8
+ [data-color-mode] {
9
+ color: var(--color-fg-default);
10
+ background-color: var(--color-canvas-default);
11
+ }
12
+
13
+ // Windows High Contrast mode
14
+
15
+ // Improves focus state for various components when Windows High Contrast mode is enabled
16
+ // stylelint-disable selector-max-type
17
+ @media (forced-colors: active) {
18
+ body {
19
+ --color-accent-emphasis: Highlight;
20
+ --color-fg-on-emphasis: LinkText;
21
+ }
22
+ }
@@ -0,0 +1,6 @@
1
+ @import '../../support/index.scss';
2
+ @import '@primer/primitives/dist/scss/colors/_dark.scss';
3
+
4
+ @include color-mode-theme(dark) {
5
+ @include primer-colors-dark;
6
+ }
@@ -0,0 +1,6 @@
1
+ @import '../../support/index.scss';
2
+ @import '@primer/primitives/dist/scss/colors/_dark_colorblind.scss';
3
+
4
+ @include color-mode-theme(dark_colorblind) {
5
+ @include primer-colors-dark_colorblind;
6
+ }
@@ -0,0 +1,6 @@
1
+ @import '../../support/index.scss';
2
+ @import '@primer/primitives/dist/scss/colors/_dark_dimmed.scss';
3
+
4
+ @include color-mode-theme(dark_dimmed) {
5
+ @include primer-colors-dark_dimmed;
6
+ }
@@ -0,0 +1,6 @@
1
+ @import '../../support/index.scss';
2
+ @import '@primer/primitives/dist/scss/colors/_dark_high_contrast.scss';
3
+
4
+ @include color-mode-theme(dark_high_contrast) {
5
+ @include primer-colors-dark_high_contrast;
6
+ }
@@ -0,0 +1,6 @@
1
+ @import '../../support/index.scss';
2
+ @import '@primer/primitives/dist/scss/colors/_dark_tritanopia.scss';
3
+
4
+ @include color-mode-theme(dark_tritanopia) {
5
+ @include primer-colors-dark_tritanopia;
6
+ }
@@ -0,0 +1,6 @@
1
+ @import '../../support/index.scss';
2
+ @import '@primer/primitives/dist/scss/colors/_light.scss';
3
+
4
+ @include color-mode-theme(light, true) {
5
+ @include primer-colors-light;
6
+ }
@@ -0,0 +1,6 @@
1
+ @import '../../support/index.scss';
2
+ @import '@primer/primitives/dist/scss/colors/_light_colorblind.scss';
3
+
4
+ @include color-mode-theme(light_colorblind) {
5
+ @include primer-colors-light_colorblind;
6
+ }
@@ -0,0 +1,6 @@
1
+ @import '../../support/index.scss';
2
+ @import '@primer/primitives/dist/scss/colors/_light_high_contrast.scss';
3
+
4
+ @include color-mode-theme(light_high_contrast) {
5
+ @include primer-colors-light_high_contrast;
6
+ }
@@ -0,0 +1,6 @@
1
+ @import '../../support/index.scss';
2
+ @import '@primer/primitives/dist/scss/colors/_light_tritanopia.scss';
3
+
4
+ @include color-mode-theme(light_tritanopia) {
5
+ @include primer-colors-light_tritanopia;
6
+ }