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

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 (367) hide show
  1. package/CHANGELOG.md +1225 -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 +317 -274
  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 +7 -5
  251. package/layout/layout.scss +185 -0
  252. package/layout/mixins.scss +79 -0
  253. package/links/README.md +25 -0
  254. package/links/index.scss +3 -0
  255. package/links/link.scss +55 -0
  256. package/loaders/README.md +25 -0
  257. package/loaders/index.scss +2 -0
  258. package/loaders/loaders.scss +19 -0
  259. package/markdown/README.md +11 -23
  260. package/markdown/blob-csv.scss +4 -2
  261. package/markdown/code.scss +11 -3
  262. package/markdown/footnotes.scss +37 -0
  263. package/markdown/headings.scss +13 -4
  264. package/markdown/images.scss +15 -4
  265. package/markdown/index.scss +9 -8
  266. package/markdown/lists.scss +19 -5
  267. package/markdown/markdown-body.scss +15 -18
  268. package/markdown/tables.scss +8 -5
  269. package/marketing/README.md +11 -23
  270. package/marketing/buttons/button.scss +82 -61
  271. package/marketing/index.scss +6 -11
  272. package/marketing/support/index.scss +1 -0
  273. package/marketing/support/mixins.scss +66 -0
  274. package/marketing/support/variables.scss +110 -51
  275. package/marketing/type/typography.scss +100 -62
  276. package/marketing/utilities/animations.scss +9 -0
  277. package/marketing/utilities/filters.scss +0 -1
  278. package/marketing/utilities/index.scss +2 -3
  279. package/marketing/utilities/layout.scss +32 -11
  280. package/navigation/README.md +11 -23
  281. package/navigation/filter-list.scss +16 -14
  282. package/navigation/index.scss +7 -6
  283. package/navigation/menu.scss +44 -35
  284. package/navigation/sidenav.scss +108 -0
  285. package/navigation/subnav.scss +28 -21
  286. package/navigation/tabnav.scss +45 -21
  287. package/navigation/underline-nav.scss +36 -22
  288. package/package.json +78 -107
  289. package/pagination/README.md +12 -14
  290. package/pagination/index.scss +2 -2
  291. package/pagination/pagination.scss +61 -37
  292. package/popover/README.md +11 -24
  293. package/popover/index.scss +2 -2
  294. package/popover/popover.scss +18 -9
  295. package/postcss.config.cjs +22 -0
  296. package/prettier.config.cjs +1 -0
  297. package/product/README.md +11 -23
  298. package/product/index.scss +19 -17
  299. package/progress/README.md +11 -23
  300. package/progress/index.scss +2 -2
  301. package/progress/progress.scss +11 -1
  302. package/select-menu/README.md +25 -0
  303. package/select-menu/index.scss +3 -0
  304. package/select-menu/select-menu.scss +464 -0
  305. package/stylelint.config.cjs +16 -0
  306. package/subhead/README.md +11 -25
  307. package/subhead/index.scss +2 -2
  308. package/subhead/subhead.scss +10 -4
  309. package/support/README.md +12 -18
  310. package/support/index.scss +7 -8
  311. package/support/mixins/color-modes.scss +106 -0
  312. package/support/mixins/misc.scss +9 -12
  313. package/support/mixins/typography.scss +1 -1
  314. package/support/variables/layout.scss +106 -11
  315. package/support/variables/misc.scss +7 -30
  316. package/support/variables/typography.scss +4 -4
  317. package/table-object/README.md +11 -24
  318. package/table-object/index.scss +1 -1
  319. package/timeline/README.md +25 -0
  320. package/timeline/index.scss +2 -0
  321. package/timeline/timeline-item.scss +95 -0
  322. package/toasts/README.md +25 -0
  323. package/toasts/index.scss +2 -0
  324. package/toasts/toasts.scss +124 -0
  325. package/tooltips/README.md +11 -24
  326. package/tooltips/index.scss +2 -2
  327. package/tooltips/tooltips.scss +17 -8
  328. package/truncate/README.md +11 -24
  329. package/truncate/index.scss +2 -1
  330. package/truncate/truncate.scss +41 -7
  331. package/utilities/README.md +11 -23
  332. package/utilities/animations.scss +14 -2
  333. package/utilities/borders.scss +29 -65
  334. package/utilities/box-shadow.scss +8 -9
  335. package/utilities/colors.scss +71 -110
  336. package/utilities/details.scss +12 -4
  337. package/utilities/flexbox.scss +14 -14
  338. package/utilities/index.scss +12 -12
  339. package/utilities/layout.scss +28 -22
  340. package/utilities/margin.scss +34 -17
  341. package/utilities/padding.scss +13 -9
  342. package/utilities/typography.scss +54 -25
  343. package/utilities/visibility-display.scss +0 -13
  344. package/.browserslistrc +0 -6
  345. package/.eslintrc.json +0 -13
  346. package/.stylelintrc.json +0 -9
  347. package/MIGRATING.md +0 -70
  348. package/bin/primer-migrate +0 -86
  349. package/build/build.css +0 -23
  350. package/build/build.json +0 -1
  351. package/build/index.js +0 -1
  352. package/dist/marketing-support.css.map +0 -1
  353. package/dist/support.css.map +0 -1
  354. package/fonts/Inter-Medium.woff +0 -0
  355. package/fonts/Inter-Regular.woff +0 -0
  356. package/layout/columns.scss +0 -56
  357. package/marketing/buttons/README.md +0 -39
  358. package/marketing/support/README.md +0 -31
  359. package/marketing/type/README.md +0 -39
  360. package/marketing/utilities/README.md +0 -36
  361. package/marketing/utilities/margin.scss +0 -18
  362. package/marketing/utilities/padding.scss +0 -28
  363. package/postcss.config.js +0 -14
  364. package/prettier.config.js +0 -1
  365. package/support/mixins/buttons.scss +0 -160
  366. package/support/variables/color-system.scss +0 -243
  367. package/support/variables/colors.scss +0 -70
