@papillonarts/css 0.6.0 → 0.8.0
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/LICENSE +1 -1
- package/build/primer/autocomplete/README.md +20 -0
- package/build/primer/autocomplete/index.scss +3 -0
- package/build/primer/autocomplete/suggester.scss +101 -0
- package/build/primer/avatars/README.md +20 -0
- package/build/primer/avatars/avatar-parent-child.scss +17 -0
- package/build/primer/avatars/circle-badge.scss +55 -0
- package/build/primer/avatars/index.scss +5 -0
- package/build/primer/base/README.md +20 -0
- package/build/primer/base/base.scss +9 -17
- package/build/primer/base/index.scss +1 -0
- package/build/primer/base/kbd.scss +8 -10
- package/build/primer/{color-modes/native.scss → base/native-colors.scss} +4 -2
- package/build/primer/base/normalize.scss +4 -3
- package/build/primer/base/typography-base.scss +4 -3
- package/build/primer/box/README.md +20 -0
- package/build/primer/box/box-overlay.scss +45 -0
- package/build/primer/box/index.scss +2 -0
- package/build/primer/branch-name/README.md +20 -0
- package/build/primer/branch-name/branch-name.scss +33 -0
- package/build/primer/branch-name/index.scss +3 -0
- package/build/primer/buttons/README.md +20 -0
- package/build/primer/buttons/button-group.scss +104 -0
- package/build/primer/buttons/button.scss +347 -0
- package/build/primer/buttons/index.scss +4 -0
- package/build/primer/buttons/misc.scss +244 -0
- package/build/primer/color-modes/index.scss +0 -1
- package/build/primer/color-modes/themes/dark.scss +1 -6
- package/build/primer/color-modes/themes/dark_colorblind.scss +1 -6
- package/build/primer/color-modes/themes/dark_dimmed.scss +1 -6
- package/build/primer/color-modes/themes/dark_high_contrast.scss +1 -6
- package/build/primer/color-modes/themes/dark_tritanopia.scss +1 -6
- package/build/primer/color-modes/themes/light.scss +1 -6
- package/build/primer/color-modes/themes/light_colorblind.scss +1 -6
- package/build/primer/color-modes/themes/light_high_contrast.scss +1 -6
- package/build/primer/color-modes/themes/light_tritanopia.scss +1 -6
- package/build/primer/core/README.md +20 -0
- package/build/primer/core/index.scss +18 -0
- package/build/primer/docs.scss +7 -0
- package/build/primer/forms/README.md +20 -0
- package/build/primer/forms/form-control.scss +286 -0
- package/build/primer/forms/form-group.scss +297 -0
- package/build/primer/forms/form-select.scss +47 -0
- package/build/primer/forms/index.scss +6 -0
- package/build/primer/forms/input-group.scss +81 -0
- package/build/primer/forms/radio-group.scss +68 -0
- package/build/primer/header/README.md +20 -0
- package/build/primer/header/header.scss +51 -0
- package/build/primer/header/index.scss +2 -0
- package/build/primer/index.scss +8 -3
- package/build/primer/labels/README.md +20 -0
- package/build/primer/labels/index.scss +3 -0
- package/build/primer/labels/issue-labels.scss +26 -0
- package/build/primer/labels/mixins.scss +44 -0
- package/build/primer/layout/README.md +20 -0
- package/build/primer/layout/app-frame.scss +156 -0
- package/build/primer/layout/container.scss +30 -0
- package/build/primer/layout/grid-offset.scss +19 -0
- package/build/primer/layout/grid.scss +77 -0
- package/build/primer/layout/index.scss +7 -0
- package/build/primer/layout/page-layout.scss +417 -0
- package/build/primer/layout/stack.scss +220 -0
- package/build/primer/loaders/README.md +20 -0
- package/build/primer/loaders/index.scss +2 -0
- package/build/primer/loaders/loaders.scss +19 -0
- package/build/primer/markdown/README.md +20 -0
- package/build/primer/markdown/blob-csv.scss +32 -0
- package/build/primer/markdown/code.scss +79 -0
- package/build/primer/markdown/footnotes.scss +59 -0
- package/build/primer/markdown/headings.scss +101 -0
- package/build/primer/markdown/images.scss +130 -0
- package/build/primer/markdown/index.scss +9 -0
- package/build/primer/markdown/lists.scss +101 -0
- package/build/primer/markdown/markdown-body.scss +101 -0
- package/build/primer/markdown/tables.scss +46 -0
- package/build/primer/marketing/README.md +20 -0
- package/build/primer/marketing/buttons/button.scss +171 -0
- package/build/primer/marketing/buttons/index.scss +3 -0
- package/build/primer/marketing/index.scss +8 -0
- package/build/primer/marketing/links/index.scss +3 -0
- package/build/primer/marketing/links/link.scss +51 -0
- package/build/primer/marketing/support/index.scss +2 -0
- package/build/primer/marketing/support/variables.scss +140 -0
- package/build/primer/marketing/type/index.scss +3 -0
- package/build/primer/marketing/type/typography.scss +140 -0
- package/build/primer/marketing/utilities/animations.scss +52 -0
- package/build/primer/marketing/utilities/borders.scss +4 -0
- package/build/primer/marketing/utilities/filters.scss +3 -0
- package/build/primer/marketing/utilities/index.scss +6 -0
- package/build/primer/marketing/utilities/layout.scss +58 -0
- package/build/primer/navigation/README.md +20 -0
- package/build/primer/navigation/filter-list.scss +86 -0
- package/build/primer/navigation/index.scss +5 -0
- package/build/primer/navigation/sidenav.scss +102 -0
- package/build/primer/navigation/subnav.scss +154 -0
- package/build/primer/pagination/README.md +20 -0
- package/build/primer/pagination/index.scss +3 -0
- package/build/primer/pagination/pagination.scss +157 -0
- package/build/primer/primitives/index.scss +10 -0
- package/build/primer/primitives/temp-typography-tokens.scss +22 -0
- package/build/primer/product/README.md +20 -0
- package/build/primer/product/index.scss +13 -0
- package/build/primer/select-menu/README.md +20 -0
- package/build/primer/select-menu/index.scss +3 -0
- package/build/primer/select-menu/select-menu.scss +486 -0
- package/build/primer/support/README.md +20 -0
- package/build/primer/support/mixins/color-modes.scss +89 -3
- package/build/primer/support/mixins/layout.scss +1 -2
- package/build/primer/support/mixins/misc.scss +15 -9
- package/build/primer/support/mixins/typography.scss +21 -2
- package/build/primer/support/variables/misc.scss +2 -2
- package/build/primer/support/variables/typography.scss +2 -2
- package/build/primer/table-object/index.scss +1 -0
- package/build/primer/table-object/table-object.scss +23 -0
- package/build/primer/toasts/README.md +20 -0
- package/build/primer/toasts/index.scss +2 -0
- package/build/primer/toasts/toasts.scss +129 -0
- package/build/primer/tooltips/README.md +20 -0
- package/build/primer/tooltips/index.scss +2 -0
- package/build/primer/tooltips/tooltips.scss +228 -0
- package/build/primer/truncate/truncate.scss +2 -66
- package/build/primer/utilities/README.md +20 -0
- package/build/primer/utilities/borders.scss +30 -21
- package/build/primer/utilities/box-shadow.scss +8 -6
- package/build/primer/utilities/colors.scss +59 -60
- package/build/primer/utilities/details.scss +2 -2
- package/build/primer/utilities/flexbox.scss +2 -2
- package/build/primer/utilities/layout.scss +8 -6
- package/build/primer/utilities/margin.scss +2 -5
- package/build/primer/utilities/padding.scss +8 -10
- package/build/primer/utilities/typography.scss +12 -11
- package/build/primer/utilities/visibility-display.scss +14 -12
- package/package.json +2 -2
|
@@ -1,66 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* CSS truncate */
|
|
4
|
-
|
|
5
|
-
/* css-truncate will shorten text with an ellipsis. */
|
|
6
|
-
|
|
7
|
-
.css-truncate {
|
|
8
|
-
/* css-truncate-overflow will shorten text with an ellipsis when overflowing */
|
|
9
|
-
&.css-truncate-overflow,
|
|
10
|
-
& .css-truncate-overflow,
|
|
11
|
-
&.css-truncate-target,
|
|
12
|
-
& .css-truncate-target {
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
text-overflow: ellipsis;
|
|
15
|
-
white-space: nowrap;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* css-truncate-target will shorten text with an ellipsis and a max width */
|
|
19
|
-
&.css-truncate-target,
|
|
20
|
-
& .css-truncate-target {
|
|
21
|
-
display: inline-block;
|
|
22
|
-
max-width: 125px;
|
|
23
|
-
vertical-align: top;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.expandable.zeroclipboard-is-hover .css-truncate-target,
|
|
27
|
-
&.expandable.zeroclipboard-is-hover.css-truncate-target,
|
|
28
|
-
&.expandable:hover .css-truncate-target,
|
|
29
|
-
&.expandable:hover.css-truncate-target {
|
|
30
|
-
max-width: 10000px !important;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// https://raw.githubusercontent.com/primer/view_components/main/app/components/primer/beta/truncate.pcss
|
|
35
|
-
|
|
36
|
-
// /* Truncate */
|
|
37
|
-
|
|
38
|
-
.Truncate {
|
|
39
|
-
display: inline-flex;
|
|
40
|
-
min-width: 0;
|
|
41
|
-
max-width: 100%;
|
|
42
|
-
|
|
43
|
-
& > .Truncate-text {
|
|
44
|
-
min-width: 1ch;
|
|
45
|
-
max-width: fit-content;
|
|
46
|
-
overflow: hidden;
|
|
47
|
-
text-overflow: ellipsis;
|
|
48
|
-
white-space: nowrap;
|
|
49
|
-
|
|
50
|
-
& + .Truncate-text {
|
|
51
|
-
margin-left: var(--primer-control-small-gap, 4px);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.Truncate-text--primary {
|
|
55
|
-
flex-basis: 200%;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.Truncate-text--expandable:hover,
|
|
59
|
-
&.Truncate-text--expandable:focus,
|
|
60
|
-
&.Truncate-text--expandable:active {
|
|
61
|
-
max-width: 100% !important;
|
|
62
|
-
flex-shrink: 0;
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
1
|
+
@import '@primer/view-components/app/components/primer/truncate';
|
|
2
|
+
@import '@primer/view-components/app/components/primer/beta/truncate';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
bundle: "utilities"
|
|
3
|
+
generated: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Primer CSS: `utilities` bundle
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
|
|
11
|
+
|
|
12
|
+
```scss
|
|
13
|
+
@import "@primer/css/utilities/index.scss";
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Build
|
|
17
|
+
|
|
18
|
+
The `@primer/css` npm package includes a standalone CSS build of this module in `dist/utilities.css`.
|
|
19
|
+
|
|
20
|
+
[scss]: https://sass-lang.com/documentation/syntax#scss
|
|
@@ -1,33 +1,42 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
1
|
+
@import '../support/mixins/layout.scss';
|
|
2
|
+
@import '../support/variables/layout.scss';
|
|
3
|
+
@import '../support/variables/misc.scss';
|
|
4
4
|
|
|
5
5
|
// Core border utilities
|
|
6
|
-
// stylelint-disable
|
|
6
|
+
// stylelint-disable primer/borders
|
|
7
7
|
|
|
8
8
|
/* Add a gray border to the left and right */
|
|
9
9
|
.border-x {
|
|
10
|
-
|
|
11
|
-
border-
|
|
10
|
+
// stylelint-disable-next-line primer/colors
|
|
11
|
+
border-right: $border-rem !important;
|
|
12
|
+
// stylelint-disable-next-line primer/colors
|
|
13
|
+
border-left: $border-rem !important;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
/* Add a gray border to the top and bottom */
|
|
15
17
|
.border-y {
|
|
16
|
-
|
|
17
|
-
border-
|
|
18
|
+
// stylelint-disable-next-line primer/colors
|
|
19
|
+
border-top: $border-rem !important;
|
|
20
|
+
// stylelint-disable-next-line primer/colors
|
|
21
|
+
border-bottom: $border-rem !important;
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
/* Responsive gray borders */
|
|
21
25
|
@each $breakpoint, $variant in $responsive-variants {
|
|
22
26
|
@include breakpoint($breakpoint) {
|
|
23
27
|
/* Add a gray border on all sides at/above this breakpoint */
|
|
24
|
-
|
|
28
|
+
// stylelint-disable-next-line primer/colors
|
|
29
|
+
.border#{$variant} { border: $border-rem !important; }
|
|
25
30
|
.border#{$variant}-0 { border: 0 !important; }
|
|
26
31
|
|
|
27
|
-
|
|
28
|
-
.border#{$variant}-
|
|
29
|
-
|
|
30
|
-
.border#{$variant}-
|
|
32
|
+
// stylelint-disable-next-line primer/colors
|
|
33
|
+
.border#{$variant}-top { border-top: $border-rem !important; }
|
|
34
|
+
// stylelint-disable-next-line primer/colors
|
|
35
|
+
.border#{$variant}-right { border-right: $border-rem !important; }
|
|
36
|
+
// stylelint-disable-next-line primer/colors
|
|
37
|
+
.border#{$variant}-bottom { border-bottom: $border-rem !important; }
|
|
38
|
+
// stylelint-disable-next-line primer/colors
|
|
39
|
+
.border#{$variant}-left { border-left: $border-rem !important; }
|
|
31
40
|
|
|
32
41
|
.border#{$variant}-top-0 { border-top: 0 !important; }
|
|
33
42
|
.border#{$variant}-right-0 { border-right: 0 !important; }
|
|
@@ -35,11 +44,11 @@
|
|
|
35
44
|
.border#{$variant}-left-0 { border-left: 0 !important; }
|
|
36
45
|
|
|
37
46
|
// Rounded corners
|
|
38
|
-
.rounded#{$variant} { border-radius: var(--
|
|
47
|
+
.rounded#{$variant} { border-radius: var(--borderRadius-medium, $border-radius-2) !important; }
|
|
39
48
|
.rounded#{$variant}-0 { border-radius: 0 !important; }
|
|
40
|
-
.rounded#{$variant}-1 { border-radius: var(--
|
|
41
|
-
.rounded#{$variant}-2 { border-radius: var(--
|
|
42
|
-
.rounded#{$variant}-3 { border-radius: var(--
|
|
49
|
+
.rounded#{$variant}-1 { border-radius: var(--borderRadius-small, $border-radius-1) !important; }
|
|
50
|
+
.rounded#{$variant}-2 { border-radius: var(--borderRadius-medium, $border-radius-2) !important; }
|
|
51
|
+
.rounded#{$variant}-3 { border-radius: var(--borderRadius-large, $border-radius-3) !important; }
|
|
43
52
|
|
|
44
53
|
@each $edge, $corners in $edges {
|
|
45
54
|
.rounded#{$variant}-#{$edge}-0 {
|
|
@@ -50,19 +59,19 @@
|
|
|
50
59
|
|
|
51
60
|
.rounded#{$variant}-#{$edge}-1 {
|
|
52
61
|
@each $corner in $corners {
|
|
53
|
-
border-#{$corner}-radius: var(--
|
|
62
|
+
border-#{$corner}-radius: var(--borderRadius-small, $border-radius-1) !important;
|
|
54
63
|
}
|
|
55
64
|
}
|
|
56
65
|
|
|
57
66
|
.rounded#{$variant}-#{$edge}-2 {
|
|
58
67
|
@each $corner in $corners {
|
|
59
|
-
border-#{$corner}-radius: var(--
|
|
68
|
+
border-#{$corner}-radius: var(--borderRadius-medium, $border-radius-2) !important;
|
|
60
69
|
}
|
|
61
70
|
}
|
|
62
71
|
|
|
63
72
|
.rounded#{$variant}-#{$edge}-3 {
|
|
64
73
|
@each $corner in $corners {
|
|
65
|
-
border-#{$corner}-radius: var(--
|
|
74
|
+
border-#{$corner}-radius: var(--borderRadius-medium, $border-radius-3) !important;
|
|
66
75
|
}
|
|
67
76
|
}
|
|
68
77
|
}
|
|
@@ -70,7 +79,7 @@
|
|
|
70
79
|
}
|
|
71
80
|
|
|
72
81
|
/* Add a 50% border-radius to make something into a circle */
|
|
73
|
-
.circle { border-radius: var(--
|
|
82
|
+
.circle { border-radius: var(--borderRadius-full, 50%) !important; }
|
|
74
83
|
|
|
75
84
|
/* Change the border style to dashed, in conjunction with another utility */
|
|
76
85
|
.border-dashed {
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
@import "../support/variables/misc.scss";
|
|
2
|
-
|
|
3
1
|
// Box shadow utilities
|
|
4
2
|
|
|
5
3
|
// Box shadows
|
|
6
4
|
|
|
7
5
|
.color-shadow-small {
|
|
8
|
-
box-shadow: var(--color-shadow-small) !important;
|
|
6
|
+
box-shadow: var(--shadow-resting-small, var(--color-shadow-small)) !important;
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
.color-shadow-medium {
|
|
12
|
-
box-shadow: var(--color-shadow-medium) !important;
|
|
10
|
+
box-shadow: var(--shadow-resting-medium, var(--color-shadow-medium)) !important;
|
|
13
11
|
}
|
|
14
12
|
|
|
15
13
|
.color-shadow-large {
|
|
16
|
-
box-shadow: var(--color-shadow-large) !important;
|
|
14
|
+
box-shadow: var(--shadow-floating-large, var(--color-shadow-large)) !important;
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
.color-shadow-extra-large {
|
|
20
|
-
box-shadow: var(--color-shadow-extra-large) !important;
|
|
18
|
+
box-shadow: var(--shadow-floating-xlarge, var(--color-shadow-extra-large)) !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.shadow-floating-small {
|
|
22
|
+
box-shadow: var(--shadow-floating-small, var(--color-overlay-shadow)) !important;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
// Turn off box shadow
|
|
@@ -1,95 +1,94 @@
|
|
|
1
|
-
// stylelint-disable block-opening-brace-space-before
|
|
2
1
|
|
|
3
2
|
// Foreground
|
|
4
3
|
|
|
5
|
-
.color-fg-default { color: var(--color-fg-default) !important; }
|
|
6
|
-
.color-fg-muted
|
|
7
|
-
.color-fg-subtle { color: var(--color-fg-subtle) !important; }
|
|
4
|
+
.color-fg-default, .fgColor-default { color: var(--fgColor-default, var(--color-fg-default)) !important; }
|
|
5
|
+
.color-fg-muted, .fgColor-muted { color: var(--fgColor-muted, var(--color-fg-muted)) !important; }
|
|
6
|
+
.color-fg-subtle { color: var(--fgColor-muted, var(--color-fg-subtle)) !important; }
|
|
8
7
|
|
|
9
|
-
.color-fg-accent { color: var(--color-accent-fg) !important; }
|
|
10
|
-
.color-fg-success { color: var(--color-success-fg) !important; }
|
|
11
|
-
.color-fg-attention { color: var(--color-attention-fg) !important; }
|
|
12
|
-
.color-fg-severe { color: var(--color-severe-fg) !important; }
|
|
13
|
-
.color-fg-danger { color: var(--color-danger-fg) !important; }
|
|
14
|
-
.color-fg-open { color: var(--color-open-fg) !important; }
|
|
15
|
-
.color-fg-closed { color: var(--color-closed-fg) !important; }
|
|
16
|
-
.color-fg-done { color: var(--color-done-fg) !important; }
|
|
17
|
-
.color-fg-sponsors { color: var(--color-sponsors-fg) !important; }
|
|
8
|
+
.color-fg-accent, .fgColor-accent { color: var(--fgColor-accent, var(--color-accent-fg)) !important; }
|
|
9
|
+
.color-fg-success, .fgColor-success { color: var(--fgColor-success, var(--color-success-fg)) !important; }
|
|
10
|
+
.color-fg-attention, .fgColor-attention { color: var(--fgColor-attention, var(--color-attention-fg)) !important; }
|
|
11
|
+
.color-fg-severe, .fgColor-severe { color: var(--fgColor-severe, var(--color-severe-fg)) !important; }
|
|
12
|
+
.color-fg-danger, .fgColor-danger { color: var(--fgColor-danger, var(--color-danger-fg)) !important; }
|
|
13
|
+
.color-fg-open, .fgColor-open { color: var(--fgColor-open, var(--color-open-fg)) !important; }
|
|
14
|
+
.color-fg-closed, .fgColor-closed { color: var(--fgColor-closed, var(--color-closed-fg)) !important; }
|
|
15
|
+
.color-fg-done, .fgColor-done { color: var(--fgColor-done, var(--color-done-fg)) !important; }
|
|
16
|
+
.color-fg-sponsors, .fgColor-sponsors { color: var(--fgColor-sponsors, var(--color-sponsors-fg)) !important; }
|
|
18
17
|
|
|
19
|
-
.color-fg-on-emphasis { color: var(--color-fg-on-emphasis) !important; }
|
|
18
|
+
.color-fg-on-emphasis, .fgColor-onEmphasis { color: var(--fgColor-onEmphasis, var(--color-fg-on-emphasis)) !important; }
|
|
20
19
|
|
|
21
20
|
// Background
|
|
22
21
|
|
|
23
|
-
.color-bg-default { background-color: var(--color-canvas-default) !important; }
|
|
24
|
-
.color-bg-overlay { background-color: var(--color-canvas-overlay) !important; }
|
|
25
|
-
.color-bg-inset { background-color: var(--color-canvas-inset) !important; }
|
|
26
|
-
.color-bg-subtle { background-color: var(--color-canvas-subtle) !important; }
|
|
27
|
-
.color-bg-emphasis { background-color: var(--color-neutral-emphasis-plus) !important; }
|
|
22
|
+
.color-bg-default, .bgColor-default { background-color: var(--bgColor-default, var(--color-canvas-default)) !important; }
|
|
23
|
+
.color-bg-overlay { background-color: var(--overlay-bgColor, var(--color-canvas-overlay)) !important; }
|
|
24
|
+
.color-bg-inset, .bgColor-inset { background-color: var(--bgColor-inset, var(--color-canvas-inset)) !important; }
|
|
25
|
+
.color-bg-subtle, .bgColor-muted { background-color: var(--bgColor-muted, var(--color-canvas-subtle)) !important; }
|
|
26
|
+
.color-bg-emphasis, .bgColor-emphasis { background-color: var(--bgColor-emphasis, var(--color-neutral-emphasis-plus)) !important; }
|
|
28
27
|
|
|
29
|
-
.color-bg-accent { background-color: var(--color-accent-subtle) !important; }
|
|
30
|
-
.color-bg-accent-emphasis { background-color: var(--color-accent-emphasis) !important; }
|
|
28
|
+
.color-bg-accent, .bgColor-accent-muted { background-color: var(--bgColor-accent-muted, var(--color-accent-subtle)) !important; }
|
|
29
|
+
.color-bg-accent-emphasis, .bgColor-accent-emphasis { background-color: var(--bgColor-accent-emphasis, var(--color-accent-emphasis)) !important; }
|
|
31
30
|
|
|
32
|
-
.color-bg-success { background-color: var(--color-success-subtle) !important; }
|
|
33
|
-
.color-bg-success-emphasis { background-color: var(--color-success-emphasis) !important; }
|
|
31
|
+
.color-bg-success, .bgColor-success-muted { background-color: var(--bgColor-success-muted, var(--color-success-subtle)) !important; }
|
|
32
|
+
.color-bg-success-emphasis, .bgColor-success-emphasis { background-color: var(--bgColor-success-emphasis, var(--color-success-emphasis)) !important; }
|
|
34
33
|
|
|
35
|
-
.color-bg-attention { background-color: var(--color-attention-subtle) !important; }
|
|
36
|
-
.color-bg-attention-emphasis { background-color: var(--color-attention-emphasis) !important; }
|
|
34
|
+
.color-bg-attention, .bgColor-attention-muted { background-color: var(--bgColor-attention-muted, var(--color-attention-subtle)) !important; }
|
|
35
|
+
.color-bg-attention-emphasis, .bgColor-attention-emphasis { background-color: var(--bgColor-attention-emphasis, var(--color-attention-emphasis)) !important; }
|
|
37
36
|
|
|
38
|
-
.color-bg-severe { background-color: var(--color-severe-subtle) !important; }
|
|
39
|
-
.color-bg-severe-emphasis { background-color: var(--color-severe-emphasis) !important; }
|
|
37
|
+
.color-bg-severe, .bgColor-severe-muted { background-color: var(--bgColor-severe-muted, var(--color-severe-subtle)) !important; }
|
|
38
|
+
.color-bg-severe-emphasis, .bgColor-severe-emphasis { background-color: var(--bgColor-severe-emphasis, var(--color-severe-emphasis)) !important; }
|
|
40
39
|
|
|
41
|
-
.color-bg-danger { background-color: var(--color-danger-subtle) !important; }
|
|
42
|
-
.color-bg-danger-emphasis { background-color: var(--color-danger-emphasis) !important; }
|
|
40
|
+
.color-bg-danger, .bgColor-danger-muted { background-color: var(--bgColor-danger-muted, var(--color-danger-subtle)) !important; }
|
|
41
|
+
.color-bg-danger-emphasis, .bgColor-danger-emphasis { background-color: var(--bgColor-danger-emphasis, var(--color-danger-emphasis)) !important; }
|
|
43
42
|
|
|
44
|
-
.color-bg-open { background-color: var(--color-open-subtle) !important; }
|
|
45
|
-
.color-bg-open-emphasis { background-color: var(--color-open-emphasis) !important; }
|
|
43
|
+
.color-bg-open, .bgColor-open-muted { background-color: var(--bgColor-open-muted, var(--color-open-subtle)) !important; }
|
|
44
|
+
.color-bg-open-emphasis, .bgColor-open-emphasis { background-color: var(--bgColor-open-emphasis, var(--color-open-emphasis)) !important; }
|
|
46
45
|
|
|
47
|
-
.color-bg-closed { background-color: var(--color-closed-subtle) !important; }
|
|
48
|
-
.color-bg-closed-emphasis { background-color: var(--color-closed-emphasis) !important; }
|
|
46
|
+
.color-bg-closed, .bgColor-closed-muted { background-color: var(--bgColor-closed-muted, var(--color-closed-subtle)) !important; }
|
|
47
|
+
.color-bg-closed-emphasis, .bgColor-closed-emphasis { background-color: var(--bgColor-closed-emphasis, var(--color-closed-emphasis)) !important; }
|
|
49
48
|
|
|
50
|
-
.color-bg-done { background-color: var(--color-done-subtle) !important; }
|
|
51
|
-
.color-bg-done-emphasis { background-color: var(--color-done-emphasis) !important; }
|
|
49
|
+
.color-bg-done, .bgColor-done-muted { background-color: var(--bgColor-done-muted, var(--color-done-subtle)) !important; }
|
|
50
|
+
.color-bg-done-emphasis, .bgColor-done-emphasis { background-color: var(--bgColor-done-emphasis, var(--color-done-emphasis)) !important; }
|
|
52
51
|
|
|
53
|
-
.color-bg-sponsors { background-color: var(--color-sponsors-subtle) !important; }
|
|
54
|
-
.color-bg-sponsors-emphasis { background-color: var(--color-sponsors-emphasis) !important; }
|
|
52
|
+
.color-bg-sponsors, .bgColor-sponsors-muted { background-color: var(--bgColor-sponsors-muted, var(--color-sponsors-subtle)) !important; }
|
|
53
|
+
.color-bg-sponsors-emphasis, .bgColor-sponsors-emphasis { background-color: var(--bgColor-sponsors-emphasis, var(--color-sponsors-emphasis)) !important; }
|
|
55
54
|
|
|
56
|
-
.color-bg-transparent { background-color: transparent !important; }
|
|
55
|
+
.color-bg-transparent, .bgColor-transparent { background-color: transparent !important; }
|
|
57
56
|
|
|
58
57
|
// Border
|
|
59
58
|
|
|
60
|
-
.color-border-default { border-color: var(--color-border-default) !important; }
|
|
61
|
-
.color-border-muted { border-color: var(--color-border-muted) !important; }
|
|
62
|
-
.color-border-subtle { border-color: var(--color-border-subtle) !important; }
|
|
59
|
+
.color-border-default, .borderColor-default { border-color: var(--borderColor-default, var(--color-border-default)) !important; }
|
|
60
|
+
.color-border-muted, .borderColor-muted { border-color: var(--borderColor-muted, var(--color-border-muted)) !important; }
|
|
61
|
+
.color-border-subtle { border-color: var(--borderColor-muted, var(--color-border-subtle)) !important; }
|
|
63
62
|
|
|
64
|
-
.color-border-accent { border-color: var(--color-accent-muted) !important; }
|
|
65
|
-
.color-border-accent-emphasis { border-color: var(--color-accent-emphasis) !important; }
|
|
63
|
+
.color-border-accent, .borderColor-accent-muted { border-color: var(--borderColor-accent-muted, var(--color-accent-muted)) !important; }
|
|
64
|
+
.color-border-accent-emphasis, .borderColor-accent-emphasis { border-color: var(--borderColor-accent-emphasis, var(--color-accent-emphasis)) !important; }
|
|
66
65
|
|
|
67
|
-
.color-border-success { border-color: var(--color-success-muted) !important; }
|
|
68
|
-
.color-border-success-emphasis { border-color: var(--color-success-emphasis) !important; }
|
|
66
|
+
.color-border-success, .borderColor-success-muted { border-color: var(--borderColor-success-muted, var(--color-success-muted)) !important; }
|
|
67
|
+
.color-border-success-emphasis, .borderColor-success-emphasis { border-color: var(--borderColor-success-emphasis, var(--color-success-emphasis)) !important; }
|
|
69
68
|
|
|
70
|
-
.color-border-attention { border-color: var(--color-attention-muted) !important; }
|
|
71
|
-
.color-border-attention-emphasis { border-color: var(--color-attention-emphasis) !important; }
|
|
69
|
+
.color-border-attention, .borderColor-attention-muted { border-color: var(--borderColor-attention-muted, var(--color-attention-muted)) !important; }
|
|
70
|
+
.color-border-attention-emphasis, .borderColor-attention-emphasis { border-color: var(--borderColor-attention-emphasis, var(--color-attention-emphasis)) !important; }
|
|
72
71
|
|
|
73
|
-
.color-border-severe { border-color: var(--color-severe-muted) !important; }
|
|
74
|
-
.color-border-severe-emphasis { border-color: var(--color-severe-emphasis) !important; }
|
|
72
|
+
.color-border-severe, .borderColor-severe-muted { border-color: var(--borderColor-severe-muted, var(--color-severe-muted)) !important; }
|
|
73
|
+
.color-border-severe-emphasis, .borderColor-severe-emphasis { border-color: var(--borderColor-severe-emphasis, var(--color-severe-emphasis)) !important; }
|
|
75
74
|
|
|
76
|
-
.color-border-danger { border-color: var(--color-danger-muted) !important; }
|
|
77
|
-
.color-border-danger-emphasis { border-color: var(--color-danger-emphasis) !important; }
|
|
75
|
+
.color-border-danger, .borderColor-danger-muted { border-color: var(--borderColor-danger-muted, var(--color-danger-muted)) !important; }
|
|
76
|
+
.color-border-danger-emphasis, .borderColor-danger-emphasis { border-color: var(--borderColor-danger-emphasis, var(--color-danger-emphasis)) !important; }
|
|
78
77
|
|
|
79
|
-
.color-border-open { border-color: var(--color-open-muted) !important; }
|
|
80
|
-
.color-border-open-emphasis { border-color: var(--color-open-emphasis) !important; }
|
|
78
|
+
.color-border-open, .borderColor-open-muted { border-color: var(--borderColor-open-muted, var(--color-open-muted)) !important; }
|
|
79
|
+
.color-border-open-emphasis, .borderColor-open-emphasis { border-color: var(--borderColor-open-emphasis, var(--color-open-emphasis)) !important; }
|
|
81
80
|
|
|
82
|
-
.color-border-closed { border-color: var(--color-closed-muted) !important; }
|
|
83
|
-
.color-border-closed-emphasis { border-color: var(--color-closed-emphasis) !important; }
|
|
81
|
+
.color-border-closed, .borderColor-closed-muted { border-color: var(--borderColor-closed-muted, var(--color-closed-muted)) !important; }
|
|
82
|
+
.color-border-closed-emphasis, .borderColor-closed-emphasis { border-color: var(--borderColor-closed-emphasis, var(--color-closed-emphasis)) !important; }
|
|
84
83
|
|
|
85
|
-
.color-border-done { border-color: var(--color-done-muted) !important; }
|
|
86
|
-
.color-border-done-emphasis { border-color: var(--color-done-emphasis) !important; }
|
|
84
|
+
.color-border-done, .borderColor-done-muted { border-color: var(--borderColor-done-muted, var(--color-done-muted)) !important; }
|
|
85
|
+
.color-border-done-emphasis, .borderColor-done-emphasis { border-color: var(--borderColor-done-emphasis, var(--color-done-emphasis)) !important; }
|
|
87
86
|
|
|
88
|
-
.color-border-sponsors { border-color: var(--color-sponsors-muted) !important; }
|
|
89
|
-
.color-border-sponsors-emphasis { border-color: var(--color-sponsors-emphasis) !important; }
|
|
87
|
+
.color-border-sponsors, .borderColor-sponsors-muted { border-color: var(--borderColor-sponsors-muted, var(--color-sponsors-muted)) !important; }
|
|
88
|
+
.color-border-sponsors-emphasis, .borderColor-sponsors-emphasis { border-color: var(--borderColor-sponsors-emphasis, var(--color-sponsors-emphasis)) !important; }
|
|
90
89
|
|
|
91
90
|
// Misc
|
|
92
91
|
|
|
93
|
-
.color-fg-inherit {
|
|
92
|
+
.color-fg-inherit, .fgColor-inherit {
|
|
94
93
|
color: inherit !important;
|
|
95
94
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import '../support/mixins/misc.scss';
|
|
2
2
|
|
|
3
3
|
// stylelint-disable selector-max-type, selector-max-specificity, max-nesting-depth, selector-no-qualifying-type
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
.details-overlay-dark[open] > summary::before {
|
|
19
19
|
z-index: 111;
|
|
20
|
-
background: var(--color-primer-canvas-backdrop);
|
|
20
|
+
background: var(--overlay-backdrop-bgColor, var(--color-primer-canvas-backdrop));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.details-reset {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import '../support/mixins/layout.scss';
|
|
2
|
+
@import '../support/variables/layout.scss';
|
|
2
3
|
|
|
3
4
|
// Flex utility classes
|
|
4
|
-
// stylelint-disable block-opening-brace-space-before
|
|
5
5
|
@each $breakpoint, $variant in $responsive-variants {
|
|
6
6
|
@include breakpoint($breakpoint) {
|
|
7
7
|
// Flexbox classes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import '../support/mixins/layout.scss';
|
|
2
|
+
@import '../support/variables/layout.scss';
|
|
2
3
|
|
|
3
4
|
// Layout
|
|
4
|
-
// stylelint-disable block-opening-brace-space-before, comment-empty-line-before
|
|
5
5
|
|
|
6
6
|
/* Position */
|
|
7
7
|
@each $breakpoint, $variant in $responsive-variants {
|
|
@@ -73,13 +73,15 @@
|
|
|
73
73
|
// Width and height utilities, helpful in combination
|
|
74
74
|
// with display-table utilities and images
|
|
75
75
|
/* Max width 100% */
|
|
76
|
-
.width-fit
|
|
76
|
+
.width-fit { max-width: 100% !important; }
|
|
77
77
|
/* Set the width to 100% */
|
|
78
|
-
.width-full
|
|
78
|
+
.width-full { width: 100% !important; }
|
|
79
|
+
/* Set the max-width to 65 characters */
|
|
80
|
+
.width-comfortable { max-width: 65ch !important; }
|
|
79
81
|
/* Max height 100% */
|
|
80
|
-
.height-fit
|
|
82
|
+
.height-fit { max-height: 100% !important; }
|
|
81
83
|
/* Set the height to 100% */
|
|
82
|
-
.height-full
|
|
84
|
+
.height-full { height: 100% !important; }
|
|
83
85
|
|
|
84
86
|
/* Remove min-width from element */
|
|
85
87
|
.min-width-0 { min-width: 0 !important; }
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
1
|
+
@import '../support/mixins/layout.scss';
|
|
2
|
+
@import '../support/variables/layout.scss';
|
|
3
3
|
|
|
4
4
|
// Margin spacer utilities
|
|
5
|
-
// stylelint-disable block-opening-brace-space-before
|
|
6
|
-
// stylelint-disable declaration-colon-space-before
|
|
7
|
-
// stylelint-disable comment-empty-line-before
|
|
8
5
|
// stylelint-disable primer/spacing
|
|
9
6
|
|
|
10
7
|
// Loop through the breakpoint values
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
1
|
+
@import '../support/mixins/layout.scss';
|
|
2
|
+
@import '../support/variables/layout.scss';
|
|
3
3
|
|
|
4
4
|
// Padding spacer utilities
|
|
5
|
-
// stylelint-disable block-opening-brace-space-before
|
|
6
|
-
// stylelint-disable comment-empty-line-before
|
|
7
5
|
// stylelint-disable primer/spacing
|
|
8
6
|
|
|
9
7
|
// Responsive padding spacer utilities
|
|
@@ -44,16 +42,16 @@
|
|
|
44
42
|
|
|
45
43
|
// responsive padding for containers
|
|
46
44
|
.p-responsive {
|
|
47
|
-
padding-right: var(--base-size-16
|
|
48
|
-
padding-left: var(--base-size-16
|
|
45
|
+
padding-right: var(--base-size-16) !important;
|
|
46
|
+
padding-left: var(--base-size-16) !important;
|
|
49
47
|
|
|
50
48
|
@include breakpoint(sm) {
|
|
51
|
-
padding-right: var(--base-size-40
|
|
52
|
-
padding-left: var(--base-size-40
|
|
49
|
+
padding-right: var(--base-size-40) !important;
|
|
50
|
+
padding-left: var(--base-size-40) !important;
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
@include breakpoint(lg) {
|
|
56
|
-
padding-right: var(--base-size-16
|
|
57
|
-
padding-left: var(--base-size-16
|
|
54
|
+
padding-right: var(--base-size-16) !important;
|
|
55
|
+
padding-left: var(--base-size-16) !important;
|
|
58
56
|
}
|
|
59
57
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
1
|
+
@import '../support/mixins/layout.scss';
|
|
2
|
+
@import '../support/variables/typography.scss';
|
|
3
3
|
|
|
4
|
-
// stylelint-disable
|
|
4
|
+
// stylelint-disable primer/typography
|
|
5
5
|
|
|
6
6
|
// Type scale variables found in ../support/lib/variables.scss
|
|
7
7
|
// $h00-size-mobile: 40px;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
.h4,
|
|
70
70
|
.h5,
|
|
71
71
|
.h6 {
|
|
72
|
-
font-weight:
|
|
72
|
+
font-weight: $font-weight-bold !important;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
// Type utilities that match type sale
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
/* Set the font size to 40px and weight to light */
|
|
124
124
|
.f00-light {
|
|
125
125
|
font-size: var(--h00-size-mobile, $h00-size-mobile) !important;
|
|
126
|
-
font-weight:
|
|
126
|
+
font-weight: $font-weight-light !important;
|
|
127
127
|
|
|
128
128
|
@include breakpoint(md) {
|
|
129
129
|
font-size: var(--h00-size, $h00-size) !important;
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
/* Set the font size to 32px and weight to light */
|
|
134
134
|
.f0-light {
|
|
135
135
|
font-size: var(--h0-size-mobile, $h0-size-mobile) !important;
|
|
136
|
-
font-weight:
|
|
136
|
+
font-weight: $font-weight-light !important;
|
|
137
137
|
|
|
138
138
|
@include breakpoint(md) {
|
|
139
139
|
font-size: var(--h0-size, $h0-size) !important;
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
/* Set the font size to 26px and weight to light */
|
|
144
144
|
.f1-light {
|
|
145
145
|
font-size: var(--h1-size-mobile, $h1-size-mobile) !important;
|
|
146
|
-
font-weight:
|
|
146
|
+
font-weight: $font-weight-light !important;
|
|
147
147
|
|
|
148
148
|
@include breakpoint(md) {
|
|
149
149
|
font-size: var(--h1-size, $h1-size) !important;
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
/* Set the font size to 22px and weight to light */
|
|
154
154
|
.f2-light {
|
|
155
155
|
font-size: var(--h2-size-mobile, $h2-size-mobile) !important;
|
|
156
|
-
font-weight:
|
|
156
|
+
font-weight: $font-weight-light !important;
|
|
157
157
|
|
|
158
158
|
@include breakpoint(md) {
|
|
159
159
|
font-size: var(--h2-size, $h2-size) !important;
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
/* Set the font size to 18px and weight to light */
|
|
165
165
|
.f3-light {
|
|
166
166
|
font-size: var(--h3-size-mobile, $h3-size-mobile) !important;
|
|
167
|
-
font-weight:
|
|
167
|
+
font-weight: $font-weight-light !important;
|
|
168
168
|
|
|
169
169
|
@include breakpoint(md) {
|
|
170
170
|
font-size: var(--h3-size, $h3-size) !important;
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
// stylelint-disable-next-line primer/spacing
|
|
185
185
|
margin-bottom: 30px;
|
|
186
186
|
font-size: var(--h3-size, $h3-size);
|
|
187
|
-
font-weight:
|
|
187
|
+
font-weight: $font-weight-light;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
// Line-height variations
|
|
@@ -290,6 +290,7 @@
|
|
|
290
290
|
|
|
291
291
|
/* Force long "words" to wrap if they exceed the width of the container */
|
|
292
292
|
.wb-break-word {
|
|
293
|
+
// stylelint-disable-next-line declaration-property-value-keyword-no-deprecated
|
|
293
294
|
word-break: break-word !important;
|
|
294
295
|
// this is for backwards compatibility with browsers that don't respect overflow-wrap
|
|
295
296
|
word-wrap: break-word !important;
|
|
@@ -311,7 +312,7 @@
|
|
|
311
312
|
}
|
|
312
313
|
|
|
313
314
|
.text-emphasized {
|
|
314
|
-
font-weight:
|
|
315
|
+
font-weight: $font-weight-bold;
|
|
315
316
|
}
|
|
316
317
|
|
|
317
318
|
// List styles
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import '../support/mixins/layout.scss';
|
|
2
|
+
@import '../support/variables/layout.scss';
|
|
2
3
|
|
|
3
4
|
// Visibility and display utilities
|
|
4
5
|
|
|
@@ -101,25 +102,26 @@
|
|
|
101
102
|
height: 1px;
|
|
102
103
|
padding: 0;
|
|
103
104
|
overflow: hidden;
|
|
104
|
-
clip: rect(0
|
|
105
|
+
clip-path: rect(0 0 0 0);
|
|
105
106
|
// Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1241631
|
|
106
|
-
|
|
107
|
+
overflow-wrap: normal;
|
|
107
108
|
border: 0;
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
// Only display content on focus
|
|
111
112
|
.show-on-focus {
|
|
112
|
-
position: absolute;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
position: absolute !important;
|
|
114
|
+
|
|
115
|
+
&:not(:focus) {
|
|
116
|
+
width: 1px !important;
|
|
117
|
+
height: 1px !important;
|
|
118
|
+
padding: 0 !important;
|
|
119
|
+
overflow: hidden !important;
|
|
120
|
+
clip: rect(1px, 1px, 1px, 1px) !important;
|
|
121
|
+
border: 0 !important;
|
|
122
|
+
}
|
|
118
123
|
|
|
119
124
|
&:focus {
|
|
120
125
|
z-index: 999;
|
|
121
|
-
width: auto;
|
|
122
|
-
height: auto;
|
|
123
|
-
clip: auto;
|
|
124
126
|
}
|
|
125
127
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonarts/css",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Papillon Arts CSS",
|
|
5
5
|
"homepage": "https://github.com/papillonarts/papillonarts/tree/master/packages/css",
|
|
6
6
|
"repository": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"build-acceptance": "npm run build",
|
|
24
24
|
"build-release": "npm run build"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "20dbfd5958c9d5cbbfbc8efd7103983409861851"
|
|
27
27
|
}
|