@primer/css 0.0.0-1ea75fe → 0.0.0-202110100305

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/CHANGELOG.md +1231 -132
  2. package/CODE_OF_CONDUCT.md +1 -1
  3. package/CONTRIBUTING.md +85 -0
  4. package/DEVELOP.md +11 -69
  5. package/LICENSE +1 -1
  6. package/README.md +13 -15
  7. package/RELEASING.md +5 -72
  8. package/actionlist/action-list-item-divider.scss +42 -0
  9. package/actionlist/action-list-item.scss +444 -0
  10. package/actionlist/action-list-variables.scss +8 -0
  11. package/actionlist/action-list.scss +33 -0
  12. package/actionlist/index.scss +5 -0
  13. package/alerts/README.md +11 -22
  14. package/alerts/flash.scss +91 -21
  15. package/alerts/index.scss +2 -2
  16. package/autocomplete/README.md +25 -0
  17. package/autocomplete/autocomplete.scss +58 -0
  18. package/autocomplete/index.scss +4 -0
  19. package/autocomplete/suggester.scss +92 -0
  20. package/avatars/README.md +11 -23
  21. package/avatars/avatar-parent-child.scss +4 -3
  22. package/avatars/avatar-stack.scss +21 -13
  23. package/avatars/avatar.scss +31 -3
  24. package/avatars/circle-badge.scss +5 -4
  25. package/avatars/index.scss +5 -5
  26. package/base/README.md +11 -22
  27. package/base/base.scss +5 -4
  28. package/base/index.scss +6 -4
  29. package/base/kbd.scss +20 -0
  30. package/base/normalize.scss +5 -5
  31. package/base/octicons.scss +6 -0
  32. package/base/typography-base.scss +2 -0
  33. package/blankslate/README.md +11 -23
  34. package/blankslate/blankslate.scss +25 -12
  35. package/blankslate/index.scss +2 -2
  36. package/box/README.md +11 -23
  37. package/box/box.scss +52 -44
  38. package/box/index.scss +2 -2
  39. package/branch-name/README.md +11 -23
  40. package/branch-name/branch-name.scss +18 -8
  41. package/branch-name/index.scss +2 -2
  42. package/breadcrumb/README.md +17 -13
  43. package/breadcrumb/breadcrumb.scss +15 -5
  44. package/breadcrumb/index.scss +2 -2
  45. package/buttons/README.md +11 -23
  46. package/buttons/button-group.scss +2 -0
  47. package/buttons/button.scss +243 -143
  48. package/buttons/index.scss +4 -3
  49. package/buttons/misc.scss +222 -0
  50. package/color-modes/index.scss +9 -0
  51. package/color-modes/native.scss +10 -0
  52. package/color-modes/themes/dark.scss +7 -0
  53. package/color-modes/themes/dark_colorblind.scss +7 -0
  54. package/color-modes/themes/dark_dimmed.scss +7 -0
  55. package/color-modes/themes/dark_high_contrast.scss +7 -0
  56. package/color-modes/themes/light.scss +7 -0
  57. package/color-modes/themes/light_colorblind.scss +7 -0
  58. package/core/README.md +11 -23
  59. package/core/index.scss +19 -20
  60. package/deprecations.js +24 -0
  61. package/deprecations.json +539 -0
  62. package/dist/actionlist.css +2 -0
  63. package/dist/actionlist.css.map +1 -0
  64. package/dist/actionlist.js +1 -0
  65. package/dist/alerts.css +1 -2
  66. package/dist/alerts.css.map +1 -1
  67. package/dist/alerts.js +1 -1
  68. package/dist/autocomplete.css +2 -0
  69. package/dist/autocomplete.css.map +1 -0
  70. package/dist/autocomplete.js +1 -0
  71. package/dist/avatars.css +1 -2
  72. package/dist/avatars.css.map +1 -1
  73. package/dist/avatars.js +1 -1
  74. package/dist/base.css +1 -2
  75. package/dist/base.css.map +1 -1
  76. package/dist/base.js +1 -1
  77. package/dist/blankslate.css +1 -2
  78. package/dist/blankslate.css.map +1 -1
  79. package/dist/blankslate.js +1 -1
  80. package/dist/box.css +1 -2
  81. package/dist/box.css.map +1 -1
  82. package/dist/box.js +1 -1
  83. package/dist/branch-name.css +1 -2
  84. package/dist/branch-name.css.map +1 -1
  85. package/dist/branch-name.js +1 -1
  86. package/dist/breadcrumb.css +1 -2
  87. package/dist/breadcrumb.css.map +1 -1
  88. package/dist/breadcrumb.js +1 -1
  89. package/dist/buttons.css +1 -2
  90. package/dist/buttons.css.map +1 -1
  91. package/dist/buttons.js +1 -1
  92. package/dist/color-modes.css +2 -0
  93. package/dist/color-modes.css.map +1 -0
  94. package/dist/color-modes.js +1 -0
  95. package/dist/core.css +3 -4
  96. package/dist/core.css.map +1 -1
  97. package/dist/core.js +1 -1
  98. package/dist/deprecations.json +539 -0
  99. package/dist/dropdown.css +2 -0
  100. package/dist/dropdown.css.map +1 -0
  101. package/dist/dropdown.js +1 -0
  102. package/dist/forms.css +1 -2
  103. package/dist/forms.css.map +1 -1
  104. package/dist/forms.js +1 -1
  105. package/dist/header.css +2 -0
  106. package/dist/header.css.map +1 -0
  107. package/dist/header.js +1 -0
  108. package/dist/labels.css +1 -2
  109. package/dist/labels.css.map +1 -1
  110. package/dist/labels.js +1 -1
  111. package/dist/layout.css +1 -2
  112. package/dist/layout.css.map +1 -1
  113. package/dist/layout.js +1 -1
  114. package/dist/links.css +2 -0
  115. package/dist/links.css.map +1 -0
  116. package/dist/links.js +1 -0
  117. package/dist/loaders.css +2 -0
  118. package/dist/loaders.css.map +1 -0
  119. package/dist/loaders.js +1 -0
  120. package/dist/markdown.css +1 -2
  121. package/dist/markdown.css.map +1 -1
  122. package/dist/markdown.js +1 -1
  123. package/dist/marketing-buttons.css +1 -2
  124. package/dist/marketing-buttons.css.map +1 -1
  125. package/dist/marketing-buttons.js +1 -1
  126. package/dist/marketing-support.css +1 -2
  127. package/dist/marketing-support.js +1 -1
  128. package/dist/marketing-type.css +1 -2
  129. package/dist/marketing-type.css.map +1 -1
  130. package/dist/marketing-type.js +1 -1
  131. package/dist/marketing-utilities.css +1 -2
  132. package/dist/marketing-utilities.css.map +1 -1
  133. package/dist/marketing-utilities.js +1 -1
  134. package/dist/marketing.css +3 -4
  135. package/dist/marketing.css.map +1 -1
  136. package/dist/marketing.js +1 -1
  137. package/dist/meta.json +316 -273
  138. package/dist/navigation.css +1 -2
  139. package/dist/navigation.css.map +1 -1
  140. package/dist/navigation.js +1 -1
  141. package/dist/pagination.css +1 -2
  142. package/dist/pagination.css.map +1 -1
  143. package/dist/pagination.js +1 -1
  144. package/dist/popover.css +1 -2
  145. package/dist/popover.css.map +1 -1
  146. package/dist/popover.js +1 -1
  147. package/dist/primer.css +13 -14
  148. package/dist/primer.css.map +1 -1
  149. package/dist/primer.js +1 -1
  150. package/dist/product.css +3 -4
  151. package/dist/product.css.map +1 -1
  152. package/dist/product.js +1 -1
  153. package/dist/progress.css +1 -2
  154. package/dist/progress.css.map +1 -1
  155. package/dist/progress.js +1 -1
  156. package/dist/select-menu.css +2 -0
  157. package/dist/select-menu.css.map +1 -0
  158. package/dist/select-menu.js +1 -0
  159. package/dist/stats/actionlist.json +1 -0
  160. package/dist/stats/alerts.json +1 -1
  161. package/dist/stats/autocomplete.json +1 -0
  162. package/dist/stats/avatars.json +1 -1
  163. package/dist/stats/base.json +1 -1
  164. package/dist/stats/blankslate.json +1 -1
  165. package/dist/stats/box.json +1 -1
  166. package/dist/stats/branch-name.json +1 -1
  167. package/dist/stats/breadcrumb.json +1 -1
  168. package/dist/stats/buttons.json +1 -1
  169. package/dist/stats/color-modes.json +1 -0
  170. package/dist/stats/core.json +1 -1
  171. package/dist/stats/dropdown.json +1 -0
  172. package/dist/stats/forms.json +1 -1
  173. package/dist/stats/header.json +1 -0
  174. package/dist/stats/labels.json +1 -1
  175. package/dist/stats/layout.json +1 -1
  176. package/dist/stats/links.json +1 -0
  177. package/dist/stats/loaders.json +1 -0
  178. package/dist/stats/markdown.json +1 -1
  179. package/dist/stats/marketing-buttons.json +1 -1
  180. package/dist/stats/marketing-support.json +1 -1
  181. package/dist/stats/marketing-type.json +1 -1
  182. package/dist/stats/marketing-utilities.json +1 -1
  183. package/dist/stats/marketing.json +1 -1
  184. package/dist/stats/navigation.json +1 -1
  185. package/dist/stats/pagination.json +1 -1
  186. package/dist/stats/popover.json +1 -1
  187. package/dist/stats/primer.json +1 -1
  188. package/dist/stats/product.json +1 -1
  189. package/dist/stats/progress.json +1 -1
  190. package/dist/stats/select-menu.json +1 -0
  191. package/dist/stats/subhead.json +1 -1
  192. package/dist/stats/support.json +1 -1
  193. package/dist/stats/table-object.json +1 -1
  194. package/dist/stats/timeline.json +1 -0
  195. package/dist/stats/toasts.json +1 -0
  196. package/dist/stats/tooltips.json +1 -1
  197. package/dist/stats/truncate.json +1 -1
  198. package/dist/stats/utilities.json +1 -1
  199. package/dist/subhead.css +1 -2
  200. package/dist/subhead.css.map +1 -1
  201. package/dist/subhead.js +1 -1
  202. package/dist/support.css +1 -1
  203. package/dist/support.js +1 -1
  204. package/dist/table-object.css +0 -1
  205. package/dist/table-object.css.map +1 -1
  206. package/dist/table-object.js +1 -1
  207. package/dist/timeline.css +2 -0
  208. package/dist/timeline.css.map +1 -0
  209. package/dist/timeline.js +1 -0
  210. package/dist/toasts.css +2 -0
  211. package/dist/toasts.css.map +1 -0
  212. package/dist/toasts.js +1 -0
  213. package/dist/tooltips.css +1 -2
  214. package/dist/tooltips.css.map +1 -1
  215. package/dist/tooltips.js +1 -1
  216. package/dist/truncate.css +1 -2
  217. package/dist/truncate.css.map +1 -1
  218. package/dist/truncate.js +1 -1
  219. package/dist/utilities.css +1 -2
  220. package/dist/utilities.css.map +1 -1
  221. package/dist/utilities.js +1 -1
  222. package/dist/variables.json +1352 -0
  223. package/dropdown/README.md +25 -0
  224. package/dropdown/dropdown.scss +272 -0
  225. package/dropdown/index.scss +2 -0
  226. package/forms/README.md +11 -23
  227. package/forms/form-control.scss +76 -32
  228. package/forms/form-group.scss +83 -46
  229. package/forms/form-select.scss +17 -5
  230. package/forms/form-validation.scss +51 -32
  231. package/forms/index.scss +7 -6
  232. package/forms/input-group.scss +2 -0
  233. package/forms/radio-group.scss +62 -0
  234. package/header/README.md +25 -0
  235. package/header/header.scss +47 -0
  236. package/header/index.scss +2 -0
  237. package/index.scss +7 -4
  238. package/labels/README.md +11 -23
  239. package/labels/counters.scss +24 -13
  240. package/labels/diffstat.scss +37 -0
  241. package/labels/index.scss +8 -4
  242. package/labels/issue-labels.scss +23 -0
  243. package/labels/labels.scss +59 -40
  244. package/labels/mixins.scss +32 -0
  245. package/labels/states.scss +40 -19
  246. package/layout/README.md +11 -23
  247. package/layout/container.scss +0 -8
  248. package/layout/grid-offset.scss +11 -11
  249. package/layout/grid.scss +23 -23
  250. package/layout/index.scss +8 -5
  251. package/layout/layout-beta.scss +339 -0
  252. package/layout/layout.scss +185 -0
  253. package/layout/mixins.scss +79 -0
  254. package/links/README.md +25 -0
  255. package/links/index.scss +3 -0
  256. package/links/link.scss +55 -0
  257. package/loaders/README.md +25 -0
  258. package/loaders/index.scss +2 -0
  259. package/loaders/loaders.scss +19 -0
  260. package/markdown/README.md +11 -23
  261. package/markdown/blob-csv.scss +4 -2
  262. package/markdown/code.scss +11 -3
  263. package/markdown/footnotes.scss +37 -0
  264. package/markdown/headings.scss +13 -4
  265. package/markdown/images.scss +15 -4
  266. package/markdown/index.scss +9 -8
  267. package/markdown/lists.scss +19 -5
  268. package/markdown/markdown-body.scss +15 -18
  269. package/markdown/tables.scss +8 -5
  270. package/marketing/README.md +11 -23
  271. package/marketing/buttons/button.scss +82 -61
  272. package/marketing/index.scss +6 -11
  273. package/marketing/support/index.scss +1 -0
  274. package/marketing/support/mixins.scss +66 -0
  275. package/marketing/support/variables.scss +110 -51
  276. package/marketing/type/typography.scss +100 -62
  277. package/marketing/utilities/animations.scss +9 -0
  278. package/marketing/utilities/filters.scss +0 -1
  279. package/marketing/utilities/index.scss +2 -3
  280. package/marketing/utilities/layout.scss +32 -11
  281. package/navigation/README.md +11 -23
  282. package/navigation/filter-list.scss +16 -14
  283. package/navigation/index.scss +7 -6
  284. package/navigation/menu.scss +44 -35
  285. package/navigation/sidenav.scss +108 -0
  286. package/navigation/subnav.scss +28 -21
  287. package/navigation/tabnav.scss +45 -21
  288. package/navigation/underline-nav.scss +36 -22
  289. package/package.json +78 -107
  290. package/pagination/README.md +12 -14
  291. package/pagination/index.scss +2 -2
  292. package/pagination/pagination.scss +61 -37
  293. package/popover/README.md +11 -24
  294. package/popover/index.scss +2 -2
  295. package/popover/popover.scss +18 -9
  296. package/postcss.config.cjs +22 -0
  297. package/prettier.config.cjs +1 -0
  298. package/product/README.md +11 -23
  299. package/product/index.scss +19 -17
  300. package/progress/README.md +11 -23
  301. package/progress/index.scss +2 -2
  302. package/progress/progress.scss +11 -1
  303. package/select-menu/README.md +25 -0
  304. package/select-menu/index.scss +3 -0
  305. package/select-menu/select-menu.scss +464 -0
  306. package/stylelint.config.cjs +16 -0
  307. package/subhead/README.md +11 -25
  308. package/subhead/index.scss +2 -2
  309. package/subhead/subhead.scss +10 -4
  310. package/support/README.md +12 -18
  311. package/support/index.scss +7 -8
  312. package/support/mixins/color-modes.scss +106 -0
  313. package/support/mixins/misc.scss +9 -12
  314. package/support/mixins/typography.scss +1 -1
  315. package/support/variables/layout.scss +103 -11
  316. package/support/variables/misc.scss +7 -30
  317. package/support/variables/typography.scss +4 -4
  318. package/table-object/README.md +11 -24
  319. package/table-object/index.scss +1 -1
  320. package/timeline/README.md +25 -0
  321. package/timeline/index.scss +2 -0
  322. package/timeline/timeline-item.scss +95 -0
  323. package/toasts/README.md +25 -0
  324. package/toasts/index.scss +2 -0
  325. package/toasts/toasts.scss +124 -0
  326. package/tooltips/README.md +11 -24
  327. package/tooltips/index.scss +2 -2
  328. package/tooltips/tooltips.scss +17 -8
  329. package/truncate/README.md +11 -24
  330. package/truncate/index.scss +2 -1
  331. package/truncate/truncate.scss +41 -7
  332. package/utilities/README.md +11 -23
  333. package/utilities/animations.scss +14 -2
  334. package/utilities/borders.scss +29 -65
  335. package/utilities/box-shadow.scss +8 -9
  336. package/utilities/colors.scss +71 -110
  337. package/utilities/details.scss +12 -4
  338. package/utilities/flexbox.scss +14 -14
  339. package/utilities/index.scss +12 -12
  340. package/utilities/layout.scss +28 -22
  341. package/utilities/margin.scss +34 -17
  342. package/utilities/padding.scss +13 -9
  343. package/utilities/typography.scss +54 -25
  344. package/utilities/visibility-display.scss +0 -13
  345. package/.browserslistrc +0 -6
  346. package/.eslintrc.json +0 -13
  347. package/.stylelintrc.json +0 -9
  348. package/MIGRATING.md +0 -70
  349. package/bin/primer-migrate +0 -86
  350. package/build/build.css +0 -23
  351. package/build/build.json +0 -1
  352. package/build/index.js +0 -1
  353. package/dist/marketing-support.css.map +0 -1
  354. package/dist/support.css.map +0 -1
  355. package/fonts/Inter-Medium.woff +0 -0
  356. package/fonts/Inter-Regular.woff +0 -0
  357. package/layout/columns.scss +0 -56
  358. package/marketing/buttons/README.md +0 -39
  359. package/marketing/support/README.md +0 -31
  360. package/marketing/type/README.md +0 -39
  361. package/marketing/utilities/README.md +0 -36
  362. package/marketing/utilities/margin.scss +0 -18
  363. package/marketing/utilities/padding.scss +0 -28
  364. package/postcss.config.js +0 -14
  365. package/prettier.config.js +0 -1
  366. package/support/mixins/buttons.scss +0 -160
  367. package/support/variables/color-system.scss +0 -243
  368. package/support/variables/colors.scss +0 -70