@@ -1,118 +1,79 @@
1
- // Color utilities
2
- // stylelint-disable primer/selector-no-utility
3
- // stylelint-disable block-opening-brace-space-before, comment-empty-line-before
4
-
5
- // background colors
6
- /* Set the background to $bg-white */
7
- .bg-white { background-color: $bg-white !important; }
8
- /* Set the background to $bg-blue */
9
- .bg-blue { background-color: $bg-blue !important; }
10
- /* Set the background to $bg-blue-light */
11
- .bg-blue-light { background-color: $bg-blue-light !important; }
12
- /* Set the background to $bg-gray-dark */
13
- .bg-gray-dark { background-color: $bg-gray-dark !important; }
14
- /* Set the background to $bg-gray */
15
- .bg-gray { background-color: $bg-gray !important; }
16
- /* Set the background to $bg-gray-light */
17
- .bg-gray-light { background-color: $bg-gray-light !important; }
18
- /* Set the background to $bg-green */
19
- .bg-green { background-color: $bg-green !important; }
20
- /* Set the background to $bg-green-light */
21
- .bg-green-light { background-color: $bg-green-light !important; }
22
- /* Set the background to $bg-red */
23
- .bg-red { background-color: $bg-red !important; }
24
- /* Set the background to $bg-red-light */
25
- .bg-red-light { background-color: $bg-red-light !important; }
26
- /* Set the background to $bg-yellow */
27
- .bg-yellow { background-color: $bg-yellow !important; }
28
- /* Set the background to $bg-yellow-light */
29
- .bg-yellow-light { background-color: $bg-yellow-light !important; }
30
- /* Set the background to $bg-purple */
31
- .bg-purple { background-color: $bg-purple !important; }
32
- /* Set the background to $bg-pink */
33
- .bg-pink { background-color: $bg-pink !important; }
34
- /* Set the background to $bg-purple-light */
35
- .bg-purple-light { background-color: $bg-purple-light !important; }
36
-
37
- // Generate a foreground and background utility for every shade of every hue
38
- @each $hue, $shades in $hue-maps {
39
- @each $index, $color in $shades {
40
- .color-#{$hue}-#{$index} { color: $color !important; }
41
- .bg-#{$hue}-#{$index} { background-color: $color !important; }
42
- }
43
- }
1
+ // stylelint-disable block-opening-brace-space-before
44
2
 
45
- .bg-shade-gradient {
46
- background-image: linear-gradient(180deg, rgba($black, 0.065), rgba($black, 0)) !important;
47
- background-repeat: no-repeat !important;
48
- background-size: 100% 200px !important;
49
- }
3
+ // Foreground
50
4
 
