jsl-ui 10.4.3 → 10.4.5
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/docs/AutoSuggestComponent.md +17 -17
- package/docs/ButtonComponent.md +22 -22
- package/docs/CheckBoxComponent.md +12 -12
- package/docs/DataBinding.md +19 -19
- package/docs/DateComponent.md +12 -12
- package/docs/DateRangeComponent.md +13 -13
- package/docs/DateTimeComponent.md +14 -14
- package/docs/DialogComponent.md +15 -15
- package/docs/DropdownMenuComponent.md +22 -22
- package/docs/ExpanderComponent.md +13 -13
- package/docs/FormComponent.md +15 -15
- package/docs/FormFieldComponent.md +15 -15
- package/docs/GridComponent.md +39 -39
- package/docs/InputComponent.md +15 -15
- package/docs/IntervalComponent.md +13 -13
- package/docs/LoadingComponent.md +12 -12
- package/docs/NavigationComponent.md +17 -17
- package/docs/Notification.md +14 -14
- package/docs/NotificationComponent.md +13 -13
- package/docs/NumberComponent.md +12 -12
- package/docs/OverlayComponent.md +13 -13
- package/docs/ProgressComponent.md +12 -12
- package/docs/README.md +27 -27
- package/docs/RibbonMenuComponent.md +14 -14
- package/docs/SelectComponent.md +36 -36
- package/docs/SliderComponent.md +20 -20
- package/docs/SplitterComponent.md +14 -14
- package/docs/StackPanelComponent.md +13 -13
- package/docs/TabsComponent.md +16 -16
- package/docs/TimeComponent.md +13 -13
- package/docs/TreeViewComponent.md +16 -16
- package/examples/showcase/checks-and-expanders.ts +148 -148
- package/examples/showcase/cultures.ts +39 -39
- package/examples/showcase/data-binding.ts +138 -138
- package/examples/showcase/dates.ts +168 -168
- package/examples/showcase/dialogs.ts +184 -184
- package/examples/showcase/dropdown-menus.ts +99 -99
- package/examples/showcase/feedback-and-navigation.ts +173 -173
- package/examples/showcase/fields.ts +166 -166
- package/examples/showcase/fonts/OFL-BricolageGrotesque.txt +93 -93
- package/examples/showcase/fonts/OFL-Figtree.txt +93 -93
- package/examples/showcase/fonts/OFL-Jost.txt +93 -93
- package/examples/showcase/generate-sources.cjs +104 -104
- package/examples/showcase/grids.ts +484 -484
- package/examples/showcase/index.html +71 -71
- package/examples/showcase/layout-and-navigation.ts +46 -46
- package/examples/showcase/nivona.css +98 -98
- package/examples/showcase/package.json +10 -10
- package/examples/showcase/selects.ts +184 -184
- package/examples/showcase/showcase-sources.ts +94 -94
- package/examples/showcase/showcase.css +281 -281
- package/examples/showcase/showcase.ts +244 -244
- package/examples/showcase/tabs.ts +161 -161
- package/examples/showcase/themes.css +83 -83
- package/examples/showcase/themes.ts +56 -56
- package/examples/showcase/wirtshans.css +65 -65
- package/lib/components/checkbox/CheckBoxStyle.scss +73 -73
- package/lib/components/date-range/DateRangeStyle.scss +35 -35
- package/lib/components/date-time/DateTimeStyle.scss +9 -9
- package/lib/components/dialog/DialogComponent.d.ts +9 -2
- package/lib/components/dialog/DialogComponent.js +17 -51
- package/lib/components/dropdown-menu/DropdownMenuStyle.scss +48 -48
- package/lib/components/expander/ExpanderStyle.scss +61 -61
- package/lib/components/form-field/FormFieldStyle.scss +36 -36
- package/lib/components/host/RenderHost.d.ts +25 -0
- package/lib/components/host/RenderHost.js +63 -0
- package/lib/components/loading/LoadingStyle.css +18 -18
- package/lib/components/navigation/NavigationStyle.scss +61 -61
- package/lib/components/notification/Notification.scss +102 -102
- package/lib/components/overlay/OverlayComponent.d.ts +9 -1
- package/lib/components/overlay/OverlayComponent.js +22 -13
- package/lib/components/overlay/overlay.css +15 -15
- package/lib/components/progress/ProgressStyle.scss +4 -4
- package/lib/components/ribbon-menu/RibbonMenuStyle.scss +5 -5
- package/lib/components/select/SelectStyle.scss +207 -207
- package/lib/components/slider/SliderStyle.scss +21 -21
- package/lib/components/slider/nouislider.css +15 -15
- package/lib/components/stack-panel/SplitterStyle.scss +8 -8
- package/lib/components/stack-panel/StackPanelStyle.scss +10 -10
- package/lib/components/tabs/TabsStyle.scss +139 -139
- package/lib/components/time/TimeComponent.scss +3 -3
- package/lib/components/tree-view/TreeViewStyle.scss +14 -14
- package/lib/core/helper.js +11 -6
- package/lib/grid/plugins/slick.headermenu.css +98 -98
- package/lib/grid.css +840 -3532
- package/lib/index.css.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/ui/auto.suggest.css +30 -30
- package/lib/ui/button.css +147 -147
- package/lib/ui/date-input.css +10 -10
- package/lib/ui/date.picker/css/tiny-date-picker.css +124 -124
- package/lib/ui/dialog.css +144 -144
- package/lib/ui/input.css +35 -35
- package/lib/ui/theme.css +28 -28
- package/package.json +1 -1
|
@@ -1,287 +1,287 @@
|
|
|
1
|
-
@import "../../ui/theme.css";
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
|
|
5
|
-
color: var(--jsl-color-text);
|
|
6
|
-
background: var(--jsl-color-canvas);
|
|
7
|
-
font-synthesis: none;
|
|
8
|
-
-webkit-font-smoothing: antialiased;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/* Keep the showcase layout predictable without resetting sizing on library DOM.
|
|
12
|
-
Grid cells and component internals should exercise their own box model. */
|
|
13
|
-
:where(
|
|
14
|
-
.skip-link, .sidebar, .brand, .brand-caption, .brand-mark, .nav-label, .nav-item, .nav-group, .nav-submenu, .nav-subitem,
|
|
15
|
-
.nav-number, .nav-icon, .sidebar-note, .status-dot, main, .page-meta, .page-tools,
|
|
16
|
-
.theme-picker, .version, .hero, .eyebrow, .hero-preview, .preview-caption,
|
|
17
|
-
.preview-note, .hero-description, .overview-bar, .overview-label, .overview-stat,
|
|
18
|
-
.sample-grid, .sample-card, .card-heading, .sample-number, .card-description,
|
|
19
|
-
.sample-row, .sample-status, .sample-code, .inline-note, .showcase-icon, .binding-field,
|
|
20
|
-
.format-bold, .format-italic, .format-underline, .sample-divider, .size-row,
|
|
21
|
-
.size-sample, .size-caption, .context-panel, .context-body, .context-eyebrow,
|
|
22
|
-
.context-copy, .context-footer, .count-badge, .usage, .page-footer,
|
|
23
|
-
.component-section, .showcase-dialog-copy, .dialog-summary, .dialog-summary-label,
|
|
24
|
-
.dialog-form-field, .dialog-member, .dialog-member-avatar, .dialog-member-role,
|
|
25
|
-
.dialog-help, .dialog-check, .tabs-example-copy, .tabs-draft-input,
|
|
26
|
-
.tabs-example-check, .tabs-header-badge, .tabs-rich-header, .date-hero-preview,
|
|
27
|
-
.date-showcase-field, .slider-sample, .showcase-slider, .slider-readout,
|
|
28
|
-
.slider-with-tooltip, .slider-orientations, .showcase-slider-vertical,
|
|
29
|
-
.slider-disabled-example, .showcase-calendar, .select-showcase-field,
|
|
30
|
-
.select-hero-preview, .select-person, .select-person-avatar, .select-person-copy,
|
|
31
|
-
.checks-expander-preview, .checkbox-stack, .checkbox-child-list,
|
|
32
|
-
.expander-example-copy, .expander-preview-copy, .expander-rich-header,
|
|
33
|
-
.expander-stack, .expander-custom-icon, .fields-preview, .field-sample,
|
|
34
|
-
.unstyled-input-sample, .showcase-inline-input, .composed-fields,
|
|
35
|
-
.notification-samples, .notification-action-copy, .loading-label-samples,
|
|
36
|
-
.loading-demo, .loading-demo-panel, .navigation-preview,
|
|
37
|
-
.navigation-compact-sample, .navigation-rich-brand, .navigation-brand-mark,
|
|
38
|
-
.remaining-demo, .layout-demo-panel, .tree-demo-content, .grid-samples,
|
|
39
|
-
.grid-sample-card, .grid-sample-host, .format-preview
|
|
40
|
-
) { box-sizing: border-box; }
|
|
41
|
-
|
|
42
|
-
/* Showcase-owned native controls also keep the page's intended dimensions. */
|
|
43
|
-
.theme-picker select, .dialog-form-field input, .dialog-form-field textarea,
|
|
44
|
-
.dialog-check input, .tabs-draft-input, .tabs-example-check input {
|
|
45
|
-
box-sizing: border-box;
|
|
46
|
-
}
|
|
47
|
-
body { margin: 0; font-size: 14px; line-height: 1.6; }
|
|
48
|
-
a { color: inherit; }
|
|
49
|
-
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 5; padding: 0.5rem 1rem; background: var(--jsl-color-surface); }
|
|
50
|
-
.skip-link:focus { top: 1rem; }
|
|
51
|
-
.sidebar { width: 224px; position: fixed; inset: 0 auto 0 0; padding: 32px 20px; background: var(--jsl-color-surface); border-right: 1px solid var(--jsl-color-border-subtle); display: flex; flex-direction: column; }
|
|
52
|
-
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 17px; font-weight: 650; padding: 0 8px; line-height: 1.5; }
|
|
53
|
-
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--jsl-color-accent); color: var(--jsl-color-on-accent); font-size: 25px; line-height: 32px; text-align: center; }
|
|
54
|
-
.brand-caption { display: block; color: var(--jsl-color-text-muted); font-size: 11px; font-weight: 400; }
|
|
55
|
-
.nav-label { display: flex; justify-content: space-between; padding: 0 12px; margin: 48px 0 12px; color: var(--jsl-color-text-muted); font-size: 10px; letter-spacing: 1.3px; font-weight: 600; }
|
|
56
|
-
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 4px; border-radius: 6px; color: var(--jsl-color-text-secondary); text-decoration: none; font-size: 13px; font-weight: 600; }
|
|
57
|
-
.nav-item:hover { background: var(--jsl-color-surface-hover); }
|
|
58
|
-
.nav-item[aria-current] { background: var(--jsl-color-surface-selected); color: var(--jsl-color-text); }
|
|
59
|
-
.nav-group:has(.nav-subitem[aria-current]) > .nav-item { background: var(--jsl-color-surface-selected); color: var(--jsl-color-text); }
|
|
60
|
-
.nav-submenu { margin: -2px 0 8px 38px; padding-left: 10px; border-left: 1px solid var(--jsl-color-border-subtle); display: flex; flex-direction: column; gap: 2px; }
|
|
61
|
-
.nav-subitem { display: block; padding: 5px 8px; border-radius: 5px; color: var(--jsl-color-text-muted); text-decoration: none; font-size: 11px; line-height: 1.4; }
|
|
62
|
-
.nav-subitem:hover { background: var(--jsl-color-surface-hover); color: var(--jsl-color-text); }
|
|
63
|
-
.nav-subitem[aria-current] { color: var(--jsl-color-text); font-weight: 600; background: var(--jsl-color-surface-selected); }
|
|
64
|
-
.nav-number { margin-left: auto; font-size: 10px; font-weight: 400; color: var(--jsl-color-text-muted); }
|
|
65
|
-
.nav-icon { font-size: 17px; }
|
|
66
|
-
.sidebar nav { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
|
|
67
|
-
.sidebar-note { margin-top: auto; padding: 20px 10px 0; border-top: 1px solid var(--jsl-color-border-subtle); color: var(--jsl-color-text-secondary); font-size: 11px; }
|
|
68
|
-
.sidebar-note p { color: var(--jsl-color-text-muted); margin: 8px 0 0; line-height: 1.7; }
|
|
69
|
-
.status-dot { display: inline-block; width: 6px; height: 6px; background: #16a085; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
|
|
70
|
-
main { max-width: 1560px; margin-left: 224px; padding: 28px 48px 0; }
|
|
71
|
-
.page-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--jsl-color-text-muted); font-size: 10px; font-weight: 500; letter-spacing: 1px; padding-bottom: 24px; border-bottom: 1px solid var(--jsl-color-border-subtle); }
|
|
72
|
-
.page-tools { display: flex; align-items: center; gap: 24px; }
|
|
73
|
-
.theme-picker { display: flex; align-items: center; gap: 8px; color: var(--jsl-color-text-secondary); font-size: 11px; letter-spacing: 0; }
|
|
74
|
-
.theme-picker select { max-width: 100%; min-height: 32px; padding: 4px 24px 4px 10px; border: 1px solid var(--jsl-color-border); border-radius: 6px; background: var(--jsl-color-surface); color: var(--jsl-color-text); font: inherit; cursor: pointer; }
|
|
75
|
-
.theme-picker select:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 3px; }
|
|
76
|
-
.version { font-size: 11px; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
|
|
77
|
-
.version .status-dot { margin: 0 0 0 10px; }
|
|
78
|
-
.hero { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px 0 36px; }
|
|
79
|
-
.eyebrow { margin: 0 0 8px; font-size: 10px; letter-spacing: 1.4px; font-weight: 600; color: var(--jsl-color-accent); }
|
|
80
|
-
h1, .section-title { font-size: 42px; letter-spacing: -1.5px; font-weight: 650; line-height: 1.15; margin: 0 0 12px; }
|
|
81
|
-
.hero-description { color: var(--jsl-color-text-muted); max-width: 340px; font-size: 14px; margin: 0; }
|
|
82
|
-
.hero-preview { min-width: 280px; padding: 22px 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--jsl-color-surface-hover); border: 1px solid var(--jsl-color-border-subtle); border-radius: 10px; }
|
|
83
|
-
.preview-caption { font-size: 9px; letter-spacing: 1.4px; color: var(--jsl-color-text-muted); font-weight: 500; }
|
|
84
|
-
.preview-note { font-size: 10px; color: var(--jsl-color-text-muted); }
|
|
85
|
-
.overview-bar { display: flex; align-items: center; gap: 24px; padding: 0 0 13px; margin-bottom: 24px; border-bottom: 1px solid var(--jsl-color-border); font-size: 11px; }
|
|
86
|
-
.overview-label { color: var(--jsl-color-text); font-weight: 600; margin-right: auto; }
|
|
87
|
-
.overview-stat { color: var(--jsl-color-text-muted); }
|
|
88
|
-
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
|
|
89
|
-
.sample-card { background: var(--jsl-color-surface); border: 1px solid var(--jsl-color-border-subtle); border-radius: 10px; padding: 24px; min-width: 0; }
|
|
90
|
-
.sample-card:last-child { grid-column: 1 / -1; }
|
|
91
|
-
.card-heading { display: flex; align-items: center; gap: 10px; }
|
|
92
|
-
.sample-number { color: var(--jsl-color-text-muted); font-size: 10px; font-variant-numeric: tabular-nums; padding-right: 10px; border-right: 1px solid var(--jsl-color-border-subtle); line-height: 16px; }
|
|
93
|
-
h2 { font-size: 14px; font-weight: 600; margin: 0; letter-spacing: -0.15px; }
|
|
94
|
-
.card-description { color: var(--jsl-color-text-muted); font-size: 12px; margin: 8px 0 22px; min-height: 38px; max-width: 360px; }
|
|
95
|
-
.sample-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0; min-height: 32px; }
|
|
96
|
-
.sample-status { color: var(--jsl-color-text-secondary); font-size: 11px; margin: 12px 0 18px; min-height: 18px; }
|
|
97
|
-
.sample-code { white-space: pre-wrap; overflow-wrap: anywhere; font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; color: var(--jsl-color-text-secondary); background: var(--jsl-color-surface-subtle); border: 1px solid var(--jsl-color-border-subtle); border-radius: 5px; padding: 12px; margin: 20px 0 0; line-height: 1.8; }
|
|
98
|
-
.inline-note { color: var(--jsl-color-text-muted); font-size: 11px; }
|
|
99
|
-
.showcase-icon { display: block; width: 100%; height: 100%; background: currentColor; mask-repeat: no-repeat; mask-position: center; mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain; }
|
|
100
|
-
.format-bold { font-family: Georgia, serif; font-weight: 700; font-size: 17px; }
|
|
101
|
-
.format-italic { font-family: Georgia, serif; font-style: italic; font-size: 17px; }
|
|
102
|
-
.format-underline { font-family: Georgia, serif; text-decoration: underline; font-size: 16px; }
|
|
103
|
-
.sample-divider { width: 1px; height: 20px; background: var(--jsl-color-border-subtle); margin: 0 2px; }
|
|
104
|
-
.size-row { align-items: flex-end; gap: 20px; padding: 0 0 4px; }
|
|
105
|
-
.size-sample { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
|
|
106
|
-
.size-caption { font-size: 10px; color: var(--jsl-color-text-muted); }
|
|
107
|
-
.context-panel { border: 1px solid var(--jsl-color-border-subtle); border-radius: 7px; overflow: hidden; margin-bottom: 16px; }
|
|
108
|
-
.context-body { padding: 18px; }
|
|
109
|
-
.context-eyebrow { font-size: 9px; color: var(--jsl-color-text-muted); letter-spacing: 1px; }
|
|
110
|
-
.context-body h3 { font-size: 14px; font-weight: 600; margin: 8px 0 4px; }
|
|
111
|
-
.context-copy { color: var(--jsl-color-text-muted); font-size: 11px; margin: 0; }
|
|
112
|
-
.context-footer { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--jsl-color-border-subtle); background: var(--jsl-color-surface-subtle); }
|
|
113
|
-
.count-badge { display: inline-block; margin-left: 8px; min-width: 17px; border-radius: 4px; padding: 0 4px; font-size: 10px; line-height: 17px; color: var(--jsl-color-text-secondary); background: var(--jsl-color-border-subtle); }
|
|
114
|
-
.brand-teal { --jsl-button-primary: #0f766e; --jsl-button-on-primary: #fff; --jsl-button-primary-hover: #115e59; --jsl-button-primary-active: #134e4a; --jsl-button-focus: #0f766e; }
|
|
115
|
-
.usage { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--jsl-color-border-subtle); border-radius: 8px; background: var(--jsl-color-surface); color: var(--jsl-color-text-secondary); font-size: 12px; }
|
|
116
|
-
.usage summary { font-weight: 600; color: var(--jsl-color-text); cursor: pointer; }
|
|
117
|
-
.usage p { max-width: 850px; }
|
|
118
|
-
.page-footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; margin-top: 16px; color: var(--jsl-color-text-muted); font-size: 10px; }
|
|
119
|
-
.component-section { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--jsl-color-border); scroll-margin-top: 12px; }
|
|
120
|
-
.dialog-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
121
|
-
.dialog-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.15px; }
|
|
122
|
-
.showcase-dialog-copy > p { margin: 0 0 20px; color: var(--jsl-color-text-secondary); }
|
|
123
|
-
.showcase-dialog-copy > :last-child { margin-bottom: 0; }
|
|
124
|
-
.dialog-summary { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; padding: 16px; border: 1px solid var(--jsl-color-border-subtle); border-radius: 6px; background: var(--jsl-color-surface-subtle); font-size: 12px; }
|
|
125
|
-
.dialog-summary-label { color: var(--jsl-color-text-muted); }
|
|
126
|
-
.dialog-form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
|
|
127
|
-
.dialog-form-field label { font-size: 12px; font-weight: 600; }
|
|
128
|
-
.dialog-form-field input, .dialog-form-field textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--jsl-color-border); border-radius: 6px; background: var(--jsl-color-surface); color: var(--jsl-color-text); font: inherit; font-size: 13px; }
|
|
129
|
-
.dialog-form-field textarea { resize: vertical; }
|
|
130
|
-
.dialog-form-field input::placeholder, .dialog-form-field textarea::placeholder { color: var(--jsl-color-text-muted); }
|
|
131
|
-
.dialog-form-field input:focus-visible, .dialog-form-field textarea:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 2px; }
|
|
132
|
-
.dialog-member { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--jsl-color-border-subtle); }
|
|
133
|
-
.dialog-member:last-child { border-bottom: 0; }
|
|
134
|
-
.dialog-member-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--jsl-color-surface-selected); color: var(--jsl-color-text-secondary); font-size: 11px; }
|
|
135
|
-
.dialog-member > div { flex: 1; min-width: 0; }
|
|
136
|
-
.dialog-member strong { display: block; font-size: 12px; font-weight: 600; }
|
|
137
|
-
.dialog-member > div > span { display: block; color: var(--jsl-color-text-muted); font-size: 11px; }
|
|
138
|
-
.dialog-member-role { color: var(--jsl-color-text-secondary); font-size: 11px; }
|
|
139
|
-
.dialog-help { margin-top: 18px !important; font-size: 12px; }
|
|
140
|
-
.dialog-check { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 18px; }
|
|
141
|
-
.dialog-check input { accent-color: var(--jsl-color-accent); }
|
|
142
|
-
.tabs-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
143
|
-
.tabs-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.15px; }
|
|
144
|
-
.tabs-example-copy h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
|
|
145
|
-
.tabs-example-copy p { margin: 0 0 12px; color: var(--jsl-color-text-secondary); font-size: 12px; }
|
|
146
|
-
.tabs-example-copy > :last-child { margin-bottom: 0; }
|
|
147
|
-
.tabs-example-copy label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
|
|
148
|
-
.tabs-draft-input { display: block; width: 100%; margin: 0 0 12px; padding: 9px 10px; border: 1px solid var(--jsl-color-border); border-radius: 6px; background: var(--jsl-color-surface); color: var(--jsl-color-text); font: inherit; font-size: 12px; }
|
|
149
|
-
.tabs-draft-input::placeholder { color: var(--jsl-color-text-muted); }
|
|
150
|
-
.tabs-draft-input:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 2px; }
|
|
151
|
-
.tabs-example-check { display: flex; align-items: center; gap: 8px; color: var(--jsl-color-text-secondary); font-size: 11px; }
|
|
152
|
-
.tabs-example-check input { accent-color: var(--jsl-color-accent); }
|
|
153
|
-
.tabs-rich-header { display: inline-flex; align-items: center; gap: 8px; }
|
|
154
|
-
.tabs-header-badge { min-width: 18px; padding: 0 5px; border-radius: 4px; background: var(--jsl-color-surface-selected); color: var(--jsl-color-text-secondary); font-size: 10px; line-height: 18px; text-align: center; }
|
|
155
|
-
.tabs-hero-demo { width: 100%; }
|
|
156
|
-
.tabs-hero-demo > .tab-panels { border-radius: 0 0 6px 6px; }
|
|
157
|
-
.tabs-hero-demo .tab-content p { margin: 0; color: var(--jsl-color-text-secondary); font-size: 11px; }
|
|
158
|
-
.date-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
159
|
-
.date-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.15px; }
|
|
160
|
-
.date-hero-preview { gap: 20px; }
|
|
161
|
-
.date-hero-preview > .date-range-comp { width: 100%; }
|
|
162
|
-
.date-showcase-field { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 14px 0; }
|
|
163
|
-
.date-showcase-field > label { color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 500; }
|
|
164
|
-
.slider-sample { width: 100%; padding: 16px 10px 0; }
|
|
165
|
-
.showcase-slider { margin: 8px 0 20px; }
|
|
166
|
-
.slider-readout { display: block; color: var(--jsl-color-text-secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
167
|
-
.slider-with-tooltip { padding-top: 40px; }
|
|
168
|
-
.slider-orientations { display: flex; gap: 40px; align-items: center; padding: 20px 12px; }
|
|
169
|
-
.showcase-slider-vertical { height: 112px; flex-shrink: 0; margin: 0; }
|
|
170
|
-
.slider-disabled-example { flex: 1; min-width: 0; }
|
|
171
|
-
.showcase-calendar { max-width: 100%; }
|
|
172
|
-
.select-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
173
|
-
.select-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.15px; }
|
|
174
|
-
.select-showcase-field { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; width: 100%; }
|
|
175
|
-
.select-showcase-field > label { color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 500; }
|
|
176
|
-
.select-showcase-field > .select-comp { width: 100%; }
|
|
177
|
-
.select-hero-preview { width: 24rem; max-width: 100%; }
|
|
178
|
-
.select-hero-preview .select-showcase-field { margin: 0; }
|
|
179
|
-
.select-person { display: flex; gap: 10px; align-items: center; min-width: 0; }
|
|
180
|
-
.select-person-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--jsl-color-surface-selected); color: var(--jsl-color-text-secondary); font-size: 10px; }
|
|
181
|
-
.select-person-copy { min-width: 0; }
|
|
182
|
-
.select-person-copy strong { display: block; font-size: 12px; font-weight: 600; }
|
|
183
|
-
.select-person-copy > span { display: block; font-size: 11px; color: var(--jsl-color-text-muted); }
|
|
184
|
-
.checks-expander-grid > .sample-card:last-child { grid-column: auto; }
|
|
185
|
-
.checks-expander-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.15px; }
|
|
186
|
-
.checks-expander-preview { width: 24rem; max-width: 100%; }
|
|
187
|
-
.checks-expander-preview > .expander-comp { width: 100%; }
|
|
188
|
-
.checkbox-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
|
|
189
|
-
.checkbox-child-list { display: flex; flex-direction: column; gap: 12px; padding-left: 28px; }
|
|
190
|
-
.expander-example-copy h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
|
|
191
|
-
.expander-example-copy p { margin: 0; color: var(--jsl-color-text-secondary); font-size: 12px; }
|
|
192
|
-
.expander-example-copy > label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; }
|
|
193
|
-
.expander-preview-copy { margin: 0; color: var(--jsl-color-text-secondary); font-size: 12px; }
|
|
194
|
-
.expander-rich-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
|
|
195
|
-
.expander-stack { display: flex; flex-direction: column; gap: 12px; }
|
|
196
|
-
.expander-custom-icon { display: block; font-size: 20px; line-height: 1rem; }
|
|
197
|
-
.fields-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
198
|
-
.fields-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.15px; }
|
|
199
|
-
.fields-preview { width: 24rem; max-width: 100%; }
|
|
200
|
-
.fields-preview > .jsl-input, .fields-preview > .form-field { width: 100%; }
|
|
201
|
-
.fields-preview > .form-field { margin-bottom: 0; }
|
|
202
|
-
.field-sample { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
|
|
203
|
-
.field-sample > label { color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 500; }
|
|
204
|
-
.field-sample > .jsl-input { width: 100%; }
|
|
205
|
-
.unstyled-input-sample { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--jsl-color-border-subtle); border-radius: 6px; }
|
|
206
|
-
.unstyled-input-sample > span { flex-shrink: 0; white-space: nowrap; }
|
|
207
|
-
.showcase-inline-input { width: 100%; min-width: 0; padding: 4px 0; border: 0; background: transparent; color: var(--jsl-color-text); font: inherit; }
|
|
208
|
-
.showcase-inline-input:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 3px; }
|
|
209
|
-
.composed-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
|
|
210
|
-
@media (max-width: 560px) { .composed-fields { grid-template-columns: 1fr; gap: 0; } }
|
|
211
|
-
|
|
212
|
-
@media (min-width: 1784px) { main { margin-right: auto; } }
|
|
213
|
-
@media (max-width: 1160px) {
|
|
214
|
-
main { padding: 24px 28px 0; }
|
|
215
|
-
.sample-grid { grid-template-columns: 1fr; }
|
|
216
|
-
.hero-preview { min-width: 240px; padding: 20px; }
|
|
217
|
-
}
|
|
218
|
-
@media (max-width: 800px) {
|
|
219
|
-
.page-meta { flex-wrap: wrap; }
|
|
220
|
-
.page-tools { flex-wrap: wrap; gap: 12px; }
|
|
221
|
-
.sidebar { width: 180px; padding: 24px 14px; }
|
|
222
|
-
main { margin-left: 180px; padding: 24px 20px 0; }
|
|
223
|
-
.hero { flex-direction: column; align-items: stretch; gap: 24px; padding: 28px 0; }
|
|
224
|
-
.hero-description { max-width: none; }
|
|
225
|
-
.overview-bar { gap: 16px; flex-wrap: wrap; }
|
|
226
|
-
}
|
|
227
|
-
@media (max-width: 560px) {
|
|
228
|
-
.sidebar { position: static; width: auto; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--jsl-color-border-subtle); gap: 16px; }
|
|
229
|
-
.brand { padding: 0; }
|
|
230
|
-
.nav-label, .sidebar-note { display: none; }
|
|
231
|
-
.nav-item { padding: 7px 10px; }
|
|
232
|
-
main { margin-left: 0; padding: 20px 16px 0; }
|
|
233
|
-
.page-meta { font-size: 9px; padding-bottom: 16px; }
|
|
234
|
-
.version { font-size: 10px; gap: 5px; }
|
|
235
|
-
.version .status-dot { margin-left: 2px; }
|
|
236
|
-
h1, .section-title { font-size: 36px; }
|
|
237
|
-
.sample-card { padding: 20px; }
|
|
238
|
-
.sample-grid { gap: 16px; }
|
|
239
|
-
.overview-bar { gap: 12px; font-size: 10px; }
|
|
240
|
-
.sample-row { gap: 8px; }
|
|
241
|
-
.page-footer { flex-direction: column; gap: 4px; }
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/* Feedback and navigation examples. */
|
|
245
|
-
.feedback-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
246
|
-
.feedback-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; }
|
|
247
|
-
.feedback-preview { width: 24rem; max-width: 100%; }
|
|
248
|
-
.notification-samples { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
|
|
249
|
-
.notification-samples .jsl-notification { box-shadow: none; }
|
|
250
|
-
.notification-action-copy p { margin: 0 0 12px; }
|
|
251
|
-
.loading-label-samples { display: flex; flex-direction: column; gap: 24px; }
|
|
252
|
-
.loading-demo { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
|
|
253
|
-
.loading-demo-panel { align-self: stretch; min-height: 72px; display: flex; align-items: center; padding: 16px; border: 1px solid var(--jsl-color-border-subtle); border-radius: 6px; }
|
|
254
|
-
.loading-demo-panel p { margin: 0; color: var(--jsl-color-text-secondary); font-size: 12px; }
|
|
255
|
-
#navigation-bar { grid-column: 1 / -1; }
|
|
256
|
-
.navigation-preview { width: 100%; }
|
|
257
|
-
.navigation-compact-sample { width: 22rem; max-width: 100%; }
|
|
258
|
-
.navigation-rich-brand { display: flex; align-items: center; gap: 8px; }
|
|
1
|
+
@import "../../ui/theme.css";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
|
|
5
|
+
color: var(--jsl-color-text);
|
|
6
|
+
background: var(--jsl-color-canvas);
|
|
7
|
+
font-synthesis: none;
|
|
8
|
+
-webkit-font-smoothing: antialiased;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Keep the showcase layout predictable without resetting sizing on library DOM.
|
|
12
|
+
Grid cells and component internals should exercise their own box model. */
|
|
13
|
+
:where(
|
|
14
|
+
.skip-link, .sidebar, .brand, .brand-caption, .brand-mark, .nav-label, .nav-item, .nav-group, .nav-submenu, .nav-subitem,
|
|
15
|
+
.nav-number, .nav-icon, .sidebar-note, .status-dot, main, .page-meta, .page-tools,
|
|
16
|
+
.theme-picker, .version, .hero, .eyebrow, .hero-preview, .preview-caption,
|
|
17
|
+
.preview-note, .hero-description, .overview-bar, .overview-label, .overview-stat,
|
|
18
|
+
.sample-grid, .sample-card, .card-heading, .sample-number, .card-description,
|
|
19
|
+
.sample-row, .sample-status, .sample-code, .inline-note, .showcase-icon, .binding-field,
|
|
20
|
+
.format-bold, .format-italic, .format-underline, .sample-divider, .size-row,
|
|
21
|
+
.size-sample, .size-caption, .context-panel, .context-body, .context-eyebrow,
|
|
22
|
+
.context-copy, .context-footer, .count-badge, .usage, .page-footer,
|
|
23
|
+
.component-section, .showcase-dialog-copy, .dialog-summary, .dialog-summary-label,
|
|
24
|
+
.dialog-form-field, .dialog-member, .dialog-member-avatar, .dialog-member-role,
|
|
25
|
+
.dialog-help, .dialog-check, .tabs-example-copy, .tabs-draft-input,
|
|
26
|
+
.tabs-example-check, .tabs-header-badge, .tabs-rich-header, .date-hero-preview,
|
|
27
|
+
.date-showcase-field, .slider-sample, .showcase-slider, .slider-readout,
|
|
28
|
+
.slider-with-tooltip, .slider-orientations, .showcase-slider-vertical,
|
|
29
|
+
.slider-disabled-example, .showcase-calendar, .select-showcase-field,
|
|
30
|
+
.select-hero-preview, .select-person, .select-person-avatar, .select-person-copy,
|
|
31
|
+
.checks-expander-preview, .checkbox-stack, .checkbox-child-list,
|
|
32
|
+
.expander-example-copy, .expander-preview-copy, .expander-rich-header,
|
|
33
|
+
.expander-stack, .expander-custom-icon, .fields-preview, .field-sample,
|
|
34
|
+
.unstyled-input-sample, .showcase-inline-input, .composed-fields,
|
|
35
|
+
.notification-samples, .notification-action-copy, .loading-label-samples,
|
|
36
|
+
.loading-demo, .loading-demo-panel, .navigation-preview,
|
|
37
|
+
.navigation-compact-sample, .navigation-rich-brand, .navigation-brand-mark,
|
|
38
|
+
.remaining-demo, .layout-demo-panel, .tree-demo-content, .grid-samples,
|
|
39
|
+
.grid-sample-card, .grid-sample-host, .format-preview
|
|
40
|
+
) { box-sizing: border-box; }
|
|
41
|
+
|
|
42
|
+
/* Showcase-owned native controls also keep the page's intended dimensions. */
|
|
43
|
+
.theme-picker select, .dialog-form-field input, .dialog-form-field textarea,
|
|
44
|
+
.dialog-check input, .tabs-draft-input, .tabs-example-check input {
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
}
|
|
47
|
+
body { margin: 0; font-size: 14px; line-height: 1.6; }
|
|
48
|
+
a { color: inherit; }
|
|
49
|
+
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 5; padding: 0.5rem 1rem; background: var(--jsl-color-surface); }
|
|
50
|
+
.skip-link:focus { top: 1rem; }
|
|
51
|
+
.sidebar { width: 224px; position: fixed; inset: 0 auto 0 0; padding: 32px 20px; background: var(--jsl-color-surface); border-right: 1px solid var(--jsl-color-border-subtle); display: flex; flex-direction: column; }
|
|
52
|
+
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 17px; font-weight: 650; padding: 0 8px; line-height: 1.5; }
|
|
53
|
+
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--jsl-color-accent); color: var(--jsl-color-on-accent); font-size: 25px; line-height: 32px; text-align: center; }
|
|
54
|
+
.brand-caption { display: block; color: var(--jsl-color-text-muted); font-size: 11px; font-weight: 400; }
|
|
55
|
+
.nav-label { display: flex; justify-content: space-between; padding: 0 12px; margin: 48px 0 12px; color: var(--jsl-color-text-muted); font-size: 10px; letter-spacing: 1.3px; font-weight: 600; }
|
|
56
|
+
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 4px; border-radius: 6px; color: var(--jsl-color-text-secondary); text-decoration: none; font-size: 13px; font-weight: 600; }
|
|
57
|
+
.nav-item:hover { background: var(--jsl-color-surface-hover); }
|
|
58
|
+
.nav-item[aria-current] { background: var(--jsl-color-surface-selected); color: var(--jsl-color-text); }
|
|
59
|
+
.nav-group:has(.nav-subitem[aria-current]) > .nav-item { background: var(--jsl-color-surface-selected); color: var(--jsl-color-text); }
|
|
60
|
+
.nav-submenu { margin: -2px 0 8px 38px; padding-left: 10px; border-left: 1px solid var(--jsl-color-border-subtle); display: flex; flex-direction: column; gap: 2px; }
|
|
61
|
+
.nav-subitem { display: block; padding: 5px 8px; border-radius: 5px; color: var(--jsl-color-text-muted); text-decoration: none; font-size: 11px; line-height: 1.4; }
|
|
62
|
+
.nav-subitem:hover { background: var(--jsl-color-surface-hover); color: var(--jsl-color-text); }
|
|
63
|
+
.nav-subitem[aria-current] { color: var(--jsl-color-text); font-weight: 600; background: var(--jsl-color-surface-selected); }
|
|
64
|
+
.nav-number { margin-left: auto; font-size: 10px; font-weight: 400; color: var(--jsl-color-text-muted); }
|
|
65
|
+
.nav-icon { font-size: 17px; }
|
|
66
|
+
.sidebar nav { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
|
|
67
|
+
.sidebar-note { margin-top: auto; padding: 20px 10px 0; border-top: 1px solid var(--jsl-color-border-subtle); color: var(--jsl-color-text-secondary); font-size: 11px; }
|
|
68
|
+
.sidebar-note p { color: var(--jsl-color-text-muted); margin: 8px 0 0; line-height: 1.7; }
|
|
69
|
+
.status-dot { display: inline-block; width: 6px; height: 6px; background: #16a085; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
|
|
70
|
+
main { max-width: 1560px; margin-left: 224px; padding: 28px 48px 0; }
|
|
71
|
+
.page-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--jsl-color-text-muted); font-size: 10px; font-weight: 500; letter-spacing: 1px; padding-bottom: 24px; border-bottom: 1px solid var(--jsl-color-border-subtle); }
|
|
72
|
+
.page-tools { display: flex; align-items: center; gap: 24px; }
|
|
73
|
+
.theme-picker { display: flex; align-items: center; gap: 8px; color: var(--jsl-color-text-secondary); font-size: 11px; letter-spacing: 0; }
|
|
74
|
+
.theme-picker select { max-width: 100%; min-height: 32px; padding: 4px 24px 4px 10px; border: 1px solid var(--jsl-color-border); border-radius: 6px; background: var(--jsl-color-surface); color: var(--jsl-color-text); font: inherit; cursor: pointer; }
|
|
75
|
+
.theme-picker select:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 3px; }
|
|
76
|
+
.version { font-size: 11px; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
|
|
77
|
+
.version .status-dot { margin: 0 0 0 10px; }
|
|
78
|
+
.hero { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px 0 36px; }
|
|
79
|
+
.eyebrow { margin: 0 0 8px; font-size: 10px; letter-spacing: 1.4px; font-weight: 600; color: var(--jsl-color-accent); }
|
|
80
|
+
h1, .section-title { font-size: 42px; letter-spacing: -1.5px; font-weight: 650; line-height: 1.15; margin: 0 0 12px; }
|
|
81
|
+
.hero-description { color: var(--jsl-color-text-muted); max-width: 340px; font-size: 14px; margin: 0; }
|
|
82
|
+
.hero-preview { min-width: 280px; padding: 22px 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--jsl-color-surface-hover); border: 1px solid var(--jsl-color-border-subtle); border-radius: 10px; }
|
|
83
|
+
.preview-caption { font-size: 9px; letter-spacing: 1.4px; color: var(--jsl-color-text-muted); font-weight: 500; }
|
|
84
|
+
.preview-note { font-size: 10px; color: var(--jsl-color-text-muted); }
|
|
85
|
+
.overview-bar { display: flex; align-items: center; gap: 24px; padding: 0 0 13px; margin-bottom: 24px; border-bottom: 1px solid var(--jsl-color-border); font-size: 11px; }
|
|
86
|
+
.overview-label { color: var(--jsl-color-text); font-weight: 600; margin-right: auto; }
|
|
87
|
+
.overview-stat { color: var(--jsl-color-text-muted); }
|
|
88
|
+
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
|
|
89
|
+
.sample-card { background: var(--jsl-color-surface); border: 1px solid var(--jsl-color-border-subtle); border-radius: 10px; padding: 24px; min-width: 0; }
|
|
90
|
+
.sample-card:last-child { grid-column: 1 / -1; }
|
|
91
|
+
.card-heading { display: flex; align-items: center; gap: 10px; }
|
|
92
|
+
.sample-number { color: var(--jsl-color-text-muted); font-size: 10px; font-variant-numeric: tabular-nums; padding-right: 10px; border-right: 1px solid var(--jsl-color-border-subtle); line-height: 16px; }
|
|
93
|
+
h2 { font-size: 14px; font-weight: 600; margin: 0; letter-spacing: -0.15px; }
|
|
94
|
+
.card-description { color: var(--jsl-color-text-muted); font-size: 12px; margin: 8px 0 22px; min-height: 38px; max-width: 360px; }
|
|
95
|
+
.sample-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0; min-height: 32px; }
|
|
96
|
+
.sample-status { color: var(--jsl-color-text-secondary); font-size: 11px; margin: 12px 0 18px; min-height: 18px; }
|
|
97
|
+
.sample-code { white-space: pre-wrap; overflow-wrap: anywhere; font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; color: var(--jsl-color-text-secondary); background: var(--jsl-color-surface-subtle); border: 1px solid var(--jsl-color-border-subtle); border-radius: 5px; padding: 12px; margin: 20px 0 0; line-height: 1.8; }
|
|
98
|
+
.inline-note { color: var(--jsl-color-text-muted); font-size: 11px; }
|
|
99
|
+
.showcase-icon { display: block; width: 100%; height: 100%; background: currentColor; mask-repeat: no-repeat; mask-position: center; mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain; }
|
|
100
|
+
.format-bold { font-family: Georgia, serif; font-weight: 700; font-size: 17px; }
|
|
101
|
+
.format-italic { font-family: Georgia, serif; font-style: italic; font-size: 17px; }
|
|
102
|
+
.format-underline { font-family: Georgia, serif; text-decoration: underline; font-size: 16px; }
|
|
103
|
+
.sample-divider { width: 1px; height: 20px; background: var(--jsl-color-border-subtle); margin: 0 2px; }
|
|
104
|
+
.size-row { align-items: flex-end; gap: 20px; padding: 0 0 4px; }
|
|
105
|
+
.size-sample { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
|
|
106
|
+
.size-caption { font-size: 10px; color: var(--jsl-color-text-muted); }
|
|
107
|
+
.context-panel { border: 1px solid var(--jsl-color-border-subtle); border-radius: 7px; overflow: hidden; margin-bottom: 16px; }
|
|
108
|
+
.context-body { padding: 18px; }
|
|
109
|
+
.context-eyebrow { font-size: 9px; color: var(--jsl-color-text-muted); letter-spacing: 1px; }
|
|
110
|
+
.context-body h3 { font-size: 14px; font-weight: 600; margin: 8px 0 4px; }
|
|
111
|
+
.context-copy { color: var(--jsl-color-text-muted); font-size: 11px; margin: 0; }
|
|
112
|
+
.context-footer { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--jsl-color-border-subtle); background: var(--jsl-color-surface-subtle); }
|
|
113
|
+
.count-badge { display: inline-block; margin-left: 8px; min-width: 17px; border-radius: 4px; padding: 0 4px; font-size: 10px; line-height: 17px; color: var(--jsl-color-text-secondary); background: var(--jsl-color-border-subtle); }
|
|
114
|
+
.brand-teal { --jsl-button-primary: #0f766e; --jsl-button-on-primary: #fff; --jsl-button-primary-hover: #115e59; --jsl-button-primary-active: #134e4a; --jsl-button-focus: #0f766e; }
|
|
115
|
+
.usage { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--jsl-color-border-subtle); border-radius: 8px; background: var(--jsl-color-surface); color: var(--jsl-color-text-secondary); font-size: 12px; }
|
|
116
|
+
.usage summary { font-weight: 600; color: var(--jsl-color-text); cursor: pointer; }
|
|
117
|
+
.usage p { max-width: 850px; }
|
|
118
|
+
.page-footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; margin-top: 16px; color: var(--jsl-color-text-muted); font-size: 10px; }
|
|
119
|
+
.component-section { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--jsl-color-border); scroll-margin-top: 12px; }
|
|
120
|
+
.dialog-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
121
|
+
.dialog-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.15px; }
|
|
122
|
+
.showcase-dialog-copy > p { margin: 0 0 20px; color: var(--jsl-color-text-secondary); }
|
|
123
|
+
.showcase-dialog-copy > :last-child { margin-bottom: 0; }
|
|
124
|
+
.dialog-summary { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; padding: 16px; border: 1px solid var(--jsl-color-border-subtle); border-radius: 6px; background: var(--jsl-color-surface-subtle); font-size: 12px; }
|
|
125
|
+
.dialog-summary-label { color: var(--jsl-color-text-muted); }
|
|
126
|
+
.dialog-form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
|
|
127
|
+
.dialog-form-field label { font-size: 12px; font-weight: 600; }
|
|
128
|
+
.dialog-form-field input, .dialog-form-field textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--jsl-color-border); border-radius: 6px; background: var(--jsl-color-surface); color: var(--jsl-color-text); font: inherit; font-size: 13px; }
|
|
129
|
+
.dialog-form-field textarea { resize: vertical; }
|
|
130
|
+
.dialog-form-field input::placeholder, .dialog-form-field textarea::placeholder { color: var(--jsl-color-text-muted); }
|
|
131
|
+
.dialog-form-field input:focus-visible, .dialog-form-field textarea:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 2px; }
|
|
132
|
+
.dialog-member { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--jsl-color-border-subtle); }
|
|
133
|
+
.dialog-member:last-child { border-bottom: 0; }
|
|
134
|
+
.dialog-member-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--jsl-color-surface-selected); color: var(--jsl-color-text-secondary); font-size: 11px; }
|
|
135
|
+
.dialog-member > div { flex: 1; min-width: 0; }
|
|
136
|
+
.dialog-member strong { display: block; font-size: 12px; font-weight: 600; }
|
|
137
|
+
.dialog-member > div > span { display: block; color: var(--jsl-color-text-muted); font-size: 11px; }
|
|
138
|
+
.dialog-member-role { color: var(--jsl-color-text-secondary); font-size: 11px; }
|
|
139
|
+
.dialog-help { margin-top: 18px !important; font-size: 12px; }
|
|
140
|
+
.dialog-check { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 18px; }
|
|
141
|
+
.dialog-check input { accent-color: var(--jsl-color-accent); }
|
|
142
|
+
.tabs-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
143
|
+
.tabs-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.15px; }
|
|
144
|
+
.tabs-example-copy h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
|
|
145
|
+
.tabs-example-copy p { margin: 0 0 12px; color: var(--jsl-color-text-secondary); font-size: 12px; }
|
|
146
|
+
.tabs-example-copy > :last-child { margin-bottom: 0; }
|
|
147
|
+
.tabs-example-copy label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
|
|
148
|
+
.tabs-draft-input { display: block; width: 100%; margin: 0 0 12px; padding: 9px 10px; border: 1px solid var(--jsl-color-border); border-radius: 6px; background: var(--jsl-color-surface); color: var(--jsl-color-text); font: inherit; font-size: 12px; }
|
|
149
|
+
.tabs-draft-input::placeholder { color: var(--jsl-color-text-muted); }
|
|
150
|
+
.tabs-draft-input:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 2px; }
|
|
151
|
+
.tabs-example-check { display: flex; align-items: center; gap: 8px; color: var(--jsl-color-text-secondary); font-size: 11px; }
|
|
152
|
+
.tabs-example-check input { accent-color: var(--jsl-color-accent); }
|
|
153
|
+
.tabs-rich-header { display: inline-flex; align-items: center; gap: 8px; }
|
|
154
|
+
.tabs-header-badge { min-width: 18px; padding: 0 5px; border-radius: 4px; background: var(--jsl-color-surface-selected); color: var(--jsl-color-text-secondary); font-size: 10px; line-height: 18px; text-align: center; }
|
|
155
|
+
.tabs-hero-demo { width: 100%; }
|
|
156
|
+
.tabs-hero-demo > .tab-panels { border-radius: 0 0 6px 6px; }
|
|
157
|
+
.tabs-hero-demo .tab-content p { margin: 0; color: var(--jsl-color-text-secondary); font-size: 11px; }
|
|
158
|
+
.date-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
159
|
+
.date-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.15px; }
|
|
160
|
+
.date-hero-preview { gap: 20px; }
|
|
161
|
+
.date-hero-preview > .date-range-comp { width: 100%; }
|
|
162
|
+
.date-showcase-field { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 14px 0; }
|
|
163
|
+
.date-showcase-field > label { color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 500; }
|
|
164
|
+
.slider-sample { width: 100%; padding: 16px 10px 0; }
|
|
165
|
+
.showcase-slider { margin: 8px 0 20px; }
|
|
166
|
+
.slider-readout { display: block; color: var(--jsl-color-text-secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
167
|
+
.slider-with-tooltip { padding-top: 40px; }
|
|
168
|
+
.slider-orientations { display: flex; gap: 40px; align-items: center; padding: 20px 12px; }
|
|
169
|
+
.showcase-slider-vertical { height: 112px; flex-shrink: 0; margin: 0; }
|
|
170
|
+
.slider-disabled-example { flex: 1; min-width: 0; }
|
|
171
|
+
.showcase-calendar { max-width: 100%; }
|
|
172
|
+
.select-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
173
|
+
.select-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.15px; }
|
|
174
|
+
.select-showcase-field { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; width: 100%; }
|
|
175
|
+
.select-showcase-field > label { color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 500; }
|
|
176
|
+
.select-showcase-field > .select-comp { width: 100%; }
|
|
177
|
+
.select-hero-preview { width: 24rem; max-width: 100%; }
|
|
178
|
+
.select-hero-preview .select-showcase-field { margin: 0; }
|
|
179
|
+
.select-person { display: flex; gap: 10px; align-items: center; min-width: 0; }
|
|
180
|
+
.select-person-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--jsl-color-surface-selected); color: var(--jsl-color-text-secondary); font-size: 10px; }
|
|
181
|
+
.select-person-copy { min-width: 0; }
|
|
182
|
+
.select-person-copy strong { display: block; font-size: 12px; font-weight: 600; }
|
|
183
|
+
.select-person-copy > span { display: block; font-size: 11px; color: var(--jsl-color-text-muted); }
|
|
184
|
+
.checks-expander-grid > .sample-card:last-child { grid-column: auto; }
|
|
185
|
+
.checks-expander-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.15px; }
|
|
186
|
+
.checks-expander-preview { width: 24rem; max-width: 100%; }
|
|
187
|
+
.checks-expander-preview > .expander-comp { width: 100%; }
|
|
188
|
+
.checkbox-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
|
|
189
|
+
.checkbox-child-list { display: flex; flex-direction: column; gap: 12px; padding-left: 28px; }
|
|
190
|
+
.expander-example-copy h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
|
|
191
|
+
.expander-example-copy p { margin: 0; color: var(--jsl-color-text-secondary); font-size: 12px; }
|
|
192
|
+
.expander-example-copy > label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; }
|
|
193
|
+
.expander-preview-copy { margin: 0; color: var(--jsl-color-text-secondary); font-size: 12px; }
|
|
194
|
+
.expander-rich-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
|
|
195
|
+
.expander-stack { display: flex; flex-direction: column; gap: 12px; }
|
|
196
|
+
.expander-custom-icon { display: block; font-size: 20px; line-height: 1rem; }
|
|
197
|
+
.fields-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
198
|
+
.fields-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.15px; }
|
|
199
|
+
.fields-preview { width: 24rem; max-width: 100%; }
|
|
200
|
+
.fields-preview > .jsl-input, .fields-preview > .form-field { width: 100%; }
|
|
201
|
+
.fields-preview > .form-field { margin-bottom: 0; }
|
|
202
|
+
.field-sample { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
|
|
203
|
+
.field-sample > label { color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 500; }
|
|
204
|
+
.field-sample > .jsl-input { width: 100%; }
|
|
205
|
+
.unstyled-input-sample { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--jsl-color-border-subtle); border-radius: 6px; }
|
|
206
|
+
.unstyled-input-sample > span { flex-shrink: 0; white-space: nowrap; }
|
|
207
|
+
.showcase-inline-input { width: 100%; min-width: 0; padding: 4px 0; border: 0; background: transparent; color: var(--jsl-color-text); font: inherit; }
|
|
208
|
+
.showcase-inline-input:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 3px; }
|
|
209
|
+
.composed-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
|
|
210
|
+
@media (max-width: 560px) { .composed-fields { grid-template-columns: 1fr; gap: 0; } }
|
|
211
|
+
|
|
212
|
+
@media (min-width: 1784px) { main { margin-right: auto; } }
|
|
213
|
+
@media (max-width: 1160px) {
|
|
214
|
+
main { padding: 24px 28px 0; }
|
|
215
|
+
.sample-grid { grid-template-columns: 1fr; }
|
|
216
|
+
.hero-preview { min-width: 240px; padding: 20px; }
|
|
217
|
+
}
|
|
218
|
+
@media (max-width: 800px) {
|
|
219
|
+
.page-meta { flex-wrap: wrap; }
|
|
220
|
+
.page-tools { flex-wrap: wrap; gap: 12px; }
|
|
221
|
+
.sidebar { width: 180px; padding: 24px 14px; }
|
|
222
|
+
main { margin-left: 180px; padding: 24px 20px 0; }
|
|
223
|
+
.hero { flex-direction: column; align-items: stretch; gap: 24px; padding: 28px 0; }
|
|
224
|
+
.hero-description { max-width: none; }
|
|
225
|
+
.overview-bar { gap: 16px; flex-wrap: wrap; }
|
|
226
|
+
}
|
|
227
|
+
@media (max-width: 560px) {
|
|
228
|
+
.sidebar { position: static; width: auto; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--jsl-color-border-subtle); gap: 16px; }
|
|
229
|
+
.brand { padding: 0; }
|
|
230
|
+
.nav-label, .sidebar-note { display: none; }
|
|
231
|
+
.nav-item { padding: 7px 10px; }
|
|
232
|
+
main { margin-left: 0; padding: 20px 16px 0; }
|
|
233
|
+
.page-meta { font-size: 9px; padding-bottom: 16px; }
|
|
234
|
+
.version { font-size: 10px; gap: 5px; }
|
|
235
|
+
.version .status-dot { margin-left: 2px; }
|
|
236
|
+
h1, .section-title { font-size: 36px; }
|
|
237
|
+
.sample-card { padding: 20px; }
|
|
238
|
+
.sample-grid { gap: 16px; }
|
|
239
|
+
.overview-bar { gap: 12px; font-size: 10px; }
|
|
240
|
+
.sample-row { gap: 8px; }
|
|
241
|
+
.page-footer { flex-direction: column; gap: 4px; }
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* Feedback and navigation examples. */
|
|
245
|
+
.feedback-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
246
|
+
.feedback-sample-grid h3 { margin: 0; font-size: 14px; font-weight: 600; }
|
|
247
|
+
.feedback-preview { width: 24rem; max-width: 100%; }
|
|
248
|
+
.notification-samples { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
|
|
249
|
+
.notification-samples .jsl-notification { box-shadow: none; }
|
|
250
|
+
.notification-action-copy p { margin: 0 0 12px; }
|
|
251
|
+
.loading-label-samples { display: flex; flex-direction: column; gap: 24px; }
|
|
252
|
+
.loading-demo { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
|
|
253
|
+
.loading-demo-panel { align-self: stretch; min-height: 72px; display: flex; align-items: center; padding: 16px; border: 1px solid var(--jsl-color-border-subtle); border-radius: 6px; }
|
|
254
|
+
.loading-demo-panel p { margin: 0; color: var(--jsl-color-text-secondary); font-size: 12px; }
|
|
255
|
+
#navigation-bar { grid-column: 1 / -1; }
|
|
256
|
+
.navigation-preview { width: 100%; }
|
|
257
|
+
.navigation-compact-sample { width: 22rem; max-width: 100%; }
|
|
258
|
+
.navigation-rich-brand { display: flex; align-items: center; gap: 8px; }
|
|
259
259
|
.navigation-brand-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--jsl-color-accent); color: var(--jsl-color-on-accent); font-size: 12px; }
|
|
260
|
-
.remaining-demo { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
|
|
261
|
-
.remaining-demo h3 { margin: 0; font-size: 14px; font-weight: 600; }
|
|
262
|
-
.layout-demo-panel { padding: 16px; background: var(--jsl-color-surface); color: var(--jsl-color-text); overflow: auto; height: 100%; }
|
|
260
|
+
.remaining-demo { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
|
|
261
|
+
.remaining-demo h3 { margin: 0; font-size: 14px; font-weight: 600; }
|
|
262
|
+
.layout-demo-panel { padding: 16px; background: var(--jsl-color-surface); color: var(--jsl-color-text); overflow: auto; height: 100%; }
|
|
263
263
|
.layout-demo-panel p { color: var(--jsl-color-text-secondary); font-size: 13px; line-height: 1.6; }
|
|
264
264
|
.tree-demo-content { display: flex; align-items: center; gap: 8px; }
|
|
265
|
-
.grid-samples { display: flex; flex-direction: column; gap: 24px; margin: 24px 0; }
|
|
266
|
-
.grid-category { scroll-margin-top: 12px; }
|
|
267
|
-
.grid-category-title { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--jsl-color-border-subtle); color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 600; }
|
|
268
|
-
.grid-category-samples { display: flex; flex-direction: column; gap: 16px; }
|
|
269
|
-
.grid-sample-card { min-width: 0; }
|
|
270
|
-
.grid-sample-card h3 { margin: 0; font-size: 14px; font-weight: 600; }
|
|
265
|
+
.grid-samples { display: flex; flex-direction: column; gap: 24px; margin: 24px 0; }
|
|
266
|
+
.grid-category { scroll-margin-top: 12px; }
|
|
267
|
+
.grid-category-title { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--jsl-color-border-subtle); color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 600; }
|
|
268
|
+
.grid-category-samples { display: flex; flex-direction: column; gap: 16px; }
|
|
269
|
+
.grid-sample-card { min-width: 0; }
|
|
270
|
+
.grid-sample-card h3 { margin: 0; font-size: 14px; font-weight: 600; }
|
|
271
271
|
.grid-sample-host { min-width: 0; }
|
|
272
|
-
.grid-selection-mode { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; color: var(--jsl-color-text-secondary); }
|
|
273
|
-
.grid-selection-mode select { padding: 5px 8px; border: 1px solid var(--jsl-color-border); border-radius: 5px; color: var(--jsl-color-text); background: var(--jsl-color-surface); font: inherit; }
|
|
274
|
-
.grid-selection-summary { margin: 14px 0 0; overflow-wrap: anywhere; }
|
|
275
|
-
.showcase-source { margin-top: 18px; }
|
|
276
|
-
.showcase-source summary { cursor: pointer; color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 600; }
|
|
277
|
-
.showcase-source-code { max-width: 100%; overflow: auto; white-space: pre; overflow-wrap: normal; margin-top: 10px; }
|
|
278
|
-
.grid-header-starred { color: #d4a000; }
|
|
279
|
-
.page-tools { flex-wrap: wrap; }
|
|
272
|
+
.grid-selection-mode { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; color: var(--jsl-color-text-secondary); }
|
|
273
|
+
.grid-selection-mode select { padding: 5px 8px; border: 1px solid var(--jsl-color-border); border-radius: 5px; color: var(--jsl-color-text); background: var(--jsl-color-surface); font: inherit; }
|
|
274
|
+
.grid-selection-summary { margin: 14px 0 0; overflow-wrap: anywhere; }
|
|
275
|
+
.showcase-source { margin-top: 18px; }
|
|
276
|
+
.showcase-source summary { cursor: pointer; color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 600; }
|
|
277
|
+
.showcase-source-code { max-width: 100%; overflow: auto; white-space: pre; overflow-wrap: normal; margin-top: 10px; }
|
|
278
|
+
.grid-header-starred { color: #d4a000; }
|
|
279
|
+
.page-tools { flex-wrap: wrap; }
|
|
280
280
|
.format-preview { color: var(--jsl-color-text-muted); font-size: 11px; letter-spacing: 0; white-space: nowrap; }
|
|
281
281
|
#grid-reorder .grid-row-handle { cursor: grab; text-align: center; color: var(--jsl-color-text-muted); }
|
|
282
|
-
.binding-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
283
|
-
.binding-field { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 14px 0; }
|
|
284
|
-
.binding-field > label { color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 500; }
|
|
285
|
-
.binding-field > .jsl-input, .binding-field > .jsl-number, .binding-field > .select-comp { width: 100%; }
|
|
286
|
-
.binding-preview { width: 24rem; max-width: 100%; }
|
|
287
|
-
.binding-preview .binding-field { width: 100%; margin: 0; }
|
|
282
|
+
.binding-sample-grid > .sample-card:last-child { grid-column: auto; }
|
|
283
|
+
.binding-field { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 14px 0; }
|
|
284
|
+
.binding-field > label { color: var(--jsl-color-text-secondary); font-size: 12px; font-weight: 500; }
|
|
285
|
+
.binding-field > .jsl-input, .binding-field > .jsl-number, .binding-field > .select-comp { width: 100%; }
|
|
286
|
+
.binding-preview { width: 24rem; max-width: 100%; }
|
|
287
|
+
.binding-preview .binding-field { width: 100%; margin: 0; }
|