@byline/ui 1.7.1 → 1.7.3
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/dist/components/accordion/accordion_module.css +3 -1
- package/dist/components/avatar/avatar_module.css +3 -1
- package/dist/components/badge/badge_module.css +3 -1
- package/dist/components/button/button-group_module.css +3 -1
- package/dist/components/button/button_module.css +3 -1
- package/dist/components/button/combo-button_module.css +3 -1
- package/dist/components/button/control-buttons_module.css +3 -1
- package/dist/components/button/copy-button_module.css +3 -1
- package/dist/components/card/card_module.css +3 -1
- package/dist/components/chips/chip_module.css +3 -1
- package/dist/components/container/container_module.css +3 -1
- package/dist/components/dropdown/dropdown_module.css +3 -1
- package/dist/components/hamburger/hamburger_module.css +3 -1
- package/dist/components/inputs/autocomplete_module.css +3 -1
- package/dist/components/inputs/calendar_module.css +3 -1
- package/dist/components/inputs/checkbox-group_module.css +3 -1
- package/dist/components/inputs/checkbox_module.css +3 -1
- package/dist/components/inputs/error-text_module.css +3 -1
- package/dist/components/inputs/help-text_module.css +3 -1
- package/dist/components/inputs/input-adornment_module.css +3 -1
- package/dist/components/inputs/input_module.css +3 -1
- package/dist/components/inputs/label_module.css +3 -1
- package/dist/components/inputs/radio-group_module.css +3 -1
- package/dist/components/inputs/select_module.css +3 -1
- package/dist/components/inputs/text-area_module.css +3 -1
- package/dist/components/notifications/alert_module.css +3 -1
- package/dist/components/notifications/toast_module.css +3 -1
- package/dist/components/pager/pagination_module.css +3 -1
- package/dist/components/scroll-area/scroll-area_module.css +3 -1
- package/dist/components/scroll-to-top/scroll-to-top_module.css +3 -1
- package/dist/components/section/section_module.css +3 -1
- package/dist/components/shimmer/shimmer_module.css +3 -1
- package/dist/components/table/table_module.css +3 -1
- package/dist/components/tabs/tabs_module.css +3 -1
- package/dist/components/tooltip/tooltip_module.css +3 -1
- package/dist/icons/icons_module.css +3 -1
- package/dist/loaders/ellipses_module.css +3 -1
- package/dist/loaders/ring_module.css +3 -1
- package/dist/loaders/spinner_module.css +3 -1
- package/dist/styles/reset.css +172 -166
- package/dist/styles/styles.css +181 -1506
- package/dist/styles/typography.css +243 -237
- package/dist/widgets/datepicker/datepicker_module.css +3 -1
- package/dist/widgets/drawer/drawer_module.css +3 -1
- package/dist/widgets/image-lightbox/image-lightbox_module.css +3 -1
- package/dist/widgets/modal/modal_module.css +3 -1
- package/dist/widgets/timeline/timeline_module.css +3 -1
- package/package.json +4 -4
- package/src/components/accordion/accordion.module.css +3 -2
- package/src/components/avatar/avatar.module.css +3 -6
- package/src/components/badge/badge.module.css +3 -6
- package/src/components/button/button-group.module.css +3 -2
- package/src/components/button/button.module.css +3 -6
- package/src/components/button/combo-button.module.css +3 -2
- package/src/components/button/control-buttons.module.css +3 -2
- package/src/components/button/copy-button.module.css +3 -6
- package/src/components/card/card.module.css +3 -6
- package/src/components/chips/chip.module.css +3 -6
- package/src/components/container/container.module.css +3 -6
- package/src/components/dropdown/dropdown.module.css +3 -6
- package/src/components/hamburger/hamburger.module.css +3 -6
- package/src/components/inputs/autocomplete.module.css +3 -6
- package/src/components/inputs/calendar.module.css +3 -6
- package/src/components/inputs/checkbox-group.module.css +3 -6
- package/src/components/inputs/checkbox.module.css +3 -6
- package/src/components/inputs/error-text.module.css +3 -6
- package/src/components/inputs/help-text.module.css +3 -6
- package/src/components/inputs/input-adornment.module.css +3 -6
- package/src/components/inputs/input.module.css +3 -6
- package/src/components/inputs/label.module.css +3 -6
- package/src/components/inputs/radio-group.module.css +3 -6
- package/src/components/inputs/select.module.css +3 -6
- package/src/components/inputs/text-area.module.css +3 -6
- package/src/components/notifications/alert.module.css +3 -6
- package/src/components/notifications/toast.module.css +3 -6
- package/src/components/pager/pagination.module.css +3 -6
- package/src/components/scroll-area/scroll-area.module.css +3 -6
- package/src/components/scroll-to-top/scroll-to-top.module.css +3 -2
- package/src/components/section/section.module.css +3 -6
- package/src/components/shimmer/shimmer.module.css +3 -6
- package/src/components/table/table.module.css +3 -6
- package/src/components/tabs/tabs.module.css +3 -6
- package/src/components/tooltip/tooltip.module.css +3 -6
- package/src/icons/icons.module.css +3 -2
- package/src/loaders/ellipses.module.css +3 -6
- package/src/loaders/ring.module.css +3 -6
- package/src/loaders/spinner.module.css +3 -6
- package/src/styles/components/hamburger.css +3 -6
- package/src/styles/reset.css +337 -312
- package/src/styles/styles.css +3 -7
- package/src/styles/theme/autofill.css +53 -62
- package/src/styles/theme/defaults.css +67 -55
- package/src/styles/theme/scrollers.css +48 -39
- package/src/styles/typography/prose.css +270 -265
- package/src/styles/typography.css +20 -14
- package/src/widgets/datepicker/datepicker.module.css +3 -2
- package/src/widgets/drawer/drawer.module.css +3 -2
- package/src/widgets/image-lightbox/image-lightbox.module.css +3 -2
- package/src/widgets/modal/modal.module.css +3 -2
- package/src/widgets/timeline/timeline.module.css +3 -6
- package/src/styles/utils/scroll-layout-shift.css +0 -9
- package/src/styles/utils/utility-classes.css +0 -1395
- package/src/styles/utils/utils.css +0 -2
package/src/styles/styles.css
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
@layer byline-base,
|
|
2
|
-
byline-functional,
|
|
3
|
-
byline-
|
|
4
|
-
byline-theme,
|
|
5
|
-
byline-typography,
|
|
6
|
-
byline-components;
|
|
1
|
+
@layer base, byline-base, components, byline-components,
|
|
2
|
+
byline-functional, utilities, byline-utilities,
|
|
3
|
+
theme, byline-theme, byline-typography;
|
|
7
4
|
|
|
8
5
|
@import "./base/base.css";
|
|
9
6
|
@import "./functional/functional.css";
|
|
10
|
-
@import "./utils/utils.css";
|
|
11
7
|
@import "./theme/theme.css";
|
|
12
8
|
@import "./components/components.css";
|
|
@@ -1,67 +1,58 @@
|
|
|
1
1
|
@layer byline-theme {
|
|
2
|
-
/*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
/* Autofill styling is scoped — without this, host inputs outside the
|
|
3
|
+
admin area would also pick up the byline autofill colors. */
|
|
4
|
+
@scope (.byline-ui) {
|
|
5
|
+
input:autofill,
|
|
6
|
+
input:autofill:hover,
|
|
7
|
+
input:autofill:focus,
|
|
8
|
+
textarea:autofill,
|
|
9
|
+
textarea:autofill:hover,
|
|
10
|
+
textarea:autofill:focus,
|
|
11
|
+
select:autofill,
|
|
12
|
+
select:autofill:hover,
|
|
13
|
+
select:autofill:focus {
|
|
14
|
+
border: 1px solid #d89d3d;
|
|
15
|
+
-webkit-text-fill-color: black;
|
|
16
|
+
-webkit-box-shadow: 0 0 0px 1000px #fff2dc inset;
|
|
17
|
+
box-shadow: 0 0 0px 1000px #fff2dc inset;
|
|
18
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
19
|
+
color: black;
|
|
20
|
+
background-color: rgb(250, 217, 167);
|
|
21
|
+
}
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
select:autofill:hover,
|
|
25
|
-
select:autofill:focus {
|
|
26
|
-
border: 1px solid #d89d3d;
|
|
27
|
-
-webkit-text-fill-color: black;
|
|
28
|
-
-webkit-box-shadow: 0 0 0px 1000px #fff2dc inset;
|
|
29
|
-
box-shadow: 0 0 0px 1000px #fff2dc inset;
|
|
30
|
-
transition: background-color 5000s ease-in-out 0s;
|
|
31
|
-
color: black;
|
|
32
|
-
background-color: rgb(250, 217, 167);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* 🌙 Dark via `.dark` class or [data-theme="dark"] attribute.
|
|
36
|
-
* We rely on the consuming application to detect a user's preferred
|
|
37
|
-
* color scheme - either by header or cookie, and set a root html
|
|
38
|
-
* class or data attribute accordingly.
|
|
39
|
-
*/
|
|
23
|
+
/* 🌙 Dark via `.dark` class or [data-theme="dark"] attribute.
|
|
24
|
+
* We rely on the consuming application to detect a user's preferred
|
|
25
|
+
* color scheme - either by header or cookie, and set a root html
|
|
26
|
+
* class or data attribute accordingly. The .dark/[data-theme="dark"]
|
|
27
|
+
* ancestor lives outside the scope (typically on <html>); that's fine
|
|
28
|
+
* because the scope constraint applies to the matched input/textarea/select.
|
|
29
|
+
*/
|
|
40
30
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
31
|
+
.dark input:autofill,
|
|
32
|
+
.dark input:autofill:hover,
|
|
33
|
+
.dark input:autofill:focus,
|
|
34
|
+
.dark textarea:autofill,
|
|
35
|
+
.dark textarea:autofill:hover,
|
|
36
|
+
.dark textarea:autofill:focus,
|
|
37
|
+
.dark select:autofill,
|
|
38
|
+
.dark select:autofill:hover,
|
|
39
|
+
.dark select:autofill:focus,
|
|
40
|
+
[data-theme="dark"] input:autofill,
|
|
41
|
+
[data-theme="dark"] input:autofill:hover,
|
|
42
|
+
[data-theme="dark"] input:autofill:focus,
|
|
43
|
+
[data-theme="dark"] textarea:autofill,
|
|
44
|
+
[data-theme="dark"] textarea:autofill:hover,
|
|
45
|
+
[data-theme="dark"] textarea:autofill:focus,
|
|
46
|
+
[data-theme="dark"] select:autofill,
|
|
47
|
+
[data-theme="dark"] select:autofill:hover,
|
|
48
|
+
[data-theme="dark"] select:autofill:focus {
|
|
49
|
+
border: 1px solid var(--theme-600);
|
|
50
|
+
-webkit-text-fill-color: white;
|
|
51
|
+
-webkit-box-shadow: 0 0 0px 1000px var(--theme-600) inset;
|
|
52
|
+
box-shadow: 0 0 0px 1000px var(--theme-600) inset;
|
|
53
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
54
|
+
color: white;
|
|
55
|
+
background-color: rgba(100, 100, 100, 0.5);
|
|
56
|
+
}
|
|
66
57
|
}
|
|
67
58
|
}
|
|
@@ -4,72 +4,84 @@
|
|
|
4
4
|
* Opinionated starter styles for HTML elements to provide sensible defaults
|
|
5
5
|
* for new installations. These live in the byline-theme layer and are
|
|
6
6
|
* easily overridden by consuming applications.
|
|
7
|
+
*
|
|
8
|
+
* Scoped to .byline-ui so the host's bare elements are untouched. The bare
|
|
9
|
+
* element selectors inside @scope match only elements within the boundary;
|
|
10
|
+
* `:scope` alone targets the scope root specifically.
|
|
11
|
+
*
|
|
12
|
+
* Note: `.dark X { ... }` selectors do NOT carry a `:scope` prefix on
|
|
13
|
+
* purpose. The scope constraint applies to the *matched element* (X must
|
|
14
|
+
* be in scope); the ancestor `.dark` can be anywhere — including on
|
|
15
|
+
* <html>, which is outside the scope in admin-only mode. That's exactly
|
|
16
|
+
* the behaviour we want.
|
|
7
17
|
*/
|
|
8
18
|
|
|
9
19
|
@layer byline-theme {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
@scope (.byline-ui) {
|
|
21
|
+
:scope {
|
|
22
|
+
font-size: 1rem;
|
|
23
|
+
color: var(--text);
|
|
24
|
+
}
|
|
14
25
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
26
|
+
/* Redeclared here to change the specificity and scope of --prose-body */
|
|
27
|
+
.not-dark {
|
|
28
|
+
color: var(--text);
|
|
29
|
+
}
|
|
19
30
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
/* Default (light mode) */
|
|
32
|
+
::selection {
|
|
33
|
+
background-color: var(--theme-600);
|
|
34
|
+
color: white;
|
|
35
|
+
}
|
|
25
36
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
/* Dark mode — .dark/[data-theme="dark"] is typically on <html>, outside scope */
|
|
38
|
+
.dark ::selection,
|
|
39
|
+
[data-theme="dark"] ::selection {
|
|
40
|
+
background-color: var(--theme-200);
|
|
41
|
+
color: var(--gray-900);
|
|
42
|
+
}
|
|
32
43
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
44
|
+
/* Headings */
|
|
45
|
+
h1 {
|
|
46
|
+
font-size: 1.75rem;
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
line-height: 1.125;
|
|
49
|
+
}
|
|
39
50
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
51
|
+
h2 {
|
|
52
|
+
font-size: 1.5rem;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
line-height: 1.125;
|
|
55
|
+
}
|
|
45
56
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
57
|
+
h3 {
|
|
58
|
+
font-size: 1.25rem;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
line-height: 1.1;
|
|
61
|
+
}
|
|
51
62
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
63
|
+
h4 {
|
|
64
|
+
font-size: 1rem;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
line-height: 1.1;
|
|
67
|
+
}
|
|
57
68
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
/* External link indicator */
|
|
70
|
+
.external-link::after {
|
|
71
|
+
content: "";
|
|
72
|
+
display: inline-block;
|
|
73
|
+
background-image: url("/external-link-light.svg");
|
|
74
|
+
background-repeat: no-repeat;
|
|
75
|
+
background-position: 20% 50%;
|
|
76
|
+
background-size: 65% auto;
|
|
77
|
+
width: 1.1rem;
|
|
78
|
+
height: 1.1rem;
|
|
79
|
+
margin-right: -5px;
|
|
80
|
+
}
|
|
70
81
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
82
|
+
.dark .external-link::after,
|
|
83
|
+
[data-theme="dark"] .external-link::after {
|
|
84
|
+
background-image: url("/external-link-dark.svg");
|
|
85
|
+
}
|
|
74
86
|
}
|
|
75
87
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
@layer byline-theme {
|
|
2
|
+
/* Custom property declarations stay on :root so they cascade everywhere.
|
|
3
|
+
They don't conflict with host CSS and are read by .component--scroller
|
|
4
|
+
instances anywhere in the tree. */
|
|
2
5
|
:root {
|
|
3
6
|
--scroll-bar-thumb: var(--theme-400);
|
|
4
7
|
--scroll-bar-track: var(--theme-600);
|
|
@@ -11,44 +14,50 @@
|
|
|
11
14
|
--scroll-bar-track: var(--canvas-900);
|
|
12
15
|
}
|
|
13
16
|
|
|
14
|
-
/*
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
17
|
+
/* Scrollbar styling itself is scoped to .byline-ui — without this, the
|
|
18
|
+
::-webkit-scrollbar pseudo-elements would re-style the host page's
|
|
19
|
+
scrollbars too. */
|
|
20
|
+
@scope (.byline-ui) {
|
|
21
|
+
/* For Google Chrome */
|
|
22
|
+
::-webkit-scrollbar {
|
|
23
|
+
width: 0.6em;
|
|
24
|
+
height: 0.6em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
::-webkit-scrollbar-thumb {
|
|
28
|
+
background: var(--scroll-bar-thumb);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
::-webkit-scrollbar-track {
|
|
32
|
+
background: var(--scroll-bar-track);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
::-webkit-scrollbar-corner {
|
|
36
|
+
background: var(--scroll-bar-track);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Firefox — applied to the scope root (html in whole-app mode, the
|
|
40
|
+
wrapper div in admin-only mode) */
|
|
41
|
+
:scope {
|
|
42
|
+
scrollbar-width: thin;
|
|
43
|
+
scrollbar-color: var(--scroll-bar-thumb) var(--scroll-bar-track);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.component--scroller {
|
|
47
|
+
--scroll-bar-thumb: var(--scroll-bar-thumb);
|
|
48
|
+
--scroll-bar-track: var(--scroll-bar-track);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dark .component--scroller,
|
|
52
|
+
[data-theme="dark"] .component--scroller {
|
|
53
|
+
--scroll-bar-thumb: var(--scroll-bar-thumb);
|
|
54
|
+
--scroll-bar-track: var(--scroll-bar-track);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.component--scroller {
|
|
58
|
+
overflow-y: auto;
|
|
59
|
+
scrollbar-width: thin;
|
|
60
|
+
scrollbar-color: var(--scroll-bar-thumb) var(--scroll-bar-track);
|
|
61
|
+
}
|
|
53
62
|
}
|
|
54
63
|
}
|