51
- // text colors
52
- /* Set the text color to $text-blue */
53
- .text-blue { color: $text-blue !important; }
54
- /* Set the text color to $text-red */
55
- .text-red { color: $text-red !important; }
56
- /* Set the text color to $text-gray-light */
57
- .text-gray-light { color: $text-gray-light !important; }
58
- /* Set the text color to $text-gray */
59
- .text-gray { color: $text-gray !important; }
60
- /* Set the text color to $text-gray-dark */
61
- .text-gray-dark { color: $text-gray-dark !important; }
62
- /* Set the text color to $text-green */
63
- .text-green { color: $text-green !important; }
64
- /* Set the text color to $text-orange */
65
- .text-orange { color: $text-orange !important; }
66
- /* Set the text color to $text-orange-light */
67
- .text-orange-light { color: $text-orange-light !important; }
68
- /* Set the text color to $text-purple */
69
- .text-purple { color: $text-purple !important; }
70
- /* Set the text color to $text-pink */
71
- .text-pink { color: $text-pink !important; }
72
- /* Set the text color to $text-white */
73
- .text-white { color: $text-white !important; }
74
- /* Set the text color to inherit */
75
- .text-inherit { color: inherit !important; }
76
-
77
- // Text states
78
- // These can probably all be regular utilities
79
- .text-pending { color: $yellow-800 !important; }
80
- // Separate text and background colors in future to improve a11y
81
- .bg-pending { color: $yellow-700 !important; }
82
-
83
- // Link colors
84
- // Sets the links color to $text-gray and $text-blue on hover
85
- .link-gray {
86
- color: $text-gray !important;
87
-
88
- &:hover {
89
- color: $text-blue !important;
90
- }
91
- }
5
+ .color-fg-default { color: var(--color-fg-default) !important; }
6
+ .color-fg-muted { color: var(--color-fg-muted) !important; }
7
+ .color-fg-subtle { color: var(--color-fg-subtle) !important; }
92
8
 
93
- // Sets the links color to $text-gray-dark and $text-blue on hover
94
- .link-gray-dark {
95
- color: $text-gray-dark !important;
9
+ .color-fg-accent { color: var(--color-accent-fg) !important; }
10
+ .color-fg-success { color: var(--color-success-fg) !important; }
11
+ .color-fg-attention { color: var(--color-attention-fg) !important; }
12
+ .color-fg-severe { color: var(--color-severe-fg) !important; }
13
+ .color-fg-danger { color: var(--color-danger-fg) !important; }
14
+ .color-fg-done { color: var(--color-done-fg) !important; }
15
+ .color-fg-sponsors { color: var(--color-sponsors-fg) !important; }
96
16
 
97
- &:hover {
98
- color: $text-blue !important;
99
- }
100
- }
17
+ .color-fg-on-emphasis { color: var(--color-fg-on-emphasis) !important; }
101
18
 
