@primer/css 19.0.0 → 19.1.0-rc.052fcf01
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 +22 -0
- package/DEVELOP.md +15 -0
- package/actionlist/action-list-item.scss +50 -18
- package/actionlist/action-list.scss +5 -0
- package/buttons/misc.scss +7 -3
- package/dist/actionlist.css +1 -1
- package/dist/actionlist.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/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-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 +75 -64
- 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/stats/actionlist.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/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/popover.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/product.json +1 -1
- package/marketing/buttons/button.scss +10 -2
- package/marketing/index.scss +1 -0
- package/marketing/links/index.scss +3 -0
- package/marketing/links/link.scss +50 -0
- package/marketing/utilities/animations.scss +42 -0
- package/package.json +12 -12
- package/popover/popover.scss +42 -4
|
@@ -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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/css",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.1.0-rc.052fcf01",
|
|
4
4
|
"description": "The CSS implementation of GitHub's Primer Design System",
|
|
5
5
|
"homepage": "https://primer.style/css",
|
|
6
6
|
"author": "GitHub, Inc.",
|
|
@@ -35,37 +35,37 @@
|
|
|
35
35
|
"storybook": "cd docs && yarn && yarn storybook"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@primer/primitives": "^7.
|
|
38
|
+
"@primer/primitives": "^7.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@changesets/changelog-github": "0.4.
|
|
42
|
-
"@changesets/cli": "2.18.
|
|
41
|
+
"@changesets/changelog-github": "0.4.2",
|
|
42
|
+
"@changesets/cli": "2.18.1",
|
|
43
43
|
"@github/prettier-config": "0.0.4",
|
|
44
44
|
"@koddsson/postcss-sass": "5.0.0",
|
|
45
|
-
"@primer/stylelint-config": "12.1.
|
|
45
|
+
"@primer/stylelint-config": "12.1.1",
|
|
46
46
|
"autoprefixer": "10.4.0",
|
|
47
47
|
"cssstats": "4.0.2",
|
|
48
|
-
"eslint": "8.
|
|
49
|
-
"eslint-plugin-github": "4.3.
|
|
50
|
-
"eslint-plugin-jest": "25.
|
|
48
|
+
"eslint": "8.4.0",
|
|
49
|
+
"eslint-plugin-github": "4.3.5",
|
|
50
|
+
"eslint-plugin-jest": "25.3.0",
|
|
51
51
|
"eslint-plugin-prettier": "4.0.0",
|
|
52
52
|
"filesize": "8.0.6",
|
|
53
53
|
"front-matter": "4.0.2",
|
|
54
54
|
"fs-extra": "10.0.0",
|
|
55
55
|
"globby": "12.0.2",
|
|
56
|
-
"jest": "27.3
|
|
56
|
+
"jest": "27.4.3",
|
|
57
57
|
"js-yaml": "4.1.0",
|
|
58
|
-
"postcss": "8.
|
|
58
|
+
"postcss": "8.4.4",
|
|
59
59
|
"postcss-calc": "8.0.0",
|
|
60
60
|
"postcss-import": "14.0.2",
|
|
61
61
|
"postcss-load-config": "3.1.0",
|
|
62
62
|
"postcss-scss": "4.0.2",
|
|
63
63
|
"postcss-simple-vars": "6.0.3",
|
|
64
|
-
"prettier": "2.
|
|
64
|
+
"prettier": "2.5.1",
|
|
65
65
|
"semver": "7.3.5",
|
|
66
66
|
"stylelint": "14.1.0",
|
|
67
67
|
"stylelint-scss": "4.0.0",
|
|
68
|
-
"table": "6.7.
|
|
68
|
+
"table": "6.7.5"
|
|
69
69
|
},
|
|
70
70
|
"jest": {
|
|
71
71
|
"testEnvironment": "node",
|
package/popover/popover.scss
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
width: 232px;
|
|
9
9
|
margin-right: auto;
|
|
10
10
|
margin-left: auto;
|
|
11
|
+
background-color: var(--color-canvas-overlay);
|
|
12
|
+
border: $border-width $border-style var(--color-border-default);
|
|
13
|
+
border-radius: $border-radius;
|
|
11
14
|
|
|
12
15
|
// Carets
|
|
13
16
|
&::before,
|
|
@@ -34,10 +37,13 @@
|
|
|
34
37
|
border: 7px $border-style transparent;
|
|
35
38
|
border-bottom-color: var(--color-canvas-overlay);
|
|
36
39
|
}
|
|
40
|
+
}
|
|
37
41
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
// No caret
|
|
43
|
+
.Popover-message--no-caret {
|
|
44
|
+
&::before,
|
|
45
|
+
&::after {
|
|
46
|
+
display: none;
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
|
|
@@ -182,8 +188,40 @@
|
|
|
182
188
|
}
|
|
183
189
|
|
|
184
190
|
.Popover-message--large {
|
|
185
|
-
|
|
186
191
|
@include breakpoint(sm) {
|
|
187
192
|
min-width: 320px;
|
|
188
193
|
}
|
|
189
194
|
}
|
|
195
|
+
|
|
196
|
+
// Responsive Popover
|
|
197
|
+
// For < md it will show full-width anchored to the bottom
|
|
198
|
+
|
|
199
|
+
@media (max-width: ($width-md - 1px)) {
|
|
200
|
+
.Popover {
|
|
201
|
+
position: fixed;
|
|
202
|
+
top: auto !important;
|
|
203
|
+
right: 0 !important;
|
|
204
|
+
bottom: 0 !important;
|
|
205
|
+
left: 0 !important;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.Popover-message {
|
|
209
|
+
top: auto;
|
|
210
|
+
right: auto;
|
|
211
|
+
bottom: auto;
|
|
212
|
+
left: auto;
|
|
213
|
+
width: auto !important;
|
|
214
|
+
margin: $spacer-2;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// Increase tap area for touch input
|
|
218
|
+
.Popover-message > .btn-octicon {
|
|
219
|
+
padding: $spacer-2 + $spacer-1 !important;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// Remove caret
|
|
223
|
+
.Popover-message::after,
|
|
224
|
+
.Popover-message::before {
|
|
225
|
+
display: none;
|
|
226
|
+
}
|
|
227
|
+
}
|