@primer/css 19.1.0-rc.e1e1943a → 19.1.0-rc.ff91ca52

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 (39) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/actionlist/action-list-item.scss +50 -18
  3. package/actionlist/action-list.scss +5 -0
  4. package/buttons/misc.scss +7 -3
  5. package/dist/actionlist.css +1 -1
  6. package/dist/actionlist.css.map +1 -1
  7. package/dist/buttons.css +1 -1
  8. package/dist/buttons.css.map +1 -1
  9. package/dist/color-modes.css +1 -1
  10. package/dist/color-modes.css.map +1 -1
  11. package/dist/core.css +1 -1
  12. package/dist/core.css.map +1 -1
  13. package/dist/marketing-buttons.css +1 -1
  14. package/dist/marketing-buttons.css.map +1 -1
  15. package/dist/marketing-links.css +2 -0
  16. package/dist/marketing-links.css.map +1 -0
  17. package/dist/marketing-links.js +1 -0
  18. package/dist/marketing-utilities.css +1 -1
  19. package/dist/marketing-utilities.css.map +1 -1
  20. package/dist/marketing.css +1 -1
  21. package/dist/marketing.css.map +1 -1
  22. package/dist/meta.json +44 -33
  23. package/dist/primer.css +3 -3
  24. package/dist/primer.css.map +1 -1
  25. package/dist/stats/actionlist.json +1 -1
  26. package/dist/stats/buttons.json +1 -1
  27. package/dist/stats/color-modes.json +1 -1
  28. package/dist/stats/core.json +1 -1
  29. package/dist/stats/marketing-buttons.json +1 -1
  30. package/dist/stats/marketing-links.json +1 -0
  31. package/dist/stats/marketing-utilities.json +1 -1
  32. package/dist/stats/marketing.json +1 -1
  33. package/dist/stats/primer.json +1 -1
  34. package/marketing/buttons/button.scss +10 -2
  35. package/marketing/index.scss +1 -0
  36. package/marketing/links/index.scss +3 -0
  37. package/marketing/links/link.scss +50 -0
  38. package/marketing/utilities/animations.scss +42 -0
  39. package/package.json +6 -6
@@ -13,7 +13,7 @@
13
13
  white-space: nowrap;
14
14
  vertical-align: middle;
15
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;
16
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%), var(--color-mktg-btn-bg) !important;
17
17
  border: 0;
18
18
  // stylelint-disable-next-line primer/borders
19
19
  border-radius: 0.375rem;
@@ -29,7 +29,7 @@
29
29
  z-index: -1;
30
30
  content: '';
31
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;
32
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%) !important;
33
33
  border-radius: inherit;
34
34
  opacity: 0;
35
35
  opacity: 0;
@@ -38,6 +38,7 @@
38
38
  }
39
39
 
40
40
  &:hover {
41
+ text-decoration: none;
41
42
  box-shadow: var(--color-mktg-btn-shadow-hover) !important;
42
43
  }
43
44
 
@@ -68,6 +69,13 @@
68
69
  opacity: 0.5 !important;
69
70
  }
70
71
  }
72
+
73
+ &.disabled,
74
+ &[disabled] {
75
+ pointer-events: none;
76
+ cursor: default;
77
+ opacity: 0.5;
78
+ }
71
79
  }
72
80
 
73
81
  .btn-muted-mktg {
@@ -11,4 +11,5 @@
11
11
  // marketing specific css modules
12
12
  @import './type/index.scss';
13
13
  @import './buttons/index.scss';
14
+ @import './links/index.scss';
14
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
+ }
@@ -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.1.0-rc.e1e1943a",
3
+ "version": "19.1.0-rc.ff91ca52",
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,11 +35,11 @@
35
35
  "storybook": "cd docs && yarn && yarn storybook"
36
36
  },
37
37
  "dependencies": {
38
- "@primer/primitives": "^7.1.0"
38
+ "@primer/primitives": "^7.2.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@changesets/changelog-github": "0.4.2",
42
- "@changesets/cli": "2.18.0",
42
+ "@changesets/cli": "2.18.1",
43
43
  "@github/prettier-config": "0.0.4",
44
44
  "@koddsson/postcss-sass": "5.0.0",
45
45
  "@primer/stylelint-config": "12.1.1",
@@ -47,13 +47,13 @@
47
47
  "cssstats": "4.0.2",
48
48
  "eslint": "8.3.0",
49
49
  "eslint-plugin-github": "4.3.5",
50
- "eslint-plugin-jest": "25.2.4",
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.1",
56
+ "jest": "27.4.2",
57
57
  "js-yaml": "4.1.0",
58
58
  "postcss": "8.4.4",
59
59
  "postcss-calc": "8.0.0",
@@ -61,7 +61,7 @@
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.4.1",
64
+ "prettier": "2.5.0",
65
65
  "semver": "7.3.5",
66
66
  "stylelint": "14.1.0",
67
67
  "stylelint-scss": "4.0.0",