@primer/css 0.0.0-202198211147 → 0.0.0-20220106235309

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 (211) hide show
  1. package/CHANGELOG.md +131 -6
  2. package/DEVELOP.md +15 -0
  3. package/actionlist/action-list-item-divider.scss +42 -0
  4. package/actionlist/action-list-item.scss +421 -194
  5. package/actionlist/action-list-tree.scss +92 -0
  6. package/actionlist/action-list-variables.scss +8 -0
  7. package/actionlist/action-list.scss +20 -38
  8. package/actionlist/index.scss +3 -1
  9. package/alerts/flash.scss +9 -0
  10. package/alerts/index.scss +2 -2
  11. package/autocomplete/autocomplete.scss +1 -1
  12. package/autocomplete/index.scss +3 -3
  13. package/autocomplete/suggester.scss +9 -1
  14. package/avatars/avatar-stack.scss +2 -1
  15. package/avatars/circle-badge.scss +1 -1
  16. package/avatars/index.scss +5 -5
  17. package/base/base.scss +1 -0
  18. package/base/index.scss +6 -7
  19. package/base/normalize.scss +1 -1
  20. package/blankslate/index.scss +2 -3
  21. package/box/box-overlay.scss +40 -0
  22. package/box/index.scss +3 -2
  23. package/branch-name/index.scss +2 -2
  24. package/breadcrumb/breadcrumb.scss +1 -1
  25. package/breadcrumb/index.scss +2 -2
  26. package/buttons/button-group.scss +3 -2
  27. package/buttons/button.scss +14 -14
  28. package/buttons/index.scss +4 -4
  29. package/buttons/misc.scss +14 -10
  30. package/color-modes/index.scss +8 -7
  31. package/color-modes/native.scss +1 -0
  32. package/color-modes/themes/dark.scss +2 -3
  33. package/color-modes/themes/dark_colorblind.scss +6 -0
  34. package/color-modes/themes/dark_dimmed.scss +2 -3
  35. package/color-modes/themes/dark_high_contrast.scss +2 -3
  36. package/color-modes/themes/light.scss +2 -3
  37. package/color-modes/themes/light_colorblind.scss +6 -0
  38. package/color-modes/themes/light_high_contrast.scss +6 -0
  39. package/deprecations.json +9 -7
  40. package/dist/actionlist.css +1 -1
  41. package/dist/actionlist.css.map +1 -1
  42. package/dist/alerts.css +1 -1
  43. package/dist/alerts.css.map +1 -1
  44. package/dist/autocomplete.css +1 -1
  45. package/dist/autocomplete.css.map +1 -1
  46. package/dist/avatars.css +1 -1
  47. package/dist/avatars.css.map +1 -1
  48. package/dist/base.css +1 -1
  49. package/dist/base.css.map +1 -1
  50. package/dist/blankslate.css.map +1 -1
  51. package/dist/box.css +1 -1
  52. package/dist/box.css.map +1 -1
  53. package/dist/branch-name.css.map +1 -1
  54. package/dist/breadcrumb.css.map +1 -1
  55. package/dist/buttons.css +1 -1
  56. package/dist/buttons.css.map +1 -1
  57. package/dist/color-modes.css +1 -1
  58. package/dist/color-modes.css.map +1 -1
  59. package/dist/core.css +1 -1
  60. package/dist/core.css.map +1 -1
  61. package/dist/deprecations.json +9 -7
  62. package/dist/dropdown.css.map +1 -1
  63. package/dist/forms.css +1 -1
  64. package/dist/forms.css.map +1 -1
  65. package/dist/header.css.map +1 -1
  66. package/dist/labels.css +1 -1
  67. package/dist/labels.css.map +1 -1
  68. package/dist/layout.css +1 -1
  69. package/dist/layout.css.map +1 -1
  70. package/dist/links.css.map +1 -1
  71. package/dist/loaders.css.map +1 -1
  72. package/dist/markdown.css.map +1 -1
  73. package/dist/marketing-buttons.css +1 -1
  74. package/dist/marketing-buttons.css.map +1 -1
  75. package/dist/marketing-links.css +2 -0
  76. package/dist/marketing-links.css.map +1 -0
  77. package/dist/marketing-links.js +1 -0
  78. package/dist/marketing-type.css.map +1 -1
  79. package/dist/marketing-utilities.css +1 -1
  80. package/dist/marketing-utilities.css.map +1 -1
  81. package/dist/marketing.css +1 -1
  82. package/dist/marketing.css.map +1 -1
  83. package/dist/meta.json +113 -193
  84. package/dist/navigation.css.map +1 -1
  85. package/dist/pagination.css +1 -1
  86. package/dist/pagination.css.map +1 -1
  87. package/dist/popover.css +1 -1
  88. package/dist/popover.css.map +1 -1
  89. package/dist/primer.css +4 -4
  90. package/dist/primer.css.map +1 -1
  91. package/dist/product.css +1 -1
  92. package/dist/product.css.map +1 -1
  93. package/dist/progress.css.map +1 -1
  94. package/dist/select-menu.css +1 -1
  95. package/dist/select-menu.css.map +1 -1
  96. package/dist/stats/actionlist.json +1 -1
  97. package/dist/stats/alerts.json +1 -1
  98. package/dist/stats/autocomplete.json +1 -1
  99. package/dist/stats/avatars.json +1 -1
  100. package/dist/stats/base.json +1 -1
  101. package/dist/stats/box.json +1 -1
  102. package/dist/stats/buttons.json +1 -1
  103. package/dist/stats/color-modes.json +1 -1
  104. package/dist/stats/core.json +1 -1
  105. package/dist/stats/forms.json +1 -1
  106. package/dist/stats/labels.json +1 -1
  107. package/dist/stats/layout.json +1 -1
  108. package/dist/stats/marketing-buttons.json +1 -1
  109. package/dist/stats/marketing-links.json +1 -0
  110. package/dist/stats/marketing-utilities.json +1 -1
  111. package/dist/stats/marketing.json +1 -1
  112. package/dist/stats/pagination.json +1 -1
  113. package/dist/stats/popover.json +1 -1
  114. package/dist/stats/primer.json +1 -1
  115. package/dist/stats/product.json +1 -1
  116. package/dist/stats/select-menu.json +1 -1
  117. package/dist/stats/subhead.json +1 -1
  118. package/dist/stats/toasts.json +1 -1
  119. package/dist/stats/utilities.json +1 -1
  120. package/dist/subhead.css +1 -1
  121. package/dist/subhead.css.map +1 -1
  122. package/dist/timeline.css.map +1 -1
  123. package/dist/toasts.css +1 -1
  124. package/dist/toasts.css.map +1 -1
  125. package/dist/tooltips.css.map +1 -1
  126. package/dist/truncate.css.map +1 -1
  127. package/dist/utilities.css +1 -1
  128. package/dist/utilities.css.map +1 -1
  129. package/dist/variables.json +62 -62
  130. package/dropdown/dropdown.scss +4 -4
  131. package/dropdown/index.scss +2 -2
  132. package/forms/form-control.scss +22 -8
  133. package/forms/form-group.scss +2 -2
  134. package/forms/form-select.scss +2 -2
  135. package/forms/form-validation.scss +9 -9
  136. package/forms/index.scss +7 -7
  137. package/forms/radio-group.scss +19 -0
  138. package/header/index.scss +2 -2
  139. package/index.scss +4 -4
  140. package/labels/counters.scss +1 -1
  141. package/labels/index.scss +7 -8
  142. package/labels/labels.scss +23 -4
  143. package/layout/grid.scss +1 -1
  144. package/layout/index.scss +7 -7
  145. package/layout/layout.scss +7 -11
  146. package/layout/mixins.scss +30 -4
  147. package/layout/page-layout.scss +380 -0
  148. package/links/index.scss +2 -2
  149. package/links/link.scss +1 -1
  150. package/loaders/index.scss +2 -2
  151. package/loaders/loaders.scss +1 -1
  152. package/markdown/footnotes.scss +1 -1
  153. package/markdown/images.scss +2 -2
  154. package/markdown/index.scss +9 -9
  155. package/markdown/lists.scss +3 -3
  156. package/markdown/markdown-body.scss +4 -4
  157. package/marketing/buttons/button.scss +102 -52
  158. package/marketing/buttons/index.scss +2 -2
  159. package/marketing/index.scss +5 -4
  160. package/marketing/links/index.scss +3 -0
  161. package/marketing/links/link.scss +50 -0
  162. package/marketing/support/index.scss +2 -3
  163. package/marketing/support/variables.scss +4 -5
  164. package/marketing/type/index.scss +2 -2
  165. package/marketing/type/typography.scss +26 -23
  166. package/marketing/utilities/animations.scss +42 -0
  167. package/marketing/utilities/index.scss +5 -5
  168. package/marketing/utilities/layout.scss +1 -1
  169. package/navigation/filter-list.scss +2 -2
  170. package/navigation/index.scss +7 -7
  171. package/navigation/menu.scss +3 -3
  172. package/navigation/sidenav.scss +5 -5
  173. package/navigation/subnav.scss +2 -2
  174. package/navigation/tabnav.scss +2 -2
  175. package/navigation/underline-nav.scss +2 -2
  176. package/package.json +17 -18
  177. package/pagination/index.scss +2 -2
  178. package/pagination/pagination.scss +5 -5
  179. package/popover/index.scss +2 -2
  180. package/popover/popover.scss +43 -5
  181. package/postcss.config.cjs +1 -1
  182. package/product/index.scss +17 -17
  183. package/progress/index.scss +2 -2
  184. package/select-menu/index.scss +2 -2
  185. package/select-menu/select-menu.scss +6 -6
  186. package/stylelint.config.cjs +2 -11
  187. package/subhead/index.scss +2 -2
  188. package/subhead/subhead.scss +6 -0
  189. package/support/index.scss +7 -7
  190. package/support/mixins/color-modes.scss +3 -0
  191. package/support/mixins/layout.scss +5 -5
  192. package/support/mixins/misc.scss +1 -1
  193. package/support/mixins/typography.scss +3 -2
  194. package/support/variables/layout.scss +8 -19
  195. package/support/variables/typography.scss +1 -1
  196. package/table-object/index.scss +1 -1
  197. package/timeline/index.scss +2 -2
  198. package/timeline/timeline-item.scss +1 -1
  199. package/toasts/index.scss +2 -2
  200. package/toasts/toasts.scss +0 -4
  201. package/tooltips/index.scss +2 -2
  202. package/tooltips/tooltips.scss +1 -1
  203. package/truncate/index.scss +2 -2
  204. package/utilities/colors.scss +32 -30
  205. package/utilities/details.scss +1 -1
  206. package/utilities/index.scss +12 -12
  207. package/utilities/visibility-display.scss +3 -3
  208. package/actionlist/action-list-divider.scss +0 -72
  209. package/color-modes/themes/dark_protanopia.scss +0 -7
  210. package/color-modes/themes/light_protanopia.scss +0 -7
  211. package/marketing/support/mixins.scss +0 -66
