@primer/css 19.0.0-rc.1a1a19ad → 19.0.0-rc.1bd2ddff
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 +8 -0
- package/base/normalize.scss +1 -1
- package/box/box-overlay.scss +40 -0
- package/box/index.scss +1 -0
- package/color-modes/index.scss +1 -0
- package/color-modes/themes/dark.scss +2 -2
- package/color-modes/themes/dark_colorblind.scss +2 -2
- package/color-modes/themes/dark_dimmed.scss +2 -2
- package/color-modes/themes/dark_high_contrast.scss +2 -2
- package/color-modes/themes/light.scss +2 -2
- package/color-modes/themes/light_colorblind.scss +2 -2
- package/color-modes/themes/light_high_contrast.scss +7 -0
- package/dist/base.css +1 -1
- package/dist/base.css.map +1 -1
- package/dist/box.css +1 -1
- package/dist/box.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-type.css.map +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 +27 -40
- package/dist/primer.css +3 -3
- package/dist/primer.css.map +1 -1
- package/dist/stats/base.json +1 -1
- package/dist/stats/box.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.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/variables.json +62 -62
- package/index.scss +4 -4
- package/marketing/buttons/button.scss +14 -8
- package/marketing/buttons/index.scss +2 -2
- package/marketing/support/index.scss +2 -2
- package/marketing/support/variables.scss +4 -5
- package/marketing/type/index.scss +2 -2
- package/marketing/type/typography.scss +23 -23
- package/marketing/utilities/index.scss +5 -5
- package/marketing/utilities/layout.scss +1 -1
- package/package.json +3 -3
- package/support/mixins/layout.scss +5 -5
- package/support/mixins/misc.scss +1 -1
- package/support/variables/layout.scss +5 -5
- package/support/variables/typography.scss +1 -1
|
@@ -19,20 +19,20 @@
|
|
|
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
|
-
@if (map-get($pairing,
|
|
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; }
|
|
25
25
|
|
|
26
26
|
@if (nth($sizes, 1) != nth($sizes, 2)) {
|
|
27
27
|
@include breakpoint(md) {
|
|
28
|
-
font-size: map-get($pairing-md,
|
|
29
|
-
line-height: map-get($pairing-md,
|
|
28
|
+
font-size: map-get($pairing-md, 'size') !important;
|
|
29
|
+
line-height: map-get($pairing-md, 'lh') !important;
|
|
30
30
|
|
|
31
|
-
@if (map-get($pairing-md,
|
|
31
|
+
@if (map-get($pairing-md, 'size') >= $mktg-header-spacing-threshold and map-get($pairing, 'size') < $mktg-header-spacing-threshold) {
|
|
32
32
|
letter-spacing: $mktg-header-spacing-large !important;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
@if (map-get($pairing-md,
|
|
35
|
+
@if (map-get($pairing-md, 'size') >= $mktg-header-weight-threshold and map-get($pairing, 'size') < $mktg-header-weight-threshold) {
|
|
36
36
|
font-weight: $mktg-header-weight-large !important;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
|
|
41
41
|
@if (nth($sizes, 2) != nth($sizes, 3)) {
|
|
42
42
|
@include breakpoint(lg) {
|
|
43
|
-
font-size: map-get($pairing-lg,
|
|
44
|
-
line-height: map-get($pairing-lg,
|
|
43
|
+
font-size: map-get($pairing-lg, 'size') !important;
|
|
44
|
+
line-height: map-get($pairing-lg, 'lh') !important;
|
|
45
45
|
|
|
46
|
-
@if (map-get($pairing-lg,
|
|
46
|
+
@if (map-get($pairing-lg, 'size') >= $mktg-header-spacing-threshold and map-get($pairing-md, 'size') < $mktg-header-spacing-threshold) {
|
|
47
47
|
letter-spacing: $mktg-header-spacing-large !important;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
@if (map-get($pairing-lg,
|
|
50
|
+
@if (map-get($pairing-lg, 'size') >= $mktg-header-weight-threshold and map-get($pairing-md, 'size') < $mktg-header-weight-threshold) {
|
|
51
51
|
font-weight: $mktg-header-weight-large !important;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -73,21 +73,21 @@
|
|
|
73
73
|
$pairing-md: map-get($mktg-body-pairings, nth($sizes, 2));
|
|
74
74
|
$pairing-lg: map-get($mktg-body-pairings, nth($sizes, 3));
|
|
75
75
|
|
|
76
|
-
font-size: map-get($pairing,
|
|
77
|
-
line-height: map-get($pairing,
|
|
78
|
-
@if (map-get($pairing,
|
|
79
|
-
@if (map-get($pairing,
|
|
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; }
|
|
80
80
|
|
|
81
81
|
@if (nth($sizes, 1) != nth($sizes, 2)) {
|
|
82
82
|
@include breakpoint(md) {
|
|
83
|
-
font-size: map-get($pairing-md,
|
|
84
|
-
line-height: map-get($pairing-md,
|
|
83
|
+
font-size: map-get($pairing-md, 'size') !important;
|
|
84
|
+
line-height: map-get($pairing-md, 'lh') !important;
|
|
85
85
|
|
|
86
|
-
@if (map-get($pairing-md,
|
|
86
|
+
@if (map-get($pairing-md, 'size') >= $mktg-body-spacing-threshold and map-get($pairing, 'size') < $mktg-body-spacing-threshold) {
|
|
87
87
|
letter-spacing: $mktg-body-spacing-large !important;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
@if (map-get($pairing-md,
|
|
90
|
+
@if (map-get($pairing-md, 'size') >= $mktg-body-weight-threshold and map-get($pairing, 'size') < $mktg-body-weight-threshold) {
|
|
91
91
|
font-weight: $font-weight-medium;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -95,14 +95,14 @@
|
|
|
95
95
|
|
|
96
96
|
@if (nth($sizes, 2) != nth($sizes, 3)) {
|
|
97
97
|
@include breakpoint(lg) {
|
|
98
|
-
font-size: map-get($pairing-lg,
|
|
99
|
-
line-height: map-get($pairing-lg,
|
|
98
|
+
font-size: map-get($pairing-lg, 'size') !important;
|
|
99
|
+
line-height: map-get($pairing-lg, 'lh') !important;
|
|
100
100
|
|
|
101
|
-
@if (map-get($pairing-lg,
|
|
101
|
+
@if (map-get($pairing-lg, 'size') >= $mktg-body-spacing-threshold and map-get($pairing-md, 'size') < $mktg-body-spacing-threshold) {
|
|
102
102
|
letter-spacing: $mktg-body-spacing-large !important;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
@if (map-get($pairing-lg,
|
|
105
|
+
@if (map-get($pairing-lg, 'size') >= $mktg-body-weight-threshold and map-get($pairing-md, 'size') < $mktg-body-weight-threshold) {
|
|
106
106
|
font-weight: $font-weight-medium;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -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; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/css",
|
|
3
|
-
"version": "19.0.0-rc.
|
|
3
|
+
"version": "19.0.0-rc.1bd2ddff",
|
|
4
4
|
"description": "The CSS implementation of GitHub's Primer Design System",
|
|
5
5
|
"homepage": "https://primer.style/css",
|
|
6
6
|
"author": "GitHub, Inc.",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
26
|
"dist": "script/dist.js",
|
|
27
|
-
"stylelint": "stylelint --quiet src/**/*.scss",
|
|
27
|
+
"stylelint": "stylelint --quiet 'src/**/*.scss'",
|
|
28
28
|
"eslint": "eslint deprecations.js __tests__ script",
|
|
29
29
|
"prepublishOnly": "script/prepublish",
|
|
30
30
|
"start": "yarn dev",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"storybook": "cd docs && yarn && yarn storybook"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@primer/primitives": "^7.0
|
|
38
|
+
"@primer/primitives": "^7.1.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@changesets/changelog-github": "0.4.1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Responsive media queries
|
|
2
2
|
|
|
3
3
|
@mixin breakpoint($breakpoint) {
|
|
4
|
-
@if $breakpoint ==
|
|
4
|
+
@if $breakpoint == '' {
|
|
5
5
|
@content;
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
// If the key doesn't exist in the map
|
|
21
21
|
@else {
|
|
22
|
-
@warn
|
|
23
|
-
+
|
|
22
|
+
@warn 'Unfortunately, no value could be retrieved from `#{$breakpoint}`. '
|
|
23
|
+
+ 'Please make sure it is defined in `$breakpoints` map.';
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
@mixin clearfix {
|
|
48
48
|
&::before {
|
|
49
49
|
display: table;
|
|
50
|
-
content:
|
|
50
|
+
content: '';
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&::after {
|
|
54
54
|
display: table;
|
|
55
55
|
clear: both;
|
|
56
|
-
content:
|
|
56
|
+
content: '';
|
|
57
57
|
}
|
|
58
58
|
}
|
package/support/mixins/misc.scss
CHANGED
|
@@ -150,11 +150,11 @@ $breakpoints: (
|
|
|
150
150
|
// breakpoints and create both responsive and non-responsive classes in one
|
|
151
151
|
// loop:
|
|
152
152
|
$responsive-variants: (
|
|
153
|
-
|
|
154
|
-
sm:
|
|
155
|
-
md:
|
|
156
|
-
lg:
|
|
157
|
-
xl:
|
|
153
|
+
'': '',
|
|
154
|
+
sm: '-sm',
|
|
155
|
+
md: '-md',
|
|
156
|
+
lg: '-lg',
|
|
157
|
+
xl: '-xl',
|
|
158
158
|
) !default;
|
|
159
159
|
|
|
160
160
|
// responive utility position values
|
|
@@ -32,7 +32,7 @@ $lh-condensed: 1.25 !default;
|
|
|
32
32
|
$lh-default: 1.5 !default;
|
|
33
33
|
|
|
34
34
|
// Font stacks
|
|
35
|
-
$body-font: -apple-system, BlinkMacSystemFont,
|
|
35
|
+
$body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji' !default;
|
|
36
36
|
|
|
37
37
|
// Monospace font stack
|
|
38
38
|
// Note: SFMono-Regular needs to come before SF Mono to fix an older version of the font in Chrome
|