102
- /* Set the link color to $text-blue on hover
103
- Useful when you want only part of a link to turn blue on hover */
104
- .link-hover-blue {
105
- &:hover {
106
- color: $text-blue !important;
107
- }
108
- }
19
+ // Background
20
+
21
+ .color-bg-default { background-color: var(--color-canvas-default) !important; }
22
+ .color-bg-overlay { background-color: var(--color-canvas-overlay) !important; }
23
+ .color-bg-inset { background-color: var(--color-canvas-inset) !important; }
24
+ .color-bg-subtle { background-color: var(--color-canvas-subtle) !important; }
25
+ .color-bg-emphasis { background-color: var(--color-neutral-emphasis-plus) !important; }
26
+
27
+ .color-bg-accent { background-color: var(--color-accent-subtle) !important; }
28
+ .color-bg-accent-emphasis { background-color: var(--color-accent-emphasis) !important; }
29
+
30
+ .color-bg-success { background-color: var(--color-success-subtle) !important; }
31
+ .color-bg-success-emphasis { background-color: var(--color-success-emphasis) !important; }
32
+
33
+ .color-bg-attention { background-color: var(--color-attention-subtle) !important; }
34
+ .color-bg-attention-emphasis { background-color: var(--color-attention-emphasis) !important; }
35
+
36
+ .color-bg-severe { background-color: var(--color-severe-subtle) !important; }
37
+ .color-bg-severe-emphasis { background-color: var(--color-severe-emphasis) !important; }
38
+
39
+ .color-bg-danger { background-color: var(--color-danger-subtle) !important; }
40
+ .color-bg-danger-emphasis { background-color: var(--color-danger-emphasis) !important; }
41
+
42
+ .color-bg-done { background-color: var(--color-done-subtle) !important; }
43
+ .color-bg-done-emphasis { background-color: var(--color-done-emphasis) !important; }
44
+
45
+ .color-bg-sponsors { background-color: var(--color-sponsors-subtle) !important; }
46
+ .color-bg-sponsors-emphasis { background-color: var(--color-sponsors-emphasis) !important; }
47
+
48
+ // Border
49
+
50
+ .color-border-default { border-color: var(--color-border-default) !important; }
51
+ .color-border-muted { border-color: var(--color-border-muted) !important; }
52
+ .color-border-subtle { border-color: var(--color-border-subtle) !important; }
53
+
54
+ .color-border-accent { border-color: var(--color-accent-muted) !important; }
55
+ .color-border-accent-emphasis { border-color: var(--color-accent-emphasis) !important; }
56
+
57
+ .color-border-success { border-color: var(--color-success-muted) !important; }
58
+ .color-border-success-emphasis { border-color: var(--color-success-emphasis) !important; }
59
+
60
+ .color-border-attention { border-color: var(--color-attention-muted) !important; }
61
+ .color-border-attention-emphasis { border-color: var(--color-attention-emphasis) !important; }
62
+
63
+ .color-border-severe { border-color: var(--color-severe-muted) !important; }
64
+ .color-border-severe-emphasis { border-color: var(--color-severe-emphasis) !important; }
65
+
66
+ .color-border-danger { border-color: var(--color-danger-muted) !important; }
67
+ .color-border-danger-emphasis { border-color: var(--color-danger-emphasis) !important; }
68
+
69
+ .color-border-done { border-color: var(--color-done-muted) !important; }
70
+ .color-border-done-emphasis { border-color: var(--color-done-emphasis) !important; }
71
+
72
+ .color-border-sponsors { border-color: var(--color-sponsors-muted) !important; }
73
+ .color-border-sponsors-emphasis { border-color: var(--color-sponsors-emphasis) !important; }
109
74
 