@@ -2,95 +2,145 @@
2
2
  position: relative;
3
3
  z-index: 1;
4
4
  display: inline-block;
5
- appearance: none !important;
6
5
  // stylelint-disable-next-line primer/spacing
7
6
  padding: 0.9rem 1.5rem 1.1rem;
8
7
  // stylelint-disable-next-line primer/typography
9
8
  font-size: 1rem;
10
9
  font-weight: $font-weight-bold;
11
10
  line-height: 1;
11
+ color: var(--color-canvas-default);
12
+ text-align: center;
12
13
  white-space: nowrap;
13
14
  vertical-align: middle;
14
15
  user-select: none;
16
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%), var(--color-mktg-btn-bg) !important;
15
17
  border: 0;
16
18
  // stylelint-disable-next-line primer/borders
17
19
  border-radius: 0.375rem;
18
-
19
- @include btn-solid-mktg(
20
- var(--color-mktg-btn-text),
21
- var(--color-mktg-btn-bg-top),
22
- var(--color-mktg-btn-bg-bottom),
23
- var(--color-mktg-btn-bg-overlay-top),
24
- var(--color-mktg-btn-bg-overlay-bottom),
25
- );
20
+ transition: box-shadow 0.2s;
21
+ appearance: none !important;
26
22
 
