@masmarino/gabarit 3.1.1 → 4.0.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/README.md +31 -25
- package/alert/README.md +1 -1
- package/app-shell/README.md +11 -4
- package/auth-activate/README.md +1 -1
- package/auth-login/README.md +1 -1
- package/auth-register/README.md +1 -1
- package/auth-reset-password/README.md +1 -1
- package/card/README.md +11 -12
- package/disclosure/README.md +1 -1
- package/empty-state/README.md +1 -1
- package/fesm2022/masmarino-gabarit-accordion.mjs +10 -10
- package/fesm2022/masmarino-gabarit-accordion.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-alert.mjs +5 -5
- package/fesm2022/masmarino-gabarit-alert.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-app-shell.mjs +10 -10
- package/fesm2022/masmarino-gabarit-app-shell.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-auth-activate.mjs +3 -3
- package/fesm2022/masmarino-gabarit-auth-login.mjs +3 -3
- package/fesm2022/masmarino-gabarit-auth-register.mjs +5 -5
- package/fesm2022/masmarino-gabarit-auth-register.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-auth-reset-password.mjs +3 -3
- package/fesm2022/masmarino-gabarit-auth.mjs +16 -16
- package/fesm2022/masmarino-gabarit-auth.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-autocomplete.mjs +5 -5
- package/fesm2022/masmarino-gabarit-autocomplete.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-avatar-group.mjs +5 -5
- package/fesm2022/masmarino-gabarit-avatar-group.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-avatar.mjs +3 -3
- package/fesm2022/masmarino-gabarit-badge.mjs +3 -3
- package/fesm2022/masmarino-gabarit-bar-chart.mjs +6 -6
- package/fesm2022/masmarino-gabarit-breadcrumb.mjs +3 -3
- package/fesm2022/masmarino-gabarit-button.mjs +3 -3
- package/fesm2022/masmarino-gabarit-card.mjs +13 -29
- package/fesm2022/masmarino-gabarit-card.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-chart.mjs +23 -23
- package/fesm2022/masmarino-gabarit-chart.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-checkbox-group.mjs +3 -3
- package/fesm2022/masmarino-gabarit-checkbox.mjs +3 -3
- package/fesm2022/masmarino-gabarit-command-palette.mjs +10 -10
- package/fesm2022/masmarino-gabarit-command-palette.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-confirm-danger-modal.mjs +3 -3
- package/fesm2022/masmarino-gabarit-copy-button.mjs +5 -5
- package/fesm2022/masmarino-gabarit-copy-button.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-copy-field.mjs +3 -3
- package/fesm2022/masmarino-gabarit-date-picker.mjs +10 -10
- package/fesm2022/masmarino-gabarit-date-picker.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-description-list.mjs +3 -3
- package/fesm2022/masmarino-gabarit-dimension-card.mjs +3 -3
- package/fesm2022/masmarino-gabarit-disclosure.mjs +6 -6
- package/fesm2022/masmarino-gabarit-disclosure.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-divider.mjs +3 -3
- package/fesm2022/masmarino-gabarit-docs.mjs +27 -28
- package/fesm2022/masmarino-gabarit-docs.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-drawer.mjs +5 -5
- package/fesm2022/masmarino-gabarit-drawer.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-empty-state.mjs +5 -5
- package/fesm2022/masmarino-gabarit-empty-state.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-file-upload.mjs +3 -3
- package/fesm2022/masmarino-gabarit-format.mjs +9 -9
- package/fesm2022/masmarino-gabarit-funnel-chart.mjs +3 -3
- package/fesm2022/masmarino-gabarit-gauge-bar.mjs +3 -3
- package/fesm2022/masmarino-gabarit-git-field.mjs +5 -5
- package/fesm2022/masmarino-gabarit-git-field.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-icon-marker.mjs +3 -3
- package/fesm2022/masmarino-gabarit-icon.mjs +6 -6
- package/fesm2022/masmarino-gabarit-input.mjs +3 -3
- package/fesm2022/masmarino-gabarit-job-graph.mjs +5 -5
- package/fesm2022/masmarino-gabarit-job-graph.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-job-status.mjs +3 -3
- package/fesm2022/masmarino-gabarit-line-chart.mjs +6 -6
- package/fesm2022/masmarino-gabarit-list-card.mjs +5 -5
- package/fesm2022/masmarino-gabarit-list-card.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-list-row.mjs +5 -5
- package/fesm2022/masmarino-gabarit-list-row.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-list-toolbar.mjs +3 -3
- package/fesm2022/masmarino-gabarit-menu.mjs +11 -11
- package/fesm2022/masmarino-gabarit-menu.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-mfa-enrollment.mjs +13 -14
- package/fesm2022/masmarino-gabarit-mfa-enrollment.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-mfa-settings.mjs +7 -8
- package/fesm2022/masmarino-gabarit-mfa-settings.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-modal.mjs +5 -5
- package/fesm2022/masmarino-gabarit-modal.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-nav-tabs.mjs +10 -10
- package/fesm2022/masmarino-gabarit-nav-tabs.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-notification-dot.mjs +3 -3
- package/fesm2022/masmarino-gabarit-page-header.mjs +5 -5
- package/fesm2022/masmarino-gabarit-page-header.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-page-layout.mjs +5 -5
- package/fesm2022/masmarino-gabarit-page-layout.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-pagination.mjs +3 -3
- package/fesm2022/masmarino-gabarit-panel.mjs +5 -5
- package/fesm2022/masmarino-gabarit-panel.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-passkey-settings.mjs +7 -9
- package/fesm2022/masmarino-gabarit-passkey-settings.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-pie-chart.mjs +3 -3
- package/fesm2022/masmarino-gabarit-popover.mjs +5 -5
- package/fesm2022/masmarino-gabarit-popover.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-radio-group.mjs +3 -3
- package/fesm2022/masmarino-gabarit-save-status.mjs +3 -3
- package/fesm2022/masmarino-gabarit-search-bar.mjs +5 -5
- package/fesm2022/masmarino-gabarit-search-bar.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-secret-reveal.mjs +3 -3
- package/fesm2022/masmarino-gabarit-segmented-control.mjs +3 -3
- package/fesm2022/masmarino-gabarit-select.mjs +5 -5
- package/fesm2022/masmarino-gabarit-select.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-skeleton-list.mjs +7 -26
- package/fesm2022/masmarino-gabarit-skeleton-list.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-skeleton.mjs +3 -3
- package/fesm2022/masmarino-gabarit-slider.mjs +3 -3
- package/fesm2022/masmarino-gabarit-sparkline.mjs +5 -5
- package/fesm2022/masmarino-gabarit-sparkline.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-spinner.mjs +3 -3
- package/fesm2022/masmarino-gabarit-stat-grid.mjs +5 -5
- package/fesm2022/masmarino-gabarit-stat-grid.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-stat-tile.mjs +8 -8
- package/fesm2022/masmarino-gabarit-stat-tile.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-stepper.mjs +3 -3
- package/fesm2022/masmarino-gabarit-switch.mjs +3 -3
- package/fesm2022/masmarino-gabarit-table.mjs +3 -3
- package/fesm2022/masmarino-gabarit-tabs.mjs +8 -8
- package/fesm2022/masmarino-gabarit-tabs.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-tag-input.mjs +3 -3
- package/fesm2022/masmarino-gabarit-tag.mjs +3 -3
- package/fesm2022/masmarino-gabarit-textarea.mjs +3 -3
- package/fesm2022/masmarino-gabarit-timeline-chart.mjs +6 -6
- package/fesm2022/masmarino-gabarit-toaster.mjs +8 -8
- package/fesm2022/masmarino-gabarit-toaster.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-tooltip.mjs +5 -5
- package/fesm2022/masmarino-gabarit-tooltip.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-tree.mjs +5 -5
- package/fesm2022/masmarino-gabarit-tree.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-user-chip.mjs +3 -3
- package/fesm2022/masmarino-gabarit.mjs +1 -1
- package/fesm2022/masmarino-gabarit.mjs.map +1 -1
- package/git-field/README.md +2 -2
- package/list-row/README.md +3 -5
- package/modal/README.md +1 -1
- package/nav-tabs/README.md +3 -2
- package/package.json +1 -1
- package/page-header/README.md +2 -2
- package/page-layout/README.md +1 -1
- package/panel/README.md +2 -3
- package/skeleton-list/README.md +1 -2
- package/src/lib/tokens/_base.scss +5 -6
- package/src/lib/tokens/_depth.scss +1 -1
- package/src/lib/tokens/_glass.scss +87 -0
- package/src/lib/tokens/_grounds.scss +283 -0
- package/src/lib/tokens/_semantic.scss +0 -2
- package/src/lib/tokens/_themes.scss +93 -23
- package/src/lib/tokens/_utilities.scss +53 -13
- package/src/lib/tokens/index.scss +2 -0
- package/types/masmarino-gabarit-card.d.ts +1 -8
- package/types/masmarino-gabarit-disclosure.d.ts +1 -1
- package/types/masmarino-gabarit-git-field.d.ts +1 -1
- package/types/masmarino-gabarit-skeleton-list.d.ts +0 -6
- package/types/masmarino-gabarit.d.ts +3 -3
|
@@ -7,7 +7,7 @@ var UserChip = class UserChip {
|
|
|
7
7
|
src = input(null, ...ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []);
|
|
8
8
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9
9
|
minVersion: "12.0.0",
|
|
10
|
-
version: "22.2.
|
|
10
|
+
version: "22.2.6",
|
|
11
11
|
ngImport: i0,
|
|
12
12
|
type: UserChip,
|
|
13
13
|
deps: [],
|
|
@@ -15,7 +15,7 @@ var UserChip = class UserChip {
|
|
|
15
15
|
});
|
|
16
16
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
17
17
|
minVersion: "17.1.0",
|
|
18
|
-
version: "22.2.
|
|
18
|
+
version: "22.2.6",
|
|
19
19
|
type: UserChip,
|
|
20
20
|
isStandalone: true,
|
|
21
21
|
selector: "gbt-user-chip",
|
|
@@ -60,7 +60,7 @@ var UserChip = class UserChip {
|
|
|
60
60
|
};
|
|
61
61
|
i0.ɵɵngDeclareClassMetadata({
|
|
62
62
|
minVersion: "12.0.0",
|
|
63
|
-
version: "22.2.
|
|
63
|
+
version: "22.2.6",
|
|
64
64
|
ngImport: i0,
|
|
65
65
|
type: UserChip,
|
|
66
66
|
decorators: [{
|
|
@@ -80,7 +80,7 @@ import { AuthResetPassword } from "@masmarino/gabarit/auth-reset-password";
|
|
|
80
80
|
import { MfaSettings } from "@masmarino/gabarit/mfa-settings";
|
|
81
81
|
import { PasskeySettings } from "@masmarino/gabarit/passkey-settings";
|
|
82
82
|
import { GitField } from "@masmarino/gabarit/git-field";
|
|
83
|
-
const GABARIT_VERSION = "
|
|
83
|
+
const GABARIT_VERSION = "4.0.1";
|
|
84
84
|
export { ACTIVATION_TOKEN_SHAPE, AUTH_LABELS, AUTH_PORT, AUTH_PORT_ERROR_BODIES, Accordion, AccordionItem, Alert, AppShell, AppShellNavGroup, AuthActivate, AuthFooter, AuthFooterLink, AuthLogin, AuthPanel, AuthRegister, AuthResetPassword, Autocomplete, Avatar, AvatarGroup, BackupCodes, Badge, BarChart, BarSeries, Breadcrumb, Button, CHART_CONTEXT, COPY_FIELD_WRAP_AT, Card, CardHeader, CardLink, ChartAxis, ChartEmpty, ChartFrame, ChartLegend, ChartTable, ChartTooltip, Checkbox, CheckboxGroup, ClipboardFeedback, CommandPalette, CommandPaletteTrigger, ConfirmDangerModal, CopyButton, CopyField, DEFAULT_ACTIVATE_LABELS, DEFAULT_BACKUP_CODES_LABELS, DEFAULT_LOGIN_LABELS, DEFAULT_MFA_ENROLLMENT_LABELS, DEFAULT_MFA_SETTINGS_LABELS, DEFAULT_PASSKEY_SETTINGS_LABELS, DEFAULT_REGISTER_LABELS, DEFAULT_RESET_PASSWORD_LABELS, DEFAULT_TOTP_QR_LABELS, DatePicker, DateRangePicker, DescriptionList, DimensionCard, Disclosure, Divider, Drawer, EmptyState, FileUpload, FunnelChart, GABARIT_VERSION, GaugeBar, GbtBytesPipe, GbtDateTimePipe, GbtInput, GbtRelativeTimePipe, GbtToastService, GitField, Icon, IconMarker, IconRegistry, JobGraph, JobStatus, LineChart, LineSeries, ListCard, ListRow, ListToolbar, MFA_PORT, MIN_PASSWORD_LENGTH, Menu, MenuItem, MenuTrigger, MfaEnrollment, MfaSettings, MfaSettingsState, Modal, NavTab, NavTabs, NotificationDot, PASSKEY_NAME_MAX, PageHeader, PageLayout, Pagination, Panel, PasskeySettings, PieChart, Popover, RadioGroup, SaveStatus, SearchBar, SecretReveal, SegmentedControl, Select, Skeleton, SkeletonList, Slider, Sparkline, Spinner, StatGrid, StatTile, StatTileLink, Stepper, Switch, TOTP_QR_RENDERER, Tab, Table, Tabs, Tag, TagInput, Textarea, TimelineChart, TimelineSeries, Toaster, Tooltip, TotpQr, Tree, USERNAME_PATTERN, UserChip, accountName, activationToken, arcPath, areaPath, bandScale, base64UrlToBuffer, bufferToBase64Url, classifyActivateFailure, classifyMfaFailure, classifyPasskeyError, classifyPasswordFailure, classifyRegisterFailure, computeInitials, copyToClipboard, createListToolbarState, createPasskeyCredential, emailProblem, formatBytes, formatCompact, formatDateTime, formatDuration, formatNumber, formatPercent, formatRelativeTime, getPasskeyAssertion, isAuthPortError, isTooManyPasskeys, linePath, linearScale, matchCommand, nearestIndex, niceTicks, niceXDomain, niceYDomain, passkeyNameProblem, passkeysSupported, passwordProblem, portErrorMessage, provideAuthLabels, selectContents, shortcutLabel, timeScale, timeTicks, usernameProblem };
|
|
85
85
|
|
|
86
86
|
//# sourceMappingURL=masmarino-gabarit.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"masmarino-gabarit.mjs","names":[],"sources":["../../../projects/gabarit/src/lib/version.ts"],"sourcesContent":["export const GABARIT_VERSION = '
|
|
1
|
+
{"version":3,"file":"masmarino-gabarit.mjs","names":[],"sources":["../../../projects/gabarit/src/lib/version.ts"],"sourcesContent":["export const GABARIT_VERSION = '4.0.1'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAa,kBAAkB"}
|
package/git-field/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GitField
|
|
2
2
|
|
|
3
|
-
The family's animated commit graph, drawn on the
|
|
3
|
+
The family's animated commit graph, drawn on the page's ground: lanes that drift slowly
|
|
4
4
|
sideways, commits that blink in turn, pushes running along some lanes, over two soft fields of
|
|
5
5
|
colour (the rust accent and the indigo). It sits behind the sign-in panel or a dark band.
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ lift the content above it.
|
|
|
28
28
|
events.
|
|
29
29
|
- The drawing comes from a seeded generator, so it is the same on the server and in the browser.
|
|
30
30
|
- Two identical tiles scroll by one width and start again, so the loop has no seam.
|
|
31
|
-
- It reads the
|
|
31
|
+
- It reads the page's colours, since it is drawn on the ground.
|
|
32
32
|
- The graph fades out towards the middle, where a centred panel sits, and stands further back
|
|
33
33
|
(half opacity) below 48rem, where the panel takes the whole width.
|
|
34
34
|
- Still under `prefers-reduced-motion: reduce`: the graph stays drawn, nothing moves.
|
package/list-row/README.md
CHANGED
|
@@ -7,8 +7,8 @@ right. Every column lines up on the title's first line.
|
|
|
7
7
|
|
|
8
8
|
The page provides the list semantics and the surface around it
|
|
9
9
|
(`ul > li > gbt-list-row`, inside a [`gbt-list-card`](../list-card/README.md)
|
|
10
|
-
or any
|
|
11
|
-
|
|
10
|
+
or any glass). The row adds a rounded hover / focus-within background
|
|
11
|
+
(`--gbt-radius-row`) and title truncation; no line between the rows.
|
|
12
12
|
|
|
13
13
|
**Selector**: `gbt-list-row`
|
|
14
14
|
|
|
@@ -42,9 +42,7 @@ hover / focus-within background and title truncation.
|
|
|
42
42
|
|
|
43
43
|
## Separators
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
view encapsulation cannot express "a row after a row" from inside the component, so this is one rule
|
|
47
|
-
that is not scoped to the component, keyed on the element name.
|
|
45
|
+
None: light is the edge of things, a row is set apart by its own space and lit under the pointer.
|
|
48
46
|
|
|
49
47
|
## Example
|
|
50
48
|
|
package/modal/README.md
CHANGED
|
@@ -22,7 +22,7 @@ backdrop, and stays shut while a request is running (`busy`).
|
|
|
22
22
|
| Slot | Role |
|
|
23
23
|
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
24
24
|
| default | The body. |
|
|
25
|
-
| `[modal-footer]` | Actions
|
|
25
|
+
| `[modal-footer]` | Actions in the dialog's thick glass (no line above them), kept in view while a long body scrolls. Nothing to import: add the attribute `modal-footer` to the element. A `div`, `footer` or `section` carrying it is the actions row itself (right aligned, wrapping, spaced); any other element (a button, a link) is one item of that row. Nothing projected, no footer. |
|
|
26
26
|
|
|
27
27
|
## Outputs
|
|
28
28
|
|
package/nav-tabs/README.md
CHANGED
|
@@ -36,10 +36,11 @@ The label is the projected content.
|
|
|
36
36
|
|
|
37
37
|
## Behaviour
|
|
38
38
|
|
|
39
|
-
- **Horizontal** is a row of underline tabs with
|
|
39
|
+
- **Horizontal** is a row of underline tabs, with no line under the row. When the tabs overflow, the row scrolls to
|
|
40
40
|
the active one (keeping a glimpse of the previous tab) — the list scrolls, never the page — and fades at the edge
|
|
41
41
|
that hides tabs. A tab keeps the width of its bold state, so nothing shifts when the active tab changes.
|
|
42
|
-
- **Vertical** is a list of pills, the active one
|
|
42
|
+
- **Vertical** is a list of pills, the active one in liquid glass, in bold (not a tint alone), as the current page in
|
|
43
|
+
the shell's rail. While
|
|
43
44
|
a [`gbt-page-layout`](../page-layout/README.md) stacks its columns (its container is ≤ 768 px wide),
|
|
44
45
|
a vertical nav folds into that same row of tabs above the section, instead of pushing it far down. Outside a page
|
|
45
46
|
layout it stays a list.
|
package/package.json
CHANGED
package/page-header/README.md
CHANGED
|
@@ -47,8 +47,8 @@ An issue page, with a number after the title:
|
|
|
47
47
|
|
|
48
48
|
## Layout
|
|
49
49
|
|
|
50
|
-
The host is a block with a `1.5rem` bottom margin
|
|
51
|
-
|
|
50
|
+
The host is a block with a `1.5rem` bottom margin. The header sits on the
|
|
51
|
+
ground with no line under it, its title in Plex Condensed at 30px. Give the header the same width as the content
|
|
52
52
|
below it: put both under the same `gbt-page-layout` or the same max-width.
|
|
53
53
|
|
|
54
54
|
## Accessibility
|
package/page-layout/README.md
CHANGED
|
@@ -35,7 +35,7 @@ The layout adds no `<main>`: the application shell already has one.
|
|
|
35
35
|
|
|
36
36
|
| Layout width | Columns |
|
|
37
37
|
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
|
38
|
-
| up to 768 px | One column: nav, main, aside stacked in DOM order. The stacked aside
|
|
38
|
+
| up to 768 px | One column: nav, main, aside stacked in DOM order. The stacked aside follows, set apart by space. |
|
|
39
39
|
| 769 to 1100 px | Main + aside, or nav + main (with an aside under main). Aside on the `asidePosition` side when there is no nav. |
|
|
40
40
|
| from 1101 px | Nav + main + aside side by side. The aside sticks (`top: 1rem`) while the main column scrolls, and so does the nav with `stickyNav`. |
|
|
41
41
|
|
package/panel/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A flat side-panel section: a small heading, an optional action on its
|
|
4
4
|
right, then the content. It sits on the page background (no card, no
|
|
5
|
-
shadow); consecutive panels are
|
|
5
|
+
shadow); consecutive panels are set apart by space, no line. Made for the
|
|
6
6
|
`[page-aside]` of [`gbt-page-layout`](../page-layout/README.md)
|
|
7
7
|
(about, metadata, participants, filters…).
|
|
8
8
|
|
|
@@ -24,8 +24,7 @@ shadow); consecutive panels are separated by a hairline. Made for the
|
|
|
24
24
|
|
|
25
25
|
## Separator between panels
|
|
26
26
|
|
|
27
|
-
A panel that directly follows another gets `margin-top:
|
|
28
|
-
`--gbt-hairline` border on top. Emulated view encapsulation cannot express "a panel after a panel"
|
|
27
|
+
A panel that directly follows another gets `margin-top: 1.5rem`, no line. Emulated view encapsulation cannot express "a panel after a panel"
|
|
29
28
|
from inside the component, so this is one rule that is not scoped to the component
|
|
30
29
|
(`gbt-panel + gbt-panel`), keyed on the element name. Put other content between two panels and the
|
|
31
30
|
separator is gone: it is the panels' business, not a general divider.
|
package/skeleton-list/README.md
CHANGED
|
@@ -4,7 +4,7 @@ The placeholder of a list while it loads: `rows` rows of an optional leading blo
|
|
|
4
4
|
avatar) and one to three text lines, at the rhythm of a real list row.
|
|
5
5
|
|
|
6
6
|
**Selector**: `gbt-skeleton-list`. Built on [`gbt-skeleton`](../skeleton/README.md). `gbt-list-card`
|
|
7
|
-
draws its own loading state; use this one in a settings section, a panel, a table body or any
|
|
7
|
+
draws its own loading state; use this one in a settings section, a panel, a table body or any glass.
|
|
8
8
|
|
|
9
9
|
## Inputs
|
|
10
10
|
|
|
@@ -15,7 +15,6 @@ draws its own loading state; use this one in a settings section, a panel, a tabl
|
|
|
15
15
|
| `leadingSize` | `string` | `'1rem'` | Its size (`1rem` a status dot, `2.25rem` an avatar). |
|
|
16
16
|
| `lines` | `1 \| 2 \| 3` | `2` | Text lines per row. The first is the longest; its width varies from row to row. |
|
|
17
17
|
| `loadingLabel` | `string` | `'Loading…'` | Read out (visually hidden, polite) while loading. |
|
|
18
|
-
| `divided` | `boolean` | `true` | A hairline between rows. |
|
|
19
18
|
| `padded` | `boolean` | `true` | 1 rem of side padding (a row inside a card). Turn it off in a bare list. |
|
|
20
19
|
|
|
21
20
|
## Behaviour and accessibility
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'glass';
|
|
2
|
+
|
|
1
3
|
// The document's own elements, for an application that wants them in the family's type: include once,
|
|
2
4
|
// at the root of its global styles (`@include tokens.document-base;`).
|
|
3
5
|
@mixin document-base {
|
|
@@ -5,12 +7,9 @@
|
|
|
5
7
|
margin: 0;
|
|
6
8
|
font-family: var(--font-family);
|
|
7
9
|
font-feature-settings: 'kern', 'liga';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
background-repeat: no-repeat;
|
|
12
|
-
background-size: 100% 40vh;
|
|
13
|
-
color: var(--text-primary);
|
|
10
|
+
// The ground (4.0): one under the whole window, its light from above; the panels are glass laid on it.
|
|
11
|
+
@include glass.ground;
|
|
12
|
+
min-height: 100vh;
|
|
14
13
|
-webkit-font-smoothing: antialiased;
|
|
15
14
|
}
|
|
16
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Gabarit's depth, a little of it, as on the apps: one light from above. What can be pressed has some volume, rises towards
|
|
2
2
|
// the pointer and sinks when held; what holds a value is slightly hollow. The recipes are tokens (`_themes.scss`), so
|
|
3
|
-
// they follow the
|
|
3
|
+
// they follow the themes' colours.
|
|
4
4
|
|
|
5
5
|
// The sink is a movement: none when the system asks for less of it, the shade stays.
|
|
6
6
|
@mixin sink {
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// The ground and the two glasses (4.0), as the components' recipes: one ground under the whole window, the content
|
|
2
|
+
// glass for the panels, the liquid glass for what commands and floats. Light is the edge of things: a rim at the top
|
|
3
|
+
// and a soft shadow stand where a hairline used to; the line stays on the controls (a field's 3:1 edge, the focus
|
|
4
|
+
// ring) and on the tables.
|
|
5
|
+
//
|
|
6
|
+
// The colours are tokens (`_themes.scss`, generated): these mixins only compose them.
|
|
7
|
+
|
|
8
|
+
// On the ground, and on the glass laid on it: the text keeps 7:1 and an edge 3:1 at the ground's worst point
|
|
9
|
+
// (contrast.spec.ts). The discreet text takes a deeper shade, the status texts the one they have on their tint.
|
|
10
|
+
@mixin on-ground {
|
|
11
|
+
--text-discret: var(--gbt-ground-text-discret);
|
|
12
|
+
--border-color: var(--gbt-ground-border);
|
|
13
|
+
--color-success-text: var(--color-success-bg-text);
|
|
14
|
+
--color-warning-text: var(--color-warning-bg-text);
|
|
15
|
+
--color-error-text: var(--color-error-bg-text);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// On the liquid glass, clearer than the ground it lets through: the secondary text is one more step up. What commands
|
|
19
|
+
// holds no status text (a status read over the page floats, in the thick fill: `floating-glass`).
|
|
20
|
+
@mixin on-liquid {
|
|
21
|
+
@include on-ground;
|
|
22
|
+
--text-secondary: var(--gbt-liquid-text);
|
|
23
|
+
--text-discret: var(--gbt-liquid-text);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// The ground: under a whole window (the body, the shell, a sign-in page). It holds still while the page scrolls.
|
|
27
|
+
@mixin ground {
|
|
28
|
+
background: var(--gbt-ground);
|
|
29
|
+
background-attachment: fixed;
|
|
30
|
+
color: var(--text-primary);
|
|
31
|
+
@include on-ground;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Asked by the system: the glass is dense and opaque (no blur), or it has an edge again.
|
|
35
|
+
@mixin dense-when-asked {
|
|
36
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
37
|
+
background:
|
|
38
|
+
linear-gradient(var(--gbt-glass-thick), var(--gbt-glass-thick)), var(--bg-principal);
|
|
39
|
+
-webkit-backdrop-filter: none;
|
|
40
|
+
backdrop-filter: none;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@mixin edged-when-asked($shadow) {
|
|
45
|
+
@media (prefers-contrast: more) {
|
|
46
|
+
box-shadow:
|
|
47
|
+
inset 0 0 0 1px var(--border-color),
|
|
48
|
+
$shadow;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// The content glass: a panel, a card, a sheet. `$density`: thin, regular or thick (a sheet, a drawer).
|
|
53
|
+
// `$shadow: false` for a glass laid in another glass (no second shadow under it).
|
|
54
|
+
@mixin glass($density: regular, $shadow: true) {
|
|
55
|
+
$depth: 0 0 transparent;
|
|
56
|
+
@if $shadow {
|
|
57
|
+
$depth: var(--gbt-depth-glass);
|
|
58
|
+
}
|
|
59
|
+
background: var(--gbt-glass-#{$density});
|
|
60
|
+
-webkit-backdrop-filter: var(--gbt-glass-blur);
|
|
61
|
+
backdrop-filter: var(--gbt-glass-blur);
|
|
62
|
+
box-shadow: var(--gbt-glass-rim-light), $depth;
|
|
63
|
+
@include on-ground;
|
|
64
|
+
@include dense-when-asked;
|
|
65
|
+
@include edged-when-asked($depth);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// The liquid glass: what commands (the current page in a rail, a search bar, a round button) and what floats (a
|
|
69
|
+
// menu, a popover, a tooltip, a toast). Never the content. `$fill: thick` for what floats over the page and holds
|
|
70
|
+
// text to be read (a menu, a list of options): it keeps the liquid's light and blur, with the dense fill.
|
|
71
|
+
@mixin liquid-glass($fill: liquid) {
|
|
72
|
+
background: var(--gbt-glass-#{$fill});
|
|
73
|
+
-webkit-backdrop-filter: var(--gbt-liquid-blur);
|
|
74
|
+
backdrop-filter: var(--gbt-liquid-blur);
|
|
75
|
+
box-shadow: var(--gbt-depth-liquid);
|
|
76
|
+
@include on-liquid;
|
|
77
|
+
@include dense-when-asked;
|
|
78
|
+
@include edged-when-asked(var(--gbt-depth-liquid));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// What floats over the page and is read: the liquid glass, dense, with the content glass's shadow under it so it
|
|
82
|
+
// rises above the panels.
|
|
83
|
+
@mixin floating-glass {
|
|
84
|
+
@include liquid-glass(thick);
|
|
85
|
+
box-shadow: var(--gbt-depth-liquid), var(--gbt-depth-glass);
|
|
86
|
+
@include edged-when-asked((var(--gbt-depth-liquid), var(--gbt-depth-glass)));
|
|
87
|
+
}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
// The ambiances (4.0): the ground, the glass and the ink of each, as mixins; light and dark are also in
|
|
2
|
+
// the theme mixins. Nothing includes them: a page picks one.
|
|
3
|
+
// Generated by tools/tokens.py from tokens/gabarit.json: do not edit.
|
|
4
|
+
|
|
5
|
+
@mixin ambiance-light {
|
|
6
|
+
--gbt-ground:
|
|
7
|
+
radial-gradient(circle 90vmax at 12% -8%, #ffe6d4 0%, transparent 100%),
|
|
8
|
+
linear-gradient(160deg, #f2f4f7, #efe6fa, #dce7f7);
|
|
9
|
+
--gbt-ink: #10151c;
|
|
10
|
+
--gbt-ink-2: rgba(16, 21, 28, 0.62);
|
|
11
|
+
--gbt-ink-3: rgba(16, 21, 28, 0.47);
|
|
12
|
+
--gbt-ground-veil: rgba(255, 255, 255, 0);
|
|
13
|
+
--gbt-glass-thin: rgba(255, 255, 255, 0.46);
|
|
14
|
+
--gbt-glass-regular: rgba(255, 255, 255, 0.68);
|
|
15
|
+
--gbt-glass-thick: rgba(255, 255, 255, 0.88);
|
|
16
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.26);
|
|
17
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.85);
|
|
18
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.5);
|
|
19
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.95);
|
|
20
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.35);
|
|
21
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.55);
|
|
22
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.32);
|
|
23
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.18);
|
|
24
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.7);
|
|
25
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.45);
|
|
26
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.35);
|
|
27
|
+
--gbt-glass-shadow: rgba(24, 32, 48, 0.22);
|
|
28
|
+
--gbt-glass-shadow-near: rgba(24, 32, 48, 0.06);
|
|
29
|
+
--gbt-liquid-shadow: rgba(24, 32, 48, 0.2);
|
|
30
|
+
color-scheme: light;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin ambiance-dark {
|
|
34
|
+
--gbt-ground:
|
|
35
|
+
radial-gradient(circle 85vmax at 8% -10%, #2a2236 0%, transparent 100%),
|
|
36
|
+
linear-gradient(160deg, #0d1116, #0f1820, #13283a);
|
|
37
|
+
--gbt-ink: #e7ebf1;
|
|
38
|
+
--gbt-ink-2: rgba(231, 235, 241, 0.62);
|
|
39
|
+
--gbt-ink-3: rgba(231, 235, 241, 0.42);
|
|
40
|
+
--gbt-ground-veil: rgba(22, 28, 36, 0);
|
|
41
|
+
--gbt-glass-thin: rgba(22, 28, 36, 0.42);
|
|
42
|
+
--gbt-glass-regular: rgba(22, 28, 36, 0.62);
|
|
43
|
+
--gbt-glass-thick: rgba(22, 28, 36, 0.86);
|
|
44
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.07);
|
|
45
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.09);
|
|
46
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.06);
|
|
47
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.42);
|
|
48
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.08);
|
|
49
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.16);
|
|
50
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.09);
|
|
51
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.05);
|
|
52
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.35);
|
|
53
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.22);
|
|
54
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.1);
|
|
55
|
+
--gbt-glass-shadow: rgba(0, 0, 0, 0.6);
|
|
56
|
+
--gbt-glass-shadow-near: rgba(0, 0, 0, 0.3);
|
|
57
|
+
--gbt-liquid-shadow: rgba(0, 0, 0, 0.45);
|
|
58
|
+
color-scheme: dark;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin ambiance-black {
|
|
62
|
+
--gbt-ground:
|
|
63
|
+
radial-gradient(circle 80vmax at 8% -10%, #16141f 0%, transparent 100%),
|
|
64
|
+
linear-gradient(160deg, #000000, #07090d);
|
|
65
|
+
--gbt-ink: #e7ebf1;
|
|
66
|
+
--gbt-ink-2: rgba(231, 235, 241, 0.62);
|
|
67
|
+
--gbt-ink-3: rgba(231, 235, 241, 0.42);
|
|
68
|
+
--gbt-ground-veil: rgba(14, 18, 23, 0);
|
|
69
|
+
--gbt-glass-thin: rgba(14, 18, 23, 0.42);
|
|
70
|
+
--gbt-glass-regular: rgba(14, 18, 23, 0.62);
|
|
71
|
+
--gbt-glass-thick: rgba(14, 18, 23, 0.86);
|
|
72
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.07);
|
|
73
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.09);
|
|
74
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.06);
|
|
75
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.42);
|
|
76
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.08);
|
|
77
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.16);
|
|
78
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.09);
|
|
79
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.05);
|
|
80
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.35);
|
|
81
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.22);
|
|
82
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.1);
|
|
83
|
+
--gbt-glass-shadow: rgba(0, 0, 0, 0.6);
|
|
84
|
+
--gbt-glass-shadow-near: rgba(0, 0, 0, 0.3);
|
|
85
|
+
--gbt-liquid-shadow: rgba(0, 0, 0, 0.45);
|
|
86
|
+
color-scheme: dark;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@mixin ambiance-aurore {
|
|
90
|
+
--gbt-ground:
|
|
91
|
+
radial-gradient(circle 75vmax at 0% 0%, rgba(255, 138, 122, 0.45) 0%, transparent 100%),
|
|
92
|
+
linear-gradient(135deg, #4a3392, #5442c0, #24346e, #13707e);
|
|
93
|
+
--gbt-ink: #ffffff;
|
|
94
|
+
--gbt-ink-2: rgba(255, 255, 255, 0.8);
|
|
95
|
+
--gbt-ink-3: rgba(255, 255, 255, 0.55);
|
|
96
|
+
--gbt-ground-veil: rgba(20, 16, 44, 0.14);
|
|
97
|
+
--gbt-glass-thin: rgba(20, 16, 44, 0.22);
|
|
98
|
+
--gbt-glass-regular: rgba(20, 16, 44, 0.34);
|
|
99
|
+
--gbt-glass-thick: rgba(20, 16, 44, 0.62);
|
|
100
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.1);
|
|
101
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.22);
|
|
102
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.12);
|
|
103
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.6);
|
|
104
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.12);
|
|
105
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.24);
|
|
106
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.14);
|
|
107
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.07);
|
|
108
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.45);
|
|
109
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.28);
|
|
110
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.14);
|
|
111
|
+
--gbt-glass-shadow: rgba(11, 16, 33, 0.55);
|
|
112
|
+
--gbt-glass-shadow-near: rgba(11, 16, 33, 0.2);
|
|
113
|
+
--gbt-liquid-shadow: rgba(11, 16, 33, 0.4);
|
|
114
|
+
color-scheme: dark;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@mixin ambiance-lagune {
|
|
118
|
+
--gbt-ground:
|
|
119
|
+
radial-gradient(circle 70vmax at 90% 5%, rgba(95, 212, 196, 0.35) 0%, transparent 100%),
|
|
120
|
+
linear-gradient(150deg, #0b4257, #0d5a66, #0b2e4a);
|
|
121
|
+
--gbt-ink: #ffffff;
|
|
122
|
+
--gbt-ink-2: rgba(255, 255, 255, 0.8);
|
|
123
|
+
--gbt-ink-3: rgba(255, 255, 255, 0.55);
|
|
124
|
+
--gbt-ground-veil: rgba(6, 34, 46, 0.25);
|
|
125
|
+
--gbt-glass-thin: rgba(6, 34, 46, 0.22);
|
|
126
|
+
--gbt-glass-regular: rgba(6, 34, 46, 0.34);
|
|
127
|
+
--gbt-glass-thick: rgba(6, 34, 46, 0.62);
|
|
128
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.1);
|
|
129
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.22);
|
|
130
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.12);
|
|
131
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.6);
|
|
132
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.12);
|
|
133
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.24);
|
|
134
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.14);
|
|
135
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.07);
|
|
136
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.45);
|
|
137
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.28);
|
|
138
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.14);
|
|
139
|
+
--gbt-glass-shadow: rgba(3, 14, 22, 0.55);
|
|
140
|
+
--gbt-glass-shadow-near: rgba(3, 14, 22, 0.2);
|
|
141
|
+
--gbt-liquid-shadow: rgba(3, 14, 22, 0.4);
|
|
142
|
+
color-scheme: dark;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@mixin ambiance-braise {
|
|
146
|
+
--gbt-ground:
|
|
147
|
+
radial-gradient(circle 70vmax at 15% 0%, rgba(255, 154, 77, 0.45) 0%, transparent 100%),
|
|
148
|
+
linear-gradient(160deg, #6a1a10, #8a2e14, #3a0e14);
|
|
149
|
+
--gbt-ink: #ffffff;
|
|
150
|
+
--gbt-ink-2: rgba(255, 255, 255, 0.8);
|
|
151
|
+
--gbt-ink-3: rgba(255, 255, 255, 0.56);
|
|
152
|
+
--gbt-ground-veil: rgba(42, 10, 12, 0.12);
|
|
153
|
+
--gbt-glass-thin: rgba(42, 10, 12, 0.22);
|
|
154
|
+
--gbt-glass-regular: rgba(42, 10, 12, 0.34);
|
|
155
|
+
--gbt-glass-thick: rgba(42, 10, 12, 0.62);
|
|
156
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.1);
|
|
157
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.22);
|
|
158
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.12);
|
|
159
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.6);
|
|
160
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.12);
|
|
161
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.24);
|
|
162
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.14);
|
|
163
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.07);
|
|
164
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.45);
|
|
165
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.28);
|
|
166
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.14);
|
|
167
|
+
--gbt-glass-shadow: rgba(17, 4, 6, 0.55);
|
|
168
|
+
--gbt-glass-shadow-near: rgba(17, 4, 6, 0.2);
|
|
169
|
+
--gbt-liquid-shadow: rgba(17, 4, 6, 0.4);
|
|
170
|
+
color-scheme: dark;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@mixin ambiance-nuit-polaire {
|
|
174
|
+
--gbt-ground:
|
|
175
|
+
radial-gradient(circle 70vmax at 80% -5%, rgba(92, 225, 185, 0.4) 0%, transparent 100%),
|
|
176
|
+
linear-gradient(170deg, #0b1630, #1c2f5e, #0e3b4a);
|
|
177
|
+
--gbt-ink: #ffffff;
|
|
178
|
+
--gbt-ink-2: rgba(255, 255, 255, 0.76);
|
|
179
|
+
--gbt-ink-3: rgba(255, 255, 255, 0.53);
|
|
180
|
+
--gbt-ground-veil: rgba(8, 16, 34, 0);
|
|
181
|
+
--gbt-glass-thin: rgba(8, 16, 34, 0.22);
|
|
182
|
+
--gbt-glass-regular: rgba(8, 16, 34, 0.34);
|
|
183
|
+
--gbt-glass-thick: rgba(8, 16, 34, 0.62);
|
|
184
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.1);
|
|
185
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.22);
|
|
186
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.12);
|
|
187
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.6);
|
|
188
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.12);
|
|
189
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.24);
|
|
190
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.14);
|
|
191
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.07);
|
|
192
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.45);
|
|
193
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.28);
|
|
194
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.14);
|
|
195
|
+
--gbt-glass-shadow: rgba(3, 7, 14, 0.55);
|
|
196
|
+
--gbt-glass-shadow-near: rgba(3, 7, 14, 0.2);
|
|
197
|
+
--gbt-liquid-shadow: rgba(3, 7, 14, 0.4);
|
|
198
|
+
color-scheme: dark;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@mixin ambiance-sous-bois {
|
|
202
|
+
--gbt-ground:
|
|
203
|
+
radial-gradient(circle 70vmax at 10% -5%, rgba(156, 194, 122, 0.4) 0%, transparent 100%),
|
|
204
|
+
linear-gradient(160deg, #16301f, #2e4a2a, #0f1f18);
|
|
205
|
+
--gbt-ink: #ffffff;
|
|
206
|
+
--gbt-ink-2: rgba(255, 255, 255, 0.8);
|
|
207
|
+
--gbt-ink-3: rgba(255, 255, 255, 0.54);
|
|
208
|
+
--gbt-ground-veil: rgba(11, 26, 16, 0);
|
|
209
|
+
--gbt-glass-thin: rgba(11, 26, 16, 0.22);
|
|
210
|
+
--gbt-glass-regular: rgba(11, 26, 16, 0.34);
|
|
211
|
+
--gbt-glass-thick: rgba(11, 26, 16, 0.62);
|
|
212
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.1);
|
|
213
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.22);
|
|
214
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.12);
|
|
215
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.6);
|
|
216
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.12);
|
|
217
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.24);
|
|
218
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.14);
|
|
219
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.07);
|
|
220
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.45);
|
|
221
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.28);
|
|
222
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.14);
|
|
223
|
+
--gbt-glass-shadow: rgba(4, 9, 7, 0.55);
|
|
224
|
+
--gbt-glass-shadow-near: rgba(4, 9, 7, 0.2);
|
|
225
|
+
--gbt-liquid-shadow: rgba(4, 9, 7, 0.4);
|
|
226
|
+
color-scheme: dark;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@mixin ambiance-laiton {
|
|
230
|
+
--gbt-ground:
|
|
231
|
+
radial-gradient(circle 70vmax at 20% -5%, rgba(224, 180, 101, 0.45) 0%, transparent 100%),
|
|
232
|
+
linear-gradient(150deg, #3a2a12, #6b4e1f, #22180c);
|
|
233
|
+
--gbt-ink: #ffffff;
|
|
234
|
+
--gbt-ink-2: rgba(255, 255, 255, 0.8);
|
|
235
|
+
--gbt-ink-3: rgba(255, 255, 255, 0.55);
|
|
236
|
+
--gbt-ground-veil: rgba(28, 20, 10, 0.11);
|
|
237
|
+
--gbt-glass-thin: rgba(28, 20, 10, 0.22);
|
|
238
|
+
--gbt-glass-regular: rgba(28, 20, 10, 0.34);
|
|
239
|
+
--gbt-glass-thick: rgba(28, 20, 10, 0.62);
|
|
240
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.1);
|
|
241
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.22);
|
|
242
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.12);
|
|
243
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.6);
|
|
244
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.12);
|
|
245
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.24);
|
|
246
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.14);
|
|
247
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.07);
|
|
248
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.45);
|
|
249
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.28);
|
|
250
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.14);
|
|
251
|
+
--gbt-glass-shadow: rgba(10, 7, 4, 0.55);
|
|
252
|
+
--gbt-glass-shadow-near: rgba(10, 7, 4, 0.2);
|
|
253
|
+
--gbt-liquid-shadow: rgba(10, 7, 4, 0.4);
|
|
254
|
+
color-scheme: dark;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@mixin ambiance-givre {
|
|
258
|
+
--gbt-ground:
|
|
259
|
+
radial-gradient(circle 80vmax at 15% -5%, #ffffff 0%, transparent 100%),
|
|
260
|
+
linear-gradient(160deg, #eef3f8, #dde8f3, #e9e4f5);
|
|
261
|
+
--gbt-ink: #10151c;
|
|
262
|
+
--gbt-ink-2: rgba(16, 21, 28, 0.62);
|
|
263
|
+
--gbt-ink-3: rgba(16, 21, 28, 0.47);
|
|
264
|
+
--gbt-ground-veil: rgba(255, 255, 255, 0);
|
|
265
|
+
--gbt-glass-thin: rgba(255, 255, 255, 0.46);
|
|
266
|
+
--gbt-glass-regular: rgba(255, 255, 255, 0.68);
|
|
267
|
+
--gbt-glass-thick: rgba(255, 255, 255, 0.88);
|
|
268
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.26);
|
|
269
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.85);
|
|
270
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.5);
|
|
271
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.95);
|
|
272
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.35);
|
|
273
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.55);
|
|
274
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.32);
|
|
275
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.18);
|
|
276
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.7);
|
|
277
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.45);
|
|
278
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.35);
|
|
279
|
+
--gbt-glass-shadow: rgba(70, 68, 74, 0.22);
|
|
280
|
+
--gbt-glass-shadow-near: rgba(70, 68, 74, 0.06);
|
|
281
|
+
--gbt-liquid-shadow: rgba(70, 68, 74, 0.2);
|
|
282
|
+
color-scheme: light;
|
|
283
|
+
}
|