110
- /* Make a link $text-gray, then $text-blue on hover and removes the underline */
111
- .muted-link {
112
- color: $text-gray !important;
75
+ // Misc
113
76
 
114
- &:hover {
115
- color: $text-blue !important;
116
- text-decoration: none;
117
- }
77
+ .color-fg-inherit {
78
+ color: inherit !important;
118
79
  }
@@ -1,4 +1,3 @@
1
- // stylelint-disable primer/selector-no-utility
2
1
  // stylelint-disable selector-max-type
3
2
 
4
3
  .details-overlay[open] > summary::before {
@@ -10,11 +9,20 @@
10
9
  z-index: 80;
11
10
  display: block;
12
11
  cursor: default;
13
- content: " ";
12
+ content: ' ';
14
13
  background: transparent;
15
14
  }
16
15
 
17
16
  .details-overlay-dark[open] > summary::before {
18
- z-index: 99;
19
- background: $black-fade-50;
17
+ z-index: 111;
18
+ background: var(--color-primer-canvas-backdrop);
19
+ }
20
+
21
+ .details-reset {
22
+ // Remove marker added by the display: list-item browser default
23
+ > summary { list-style: none; }
24
+ // Remove marker added by details polyfill
25
+ > summary::before { display: none; }
26
+ // Remove marker added by Chrome
27
+ > summary::-webkit-details-marker { display: none; }
20
28
  }
@@ -1,17 +1,17 @@
1
1
  // Flex utility classes
2
- // stylelint-disable primer/selector-no-utility
3
- // stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before, comment-empty-line-before
4
-
2
+ // stylelint-disable block-opening-brace-space-before
5
3
  @each $breakpoint, $variant in $responsive-variants {
6
4
  @include breakpoint($breakpoint) {
7
5
  // Flexbox classes
8
6
  // Container
9
- .flex#{$variant}-row { flex-direction: row !important; }
10
- .flex#{$variant}-row-reverse { flex-direction: row-reverse !important; }
11
- .flex#{$variant}-column { flex-direction: column !important; }
7
+ .flex#{$variant}-row { flex-direction: row !important; }
8
+ .flex#{$variant}-row-reverse { flex-direction: row-reverse !important; }
9
+ .flex#{$variant}-column { flex-direction: column !important; }
10
+ .flex#{$variant}-column-reverse { flex-direction: column-reverse !important; }
12
11
 
13
- .flex#{$variant}-wrap { flex-wrap: wrap !important; }
14
- .flex#{$variant}-nowrap { flex-wrap: nowrap !important; }
12
+ .flex#{$variant}-wrap { flex-wrap: wrap !important; }
13
+ .flex#{$variant}-nowrap { flex-wrap: nowrap !important; }
14
+ .flex#{$variant}-wrap-reverse { flex-wrap: wrap-reverse !important; }
15
15
 
16
16
  .flex#{$variant}-justify-start { justify-content: flex-start !important; }
17
17
  .flex#{$variant}-justify-end { justify-content: flex-end !important; }
@@ -33,7 +33,9 @@
33
33
  .flex#{$variant}-content-stretch { align-content: stretch !important; }
34
34
 
35
35
  // Item
36
- .flex#{$variant}-auto { flex: 1 1 auto !important; }
36
+ .flex#{$variant}-1 { flex: 1 !important; }
37
+ .flex#{$variant}-auto { flex: auto !important; }
38
+ .flex#{$variant}-grow-0 { flex-grow: 0 !important; }
37
39
  .flex#{$variant}-shrink-0 { flex-shrink: 0 !important; }
38
40
 
39
41
  .flex#{$variant}-self-auto { align-self: auto !important; }
@@ -43,10 +45,8 @@
43
45
  .flex#{$variant}-self-baseline { align-self: baseline !important; }
44
46
  .flex#{$variant}-self-stretch { align-self: stretch !important; }
45
47
 
46
- // Shorthand for equal width and height cols
47
- .flex#{$variant}-item-equal {
48
- flex-grow: 1;
49
- flex-basis: 0;
50
- }
48
+ .flex#{$variant}-order-1 { order: 1 !important; }
49
+ .flex#{$variant}-order-2 { order: 2 !important; }
50
+ .flex#{$variant}-order-none { order: inherit !important; }
51
51
  }
52
52
  }
@@ -1,14 +1,14 @@
1
- @import "../support/index.scss";
1
+ @import '../support/index.scss';
2
2
  // utilities
3
- @import "./animations.scss";
4
- @import "./borders.scss";
5
- @import "./box-shadow.scss";
6
- @import "./colors.scss";
7
- @import "./details.scss";
8
- @import "./flexbox.scss";
9
- @import "./layout.scss";
10
- @import "./margin.scss";
11
- @import "./padding.scss";
12
- @import "./typography.scss";
3
+ @import './animations.scss';
4
+ @import './borders.scss';
5
+ @import './box-shadow.scss';
6
+ @import './colors.scss';
7
+ @import './details.scss';
8
+ @import './flexbox.scss';
9
+ @import './layout.scss';
10
+ @import './margin.scss';
11
+ @import './padding.scss';
12
+ @import './typography.scss';
13
13
  // Visibility and display should always come last in the imports so that they override other utilities with !important
14
- @import "./visibility-display.scss";
14
+ @import './visibility-display.scss';
@@ -1,8 +1,7 @@
1
1
  // Layout
2
- // stylelint-disable primer/selector-no-utility
3
- // stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before, comment-empty-line-before
2
+ // stylelint-disable block-opening-brace-space-before, comment-empty-line-before
4
3
 
