@neo-design/foundations 1.1.0 → 1.2.1
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/css/announcement-bar.css +107 -0
- package/css/brand-loader.css +5 -5
- package/css/index.css +3 -2
- package/package.json +1 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* packages/foundations/css/announcement-bar.css — emitted without comments. The reasoning behind each decision lives in Neo's source repository. */
|
|
2
|
+
|
|
3
|
+
.announcement-bar {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--neo-space-lg-rem);
|
|
7
|
+
padding: var(--neo-space-lg-rem) var(--neo-space-4xl-rem);
|
|
8
|
+
background-color: var(--fill--deco--2--solid);
|
|
9
|
+
color: var(--text--base--contrast);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.announcement-bar__content {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex: 1 1 auto;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
gap: var(--neo-space-md-rem);
|
|
18
|
+
min-width: 0;
|
|
19
|
+
padding: 0 var(--neo-space-lg-rem) 0 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.announcement-bar__icon {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
width: var(--neo-icon-size-md-rem);
|
|
26
|
+
height: var(--neo-icon-size-md-rem);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.announcement-bar__text {
|
|
30
|
+
flex: 1 1 0;
|
|
31
|
+
min-width: 0;
|
|
32
|
+
display: -webkit-box;
|
|
33
|
+
-webkit-box-orient: vertical;
|
|
34
|
+
-webkit-line-clamp: 2;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
font-size: var(--neo-type-body-lg-medium-size-rem);
|
|
37
|
+
font-weight: var(--neo-type-body-lg-medium-weight);
|
|
38
|
+
line-height: var(--neo-type-body-lg-medium-line-height-rem);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.announcement-bar__link,
|
|
42
|
+
.announcement-bar__button {
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
align-self: center;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.announcement-bar__link {
|
|
49
|
+
color: var(--text--base--contrast);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.announcement-bar__close {
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (max-width: 1279px) {
|
|
57
|
+
.announcement-bar {
|
|
58
|
+
padding: var(--neo-space-lg-rem) var(--neo-space-3xl-rem);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (max-width: 1023px) {
|
|
63
|
+
.announcement-bar {
|
|
64
|
+
padding: var(--neo-space-lg-rem) var(--neo-space-2xl-rem);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media (max-width: 719px) {
|
|
69
|
+
.announcement-bar {
|
|
70
|
+
align-items: flex-start;
|
|
71
|
+
padding: var(--neo-space-lg-rem);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.announcement-bar__content {
|
|
75
|
+
padding: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.announcement-bar__text {
|
|
79
|
+
-webkit-line-clamp: 4;
|
|
80
|
+
font-size: var(--neo-type-body-md-medium-size-rem);
|
|
81
|
+
font-weight: var(--neo-type-body-md-medium-weight);
|
|
82
|
+
line-height: var(--neo-type-body-md-medium-line-height-rem);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.announcement-bar__link,
|
|
86
|
+
.announcement-bar__button {
|
|
87
|
+
align-self: flex-start;
|
|
88
|
+
margin-left: calc(var(--neo-icon-size-md-rem) + var(--neo-space-md-rem));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.announcement-bar__text {
|
|
92
|
+
flex: 1 1 calc(100% - var(--neo-icon-size-md-rem) - var(--neo-space-md-rem));
|
|
93
|
+
padding-top: 0.125rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.announcement-bar__close {
|
|
97
|
+
margin-top: -0.625rem;
|
|
98
|
+
margin-right: -0.625rem;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.announcement-bar__link:focus-visible {
|
|
103
|
+
outline: var(--neo-stroke-focus-ring-width) solid var(--focus--ring--inverse);
|
|
104
|
+
outline-offset: 2px;
|
|
105
|
+
box-shadow: 0 0 0 var(--neo-stroke-focus-ring-width) var(--focus--gap--inverse);
|
|
106
|
+
border-radius: var(--neo-radius-xs);
|
|
107
|
+
}
|
package/css/brand-loader.css
CHANGED
|
@@ -178,13 +178,13 @@
|
|
|
178
178
|
20%, 100% { opacity: 0; }
|
|
179
179
|
}
|
|
180
180
|
.brand-loader__messages--5 .brand-loader__message { animation: neo-brand-loader-message-5 15s linear infinite both; }
|
|
181
|
-
.brand-loader__message:nth-
|
|
182
|
-
.brand-loader__message:nth-
|
|
183
|
-
.brand-loader__message:nth-
|
|
184
|
-
.brand-loader__message:nth-
|
|
181
|
+
.brand-loader__message:nth-of-type(2) { animation-delay: 3s; }
|
|
182
|
+
.brand-loader__message:nth-of-type(3) { animation-delay: 6s; }
|
|
183
|
+
.brand-loader__message:nth-of-type(4) { animation-delay: 9s; }
|
|
184
|
+
.brand-loader__message:nth-of-type(5) { animation-delay: 12s; }
|
|
185
185
|
|
|
186
186
|
@media (prefers-reduced-motion: reduce) {
|
|
187
187
|
.brand-loader__load { animation: none; stroke-dashoffset: 0; }
|
|
188
188
|
.brand-loader__messages .brand-loader__message { animation: none; }
|
|
189
|
-
.brand-loader__messages .brand-loader__message:not(:first-
|
|
189
|
+
.brand-loader__messages .brand-loader__message:not(:first-of-type) { visibility: hidden; }
|
|
190
190
|
}
|
package/css/index.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* packages/foundations/css/index.css — emitted without comments. The reasoning behind each decision lives in Neo's source repository. */
|
|
2
2
|
|
|
3
3
|
@import './alert.css';
|
|
4
|
+
@import './announcement-bar.css';
|
|
4
5
|
@import './aspect-ratio.css';
|
|
5
6
|
@import './badge.css';
|
|
6
7
|
@import './banner.css';
|
|
@@ -29,10 +30,10 @@
|
|
|
29
30
|
@import './toggle.css';
|
|
30
31
|
@import './tooltip.css';
|
|
31
32
|
|
|
32
|
-
.alert, .aspect-ratio, .badge, .notification, .banner, .btn, .checkbox, .checkbox-group,
|
|
33
|
+
.alert, .announcement-bar, .aspect-ratio, .badge, .notification, .banner, .btn, .checkbox, .checkbox-group,
|
|
33
34
|
.bottom-sheet, .brand-loader, .brand-loader-shell, .chip, .chips-group, .combobox, .drawer, .empty-state, .empty-state-shell, .link, .menu-item, .menu-list, .menu-divider, .modal-overlay, .modal-dialog,
|
|
34
35
|
.modal-full, .radio, .radio-group, .select, .skeleton, .snackbar, .spinner, .tabs, .tag, .field, .toggle, .tooltip,
|
|
35
|
-
.alert *, .aspect-ratio *, .badge *, .banner *, .btn *, .checkbox *, .chip *, .combobox *,
|
|
36
|
+
.alert *, .announcement-bar *, .aspect-ratio *, .badge *, .banner *, .btn *, .checkbox *, .chip *, .combobox *,
|
|
36
37
|
.bottom-sheet *, .brand-loader *, .drawer *, .empty-state *, .menu-item *, .menu-list *, .modal-dialog *, .modal-full *, .radio *, .select *, .snackbar *, .tabs *,
|
|
37
38
|
.tag *, .field *, .toggle *, .tooltip *,
|
|
38
39
|
[role="tablist"], [role="tab"] {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo-design/foundations",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Neo — the system foundations: semantic tokens in JS and CSS, icons and the plain CSS layer. It does not depend on React or Material UI.",
|
|
5
5
|
"homepage": "https://github.com/jzamorano-ui/neo-ds/blob/main/docs/dev/INTEGRATION.md",
|
|
6
6
|
"repository": {
|