27
23
  &::before {
28
- background-blend-mode: overlay, normal;
29
24
  position: absolute;
30
25
  top: 0;
31
26
  right: 0;
32
27
  bottom: 0;
33
28
  left: 0;
34
29
  z-index: -1;
35
- content: "";
36
- // stylelint-disable-next-line primer/borders
37
- border-radius: 0.375rem;
30
+ content: '';
31
+ // stylelint-disable-next-line primer/colors
32
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%) !important;
33
+ border-radius: inherit;
38
34
  opacity: 0;
39
- transition: opacity 0.4s;
35
+ opacity: 0;
36
+ transition: opacity 0.2s;
37
+ background-blend-mode: normal;
40
38
  }
41
39
 
42
40
  &:hover {
43
41
  text-decoration: none;
42
+ box-shadow: var(--color-mktg-btn-shadow-hover) !important;
43
+ }
44
44
 
45
+ &:focus,
46
+ &.focus {
47
+ outline: 0;
48
+ box-shadow: var(--color-mktg-btn-shadow-focus), var(--color-mktg-btn-shadow-hover) !important;
49
+ }
50
+
51
+ &:hover,
52
+ &:focus,
53
+ &.focus {
45
54
  &::before {
46
55
  opacity: 1;
47
- transition: opacity 0.4s;
56
+ }
57
+
58
+ &:disabled {
59
+ box-shadow: none !important;
48
60
  }
49
61
  }