5
- // Loop through the breakpoint values
4
+ /* Position */
6
5
  @each $breakpoint, $variant in $responsive-variants {
7
6
  @include breakpoint($breakpoint) {
8
7
  @each $position in $responsive-positions {
@@ -13,14 +12,19 @@
13
12
  }
14
13
  }
15
14
 
16
- /* Set top 0 */
17
- .top-0 { top: 0 !important; }
18
- /* Set right 0 */
19
- .right-0 { right: 0 !important; }
20
- /* Set bottom 0 */
21
- .bottom-0 { bottom: 0 !important; }
22
- /* Set left 0 */
23
- .left-0 { left: 0 !important; }
15
+ /* Final position */
16
+ @each $breakpoint, $variant in $responsive-variants {
17
+ @include breakpoint($breakpoint) {
18
+ .top#{$variant}-0 { top: 0 !important; }
19
+ .right#{$variant}-0 { right: 0 !important; }
20
+ .bottom#{$variant}-0 { bottom: 0 !important; }
21
+ .left#{$variant}-0 { left: 0 !important; }
22
+ .top#{$variant}-auto { top: auto !important; }
23
+ .right#{$variant}-auto { right: auto !important; }
24
+ .bottom#{$variant}-auto { bottom: auto !important; }
25
+ .left#{$variant}-auto { left: auto !important; }
26
+ }
27
+ }
24
28
 
25
29
  /* Vertical align middle */
26
30
  .v-align-middle { vertical-align: middle !important; }
@@ -36,17 +40,15 @@
36
40
  .v-align-baseline { vertical-align: baseline !important; }
37
41
 
38
42
  // Overflow utilities
39
- .overflow-hidden { overflow: hidden !important; }
40
- .overflow-x-hidden { overflow-x: hidden !important; }
41
- .overflow-y-hidden { overflow-y: hidden !important; }
42
-
43
- .overflow-auto { overflow: auto !important; }
44
- .overflow-x-auto { overflow-x: auto !important; }
45
- .overflow-y-auto { overflow-y: auto !important; }
46
-
47
- .overflow-scroll { overflow: scroll !important; }
48
- .overflow-x-scroll { overflow-x: scroll !important; }
49
- .overflow-y-scroll { overflow-y: scroll !important; }
43
+ @each $breakpoint, $variant in $responsive-variants {
44
+ @include breakpoint($breakpoint) {
45
+ @each $overflow in (visible, hidden, auto, scroll) {
46
+ .overflow#{$variant}-#{$overflow} { overflow: $overflow !important; }
47
+ .overflow#{$variant}-x-#{$overflow} { overflow-x: $overflow !important; }
48
+ .overflow#{$variant}-y-#{$overflow} { overflow-y: $overflow !important; }
49
+ }
50
+ }
51
+ }
50
52
 
51
53
  // Clear floats
52
54
  /* Clear floats around the element */
@@ -82,6 +84,10 @@
82
84
 
83
85
  @each $breakpoint, $variant in $responsive-variants {
84
86
  @include breakpoint($breakpoint) {
87
+
88
+ // Auto varients
89
+ .width#{$variant}-auto { width: auto !important; }
90
+
85
91
  /* Set the direction to rtl */
86
92
  .direction#{$variant}-rtl { direction: rtl !important; }
87
93
  /* Set the direction to ltr */
@@ -1,38 +1,48 @@
1
1
  // Margin spacer utilities
2
- // stylelint-disable primer/selector-no-utility
3
2
  // stylelint-disable block-opening-brace-space-before, declaration-colon-space-before, comment-empty-line-before
4
3
 
5
4
  // Loop through the breakpoint values
6
5
  @each $breakpoint, $variant in $responsive-variants {
7
6
  @include breakpoint($breakpoint) {
8
7
  // Loop through the spacer values
9
- @each $scale, $size in $spacer-map {
10
- /* Set a $size margin to all sides at $breakpoint */
11
- .m#{$variant}-#{$scale} { margin: $size !important; }
8
+ @each $scale, $size in $spacer-map-extended {
9
+ @if ($scale < length($spacer-map)) {
10
+ /* Set a $size margin to all sides at $breakpoint */
11
+ .m#{$variant}-#{$scale} { margin: $size !important; }
12
+ }
13
+
12
14
  /* Set a $size margin on the top at $breakpoint */
13
15
  .mt#{$variant}-#{$scale} { margin-top: $size !important; }
14
- /* Set a $size margin on the right at $breakpoint */
15
- .mr#{$variant}-#{$scale} { margin-right: $size !important; }
16
16
  /* Set a $size margin on the bottom at $breakpoint */
17
17
  .mb#{$variant}-#{$scale} { margin-bottom: $size !important; }
18
- /* Set a $size margin on the left at $breakpoint */
19
- .ml#{$variant}-#{$scale} { margin-left: $size !important; }
18
+
19
+ @if ($scale < length($spacer-map)) {
20
+ /* Set a $size margin on the right at $breakpoint */
21
+ .mr#{$variant}-#{$scale} { margin-right: $size !important; }
22
+ /* Set a $size margin on the left at $breakpoint */
23
+ .ml#{$variant}-#{$scale} { margin-left: $size !important; }
24
+ }
20
25
 
21
26
  @if ($size != 0) {
22
27
  /* Set a negative $size margin on top at $breakpoint */
23
- .mt#{$variant}-n#{$scale} { margin-top : -$size !important; }
24
- /* Set a negative $size margin on the right at $breakpoint */
25
- .mr#{$variant}-n#{$scale} { margin-right : -$size !important; }
28
+ .mt#{$variant}-n#{$scale} { margin-top: -$size !important; }
26
29
  /* Set a negative $size margin on the bottom at $breakpoint */
27
30
  .mb#{$variant}-n#{$scale} { margin-bottom: -$size !important; }
28
- /* Set a negative $size margin on the left at $breakpoint */
29
- .ml#{$variant}-n#{$scale} { margin-left : -$size !important; }
31
+
32
+ @if ($scale < length($spacer-map)) {
33
+ /* Set a negative $size margin on the right at $breakpoint */
34
+ .mr#{$variant}-n#{$scale} { margin-right : -$size !important; }
35
+ /* Set a negative $size margin on the left at $breakpoint */
36
+ .ml#{$variant}-n#{$scale} { margin-left : -$size !important; }
37
+ }
30
38
  }
31
39
 
32
- /* Set a $size margin on the left & right at $breakpoint */
33
- .mx#{$variant}-#{$scale} {
34
- margin-right: $size !important;
35
- margin-left: $size !important;
40
+ @if ($scale < length($spacer-map)) {
41
+ /* Set a $size margin on the left & right at $breakpoint */
42
+ .mx#{$variant}-#{$scale} {
43
+ margin-right: $size !important;
44
+ margin-left: $size !important;
45
+ }
36
46
  }
37
47
 
38
48
  /* Set a $size margin on the top & bottom at $breakpoint */
@@ -49,3 +59,10 @@
49
59
  }
50
60
  }
51
61
  }
62
+
63
+ .m-auto { margin: auto !important; }
64
+
65
+ .mt-auto { margin-top: auto !important; }
66
+ .mr-auto { margin-right: auto !important; }
67
+ .mb-auto { margin-bottom: auto !important; }
68
+ .ml-auto { margin-left: auto !important; }
@@ -1,14 +1,16 @@
1
1
  // Padding spacer utilities
2
- // stylelint-disable primer/selector-no-utility
3
- // stylelint-disable block-opening-brace-space-before, declaration-colon-space-before, comment-empty-line-before
2
+ // stylelint-disable block-opening-brace-space-before, comment-empty-line-before
4
3
 
5
4
  // Responsive padding spacer utilities
6
5
  @each $breakpoint, $variant in $responsive-variants {
7
6
  @include breakpoint($breakpoint) {
8
7
  // Loop through the spacer values
9
- @each $scale, $size in $spacer-map {
10
- /* Set a $size padding to all sides at $breakpoint */
11
- .p#{$variant}-#{$scale} { padding: $size !important; }
8
+ @each $scale, $size in $spacer-map-extended {
9
+ @if ($scale < length($spacer-map)) {
10
+ /* Set a $size padding to all sides at $breakpoint */
11
+ .p#{$variant}-#{$scale} { padding: $size !important; }
12
+ }
13
+
12
14
  /* Set a $size padding to the top at $breakpoint */
13
15
  .pt#{$variant}-#{$scale} { padding-top: $size !important; }
14
16
  /* Set a $size padding to the right at $breakpoint */
@@ -18,10 +20,12 @@
18
20
  /* Set a $size padding to the left at $breakpoint */
19
21
  .pl#{$variant}-#{$scale} { padding-left: $size !important; }
20
22
 
21
- /* Set a $size padding to the left & right at $breakpoint */
22
- .px#{$variant}-#{$scale} {
23
- padding-right: $size !important;
24
- padding-left: $size !important;
23
+ @if ($scale < length($spacer-map)) {
24
+ /* Set a $size padding to the left & right at $breakpoint */
25
+ .px#{$variant}-#{$scale} {
26
+ padding-right: $size !important;
27
+ padding-left: $size !important;
28
+ }
25
29
  }
26
30
 
27
31
  /* Set a $size padding to the top & bottom at $breakpoint */