@primer/css 0.0.0-2021986475 → 0.0.0-20220107003629
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.
- package/CHANGELOG.md +129 -8
- package/DEVELOP.md +15 -0
- package/actionlist/action-list-item-divider.scss +42 -0
- package/actionlist/action-list-item.scss +535 -0
- package/actionlist/action-list-tree.scss +92 -0
- package/actionlist/action-list-variables.scss +8 -0
- package/actionlist/action-list.scss +38 -0
- package/actionlist/index.scss +6 -0
- package/alerts/flash.scss +9 -0
- package/alerts/index.scss +2 -2
- package/autocomplete/autocomplete.scss +1 -1
- package/autocomplete/index.scss +3 -3
- package/autocomplete/suggester.scss +9 -1
- package/avatars/avatar-stack.scss +2 -1
- package/avatars/circle-badge.scss +1 -1
- package/avatars/index.scss +5 -5
- package/base/base.scss +1 -0
- package/base/index.scss +6 -7
- package/base/normalize.scss +1 -1
- package/blankslate/index.scss +2 -3
- package/box/box-overlay.scss +40 -0
- package/box/index.scss +3 -2
- package/branch-name/index.scss +2 -2
- package/breadcrumb/breadcrumb.scss +1 -1
- package/breadcrumb/index.scss +2 -2
- package/buttons/button-group.scss +3 -2
- package/buttons/button.scss +14 -14
- package/buttons/index.scss +4 -4
- package/buttons/misc.scss +14 -10
- package/color-modes/index.scss +8 -7
- package/color-modes/native.scss +1 -0
- package/color-modes/themes/dark.scss +2 -3
- package/color-modes/themes/dark_colorblind.scss +3 -4
- package/color-modes/themes/dark_dimmed.scss +2 -3
- package/color-modes/themes/dark_high_contrast.scss +2 -3
- package/color-modes/themes/light.scss +2 -3
- package/color-modes/themes/light_colorblind.scss +3 -4
- package/color-modes/themes/light_high_contrast.scss +6 -0
- package/core/index.scss +15 -14
- package/deprecations.json +6 -4
- package/dist/actionlist.css +2 -0
- package/dist/actionlist.css.map +1 -0
- package/dist/actionlist.js +1 -0
- package/dist/alerts.css +1 -1
- package/dist/alerts.css.map +1 -1
- package/dist/autocomplete.css +1 -1
- package/dist/autocomplete.css.map +1 -1
- package/dist/avatars.css +1 -1
- package/dist/avatars.css.map +1 -1
- package/dist/base.css +1 -1
- package/dist/base.css.map +1 -1
- package/dist/blankslate.css.map +1 -1
- package/dist/box.css +1 -1
- package/dist/box.css.map +1 -1
- package/dist/branch-name.css.map +1 -1
- package/dist/breadcrumb.css.map +1 -1
- package/dist/buttons.css +1 -1
- package/dist/buttons.css.map +1 -1
- package/dist/color-modes.css +1 -1
- package/dist/color-modes.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/deprecations.json +6 -4
- package/dist/dropdown.css.map +1 -1
- package/dist/forms.css +1 -1
- package/dist/forms.css.map +1 -1
- package/dist/header.css.map +1 -1
- package/dist/labels.css +1 -1
- package/dist/labels.css.map +1 -1
- package/dist/layout.css +1 -1
- package/dist/layout.css.map +1 -1
- package/dist/links.css.map +1 -1
- package/dist/loaders.css.map +1 -1
- package/dist/markdown.css.map +1 -1
- package/dist/marketing-buttons.css +1 -1
- package/dist/marketing-buttons.css.map +1 -1
- package/dist/marketing-links.css +2 -0
- package/dist/marketing-links.css.map +1 -0
- package/dist/marketing-links.js +1 -0
- package/dist/marketing-type.css.map +1 -1
- package/dist/marketing-utilities.css +1 -1
- package/dist/marketing-utilities.css.map +1 -1
- package/dist/marketing.css +1 -1
- package/dist/marketing.css.map +1 -1
- package/dist/meta.json +172 -256
- package/dist/navigation.css.map +1 -1
- package/dist/pagination.css +1 -1
- package/dist/pagination.css.map +1 -1
- package/dist/popover.css +1 -1
- package/dist/popover.css.map +1 -1
- package/dist/primer.css +4 -4
- package/dist/primer.css.map +1 -1
- package/dist/product.css +1 -1
- package/dist/product.css.map +1 -1
- package/dist/progress.css.map +1 -1
- package/dist/select-menu.css +1 -1
- package/dist/select-menu.css.map +1 -1
- package/dist/stats/actionlist.json +1 -0
- package/dist/stats/alerts.json +1 -1
- package/dist/stats/autocomplete.json +1 -1
- package/dist/stats/avatars.json +1 -1
- package/dist/stats/base.json +1 -1
- package/dist/stats/box.json +1 -1
- package/dist/stats/buttons.json +1 -1
- package/dist/stats/color-modes.json +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/forms.json +1 -1
- package/dist/stats/labels.json +1 -1
- package/dist/stats/layout.json +1 -1
- package/dist/stats/marketing-buttons.json +1 -1
- package/dist/stats/marketing-links.json +1 -0
- package/dist/stats/marketing-utilities.json +1 -1
- package/dist/stats/marketing.json +1 -1
- package/dist/stats/pagination.json +1 -1
- package/dist/stats/popover.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/product.json +1 -1
- package/dist/stats/select-menu.json +1 -1
- package/dist/stats/subhead.json +1 -1
- package/dist/stats/toasts.json +1 -1
- package/dist/stats/utilities.json +1 -1
- package/dist/subhead.css +1 -1
- package/dist/subhead.css.map +1 -1
- package/dist/timeline.css.map +1 -1
- package/dist/toasts.css +1 -1
- package/dist/toasts.css.map +1 -1
- package/dist/tooltips.css.map +1 -1
- package/dist/truncate.css.map +1 -1
- package/dist/utilities.css +1 -1
- package/dist/utilities.css.map +1 -1
- package/dist/variables.json +62 -62
- package/dropdown/dropdown.scss +4 -4
- package/dropdown/index.scss +2 -2
- package/forms/form-control.scss +22 -8
- package/forms/form-group.scss +2 -2
- package/forms/form-select.scss +2 -2
- package/forms/form-validation.scss +9 -9
- package/forms/index.scss +7 -7
- package/forms/radio-group.scss +19 -0
- package/header/index.scss +2 -2
- package/index.scss +4 -4
- package/labels/counters.scss +1 -1
- package/labels/index.scss +7 -8
- package/labels/labels.scss +23 -4
- package/layout/grid.scss +1 -1
- package/layout/index.scss +7 -7
- package/layout/layout.scss +7 -11
- package/layout/mixins.scss +30 -4
- package/layout/page-layout.scss +380 -0
- package/links/index.scss +2 -2
- package/links/link.scss +1 -1
- package/loaders/index.scss +2 -2
- package/loaders/loaders.scss +1 -1
- package/markdown/footnotes.scss +1 -1
- package/markdown/images.scss +2 -2
- package/markdown/index.scss +9 -9
- package/markdown/lists.scss +3 -3
- package/markdown/markdown-body.scss +4 -4
- package/marketing/buttons/button.scss +102 -52
- package/marketing/buttons/index.scss +2 -2
- package/marketing/index.scss +5 -4
- package/marketing/links/index.scss +3 -0
- package/marketing/links/link.scss +50 -0
- package/marketing/support/index.scss +2 -3
- package/marketing/support/variables.scss +4 -5
- package/marketing/type/index.scss +2 -2
- package/marketing/type/typography.scss +26 -23
- package/marketing/utilities/animations.scss +42 -0
- package/marketing/utilities/index.scss +5 -5
- package/marketing/utilities/layout.scss +1 -1
- package/navigation/filter-list.scss +2 -2
- package/navigation/index.scss +7 -7
- package/navigation/menu.scss +3 -3
- package/navigation/sidenav.scss +5 -5
- package/navigation/subnav.scss +2 -2
- package/navigation/tabnav.scss +2 -2
- package/navigation/underline-nav.scss +2 -2
- package/package.json +19 -19
- package/pagination/index.scss +2 -2
- package/pagination/pagination.scss +5 -5
- package/popover/index.scss +2 -2
- package/popover/popover.scss +43 -5
- package/postcss.config.cjs +1 -1
- package/product/index.scss +17 -17
- package/progress/index.scss +2 -2
- package/select-menu/index.scss +2 -2
- package/select-menu/select-menu.scss +6 -6
- package/stylelint.config.cjs +2 -11
- package/subhead/index.scss +2 -2
- package/subhead/subhead.scss +6 -0
- package/support/index.scss +7 -7
- package/support/mixins/color-modes.scss +3 -0
- package/support/mixins/layout.scss +5 -5
- package/support/mixins/misc.scss +1 -1
- package/support/mixins/typography.scss +3 -2
- package/support/variables/layout.scss +8 -19
- package/support/variables/typography.scss +1 -1
- package/table-object/index.scss +1 -1
- package/timeline/index.scss +2 -2
- package/timeline/timeline-item.scss +1 -1
- package/toasts/index.scss +2 -2
- package/toasts/toasts.scss +0 -4
- package/tooltips/index.scss +2 -2
- package/tooltips/tooltips.scss +1 -1
- package/truncate/index.scss +2 -2
- package/utilities/details.scss +1 -1
- package/utilities/index.scss +12 -12
- package/utilities/visibility-display.scss +3 -3
- 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
|
-
|
|
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/
|
|
37
|
-
|
|
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
|
-
|
|
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
|
-
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:disabled {
|
|
59
|
+
box-shadow: none !important;
|
|
48
60
|
}
|
|
49
61
|
}
|
|
50
|
-
}
|
|
51
62
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
|
3
|
-
@import
|
|
2
|
+
@import '../support/index.scss';
|
|
3
|
+
@import './button.scss';
|
package/marketing/index.scss
CHANGED
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
// Global requirements
|
|
9
|
-
@import
|
|
9
|
+
@import './support/index.scss';
|
|
10
10
|
|
|
11
11
|
// marketing specific css modules
|
|
12
|
-
@import
|
|
13
|
-
@import
|
|
14
|
-
@import
|
|
12
|
+
@import './type/index.scss';
|
|
13
|
+
@import './buttons/index.scss';
|
|
14
|
+
@import './links/index.scss';
|
|
15
|
+
@import './utilities/index.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
|
|
2
|
-
@import
|
|
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:
|
|
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:
|
|
127
|
-
lg:
|
|
124
|
+
'': '',
|
|
125
|
+
md: '-md',
|
|
126
|
+
lg: '-lg',
|
|
128
127
|
) !default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// support files
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
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,
|
|
23
|
-
line-height: map-get($pairing,
|
|
24
|
-
|
|
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,
|
|
29
|
-
line-height: map-get($pairing-md,
|
|
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,
|
|
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,
|
|
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,
|
|
44
|
-
line-height: map-get($pairing-lg,
|
|
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,
|
|
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,
|
|
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,
|
|
77
|
-
line-height: map-get($pairing,
|
|
78
|
-
|
|
79
|
-
@if (map-get($pairing,
|
|
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,
|
|
84
|
-
line-height: map-get($pairing-md,
|
|
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,
|
|
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,
|
|
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,
|
|
99
|
-
line-height: map-get($pairing-lg,
|
|
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,
|
|
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,
|
|
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
|
|
1
|
+
@import '../support/index.scss';
|
|
2
2
|
// utilities
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
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
|
}
|
package/navigation/index.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import '../support/index.scss';
|
|
2
2
|
// Navigation
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
@import
|
|
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';
|
package/navigation/menu.scss
CHANGED
|
@@ -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
|
}
|
package/navigation/sidenav.scss
CHANGED
|
@@ -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=
|
|
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=
|
|
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
|
}
|
package/navigation/subnav.scss
CHANGED
|
@@ -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);
|
package/navigation/tabnav.scss
CHANGED
|
@@ -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);
|