@primer/css 19.1.0-rc.bc0e6f8c → 19.1.0-rc.c71de931

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.
@@ -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.bc0e6f8c",
3
+ "version": "19.1.0-rc.c71de931",
4
4
  "description": "The CSS implementation of GitHub's Primer Design System",
5
5
  "homepage": "https://primer.style/css",
6
6
  "author": "GitHub, Inc.",
@@ -45,7 +45,7 @@
45
45
  "@primer/stylelint-config": "12.1.1",
46
46
  "autoprefixer": "10.4.0",
47
47
  "cssstats": "4.0.2",
48
- "eslint": "8.3.0",
48
+ "eslint": "8.4.0",
49
49
  "eslint-plugin-github": "4.3.5",
50
50
  "eslint-plugin-jest": "25.3.0",
51
51
  "eslint-plugin-prettier": "4.0.0",
@@ -53,7 +53,7 @@
53
53
  "front-matter": "4.0.2",
54
54
  "fs-extra": "10.0.0",
55
55
  "globby": "12.0.2",
56
- "jest": "27.4.2",
56
+ "jest": "27.4.3",
57
57
  "js-yaml": "4.1.0",
58
58
  "postcss": "8.4.4",
59
59
  "postcss-calc": "8.0.0",
@@ -61,11 +61,11 @@
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.5.0",
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.3"
68
+ "table": "6.7.5"
69
69
  },
70
70
  "jest": {
71
71
  "testEnvironment": "node",