package/build/index.js DELETED
@@ -1 +0,0 @@
1
- module.exports = {cssstats: require('./build.json')}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/marketing/src/marketing/support/variables.scss","../src/marketing/src/support/variables/typography.scss"],"names":[],"mappings":"AAGA,WACE,iBAAkB,CAClB,iBAAkB,CAClB,eCoBsB,CDnBtB,kHAA4G,CAG9G,WACE,iBAAkB,CAClB,iBAAkB,CAClB,eCYwB,CDXxB,uHAAiH","file":"marketing-support.css","sourcesContent":["$marketing-font-path: \"/primer-marketing-support/fonts/\" !default;\n\n// Type\n@font-face {\n font-family: Inter;\n font-style: normal;\n font-weight: $font-weight-normal;\n src: local(\"Inter\"), local(\"Inter-Regular\"), url(\"#{$marketing-font-path}Inter-Regular.woff\") format(\"woff\");\n}\n\n@font-face {\n font-family: Inter;\n font-style: normal;\n font-weight: $font-weight-semibold;\n src: local(\"Inter Medium\"), local(\"Inter-Medium\"), url(\"#{$marketing-font-path}Inter-Medium.woff\") format(\"woff\");\n}\n\n$font-mktg: Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !default;\n\n// Builds upon primer-support/variables/typography.scss\n$h000-size: 64px !default;\n$h000-size-mobile: 48px !default;\n\n// Colors\n$green-mktg: mix($green-500, $green-400, 50%);\n$blue-mktg: mix($blue-400, $blue-500, 42%);\n\n// Animations\n$transition-time: 0.4s;\n\n// Increases primer-core scale first by 8px for spacer-7 then by 16px step increments for spacer-8 to spacer-12\n// i.e. After 40px, we have 48, 64, 80, 96, etc.\n$spacer-7: $spacer * 6 !default; // 48px\n$spacer-8: $spacer * 8 !default; // 64px\n$spacer-9: $spacer * 10 !default; // 80px\n$spacer-10: $spacer * 12 !default; // 96px\n$spacer-11: $spacer * 14 !default; // 112px\n$spacer-12: $spacer * 16 !default; // 128px\n\n$marketingSpacers: $spacer-7, $spacer-8, $spacer-9, $spacer-10, $spacer-11, $spacer-12;\n$allSpacers: $spacer-1, $spacer-2, $spacer-3, $spacer-4, $spacer-5, $spacer-6, $spacer-7, $spacer-8, $spacer-9, $spacer-10, $spacer-11, $spacer-12;\n\n$marketing-spacers: (\n 7: $spacer-7,\n 8: $spacer-8,\n 9: $spacer-9,\n 10: $spacer-10,\n 11: $spacer-11,\n 12: $spacer-12,\n) !default;\n\n$marketing-all-spacers: map-merge(\n (\n 0: 0,\n 1: $spacer-1,\n 2: $spacer-2,\n 3: $spacer-3,\n 4: $spacer-4,\n 5: $spacer-5,\n 6: $spacer-6,\n ),\n $marketing-spacers,\n) !default;\n\n$marketing-position-variants: (\n \"\": \"\",\n md: \"-md\",\n lg: \"-lg\",\n) !default;\n","// Typography variables\n// stylelint-disable declaration-bang-space-before\n\n// Heading sizes - mobile\n// h4—h6 remain the same size on both mobile & desktop\n$h00-size-mobile: 40px !default;\n$h0-size-mobile: 32px !default;\n$h1-size-mobile: 26px !default;\n$h2-size-mobile: 22px !default;\n$h3-size-mobile: 18px !default;\n\n// Heading sizes - desktop\n$h00-size: 48px !default;\n$h0-size: 40px !default;\n$h1-size: 32px !default;\n$h2-size: 24px !default;\n$h3-size: 20px !default;\n$h4-size: 16px !default;\n$h5-size: 14px !default;\n$h6-size: 12px !default;\n\n$font-size-small: 12px !default;\n\n// Font weights\n$font-weight-bold: 600 !default;\n$font-weight-semibold: 500 !default;\n$font-weight-normal: 400 !default;\n$font-weight-light: 300 !default;\n\n// Line heights\n$lh-condensed-ultra: 1 !default;\n$lh-condensed: 1.25 !default;\n$lh-default: 1.5 !default;\n\n// Font stacks\n$body-font: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !default;\n\n// Monospace font stack\n$mono-font: \"SFMono-Regular\", Consolas, \"Liberation Mono\", Menlo, Courier, monospace !default;\n\n// The base body size\n$body-font-size: 14px !default;\n$body-line-height: $lh-default !default;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"support.css"}
Binary file
Binary file
@@ -1,56 +0,0 @@
1
- // Grid system
2
- //
3
- // Create rows with `.columns` to clear the floated columns and outdent the
4
- // padding on `.column`s with negative margin for alignment.
5
-
6
- @warn ".columns, .column, .one-third, .two-thirds, .one-fourth, .one-half, .three-fourths, .one-fifth, .four-fifths, .centered will be deprecated in 12.0.0 please migrate to grid.scss";
7
-
8
- .columns {
9
- margin-right: -$grid-gutter;
10
- margin-left: -$grid-gutter;
11
- @include clearfix;
12
- }
13
-
14
- // Base class for every column (requires a column width from below)
15
- .column {
16
- float: left;
17
- padding-right: $grid-gutter;
18
- padding-left: $grid-gutter;
19
- }
20
-
21
- // Column widths
22
- .one-third {
23
- width: 33.333333%;
24
- }
25
-
26
- .two-thirds {
27
- width: 66.666667%;
28
- }
29
-
30
- .one-fourth {
31
- width: 25%;
32
- }
33
-
34
- .one-half {
35
- width: 50%;
36
- }
37
-
38
- .three-fourths {
39
- width: 75%;
40
- }
41
-
42
- .one-fifth {
43
- width: 20%;
44
- }
45
-
46
- .four-fifths {
47
- width: 80%;
48
- }
49
-
50
- // Centers content horizontally. Can be used inside or outside the grid.
51
- .centered {
52
- display: block;
53
- float: none;
54
- margin-right: auto;
55
- margin-left: auto;
56
- }
@@ -1,39 +0,0 @@
1
- # Primer Marketing CSS Buttons
2
-
3
- > Buttons are used for actions, like in forms, while textual hyperlinks are used for destinations, or moving from one page to another.
4
-
5
- This repository is a module of the full [primer][primer] repository.
6
-
7
- ## Documentation
8
-
9
- Find further documentation at [primer.style/css/utilities/marketing-buttons](https://primer.style/css/utilities/marketing-buttons).
10
-
11
- ## Usage
12
-
13
- The source files included are written in [Sass][sass] (`scss`) You can simply point your sass `include-path` at your `node_modules` directory and import it like this.
14
-
15
- ```scss
16
- @import "primer-marketing-buttons/index.scss";
17
- ```
18
-
19
- You can also import specific portions of the module by importing those partials from the `/lib/` folder. _Make sure you import any requirements along with the modules._
20
-
21
- ## Build
22
-
23
- For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css`
24
-
25
- ```
26
- $ npm run build
27
- ```
28
-
29
- ## License
30
-
31
- MIT © [GitHub](https://github.com/)
32
-
33
- [primer]: https://github.com/primer/css
34
- [primer-support]: https://github.com/primer/css-support
35
- [support]: https://github.com/primer/css-support
36
- [docs]: https://primer.style/css
37
- [npm]: https://www.npmjs.com/
38
- [install-npm]: https://docs.npmjs.com/getting-started/installing-node
39
- [sass]: http://sass-lang.com/
@@ -1,31 +0,0 @@
1
- # Primer Marketing Support
2
-
3
- > Support files are Sass variables, mixins, and functions that we import into different bases for use across components, objects, and utilities. Sharing these common properties across GitHub sites helps us to keep our styles more consistent.
4
- >
5
- > Most of the time to include these you'll only need to add `@import "./primer-marketing-support";` to the top of your bundle. If you want only a specific partial you can import them separately.
6
-
7
- This repository is a module of the full [primer][primer] repository.
8
-
9
- ## Usage
10
-
11
- The source files included are written in [Sass][sass] (`scss`) You can simply point your sass `include-path` at your `node_modules` directory and import it like this.
12
-
13
- ```scss
14
- @import "primer-marketing-support/index.scss";
15
- ```
16
-
17
- You can also import specific portions of the module by importing those partials from the `/lib/` folder. _Make sure you import any requirements along with the modules._
18
-
19
- ## Documentation
20
-
21
- Find further documentation at [primer.style/css/support/marketing-variables](https://primer.style/css/support/marketing-variables).
22
-
23
- ## License
24
-
25
- MIT © [GitHub](https://github.com/)
26
-
27
- [primer]: https://github.com/primer/css
28
- [docs]: https://primer.style/css
29
- [npm]: https://www.npmjs.com/
30
- [install-npm]: https://docs.npmjs.com/getting-started/installing-node
31
- [sass]: http://sass-lang.com/
@@ -1,39 +0,0 @@
1
- # Primer Marketing CSS Typography
2
-
3
- > Flash messages, or alerts, inform users of successful or pending actions. Use them sparingly. Don’t show more than one at a time.
4
-
5
- This repository is a module of the full [primer][primer] repository.
6
-
7
- ## Documentation
8
-
9
- Find further documentation at [primer.style/css/utilities/marketing-type](https://primer.style/css/utilities/marketing-type).
10
-
11
- ## Usage
12
-
13
- The source files included are written in [Sass][sass] (`scss`) You can simply point your sass `include-path` at your `node_modules` directory and import it like this.
14
-
15
- ```scss
16
- @import "primer-marketing-typography/index.scss";
17
- ```
18
-
19
- You can also import specific portions of the module by importing those partials from the `/lib/` folder. _Make sure you import any requirements along with the modules._
20
-
21
- ## Build
22
-
23
- For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css`
24
-
25
- ```
26
- $ npm run build
27
- ```
28
-
29
- ## License
30
-
31
- MIT © [GitHub](https://github.com/)
32
-
33
- [primer]: https://github.com/primer/css
34
- [primer-support]: https://github.com/primer/css-support
35
- [support]: https://github.com/primer/css-support
36
- [docs]: https://primer.style/css
37
- [npm]: https://www.npmjs.com/
38
- [install-npm]: https://docs.npmjs.com/getting-started/installing-node
39
- [sass]: http://sass-lang.com/
@@ -1,36 +0,0 @@
1
- # Primer Marketing CSS Utilities
2
-
3
- This repository is a module of the full [primer-marketing-css][primer-marketing-css] repository.
4
-
5
- ## Usage
6
-
7
- The source files included are written in [Sass][sass] (`scss`) You can simply point your sass `include-path` at your `node_modules` directory and import it like this.
8
-
9
- ```scss
10
- @import "primer-marketing-utilities/index.scss";
11
- ```
12
-
13
- You can also import specific portions of the module by importing those partials from the `/lib/` folder. _Make sure you import any requirements along with the modules._
14
-
15
- ## Build
16
-
17
- For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css` The built css file is also included in the npm package.
18
-
19
- ```
20
- $ npm run build
21
- ```
22
-
23
- ## Documentation
24
-
25
- Find further documentation at [primer.style/css/utilities](https://primer.style/css/utilities).
26
-
27
- ## License
28
-
29
- [MIT](./LICENSE) © [GitHub](https://github.com/)
30
-
31
- [primer]: https://github.com/primer/css
32
- [docs]: https://primer.style/css
33
- [npm]: https://www.npmjs.com/
34
- [install-npm]: https://docs.npmjs.com/getting-started/installing-node
35
- [sass]: http://sass-lang.com/
36
- [primer-marketing-css]: https://github.com/primer/css-marketing
@@ -1,18 +0,0 @@
1
- // Margin spacer utilities for marketing
2
- // Utilities only added for y-direction margin (i.e. top & bottom)
3
- // stylelint-disable block-opening-brace-space-before, declaration-colon-space-before, primer/selector-no-utility, comment-empty-line-before
4
-
5
- @each $breakpoint, $variant in $responsive-variants {
6
- @include breakpoint($breakpoint) {
7
- @each $scale, $size in $marketing-spacers {
8
-
9
- .mt#{$variant}-#{$scale} { margin-top: $size !important; }
10
- .mb#{$variant}-#{$scale} { margin-bottom: $size !important; }
11
-
12
- .my#{$variant}-#{$scale} {
13
- margin-top: $size !important;
14
- margin-bottom: $size !important;
15
- }
16
- }
17
- }
18
- }
@@ -1,28 +0,0 @@
1
- // Padding spacer utilities for marketing
2
- // stylelint-disable block-opening-brace-space-before, declaration-colon-space-before
3
- // stylelint-disable comment-empty-line-before
4
-
5
- @each $breakpoint, $variant in $responsive-variants {
6
- @include breakpoint($breakpoint) {
7
- @each $scale, $size in $marketing-spacers {
8
-
9
- /* Set a #{$size} padding for all sides */
10
- .p#{$variant}-#{$scale} { padding: #{$size} !important; }
11
-
12
- /* Set a #{$size} padding to the top */
13
- .pt#{$variant}-#{$scale} { padding-top: #{$size} !important; }
14
- /* Set a #{$size} padding to the right */
15
- .pr#{$variant}-#{$scale} { padding-right: #{$size} !important; }
16
- /* Set a #{$size} padding to the bottom */
17
- .pb#{$variant}-#{$scale} { padding-bottom: #{$size} !important; }
18
- /* Set a #{$size} padding to the left */
19
- .pl#{$variant}-#{$scale} { padding-left: #{$size} !important; }
20
-
21
- /* Set a #{$size} padding to the top & bottom */
22
- .py#{$variant}-#{$scale} {
23
- padding-top: #{$size} !important;
24
- padding-bottom: #{$size} !important;
25
- }
26
- }
27
- }
28
- }
package/postcss.config.js DELETED
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- parser: 'postcss-scss',
3
- map: {
4
- sourcesContent: true,
5
- annotation: true
6
- },
7
- plugins: {
8
- 'postcss-node-sass': {
9
- includePaths: ['node_modules'],
10
- outputStyle: 'compressed'
11
- },
12
- 'autoprefixer': {}
13
- }
14
- }
@@ -1 +0,0 @@
1
- module.exports = require('eslint-plugin-github/prettier.config')
@@ -1,160 +0,0 @@
1
- // stylelint-disable block-closing-brace-newline-after
2
-
3
- // Button color generator for primary and themed buttons
4
-
5
- // New button hotness
6
- @mixin btn-solid($color, $bg, $bg2) {
7
- color: $color;
8
- background-color: $bg2;
9
- background-image: linear-gradient(-180deg, $bg 0%, $bg2 90%);
10
-
11
- @if $bg == $gray-000 {
12
- &:focus,
13
- &.focus {
14
- box-shadow: $btn-input-focus-shadow;
15
- }
16
-
17
- &:hover,
18
- &.hover {
19
- background-color: darken($bg2, 3%);
20
- background-image: linear-gradient(-180deg, darken($bg, 3%) 0%, darken($bg2, 3%) 90%);
21
- background-position: 0 -$em-spacer-5;
22
- border-color: rgba($black, 0.35);
23
- }
24
-
25
- &:active,
26
- &.selected,
27
- [open] > & {
28
- background-color: darken(desaturate($bg, 10%), 6%);
29
- background-image: none;
30
- border-color: rgba($black, 0.35); // repeat to avoid shift on click-drag off of button
31
- box-shadow: $btn-active-shadow;
32
- }
33
-
34
- &:disabled,
35
- &.disabled {
36
- color: rgba($color, 0.4);
37
- background-color: $bg2;
38
- background-image: none;
39
- border-color: transparentize($black, 0.8); // back to default .btn
40
- box-shadow: none;
41
- }
42
-
43
- } @else {
44
- &:focus,
45
- &.focus {
46
- box-shadow: 0 0 0 0.2em rgba($bg, 0.4);
47
- }
48
-
49
- &:hover,
50
- &.hover {
51
- background-color: darken($bg2, 2%);
52
- background-image: linear-gradient(-180deg, darken($bg, 2%) 0%, darken($bg2, 2%) 90%);
53
- background-position: 0 -$em-spacer-5;
54
- border-color: $black-fade-50;
55
- }
56
-
57
- &:active,
58
- &.selected,
59
- [open] > & {
60
- background-color: darken(mix($bg, $bg2, 50%), 7%);
61
- background-image: none;
62
- border-color: $black-fade-50; // repeat to avoid shift on click-drag off of button
63
- box-shadow: $btn-active-shadow;
64
- }
65
-
66
- &:disabled,
67
- &.disabled {
68
- color: rgba($color, 0.75);
69
- background-color: mix($bg2, $white, 50%);
70
- background-image: none;
71
- border-color: transparentize($black, 0.8); // repeat .btn default to avoid shift on click-drag off of button
72
- box-shadow: none;
73
- }
74
-
75
- .Counter {
76
- color: darken($bg, 8%);
77
- background-color: $white;
78
- }
79
- }
80
- }
81
-
82
- // Inverse button hover style
83
- @mixin btn-inverse($color, $bg, $bg2) {
84
- color: $color;
85
- background-color: $bg;
86
- background-image: linear-gradient(-180deg, $bg 0%, $bg2 90%);
87
-
88
- &:focus {
89
- box-shadow: 0 0 0 0.2em rgba($color, 0.4);
90
- }
91
-
92
- &:hover {
93
- color: $text-white;
94
- background-color: $color;
95
- background-image: linear-gradient(-180deg, lighten($color, 10%) 0%, $color 90%);
96
- border-color: $black-fade-50;
97
-
98
- .Counter {
99
- color: $text-white;
100
- }
101
- }
102
-
103
- &:active,
104
- &.selected,
105
- [open] > & {
106
- color: $text-white;
107
- background-color: darken($color, 5%);
108
- background-image: none;
109
- border-color: $black-fade-50;
110
- box-shadow: $btn-active-shadow;
111
- }
112
-
113
- &:disabled,
114
- &.disabled {
115
- color: rgba($color, 0.4);
116
- background-color: $bg2;
117
- background-image: none;
118
- border-color: transparentize($black, 0.8); // back to default .btn
119
- box-shadow: none;
120
- }
121
- }
122
-
123
- // Outline color generator for btn-outline to make the hover state inverse the text and bg colors.
124
- @mixin btn-outline($text-color: $text-blue, $bg-color: $bg-white) {
125
- color: $text-color;
126
- background-color: $bg-color;
127
- background-image: none;
128
-
129
- .Counter {
130
- background-color: rgba($black, 0.07);
131
- }
132
-
133
- &:hover,
134
- &:active,
135
- &.selected,
136
- [open] > & {
137
- color: $bg-color;
138
- background-color: $text-color;
139
- background-image: none;
140
- border-color: $text-color;
141
-
142
- .Counter {
143
- color: $text-color;
144
- background-color: $bg-color;
145
- }
146
- }
147
-
148
- &:focus {
149
- border-color: $text-color;
150
- box-shadow: 0 0 0 0.2em rgba($text-color, 0.4);
151
- }
152
-
153
- &:disabled,
154
- &.disabled {
155
- color: $black-fade-30;
156
- background-color: $bg-white;
157
- border-color: $black-fade-15;
158
- box-shadow: none;
159
- }
160
- }
@@ -1,243 +0,0 @@
1
- //
2
- //
3
- // -------- Grays --------
4
- $gray-000: #fafbfc !default;
5
- $gray-100: #f6f8fa !default;
6
- $gray-200: #e1e4e8 !default;
7
- $gray-300: #d1d5da !default;
8
- $gray-400: #959da5 !default;
9
- $gray-500: #6a737d !default;
10
- $gray-600: #586069 !default;
11
- $gray-700: #444d56 !default;
12
- $gray-800: #2f363d !default;
13
- $gray-900: #24292e !default; // body font color
14
-
15
- // -------- Blue --------
16
- $blue-000: #f1f8ff !default;
17
- $blue-100: #dbedff !default;
18
- $blue-200: #c8e1ff !default;
19
- $blue-300: #79b8ff !default;
20
- $blue-400: #2188ff !default;
21
- $blue-500: #0366d6 !default; // Default: Passes AA with #fff
22
- $blue-600: #005cc5 !default;
23
- $blue-700: #044289 !default;
24
- $blue-800: #032f62 !default;
25
- $blue-900: #05264c !default; // Passes with 1/2/300 blues
26
-
27
- // -------- Green --------
28
- $green-000: #f0fff4 !default;
29
- $green-100: #dcffe4 !default;
30
- $green-200: #bef5cb !default;
31
- $green-300: #85e89d !default;
32
- $green-400: #34d058 !default;
33
- $green-500: #28a745 !default; // Default. passes AA Large
34
- $green-600: #22863a !default; // Text green, passes AA on #fff
35
- $green-700: #176f2c !default;
36
- $green-800: #165c26 !default;
37
- $green-900: #144620 !default;
38
-
39
- // -------- Yellow --------
40
- $yellow-000: #fffdef !default;
41
- $yellow-100: #fffbdd !default;
42
- $yellow-200: #fff5b1 !default;
43
- $yellow-300: #ffea7f !default;
44
- $yellow-400: #ffdf5d !default;
45
- $yellow-500: #ffd33d !default;
46
- $yellow-600: #f9c513 !default;
47
- $yellow-700: #dbab09 !default;
48
- $yellow-800: #b08800 !default;
49
- $yellow-900: #735c0f !default;
50
-
51
- // -------- Orange --------
52
- $orange-000: #fff8f2 !default;
53
- $orange-100: #ffebda !default;
54
- $orange-200: #ffd1ac !default;
55
- $orange-300: #ffab70 !default;
56
- $orange-400: #fb8532 !default;
57
- $orange-500: #f66a0a !default; // Default. passes AA Large with #fff
58
- $orange-600: #e36209 !default;
59
- $orange-700: #d15704 !default;
60
- $orange-800: #c24e00 !default;
61
- $orange-900: #a04100 !default;
62
-
63
- // -------- Red --------
64
- $red-000: #ffeef0 !default;
65
- $red-100: #ffdce0 !default;
66
- $red-200: #fdaeb7 !default;
67
- $red-300: #f97583 !default;
68
- $red-400: #ea4a5a !default;
69
- $red-500: #d73a49 !default; // Default. passes AA
70
- $red-600: #cb2431 !default;
71
- $red-700: #b31d28 !default;
72
- $red-800: #9e1c23 !default;
73
- $red-900: #86181d !default;
74
-
75
- // -------- Purple --------
76
- $purple-000: #f5f0ff !default;
77
- $purple-100: #e6dcfd !default;
78
- $purple-200: #d1bcf9 !default;
79
- $purple-300: #b392f0 !default;
80
- $purple-400: #8a63d2 !default;
81
- $purple-500: #6f42c1 !default; // passes AA with #fff
82
- $purple-600: #5a32a3 !default;
83
- $purple-700: #4c2889 !default;
84
- $purple-800: #3a1d6e !default;
85
- $purple-900: #29134e !default;
86
-
87
- // -------- Pink --------
88
- $pink-000: #ffeef8 !default;
89
- $pink-100: #fedbf0 !default;
90
- $pink-200: #f9b3dd !default;
91
- $pink-300: #f692ce !default;
92
- $pink-400: #ec6cb9 !default;
93
- $pink-500: #ea4aaa !default;
94
- $pink-600: #d03592 !default;
95
- $pink-700: #b93a86 !default;
96
- $pink-800: #99306f !default;
97
- $pink-900: #6d224f !default;
98
-
99
- // -------- Fades --------
100
- // Black based on same hue as $gray-900
101
- $black: #1b1f23 !default;
102
- $white: #fff !default;
103
-
104
- $black-fade-15: rgba($black, 0.15) !default;
105
- $black-fade-30: rgba($black, 0.3) !default;
106
- $black-fade-50: rgba($black, 0.5) !default;
107
- $black-fade-70: rgba($black, 0.7) !default;
108
- $black-fade-85: rgba($black, 0.85) !default;
109
-
110
- $white-fade-15: rgba($white, 0.15) !default;
111
- $white-fade-30: rgba($white, 0.3) !default;
112
- $white-fade-50: rgba($white, 0.5) !default;
113
- $white-fade-70: rgba($white, 0.7) !default;
114
- $white-fade-85: rgba($white, 0.85) !default;
115
-
116
- // -------- Color defaults --------
117
- $red: $red-500 !default;
118
- $purple: $purple-500 !default;
119
- $blue: $blue-500 !default;
120
- $green: $green-500 !default;
121
- $yellow: $yellow-500 !default;
122
- $orange: $orange-500 !default;
123
-
124
- $gray-dark: $gray-900 !default;
125
- $gray-light: $gray-400 !default;
126
- $gray: $gray-500 !default;
127
-
128
- // -------- Color gradient maps --------
129
-
130
- $grays: (
131
- 0: $gray-000,
132
- 1: $gray-100,
133
- 2: $gray-200,
134
- 3: $gray-300,
135
- 4: $gray-400,
136
- 5: $gray-500,
137
- 6: $gray-600,
138
- 7: $gray-700,
139
- 8: $gray-800,
140
- 9: $gray-900,
141
- ) !default;
142
-
143
- $blues: (
144
- 0: $blue-000,
145
- 1: $blue-100,
146
- 2: $blue-200,
147
- 3: $blue-300,
148
- 4: $blue-400,
149
- 5: $blue-500,
150
- 6: $blue-600,
151
- 7: $blue-700,
152
- 8: $blue-800,
153
- 9: $blue-900,
154
- ) !default;
155
-
156
- $greens: (
157
- 0: $green-000,
158
- 1: $green-100,
159
- 2: $green-200,
160
- 3: $green-300,
161
- 4: $green-400,
162
- 5: $green-500,
163
- 6: $green-600,
164
- 7: $green-700,
165
- 8: $green-800,
166
- 9: $green-900,
167
- ) !default;
168
-
169
- $yellows: (
170
- 0: $yellow-000,
171
- 1: $yellow-100,
172
- 2: $yellow-200,
173
- 3: $yellow-300,
174
- 4: $yellow-400,
175
- 5: $yellow-500,
176
- 6: $yellow-600,
177
- 7: $yellow-700,
178
- 8: $yellow-800,
179
- 9: $yellow-900,
180
- ) !default;
181
-
182
- $oranges: (
183
- 0: $orange-000,
184
- 1: $orange-100,
185
- 2: $orange-200,
186
- 3: $orange-300,
187
- 4: $orange-400,
188
- 5: $orange-500,
189
- 6: $orange-600,
190
- 7: $orange-700,
191
- 8: $orange-800,
192
- 9: $orange-900,
193
- ) !default;
194
-
195
- $reds: (
196
- 0: $red-000,
197
- 1: $red-100,
198
- 2: $red-200,
199
- 3: $red-300,
200
- 4: $red-400,
201
- 5: $red-500,
202
- 6: $red-600,
203
- 7: $red-700,
204
- 8: $red-800,
205
- 9: $red-900,
206
- ) !default;
207
-
208
- $purples: (
209
- 0: $purple-000,
210
- 1: $purple-100,
211
- 2: $purple-200,
212
- 3: $purple-300,
213
- 4: $purple-400,
214
- 5: $purple-500,
215
- 6: $purple-600,
216
- 7: $purple-700,
217
- 8: $purple-800,
218
- 9: $purple-900,
219
- ) !default;
220
-
221
- $pinks: (
222
- 0: $pink-000,
223
- 1: $pink-100,
224
- 2: $pink-200,
225
- 3: $pink-300,
226
- 4: $pink-400,
227
- 5: $pink-500,
228
- 6: $pink-600,
229
- 7: $pink-700,
230
- 8: $pink-800,
231
- 9: $pink-900,
232
- ) !default;
233
-
234
- $hue-maps: (
235
- gray: $grays,
236
- blue: $blues,
237
- green: $greens,
238
- yellow: $yellows,
239
- orange: $oranges,
240
- red: $reds,
241
- purple: $purples,
242
- pink: $pinks,
243
- ) !default;