@primer/css 0.0.0-20220623194503 → 0.0.0-20220625011950
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 +4 -36
- package/actionlist/action-list-item.scss +2 -23
- package/app/README.md +25 -0
- package/app/app-footer.scss +0 -0
- package/app/app-frame.scss +170 -0
- package/app/app-header.scss +556 -0
- package/app/index.scss +4 -0
- package/autocomplete/autocomplete.scss +0 -3
- package/dist/actionlist.css +1 -1
- package/dist/actionlist.css.map +1 -1
- package/dist/app.css +2 -0
- package/dist/app.css.map +1 -0
- package/dist/app.js +1 -0
- package/dist/autocomplete.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/forms.css +1 -1
- package/dist/forms.css.map +1 -1
- package/dist/marketing-buttons.css +1 -1
- package/dist/marketing-buttons.css.map +1 -1
- package/dist/marketing.css +1 -1
- package/dist/marketing.css.map +1 -1
- package/dist/meta.json +77 -77
- package/dist/navigation.css +1 -1
- package/dist/navigation.css.map +1 -1
- package/dist/overlay.css +1 -1
- package/dist/overlay.css.map +1 -1
- package/dist/primer.css +3 -3
- 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/app.json +1 -0
- package/dist/stats/core.json +1 -1
- package/dist/stats/forms.json +1 -1
- package/dist/stats/marketing-buttons.json +1 -1
- package/dist/stats/marketing.json +1 -1
- package/dist/stats/navigation.json +1 -1
- package/dist/stats/overlay.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/product.json +1 -1
- package/forms/form-control.scss +1 -2
- package/forms/index.scss +0 -2
- package/marketing/buttons/button.scss +1 -3
- package/navigation/underline-nav.scss +2 -1
- package/overlay/overlay.scss +10 -11
- package/package.json +6 -6
- package/product/index.scss +1 -1
- package/dist/stats/toggle-switch.json +0 -1
- package/dist/toggle-switch.css +0 -2
- package/dist/toggle-switch.css.map +0 -1
- package/dist/toggle-switch.js +0 -1
- package/forms/FormControl.scss +0 -382
- package/toggle-switch/index.scss +0 -2
- package/toggle-switch/toggle-switch.scss +0 -243
package/CHANGELOG.md
CHANGED
|
@@ -1,46 +1,14 @@
|
|
|
1
1
|
# @primer/css
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Fake entry to force publishing
|
|
8
|
-
|
|
9
|
-
* [#2130](https://github.com/primer/css/pull/2130) [`544fb277`](https://github.com/primer/css/commit/544fb2773dbadd934a34232637970946de3c536d) Thanks [@renbaoshuo](https://github.com/renbaoshuo)! - Add link to source code in Timeline's doc
|
|
10
|
-
|
|
11
|
-
- [#2132](https://github.com/primer/css/pull/2132) [`c898103e`](https://github.com/primer/css/commit/c898103e0e942b7ab07f43b83496f019163458f1) Thanks [@vzrenggamani](https://github.com/vzrenggamani)! - docs: update deployment location of docs
|
|
12
|
-
|
|
13
|
-
## 20.2.3
|
|
14
|
-
|
|
15
|
-
### Patch Changes
|
|
16
|
-
|
|
17
|
-
- [#2124](https://github.com/primer/css/pull/2124) [`f1b3e55f`](https://github.com/primer/css/commit/f1b3e55f141ddaa5719d223d4670d935bf9d5337) Thanks [@langermank](https://github.com/langermank)! - FormControl + Overlay bug fixes
|
|
18
|
-
|
|
19
|
-
* [#2129](https://github.com/primer/css/pull/2129) [`2cc18d03`](https://github.com/primer/css/commit/2cc18d0348dc667961c9374886c8a82e95334d6f) Thanks [@camertron](https://github.com/camertron)! - Fix preview deploys
|
|
20
|
-
|
|
21
|
-
- [#2077](https://github.com/primer/css/pull/2077) [`ab078a58`](https://github.com/primer/css/commit/ab078a58c6ebe4118f917bed4c71fbbb56f0634f) Thanks [@mlynam](https://github.com/mlynam)! - Make .form-control elements render as disabled when a parent fieldset is disabled
|
|
22
|
-
|
|
23
|
-
## 20.2.2
|
|
24
|
-
|
|
25
|
-
### Patch Changes
|
|
26
|
-
|
|
27
|
-
- [#2075](https://github.com/primer/css/pull/2075) [`9f576a3c`](https://github.com/primer/css/commit/9f576a3c33479fa0beb5ef4fe9b794f67a58070c) Thanks [@langermank](https://github.com/langermank)! - FormControl + Autocomplete component updates
|
|
28
|
-
|
|
29
|
-
## 20.2.1
|
|
30
|
-
|
|
31
|
-
### Patch Changes
|
|
32
|
-
|
|
33
|
-
- [#2094](https://github.com/primer/css/pull/2094) [`33f799f1`](https://github.com/primer/css/commit/33f799f13edad2e7434425913a8d445aa27213de) Thanks [@camertron](https://github.com/camertron)! - Add missing ToggleSwitch--checked styles
|
|
34
|
-
|
|
35
|
-
* [#2091](https://github.com/primer/css/pull/2091) [`f740d008`](https://github.com/primer/css/commit/f740d00827fa854062f6ce3449ca6745fae9bea8) Thanks [@tobiasahlin](https://github.com/tobiasahlin)! - Marketing: Bump font size of large buttons
|
|
36
|
-
|
|
37
|
-
## 20.2.0
|
|
3
|
+
## 0.0.0-20220625011950
|
|
38
4
|
|
|
39
5
|
### Minor Changes
|
|
40
6
|
|
|
41
7
|
- [#2087](https://github.com/primer/css/pull/2087) [`8354de5c`](https://github.com/primer/css/commit/8354de5c5eeb60e447712c04e25c2ef370206488) Thanks [@vdepizzol](https://github.com/vdepizzol)! - Changing `PageLayout--isPaneSticky` to `PageLayout--sticky`.
|
|
42
8
|
|
|
43
|
-
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Fake entry to force publishing
|
|
44
12
|
|
|
45
13
|
## 20.1.1
|
|
46
14
|
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
outline: $border-style $border-width transparent;
|
|
38
38
|
outline-offset: -$border-width;
|
|
39
39
|
// stylelint-disable-next-line primer/box-shadow
|
|
40
|
-
box-shadow: inset 0 0 0
|
|
40
|
+
box-shadow: inset 0 0 0 2px var(--color-action-list-item-default-active-border);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
outline: $border-style $border-width transparent;
|
|
51
51
|
outline-offset: -$border-width;
|
|
52
52
|
// stylelint-disable-next-line primer/box-shadow
|
|
53
|
-
box-shadow: inset 0 0 0
|
|
53
|
+
box-shadow: inset 0 0 0 2px var(--color-action-list-item-default-active-border);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
@@ -235,27 +235,6 @@
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
// disabled
|
|
239
|
-
&[aria-disabled='true'] {
|
|
240
|
-
.ActionList-item-content {
|
|
241
|
-
.ActionList-item-label,
|
|
242
|
-
.ActionList-item-description {
|
|
243
|
-
color: var(--color-primer-fg-disabled);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.ActionList-item-visual {
|
|
247
|
-
fill: var(--color-primer-fg-disabled);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
@media (hover: hover) {
|
|
251
|
-
&:hover {
|
|
252
|
-
cursor: not-allowed;
|
|
253
|
-
background-color: transparent;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
238
|
// variants
|
|
260
239
|
|
|
261
240
|
// danger
|
package/app/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
bundle: "app"
|
|
3
|
+
generated: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Primer CSS: `app` 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/app/index.scss";
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Build
|
|
17
|
+
|
|
18
|
+
The `@primer/css` npm package includes a standalone CSS build of this module in `dist/app.css`.
|
|
19
|
+
|
|
20
|
+
## License
|
|
21
|
+
|
|
22
|
+
[MIT](https://github.com/primer/css/blob/main/LICENSE) © [GitHub](https://github.com/)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
[scss]: https://sass-lang.com/documentation/syntax#scss
|
|
File without changes
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// stylelint-disable max-nesting-depth
|
|
2
|
+
// stylelint-disable selector-max-specificity
|
|
3
|
+
// stylelint-disable no-duplicate-selectors
|
|
4
|
+
|
|
5
|
+
.AppFrame {
|
|
6
|
+
|
|
7
|
+
// Accessibility navigation
|
|
8
|
+
|
|
9
|
+
.AppFrame-a11yNav {
|
|
10
|
+
position: absolute;
|
|
11
|
+
padding: var(--base-size-16) var(--base-size-16) var(--base-size-8);
|
|
12
|
+
top: calc(var(--base-size-128) * -1);
|
|
13
|
+
left: 0;
|
|
14
|
+
background: #F6F8FA; /* fixme */
|
|
15
|
+
z-index: 1000;
|
|
16
|
+
width: 100%;
|
|
17
|
+
|
|
18
|
+
ul, li {
|
|
19
|
+
list-style: none;
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
ul {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--base-size-8);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:focus-within {
|
|
31
|
+
top: 0;
|
|
32
|
+
|
|
33
|
+
// Narrow viewport
|
|
34
|
+
@media (max-width: #{map-get($breakpoints, 'md') - 0.02px}) {
|
|
35
|
+
ul {
|
|
36
|
+
justify-content: center;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.AppFrame-a11yLink {
|
|
43
|
+
transition: none;
|
|
44
|
+
|
|
45
|
+
&:not(:focus) {
|
|
46
|
+
width: var(--base-size-8);
|
|
47
|
+
height: var(--base-size-8);
|
|
48
|
+
display: block;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
text-indent: var(--base-size-128);
|
|
51
|
+
border-radius: 100%;
|
|
52
|
+
background: var(--color-border-default);
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:focus {
|
|
57
|
+
display: grid;
|
|
58
|
+
z-index: 20;
|
|
59
|
+
width: auto;
|
|
60
|
+
height: auto;
|
|
61
|
+
overflow: auto;
|
|
62
|
+
border-radius: var(--base-size-24);
|
|
63
|
+
min-height: var(--base-size-32);
|
|
64
|
+
align-items: center;
|
|
65
|
+
padding: 0 var(--base-size-16);
|
|
66
|
+
background: var(--color-accent-fg);
|
|
67
|
+
color: var(--color-fg-on-emphasis);
|
|
68
|
+
|
|
69
|
+
@media (pointer: coarse) {
|
|
70
|
+
&:after {
|
|
71
|
+
// pull from minTouchTarget design token
|
|
72
|
+
@include minTouchTarget(var(--primer-control-minTarget-coarse));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
77
|
+
animation: AppFrame-a11yLink-focus 200ms ease-out;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@keyframes AppFrame-a11yLink-focus {
|
|
81
|
+
0% {
|
|
82
|
+
transform: scale(0.3, 0.25);
|
|
83
|
+
color: var(--color-accent-fg);
|
|
84
|
+
}
|
|
85
|
+
50% {
|
|
86
|
+
transform: scale(1, 1);
|
|
87
|
+
color: var(--color-accent-fg);
|
|
88
|
+
}
|
|
89
|
+
55% {
|
|
90
|
+
color: var(--color-fg-on-emphasis);
|
|
91
|
+
}
|
|
92
|
+
100% {
|
|
93
|
+
transform: scaleX(1);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.AppFrame-main {
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
min-height: 100vh;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.AppFrame-header-wrapper {
|
|
106
|
+
position: relative;
|
|
107
|
+
overflow: visible;
|
|
108
|
+
height: min-content;
|
|
109
|
+
|
|
110
|
+
.AppFrame-header {
|
|
111
|
+
position: sticky;
|
|
112
|
+
top: 0;
|
|
113
|
+
z-index: 1;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.AppFrame-header {
|
|
118
|
+
flex: 0 0 auto;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.AppFrame-tray {
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
flex: 0 0 auto;
|
|
124
|
+
background: linear-gradient(to bottom, var(--color-border-default) -#{$spacer-3}, var(--color-canvas-inset) #{$spacer-2});
|
|
125
|
+
|
|
126
|
+
@keyframes flash-tray--appear {
|
|
127
|
+
from {
|
|
128
|
+
opacity: 0;
|
|
129
|
+
transform: translateY(-$spacer-4);
|
|
130
|
+
}
|
|
131
|
+
to {
|
|
132
|
+
opacity: 1;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@include breakpoint(md) {
|
|
137
|
+
padding: $spacer-2 $spacer-3;
|
|
138
|
+
border-bottom: $border-width $border-style var(--color-border-default);
|
|
139
|
+
|
|
140
|
+
.Flash {
|
|
141
|
+
animation: flash-tray--appear 160ms 80ms both cubic-bezier(0.33, 1, 0.68, 1);
|
|
142
|
+
|
|
143
|
+
& + .Flash {
|
|
144
|
+
margin-top: $spacer-2;
|
|
145
|
+
animation-delay: 160ms;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:empty {
|
|
151
|
+
display: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// FIXME: use theme-high-contrast mixin
|
|
155
|
+
@at-root :is([data-color-mode="light"][data-light-theme$='high_contrast'], [data-color-mode="dark"][data-dark-theme$='high_contrast']) & {
|
|
156
|
+
background: var(--color-canvas-inset);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.AppFrame-body {
|
|
161
|
+
flex: 1 0;
|
|
162
|
+
height: 100%;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.AppFrame-footer {
|
|
166
|
+
border-top: $border-width $border-style var(--color-border-default);
|
|
167
|
+
background: var(--color-canvas-inset);
|
|
168
|
+
padding: $spacer-3;
|
|
169
|
+
}
|
|
170
|
+
}
|