50
- }
51
62
 
52
- .btn-primary-mktg {
53
- @include btn-solid-mktg(
54
- var(--color-mktg-btn-primary-text),
55
- var(--color-mktg-btn-primary-bg-top),
56
- var(--color-mktg-btn-primary-bg-bottom),
57
- var(--color-mktg-btn-primary-bg-overlay-top),
58
- var(--color-mktg-btn-primary-bg-overlay-bottom),
59
- );
63
+ &:active {
64
+ outline: none;
65
+ // stylelint-disable-next-line primer/box-shadow
66
+ box-shadow: 0 0 0 transparent;
67
+
68
+ &::before {
69
+ opacity: 0.5 !important;
70
+ }
71
+ }
72
+
73
+ &.disabled,
74
+ &[disabled] {
75
+ pointer-events: none;
76
+ cursor: default;
77
+ opacity: 0.5;
78
+ }
60
79
  }
61
80
 
62
- .btn-enterprise-mktg {
63
- @include btn-solid-mktg(
64
- var(--color-mktg-btn-enterprise-text),
65
- var(--color-mktg-btn-enterprise-bg-top),
66
- var(--color-mktg-btn-enterprise-bg-bottom),
67
- var(--color-mktg-btn-enterprise-bg-overlay-top),
68
- var(--color-mktg-btn-enterprise-bg-overlay-bottom),
69
- );
81
+ .btn-muted-mktg {
82
+ color: var(--color-fg-default) !important;
83
+ background: none !important;
84
+ box-shadow: var(--color-mktg-btn-shadow-outline);
85
+
86
+ &::before {
87
+ display: none;
88
+ }
89
+
90
+ &:hover {
91
+ box-shadow: var(--color-mktg-btn-shadow-hover-muted) !important;
92
+ }
93
+
94
+ &:focus,
95
+ &.focus {
96
+ box-shadow: var(--color-mktg-btn-shadow-hover-muted), var(--color-mktg-btn-shadow-focus) !important;
97
+ }
98
+
99
+ &:active {
100
+ // stylelint-disable-next-line primer/box-shadow
101
+ box-shadow: var(--color-fg-default) 0 0 0 3px inset !important;
102
+ }
103
+
104
+ &:disabled {
105
+ // stylelint-disable-next-line primer/box-shadow
106
+ box-shadow: var(--color-fg-subtle) 0 0 0 1px inset !important;
107
+ }
70
108
  }
71
109
 
72
- .btn-outline-mktg {
73
- @include btn-outline-mktg(
74
- var(--color-mktg-btn-outline-text),
75
- var(--color-mktg-btn-outline-hover-text),
76
- var(--color-mktg-btn-outline-border),
77
- var(--color-mktg-btn-outline-hover-border),
78
- var(--color-mktg-btn-outline-focus-border),
79
- var(--color-mktg-btn-outline-focus-border-inset)
80
- );
81
- transition: box-shadow 0.4s, color 0.4s;
110
+ .btn-subtle-mktg {
111
+ color: var(--color-fg-default) !important;
112
+ background: none !important;
113
+ box-shadow: none !important;
114
+
115
+ &::before {
116
+ background: none !important;
117
+ }
118
+
119
+ &:hover {
120
+ box-shadow: var(--color-mktg-btn-shadow-hover-muted) !important;
121
+ }
122
+
123
+ &:focus,
124
+ .focus {
125
+ box-shadow: var(--color-mktg-btn-shadow-hover-muted), var(--color-mktg-btn-shadow-focus) !important;
126
+ }
82
127
  }
83
128
 
84
- .btn-transparent {
85
- @include btn-outline-mktg(
86
- var(--color-mktg-btn-dark-text),
87
- var(--color-mktg-btn-dark-hover-text),
88
- var(--color-mktg-btn-dark-border),
89
- var(--color-mktg-btn-dark-hover-border),
90
- var(--color-mktg-btn-dark-focus-border),
91
- var(--color-mktg-btn-dark-focus-border-inset)
92
- );
93
- transition: box-shadow 0.4s, color 0.4s;
129
+ .btn-signup-mktg {
130
+ // stylelint-disable-next-line primer/colors
131
+ color: #fff;
132
+ // stylelint-disable-next-line primer/colors
133
+ background: linear-gradient(180deg, rgba(52, 183, 89, 0.15) 0%, rgba(46, 164, 79, 0) 100%), rgb(46, 164, 79) !important;
134
+
135
+ &::before {
136
+ // stylelint-disable-next-line primer/colors
137
+ background: linear-gradient(180deg, rgba(52, 183, 89, 0.15) 0%, rgba(46, 164, 79, 0) 100%) !important;
138
+ }
139
+
140
+ &:focus {
141
+ // stylelint-disable-next-line primer/box-shadow
142
+ box-shadow: rgba(46, 164, 79, 0.45) 0 0 0 4px !important;
143
+ }
94
144
  }
95
145
 
96
146
  // Size modifiers
@@ -1,3 +1,3 @@
1
1
  // support files
2
- @import "../support/index.scss";
3
- @import "./button.scss";
2
+ @import '../support/index.scss';
3
+ @import './button.scss';
@@ -6,9 +6,10 @@
6
6
  */
7
7
 
8
8
  // Global requirements
9
- @import "./support/index.scss";
9
+ @import './support/index.scss';
10
10
 
11
11
  // marketing specific css modules
12
- @import "./type/index.scss";
13
- @import "./buttons/index.scss";
14
- @import "./utilities/index.scss";
12
+ @import './type/index.scss';
13
+ @import './buttons/index.scss';
14
+ @import './links/index.scss';
15
+ @import './utilities/index.scss';
@@ -0,0 +1,3 @@
1
+ // support files
2
+ @import '../support/index.scss';
3
+ @import './link.scss';
@@ -0,0 +1,50 @@
1
+ .link-mktg {
2
+ position: relative;
3
+ display: inline-block;
4
+
5
+ &:hover {
6
+ text-decoration: none;
7
+ }
8
+
9
+ &:active {
10
+ outline: none;
11
+ }
12
+
13
+ &::after,
14
+ &.link-emphasis-mktg::before {
15
+ position: absolute;
16
+ bottom: -0.15em;
17
+ left: 0;
18
+ width: calc(100% - 1em);
19
+ height: 2px;
20
+ pointer-events: none;
21
+ content: '';
22
+ // stylelint-disable-next-line primer/colors
23
+ background-color: currentColor;
24
+ transform: scaleX(0);
25
+ transform-origin: 0 0;
26
+
27
+ @media screen and (prefers-reduced-motion: no-preference) {
28
+ transition: transform 0.3s ease;
29
+ }
30
+ }
31
+
32
+ &.link-emphasis-mktg::before {
33
+ opacity: 0.2;
34
+ transform: scaleX(1);
35
+ }
36
+
37
+ &:hover,
38
+ &:focus,
39
+ &:active {
40
+ &::after {
41
+ transform: scaleX(1);
42
+ }
43
+ }
44
+
45
+ &.arrow-target-mktg {
46
+ .arrow-symbol-mktg {
47
+ margin-left: -$em-spacer-3;
48
+ }
49
+ }
50
+ }
@@ -1,3 +1,2 @@
1
- @import "../../support/index.scss";
2
- @import "./mixins.scss";
3
- @import "./variables.scss";
1
+ @import '../../support/index.scss';
2
+ @import './variables.scss';
@@ -1,6 +1,5 @@
1
- // stylelint-disable unit-no-unknown
2
1
  // Typography
3
- $marketing-font-path: "/fonts/" !default;
2
+ $marketing-font-path: '/fonts/' !default;
4
3
 
5
4
  $font-mktg: $body-font !default;
6
5
  $font-weight-medium: 450 !default;
@@ -122,7 +121,7 @@ $transition-time: 0.4s !default;
122
121
  $ease-mktg: cubic-bezier(0.16, 1, 0.3, 1) !default;
123
122
 
124
123
  $marketing-position-variants: (
125
- "": "",
126
- md: "-md",
127
- lg: "-lg",
124
+ '': '',
125
+ md: '-md',
126
+ lg: '-lg',
128
127
  ) !default;
@@ -1,3 +1,3 @@
1
1
  // support files
2
- @import "../support/index.scss";
3
- @import "./typography.scss";
2
+ @import '../support/index.scss';
3
+ @import './typography.scss';
@@ -19,20 +19,21 @@
19
19
  $pairing-md: map-get($mktg-header-pairings, nth($sizes, 2));
20
20
  $pairing-lg: map-get($mktg-header-pairings, nth($sizes, 3));
21
21
 
22
- font-size: map-get($pairing, "size") !important;
23
- line-height: map-get($pairing, "lh") !important;
24
- @if (map-get($pairing, "size") >= $mktg-header-weight-threshold) { font-weight: $mktg-header-weight-large !important; }
22
+ font-size: map-get($pairing, 'size') !important;
23
+ line-height: map-get($pairing, 'lh') !important;
24
+
25
+ @if (map-get($pairing, 'size') >= $mktg-header-weight-threshold) { font-weight: $mktg-header-weight-large !important; }
25
26
 
26
27
  @if (nth($sizes, 1) != nth($sizes, 2)) {
27
28
  @include breakpoint(md) {
28
- font-size: map-get($pairing-md, "size") !important;
29
- line-height: map-get($pairing-md, "lh") !important;
29
+ font-size: map-get($pairing-md, 'size') !important;
30
+ line-height: map-get($pairing-md, 'lh') !important;
30
31
 
31
- @if (map-get($pairing-md, "size") >= $mktg-header-spacing-threshold and map-get($pairing, "size") < $mktg-header-spacing-threshold) {
32
+ @if (map-get($pairing-md, 'size') >= $mktg-header-spacing-threshold and map-get($pairing, 'size') < $mktg-header-spacing-threshold) {
32
33
  letter-spacing: $mktg-header-spacing-large !important;
33
34
  }
34
35
 
35
- @if (map-get($pairing-md, "size") >= $mktg-header-weight-threshold and map-get($pairing, "size") < $mktg-header-weight-threshold) {
36
+ @if (map-get($pairing-md, 'size') >= $mktg-header-weight-threshold and map-get($pairing, 'size') < $mktg-header-weight-threshold) {
36
37
  font-weight: $mktg-header-weight-large !important;
37
38
  }
38
39
  }
@@ -40,14 +41,14 @@
40
41
 
41
42
  @if (nth($sizes, 2) != nth($sizes, 3)) {
42
43
  @include breakpoint(lg) {
43
- font-size: map-get($pairing-lg, "size") !important;
44
- line-height: map-get($pairing-lg, "lh") !important;
44
+ font-size: map-get($pairing-lg, 'size') !important;
45
+ line-height: map-get($pairing-lg, 'lh') !important;
45
46
 
46
- @if (map-get($pairing-lg, "size") >= $mktg-header-spacing-threshold and map-get($pairing-md, "size") < $mktg-header-spacing-threshold) {
47
+ @if (map-get($pairing-lg, 'size') >= $mktg-header-spacing-threshold and map-get($pairing-md, 'size') < $mktg-header-spacing-threshold) {
47
48
  letter-spacing: $mktg-header-spacing-large !important;
48
49
  }
49
50
 
50
- @if (map-get($pairing-lg, "size") >= $mktg-header-weight-threshold and map-get($pairing-md, "size") < $mktg-header-weight-threshold) {
51
+ @if (map-get($pairing-lg, 'size') >= $mktg-header-weight-threshold and map-get($pairing-md, 'size') < $mktg-header-weight-threshold) {
51
52
  font-weight: $mktg-header-weight-large !important;
52
53
  }
53
54
  }
@@ -73,21 +74,23 @@
73
74
  $pairing-md: map-get($mktg-body-pairings, nth($sizes, 2));
74
75
  $pairing-lg: map-get($mktg-body-pairings, nth($sizes, 3));
75
76
 
76
- font-size: map-get($pairing, "size") !important;
77
- line-height: map-get($pairing, "lh") !important;
78
- @if (map-get($pairing, "size") >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
79
- @if (map-get($pairing, "size") >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold; }
77
+ font-size: map-get($pairing, 'size') !important;
78
+ line-height: map-get($pairing, 'lh') !important;
79
+
80
+ @if (map-get($pairing, 'size') >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
81
+
82
+ @if (map-get($pairing, 'size') >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold; }
80
83
 
81
84
  @if (nth($sizes, 1) != nth($sizes, 2)) {
82
85
  @include breakpoint(md) {
83
- font-size: map-get($pairing-md, "size") !important;
84
- line-height: map-get($pairing-md, "lh") !important;
86
+ font-size: map-get($pairing-md, 'size') !important;
87
+ line-height: map-get($pairing-md, 'lh') !important;
85
88
 
86
- @if (map-get($pairing-md, "size") >= $mktg-body-spacing-threshold and map-get($pairing, "size") < $mktg-body-spacing-threshold) {
89
+ @if (map-get($pairing-md, 'size') >= $mktg-body-spacing-threshold and map-get($pairing, 'size') < $mktg-body-spacing-threshold) {
87
90
  letter-spacing: $mktg-body-spacing-large !important;
88
91
  }
89
92
 
90
- @if (map-get($pairing-md, "size") >= $mktg-body-weight-threshold and map-get($pairing, "size") < $mktg-body-weight-threshold) {
93
+ @if (map-get($pairing-md, 'size') >= $mktg-body-weight-threshold and map-get($pairing, 'size') < $mktg-body-weight-threshold) {
91
94
  font-weight: $font-weight-medium;
92
95
  }
93
96
  }
@@ -95,14 +98,14 @@
95
98
 
96
99
  @if (nth($sizes, 2) != nth($sizes, 3)) {
97
100
  @include breakpoint(lg) {
98
- font-size: map-get($pairing-lg, "size") !important;
99
- line-height: map-get($pairing-lg, "lh") !important;
101
+ font-size: map-get($pairing-lg, 'size') !important;
102
+ line-height: map-get($pairing-lg, 'lh') !important;
100
103
 
101
- @if (map-get($pairing-lg, "size") >= $mktg-body-spacing-threshold and map-get($pairing-md, "size") < $mktg-body-spacing-threshold) {
104
+ @if (map-get($pairing-lg, 'size') >= $mktg-body-spacing-threshold and map-get($pairing-md, 'size') < $mktg-body-spacing-threshold) {
102
105
  letter-spacing: $mktg-body-spacing-large !important;
103
106
  }
104
107
 
105
- @if (map-get($pairing-lg, "size") >= $mktg-body-weight-threshold and map-get($pairing-md, "size") < $mktg-body-weight-threshold) {
108
+ @if (map-get($pairing-lg, 'size') >= $mktg-body-weight-threshold and map-get($pairing-md, 'size') < $mktg-body-weight-threshold) {
106
109
  font-weight: $font-weight-medium;
107
110
  }
108
111
  }
@@ -7,3 +7,45 @@
7
7
  transform: scale3d(1.025, 1.025, 1.025);
8
8
  }
9
9
  }
10
+
11
+ // Animated arrow symbol, used in marketing links, buttons, etc.
12
+ .btn-mktg,
13
+ .link-mktg,
14
+ .arrow-target-mktg {
15
+ .octicon {
16
+ width: 1em;
17
+ height: 1em;
18
+ }
19
+
20
+ .arrow-symbol-mktg {
21
+ transition: transform 0.2s;
22
+ transform: translateX(0);
23
+
24
+ // stylelint-disable-next-line selector-max-type
25
+ path:last-child {
26
+ stroke-dasharray: 10;
27
+ stroke-dashoffset: 10;
28
+ transition: stroke-dashoffset 0.2s;
29
+ }
30
+ }
31
+
32
+ @media screen and (prefers-reduced-motion: no-preference) {
33
+ &:hover,
34
+ &:focus {
35
+ .arrow-symbol-mktg {
36
+ transform: translateX(4px);
37
+
38
+ // stylelint-disable-next-line selector-max-type, selector-max-specificity, max-nesting-depth
39
+ path:last-child {
40
+ stroke-dashoffset: 20;
41
+ }
42
+ }
43
+ }
44
+
45
+ &:active {
46
+ .arrow-symbol-mktg {
47
+ transform: translateX(6px);
48
+ }
49
+ }
50
+ }
51
+ }
@@ -1,6 +1,6 @@
1
- @import "../support/index.scss";
1
+ @import '../support/index.scss';
2
2
  // utilities
3
- @import "./animations.scss";
4
- @import "./borders.scss";
5
- @import "./filters.scss";
6
- @import "./layout.scss";
3
+ @import './animations.scss';
4
+ @import './borders.scss';
5
+ @import './filters.scss';
6
+ @import './layout.scss';
@@ -6,7 +6,7 @@
6
6
  @each $breakpoint, $variant in $marketing-position-variants {
7
7
  @include breakpoint($breakpoint) {
8
8
  @each $scale, $size in $spacer-map-extended {
9
- @if ($size != 0 or $variant != "") {
9
+ @if ($size != 0 or $variant != '') {
10
10
  .top#{$variant}-#{$scale} { top: $size !important; }
11
11
  .right#{$variant}-#{$scale} { right: $size !important; }
12
12
  .bottom#{$variant}-#{$scale} { bottom: $size !important; }
@@ -41,8 +41,8 @@
41
41
  }
42
42
 
43
43
  &.selected,
44
- &[aria-selected=true],
45
- &[aria-current]:not([aria-current=false]) {
44
+ &[aria-selected='true'],
45
+ &[aria-current]:not([aria-current='false']) {
46
46
  color: var(--color-fg-on-emphasis);
47
47
  background-color: var(--color-accent-emphasis);
48
48
  }
@@ -1,8 +1,8 @@
1
- @import "../support/index.scss";
1
+ @import '../support/index.scss';
2
2
  // Navigation
3
- @import "./menu.scss";
4
- @import "./tabnav.scss";
5
- @import "./filter-list.scss";
6
- @import "./sidenav.scss";
7
- @import "./subnav.scss";
8
- @import "./underline-nav.scss";
3
+ @import './menu.scss';
4
+ @import './tabnav.scss';
5
+ @import './filter-list.scss';
6
+ @import './sidenav.scss';
7
+ @import './subnav.scss';
8
+ @import './underline-nav.scss';
@@ -49,8 +49,8 @@
49
49
  }
50
50
 
51
51
  &.selected,
52
- &[aria-selected=true],
53
- &[aria-current]:not([aria-current=false]) {
52
+ &[aria-selected='true'],
53
+ &[aria-current]:not([aria-current='false']) {
54
54
  cursor: default;
55
55
  background-color: var(--color-menu-bg-active);
56
56
 
@@ -60,7 +60,7 @@
60
60
  bottom: 0;
61
61
  left: 0;
62
62
  width: 2px;
63
- content: "";
63
+ content: '';
64
64
  background-color: var(--color-primer-border-active);
65
65
  }
66
66
  }
@@ -37,7 +37,7 @@
37
37
  z-index: 1;
38
38
  width: 2px;
39
39
  pointer-events: none;
40
- content: "";
40
+ content: '';
41
41
  }
42
42
  }
43
43
 
@@ -59,8 +59,8 @@
59
59
  background-color: var(--color-canvas-subtle);
60
60
  }
61
61
 
62
- .SideNav-item[aria-current]:not([aria-current=false]),
63
- .SideNav-item[aria-selected="true"] {
62
+ .SideNav-item[aria-current]:not([aria-current='false']),
63
+ .SideNav-item[aria-selected='true'] {
64
64
  background-color: var(--color-sidenav-selected-bg);
65
65
 
66
66
  // Bar on the left
@@ -101,8 +101,8 @@
101
101
  outline: none;
102
102
  }
103
103
 
104
- .SideNav-subItem[aria-current]:not([aria-current=false]),
105
- .SideNav-subItem[aria-selected="true"] {
104
+ .SideNav-subItem[aria-current]:not([aria-current='false']),
105
+ .SideNav-subItem[aria-selected='true'] {
106
106
  font-weight: $font-weight-semibold;
107
107
  color: var(--color-fg-default);
108
108
  }
@@ -40,8 +40,8 @@
40
40
  }
41
41
 
42
42
  &.selected,
43
- &[aria-selected=true],
44
- &[aria-current]:not([aria-current=false]) {
43
+ &[aria-selected='true'],
44
+ &[aria-current]:not([aria-current='false']) {
45
45
  z-index: 2;
46
46
  color: var(--color-fg-on-emphasis);
47
47
  background-color: var(--color-accent-emphasis);
@@ -28,8 +28,8 @@
28
28
  transition: color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
29
29
 
30
30
  &.selected,
31
- &[aria-selected=true],
32
- &[aria-current]:not([aria-current=false]) {
31
+ &[aria-selected='true'],
32
+ &[aria-current]:not([aria-current='false']) {
33
33
  color: var(--color-fg-default);
34
34
  background-color: var(--color-canvas-default); // cover bottom border
35
35
  border-color: var(--color-border-default);
@@ -35,8 +35,8 @@
35
35
  }
36
36
 
37
37
  &.selected,
38
- &[role=tab][aria-selected=true],
39
- &[aria-current]:not([aria-current=false]) {
38
+ &[role='tab'][aria-selected='true'],
39
+ &[aria-current]:not([aria-current='false']) {
40
40
  font-weight: $font-weight-bold;
41
41
  color: var(--color-fg-default);
42
42
  border-bottom-color: var(--color-primer-border-active);