@cloudscape-design/components 3.0.494 → 3.0.496
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/alert/styles.css.js +25 -25
- package/alert/styles.scoped.css +45 -51
- package/alert/styles.selectors.js +25 -25
- package/anchor-navigation/styles.css.js +8 -8
- package/anchor-navigation/styles.scoped.css +21 -24
- package/anchor-navigation/styles.selectors.js +8 -8
- package/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +32 -35
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/visual-refresh/styles.css.js +80 -80
- package/app-layout/visual-refresh/styles.scoped.css +175 -181
- package/app-layout/visual-refresh/styles.selectors.js +80 -80
- package/attribute-editor/styles.css.js +14 -14
- package/attribute-editor/styles.scoped.css +27 -30
- package/attribute-editor/styles.selectors.js +14 -14
- package/badge/styles.css.js +5 -5
- package/badge/styles.scoped.css +8 -11
- package/badge/styles.selectors.js +5 -5
- package/breadcrumb-group/styles.css.js +7 -7
- package/breadcrumb-group/styles.scoped.css +18 -24
- package/breadcrumb-group/styles.selectors.js +7 -7
- package/button/styles.css.js +20 -20
- package/button/styles.scoped.css +154 -157
- package/button/styles.selectors.js +20 -20
- package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
- package/button-dropdown/mobile-expandable-group/styles.scoped.css +8 -11
- package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
- package/calendar/styles.css.js +18 -18
- package/calendar/styles.scoped.css +41 -44
- package/calendar/styles.selectors.js +18 -18
- package/cards/styles.css.js +39 -39
- package/cards/styles.scoped.css +52 -55
- package/cards/styles.selectors.js +39 -39
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +8 -11
- package/checkbox/styles.selectors.js +3 -3
- package/code-editor/styles.css.js +32 -32
- package/code-editor/styles.scoped.css +132 -135
- package/code-editor/styles.selectors.js +32 -32
- package/collection-preferences/content-display/styles.css.js +11 -11
- package/collection-preferences/content-display/styles.scoped.css +20 -23
- package/collection-preferences/content-display/styles.selectors.js +11 -11
- package/collection-preferences/styles.css.js +37 -37
- package/collection-preferences/styles.scoped.css +47 -50
- package/collection-preferences/styles.selectors.js +37 -37
- package/column-layout/styles.css.js +13 -13
- package/column-layout/styles.scoped.css +46 -49
- package/column-layout/styles.selectors.js +13 -13
- package/container/styles.css.js +29 -29
- package/container/styles.scoped.css +55 -58
- package/container/styles.selectors.js +29 -29
- package/date-picker/styles.css.js +7 -7
- package/date-picker/styles.scoped.css +12 -15
- package/date-picker/styles.selectors.js +7 -7
- package/date-range-picker/styles.css.js +38 -38
- package/date-range-picker/styles.scoped.css +49 -52
- package/date-range-picker/styles.selectors.js +38 -38
- package/drawer/styles.css.js +3 -3
- package/drawer/styles.scoped.css +11 -14
- package/drawer/styles.selectors.js +3 -3
- package/expandable-section/styles.css.js +32 -32
- package/expandable-section/styles.scoped.css +65 -68
- package/expandable-section/styles.selectors.js +32 -32
- package/flashbar/styles.css.js +47 -47
- package/flashbar/styles.scoped.css +149 -152
- package/flashbar/styles.selectors.js +47 -47
- package/form/styles.css.js +9 -9
- package/form/styles.scoped.css +11 -14
- package/form/styles.selectors.js +9 -9
- package/form-field/styles.css.js +19 -19
- package/form-field/styles.scoped.css +32 -35
- package/form-field/styles.selectors.js +19 -19
- package/grid/styles.css.js +53 -53
- package/grid/styles.scoped.css +57 -60
- package/grid/styles.selectors.js +53 -53
- package/header/styles.css.js +34 -34
- package/header/styles.scoped.css +53 -56
- package/header/styles.selectors.js +34 -34
- package/help-panel/styles.css.js +4 -4
- package/help-panel/styles.scoped.css +66 -69
- package/help-panel/styles.selectors.js +4 -4
- package/input/styles.css.js +12 -12
- package/input/styles.scoped.css +33 -36
- package/input/styles.selectors.js +12 -12
- package/internal/components/button-trigger/styles.css.js +10 -10
- package/internal/components/button-trigger/styles.scoped.css +27 -30
- package/internal/components/button-trigger/styles.selectors.js +10 -10
- package/internal/components/chart-filter/styles.css.js +3 -3
- package/internal/components/chart-filter/styles.scoped.css +6 -9
- package/internal/components/chart-filter/styles.selectors.js +3 -3
- package/internal/components/chart-legend/styles.css.js +6 -6
- package/internal/components/chart-legend/styles.scoped.css +18 -21
- package/internal/components/chart-legend/styles.selectors.js +6 -6
- package/internal/components/chart-popover/styles.css.js +3 -3
- package/internal/components/chart-popover/styles.scoped.css +6 -9
- package/internal/components/chart-popover/styles.selectors.js +3 -3
- package/internal/components/chart-series-details/styles.css.js +20 -20
- package/internal/components/chart-series-details/styles.scoped.css +42 -51
- package/internal/components/chart-series-details/styles.selectors.js +20 -20
- package/internal/components/chart-series-marker/styles.css.js +5 -5
- package/internal/components/chart-series-marker/styles.scoped.css +10 -13
- package/internal/components/chart-series-marker/styles.selectors.js +5 -5
- package/internal/components/chart-wrapper/styles.css.js +9 -9
- package/internal/components/chart-wrapper/styles.scoped.css +12 -15
- package/internal/components/chart-wrapper/styles.selectors.js +9 -9
- package/internal/components/dropdown/styles.css.js +20 -20
- package/internal/components/dropdown/styles.scoped.css +38 -41
- package/internal/components/dropdown/styles.selectors.js +20 -20
- package/internal/components/dropdown-footer/styles.css.js +3 -3
- package/internal/components/dropdown-footer/styles.scoped.css +6 -9
- package/internal/components/dropdown-footer/styles.selectors.js +3 -3
- package/internal/components/dropdown-status/styles.css.js +2 -2
- package/internal/components/dropdown-status/styles.scoped.css +5 -8
- package/internal/components/dropdown-status/styles.selectors.js +2 -2
- package/internal/components/focus-lock/utils.d.ts +1 -0
- package/internal/components/focus-lock/utils.d.ts.map +1 -1
- package/internal/components/focus-lock/utils.js +4 -3
- package/internal/components/focus-lock/utils.js.map +1 -1
- package/internal/components/menu-dropdown/styles.css.js +7 -7
- package/internal/components/menu-dropdown/styles.scoped.css +16 -19
- package/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/internal/components/option/styles.css.js +17 -17
- package/internal/components/option/styles.scoped.css +32 -35
- package/internal/components/option/styles.selectors.js +17 -17
- package/internal/components/options-list/styles.css.js +2 -2
- package/internal/components/options-list/styles.scoped.css +5 -8
- package/internal/components/options-list/styles.selectors.js +2 -2
- package/internal/components/token-list/styles.css.js +9 -9
- package/internal/components/token-list/styles.scoped.css +23 -26
- package/internal/components/token-list/styles.selectors.js +9 -9
- package/internal/context/single-tab-stop-navigation-context.d.ts +9 -4
- package/internal/context/single-tab-stop-navigation-context.d.ts.map +1 -1
- package/internal/context/single-tab-stop-navigation-context.js +15 -5
- package/internal/context/single-tab-stop-navigation-context.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/internal/utils/scrollable-containers.d.ts +2 -1
- package/internal/utils/scrollable-containers.d.ts.map +1 -1
- package/internal/utils/scrollable-containers.js +11 -2
- package/internal/utils/scrollable-containers.js.map +1 -1
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +74 -77
- package/link/styles.selectors.js +20 -20
- package/modal/styles.css.js +23 -23
- package/modal/styles.scoped.css +44 -50
- package/modal/styles.selectors.js +23 -23
- package/multiselect/styles.css.js +2 -2
- package/multiselect/styles.scoped.css +5 -8
- package/multiselect/styles.selectors.js +2 -2
- package/package.json +1 -1
- package/pagination/styles.css.js +9 -9
- package/pagination/styles.scoped.css +26 -29
- package/pagination/styles.selectors.js +9 -9
- package/popover/styles.css.js +50 -50
- package/popover/styles.scoped.css +72 -81
- package/popover/styles.selectors.js +50 -50
- package/popover/use-popover-position.d.ts.map +1 -1
- package/popover/use-popover-position.js +4 -2
- package/popover/use-popover-position.js.map +1 -1
- package/progress-bar/styles.css.js +18 -18
- package/progress-bar/styles.scoped.css +35 -38
- package/progress-bar/styles.selectors.js +18 -18
- package/property-filter/styles.css.js +31 -31
- package/property-filter/styles.scoped.css +36 -39
- package/property-filter/styles.selectors.js +31 -31
- package/radio-group/styles.css.js +9 -9
- package/radio-group/styles.scoped.css +18 -21
- package/radio-group/styles.selectors.js +9 -9
- package/segmented-control/styles.css.js +14 -14
- package/segmented-control/styles.scoped.css +36 -39
- package/segmented-control/styles.selectors.js +14 -14
- package/select/styles.css.js +1 -1
- package/select/styles.scoped.css +4 -7
- package/select/styles.selectors.js +1 -1
- package/side-navigation/styles.css.js +28 -28
- package/side-navigation/styles.scoped.css +41 -44
- package/side-navigation/styles.selectors.js +28 -28
- package/split-panel/styles.css.js +55 -55
- package/split-panel/styles.scoped.css +78 -81
- package/split-panel/styles.selectors.js +55 -55
- package/table/resizer/styles.css.js +8 -8
- package/table/resizer/styles.scoped.css +17 -20
- package/table/resizer/styles.selectors.js +8 -8
- package/table/table-role/grid-navigation.d.ts.map +1 -1
- package/table/table-role/grid-navigation.js +73 -41
- package/table/table-role/grid-navigation.js.map +1 -1
- package/table/table-role/utils.d.ts +1 -16
- package/table/table-role/utils.d.ts.map +1 -1
- package/table/table-role/utils.js +0 -53
- package/table/table-role/utils.js.map +1 -1
- package/tabs/styles.css.js +21 -21
- package/tabs/styles.scoped.css +42 -45
- package/tabs/styles.selectors.js +21 -21
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +63 -66
- package/text-content/styles.selectors.js +1 -1
- package/text-filter/styles.css.js +3 -3
- package/text-filter/styles.scoped.css +6 -9
- package/text-filter/styles.selectors.js +3 -3
- package/textarea/styles.css.js +4 -4
- package/textarea/styles.scoped.css +15 -18
- package/textarea/styles.selectors.js +4 -4
- package/tiles/styles.css.js +29 -29
- package/tiles/styles.scoped.css +76 -82
- package/tiles/styles.selectors.js +29 -29
- package/toggle/styles.css.js +8 -8
- package/toggle/styles.scoped.css +16 -19
- package/toggle/styles.selectors.js +8 -8
- package/token-group/styles.css.js +8 -8
- package/token-group/styles.scoped.css +19 -22
- package/token-group/styles.selectors.js +8 -8
- package/top-navigation/1.0-beta/styles.css.js +25 -25
- package/top-navigation/1.0-beta/styles.scoped.css +45 -48
- package/top-navigation/1.0-beta/styles.selectors.js +25 -25
- package/top-navigation/styles.css.js +47 -47
- package/top-navigation/styles.scoped.css +75 -84
- package/top-navigation/styles.selectors.js +47 -47
- package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
- package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +24 -27
- package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
- package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +36 -45
- package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/tutorial-panel/styles.css.js +1 -1
- package/tutorial-panel/styles.scoped.css +4 -7
- package/tutorial-panel/styles.selectors.js +1 -1
- package/wizard/styles.css.js +31 -31
- package/wizard/styles.scoped.css +65 -68
- package/wizard/styles.selectors.js +31 -31
|
@@ -29,6 +29,7 @@ export declare function calculateScroll({ top, height }: BoundingBox): number;
|
|
|
29
29
|
* so we need to manually scroll to the element's position.
|
|
30
30
|
* Supports only vertical scrolling.
|
|
31
31
|
*/
|
|
32
|
-
export declare function scrollRectangleIntoView(box: BoundingBox): void;
|
|
32
|
+
export declare function scrollRectangleIntoView(box: BoundingBox, scrollableParent?: HTMLElement): void;
|
|
33
|
+
export declare function getFirstScrollableParent(element: HTMLElement): HTMLElement | undefined;
|
|
33
34
|
export {};
|
|
34
35
|
//# sourceMappingURL=scrollable-containers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollable-containers.d.ts","sourceRoot":"lib/default/","sources":["internal/utils/scrollable-containers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scrollable-containers.d.ts","sourceRoot":"lib/default/","sources":["internal/utils/scrollable-containers.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,kBAAkB,YAAa,WAAW,KAAG,WAAW,EAQpE,CAAC;AAEF,eAAO,MAAM,2BAA2B;aAM7B,WAAW;0BACE,OAAO;sBACX,OAAO;8BACC,OAAO;MAC/B,WAAW,EAqCd,CAAC;AAEF,KAAK,qBAAqB,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1E;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,WAAW,GAAG,SAAS,EAChC,OAAO,GAAE,qBAA+D,QAGzE;AAED,wBAAgB,eAAe,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,WAAW,UAW3D;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,WAAW,EAAE,gBAAgB,CAAC,EAAE,WAAW,QAKvF;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW,GAAG,SAAS,CAOtF"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { findUpUntil } from './dom';
|
|
1
4
|
export const getOverflowParents = (element) => {
|
|
2
5
|
const parents = [];
|
|
3
6
|
let node = element;
|
|
@@ -75,10 +78,16 @@ export function calculateScroll({ top, height }) {
|
|
|
75
78
|
* so we need to manually scroll to the element's position.
|
|
76
79
|
* Supports only vertical scrolling.
|
|
77
80
|
*/
|
|
78
|
-
export function scrollRectangleIntoView(box) {
|
|
81
|
+
export function scrollRectangleIntoView(box, scrollableParent) {
|
|
79
82
|
const scrollAmount = calculateScroll(box);
|
|
80
83
|
if (scrollAmount) {
|
|
81
|
-
window.scrollBy(0, scrollAmount);
|
|
84
|
+
(scrollableParent || window).scrollBy(0, scrollAmount);
|
|
82
85
|
}
|
|
83
86
|
}
|
|
87
|
+
export function getFirstScrollableParent(element) {
|
|
88
|
+
return (findUpUntil(element, el => {
|
|
89
|
+
const overflows = el.scrollHeight > el.clientHeight;
|
|
90
|
+
return overflows && ['scroll', 'auto'].includes(getComputedStyle(el).overflowY);
|
|
91
|
+
}) || undefined);
|
|
92
|
+
}
|
|
84
93
|
//# sourceMappingURL=scrollable-containers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollable-containers.js","sourceRoot":"lib/default/","sources":["internal/utils/scrollable-containers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scrollable-containers.js","sourceRoot":"lib/default/","sources":["internal/utils/scrollable-containers.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { findUpUntil } from './dom';\nexport interface BoundingBox {\n height: number;\n width: number;\n top: number;\n left: number;\n}\n\nexport const getOverflowParents = (element: HTMLElement): HTMLElement[] => {\n const parents = [];\n let node: HTMLElement | null = element;\n\n while ((node = node.parentElement) && node !== document.body) {\n getComputedStyle(node).overflow !== 'visible' && parents.push(node);\n }\n return parents;\n};\n\nexport const getOverflowParentDimensions = ({\n element,\n excludeClosestParent = false,\n expandToViewport = false,\n canExpandOutsideViewport = false,\n}: {\n element: HTMLElement;\n excludeClosestParent: boolean;\n expandToViewport: boolean;\n canExpandOutsideViewport: boolean;\n}): BoundingBox[] => {\n const parents = expandToViewport\n ? []\n : getOverflowParents(element).map(el => {\n const { height, width, top, left } = el.getBoundingClientRect();\n return {\n // Treat the whole scrollable area as the available height\n // if we're allowed to expand past the viewport.\n height: canExpandOutsideViewport ? el.scrollHeight : height,\n width,\n top,\n left,\n };\n });\n\n if (canExpandOutsideViewport && !expandToViewport) {\n const documentDimensions = document.documentElement.getBoundingClientRect();\n parents.push({\n width: Math.max(documentDimensions.width, document.documentElement.clientWidth),\n height: Math.max(documentDimensions.height, document.documentElement.clientHeight),\n top: documentDimensions.top,\n left: documentDimensions.left,\n });\n } else {\n parents.push({\n height: window.innerHeight,\n width: window.innerWidth,\n top: 0,\n left: 0,\n });\n }\n\n if (excludeClosestParent && !expandToViewport) {\n parents.shift();\n }\n\n return parents;\n};\n\ntype ScrollIntoViewOptions = Parameters<HTMLElement['scrollIntoView']>[0];\n\n/**\n * Calls `scrollIntoView` on the provided element with sensible defaults. If\n * the element does not existed or does not support the `scrollIntoView`\n * method, it will do nothing. This wrapper is created to support environments\n * where the native function is not available like JSDom (feature request:\n * https://github.com/jsdom/jsdom/issues/1422).\n *\n * @param element to be scrolled into view\n * @param options native options for `scrollIntoView`\n */\nexport function scrollElementIntoView(\n element: HTMLElement | undefined,\n options: ScrollIntoViewOptions = { block: 'nearest', inline: 'nearest' }\n) {\n element?.scrollIntoView?.(options);\n}\n\nexport function calculateScroll({ top, height }: BoundingBox) {\n if (top < 0) {\n return top;\n } else if (top + height > window.innerHeight) {\n if (height > window.innerHeight) {\n return top;\n } else {\n return top + height - window.innerHeight;\n }\n }\n return 0;\n}\n\n/**\n * For elements with fixed position, the browser's native scrollIntoView API doesn't work,\n * so we need to manually scroll to the element's position.\n * Supports only vertical scrolling.\n */\nexport function scrollRectangleIntoView(box: BoundingBox, scrollableParent?: HTMLElement) {\n const scrollAmount = calculateScroll(box);\n if (scrollAmount) {\n (scrollableParent || window).scrollBy(0, scrollAmount);\n }\n}\n\nexport function getFirstScrollableParent(element: HTMLElement): HTMLElement | undefined {\n return (\n findUpUntil(element, el => {\n const overflows = el.scrollHeight > el.clientHeight;\n return overflows && ['scroll', 'auto'].includes(getComputedStyle(el).overflowY);\n }) || undefined\n );\n}\n"]}
|
package/link/styles.css.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"link": "
|
|
5
|
-
"variant-secondary": "awsui_variant-
|
|
6
|
-
"variant-primary": "awsui_variant-
|
|
7
|
-
"variant-info": "awsui_variant-
|
|
8
|
-
"variant-value-large": "awsui_variant-value-
|
|
9
|
-
"variant-top-navigation": "awsui_variant-top-
|
|
10
|
-
"variant-recovery": "awsui_variant-
|
|
11
|
-
"button": "
|
|
12
|
-
"color-inverted": "awsui_color-
|
|
13
|
-
"font-size-body-s": "awsui_font-size-body-
|
|
14
|
-
"font-size-body-m": "awsui_font-size-body-
|
|
15
|
-
"font-size-heading-xs": "awsui_font-size-heading-
|
|
16
|
-
"font-size-heading-s": "awsui_font-size-heading-
|
|
17
|
-
"font-size-heading-m": "awsui_font-size-heading-
|
|
18
|
-
"font-size-heading-l": "awsui_font-size-heading-
|
|
19
|
-
"font-size-heading-xl": "awsui_font-size-heading-
|
|
20
|
-
"font-size-display-l": "awsui_font-size-display-
|
|
21
|
-
"font-size-inherit": "awsui_font-size-
|
|
22
|
-
"icon-wrapper": "awsui_icon-
|
|
23
|
-
"icon": "
|
|
4
|
+
"link": "awsui_link_4c84z_1dx4y_93",
|
|
5
|
+
"variant-secondary": "awsui_variant-secondary_4c84z_1dx4y_162",
|
|
6
|
+
"variant-primary": "awsui_variant-primary_4c84z_1dx4y_197",
|
|
7
|
+
"variant-info": "awsui_variant-info_4c84z_1dx4y_230",
|
|
8
|
+
"variant-value-large": "awsui_variant-value-large_4c84z_1dx4y_265",
|
|
9
|
+
"variant-top-navigation": "awsui_variant-top-navigation_4c84z_1dx4y_297",
|
|
10
|
+
"variant-recovery": "awsui_variant-recovery_4c84z_1dx4y_330",
|
|
11
|
+
"button": "awsui_button_4c84z_1dx4y_363",
|
|
12
|
+
"color-inverted": "awsui_color-inverted_4c84z_1dx4y_398",
|
|
13
|
+
"font-size-body-s": "awsui_font-size-body-s_4c84z_1dx4y_416",
|
|
14
|
+
"font-size-body-m": "awsui_font-size-body-m_4c84z_1dx4y_423",
|
|
15
|
+
"font-size-heading-xs": "awsui_font-size-heading-xs_4c84z_1dx4y_429",
|
|
16
|
+
"font-size-heading-s": "awsui_font-size-heading-s_4c84z_1dx4y_435",
|
|
17
|
+
"font-size-heading-m": "awsui_font-size-heading-m_4c84z_1dx4y_442",
|
|
18
|
+
"font-size-heading-l": "awsui_font-size-heading-l_4c84z_1dx4y_449",
|
|
19
|
+
"font-size-heading-xl": "awsui_font-size-heading-xl_4c84z_1dx4y_456",
|
|
20
|
+
"font-size-display-l": "awsui_font-size-display-l_4c84z_1dx4y_463",
|
|
21
|
+
"font-size-inherit": "awsui_font-size-inherit_4c84z_1dx4y_470",
|
|
22
|
+
"icon-wrapper": "awsui_icon-wrapper_4c84z_1dx4y_478",
|
|
23
|
+
"icon": "awsui_icon_4c84z_1dx4y_478"
|
|
24
24
|
};
|
|
25
25
|
|
package/link/styles.scoped.css
CHANGED
|
@@ -90,19 +90,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.
|
|
94
|
-
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
93
|
+
.awsui_link_4c84z_1dx4y_93:not(#\9) {
|
|
95
94
|
border-collapse: separate;
|
|
96
95
|
border-spacing: 0;
|
|
96
|
+
box-sizing: border-box;
|
|
97
97
|
caption-side: top;
|
|
98
98
|
cursor: auto;
|
|
99
|
-
direction:
|
|
99
|
+
direction: inherit;
|
|
100
100
|
empty-cells: show;
|
|
101
101
|
font-family: serif;
|
|
102
102
|
font-size: medium;
|
|
103
103
|
font-style: normal;
|
|
104
104
|
font-variant: normal;
|
|
105
|
-
font-weight:
|
|
105
|
+
font-weight: 400;
|
|
106
106
|
font-stretch: normal;
|
|
107
107
|
line-height: normal;
|
|
108
108
|
-webkit-hyphens: none;
|
|
@@ -111,15 +111,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
111
111
|
list-style: disc outside none;
|
|
112
112
|
tab-size: 8;
|
|
113
113
|
text-align: left;
|
|
114
|
-
text-align-last: auto;
|
|
115
114
|
text-indent: 0;
|
|
116
115
|
text-shadow: none;
|
|
117
116
|
text-transform: none;
|
|
118
117
|
visibility: visible;
|
|
119
118
|
white-space: normal;
|
|
120
|
-
widows: 2;
|
|
121
119
|
word-spacing: normal;
|
|
122
|
-
box-sizing: border-box;
|
|
123
120
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
124
121
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
125
122
|
color: var(--color-text-body-default-at06ol, #000716);
|
|
@@ -142,30 +139,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
142
139
|
text-decoration-thickness: 1px;
|
|
143
140
|
}
|
|
144
141
|
@media (prefers-reduced-motion: reduce) {
|
|
145
|
-
.
|
|
142
|
+
.awsui_link_4c84z_1dx4y_93:not(#\9) {
|
|
146
143
|
animation: none;
|
|
147
144
|
transition: none;
|
|
148
145
|
}
|
|
149
146
|
}
|
|
150
|
-
.awsui-motion-disabled .
|
|
147
|
+
.awsui-motion-disabled .awsui_link_4c84z_1dx4y_93:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1dx4y_93:not(#\9) {
|
|
151
148
|
animation: none;
|
|
152
149
|
transition: none;
|
|
153
150
|
}
|
|
154
|
-
.
|
|
151
|
+
.awsui_link_4c84z_1dx4y_93:not(#\9):hover {
|
|
155
152
|
cursor: pointer;
|
|
156
153
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
157
154
|
}
|
|
158
|
-
.
|
|
155
|
+
.awsui_link_4c84z_1dx4y_93:not(#\9):focus {
|
|
159
156
|
outline: none;
|
|
160
157
|
}
|
|
161
|
-
.
|
|
158
|
+
.awsui_link_4c84z_1dx4y_93:not(#\9):active {
|
|
162
159
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
163
160
|
}
|
|
164
|
-
.
|
|
161
|
+
.awsui_link_4c84z_1dx4y_93:not(#\9):active, .awsui_link_4c84z_1dx4y_93:not(#\9):focus, .awsui_link_4c84z_1dx4y_93:not(#\9):hover {
|
|
165
162
|
text-decoration-line: underline;
|
|
166
163
|
text-decoration-color: currentColor;
|
|
167
164
|
}
|
|
168
|
-
.
|
|
165
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-secondary_4c84z_1dx4y_162:not(#\9) {
|
|
169
166
|
-webkit-font-smoothing: inherit;
|
|
170
167
|
-moz-osx-font-smoothing: inherit;
|
|
171
168
|
color: var(--color-text-link-default-latg1a, #0972d3);
|
|
@@ -179,30 +176,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
179
176
|
transition-duration: var(--motion-duration-refresh-only-medium-nf6485, 165ms);
|
|
180
177
|
}
|
|
181
178
|
@media (prefers-reduced-motion: reduce) {
|
|
182
|
-
.
|
|
179
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-secondary_4c84z_1dx4y_162:not(#\9) {
|
|
183
180
|
animation: none;
|
|
184
181
|
transition: none;
|
|
185
182
|
}
|
|
186
183
|
}
|
|
187
|
-
.awsui-motion-disabled .
|
|
184
|
+
.awsui-motion-disabled .awsui_link_4c84z_1dx4y_93.awsui_variant-secondary_4c84z_1dx4y_162:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1dx4y_93.awsui_variant-secondary_4c84z_1dx4y_162:not(#\9) {
|
|
188
185
|
animation: none;
|
|
189
186
|
transition: none;
|
|
190
187
|
}
|
|
191
|
-
.
|
|
188
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-secondary_4c84z_1dx4y_162:not(#\9):hover {
|
|
192
189
|
cursor: pointer;
|
|
193
190
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
194
191
|
}
|
|
195
|
-
.
|
|
192
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-secondary_4c84z_1dx4y_162:not(#\9):focus {
|
|
196
193
|
outline: none;
|
|
197
194
|
}
|
|
198
|
-
.
|
|
195
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-secondary_4c84z_1dx4y_162:not(#\9):active {
|
|
199
196
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
200
197
|
}
|
|
201
|
-
.
|
|
198
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-secondary_4c84z_1dx4y_162:not(#\9):active, .awsui_link_4c84z_1dx4y_93.awsui_variant-secondary_4c84z_1dx4y_162:not(#\9):focus, .awsui_link_4c84z_1dx4y_93.awsui_variant-secondary_4c84z_1dx4y_162:not(#\9):hover {
|
|
202
199
|
text-decoration-line: underline;
|
|
203
200
|
text-decoration-color: currentColor;
|
|
204
201
|
}
|
|
205
|
-
.
|
|
202
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-primary_4c84z_1dx4y_197:not(#\9) {
|
|
206
203
|
color: var(--color-text-link-default-latg1a, #0972d3);
|
|
207
204
|
font-weight: inherit;
|
|
208
205
|
letter-spacing: normal;
|
|
@@ -214,30 +211,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
214
211
|
transition-duration: var(--motion-duration-refresh-only-medium-nf6485, 165ms);
|
|
215
212
|
}
|
|
216
213
|
@media (prefers-reduced-motion: reduce) {
|
|
217
|
-
.
|
|
214
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-primary_4c84z_1dx4y_197:not(#\9) {
|
|
218
215
|
animation: none;
|
|
219
216
|
transition: none;
|
|
220
217
|
}
|
|
221
218
|
}
|
|
222
|
-
.awsui-motion-disabled .
|
|
219
|
+
.awsui-motion-disabled .awsui_link_4c84z_1dx4y_93.awsui_variant-primary_4c84z_1dx4y_197:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1dx4y_93.awsui_variant-primary_4c84z_1dx4y_197:not(#\9) {
|
|
223
220
|
animation: none;
|
|
224
221
|
transition: none;
|
|
225
222
|
}
|
|
226
|
-
.
|
|
223
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-primary_4c84z_1dx4y_197:not(#\9):hover {
|
|
227
224
|
cursor: pointer;
|
|
228
225
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
229
226
|
}
|
|
230
|
-
.
|
|
227
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-primary_4c84z_1dx4y_197:not(#\9):focus {
|
|
231
228
|
outline: none;
|
|
232
229
|
}
|
|
233
|
-
.
|
|
230
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-primary_4c84z_1dx4y_197:not(#\9):active {
|
|
234
231
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
235
232
|
}
|
|
236
|
-
.
|
|
233
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-primary_4c84z_1dx4y_197:not(#\9):active, .awsui_link_4c84z_1dx4y_93.awsui_variant-primary_4c84z_1dx4y_197:not(#\9):focus, .awsui_link_4c84z_1dx4y_93.awsui_variant-primary_4c84z_1dx4y_197:not(#\9):hover {
|
|
237
234
|
text-decoration-line: underline;
|
|
238
235
|
text-decoration-color: currentColor;
|
|
239
236
|
}
|
|
240
|
-
.
|
|
237
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-info_4c84z_1dx4y_230:not(#\9) {
|
|
241
238
|
-webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
|
|
242
239
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
|
|
243
240
|
color: var(--color-text-link-default-latg1a, #0972d3);
|
|
@@ -251,30 +248,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
251
248
|
transition-duration: var(--motion-duration-refresh-only-medium-nf6485, 165ms);
|
|
252
249
|
}
|
|
253
250
|
@media (prefers-reduced-motion: reduce) {
|
|
254
|
-
.
|
|
251
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-info_4c84z_1dx4y_230:not(#\9) {
|
|
255
252
|
animation: none;
|
|
256
253
|
transition: none;
|
|
257
254
|
}
|
|
258
255
|
}
|
|
259
|
-
.awsui-motion-disabled .
|
|
256
|
+
.awsui-motion-disabled .awsui_link_4c84z_1dx4y_93.awsui_variant-info_4c84z_1dx4y_230:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1dx4y_93.awsui_variant-info_4c84z_1dx4y_230:not(#\9) {
|
|
260
257
|
animation: none;
|
|
261
258
|
transition: none;
|
|
262
259
|
}
|
|
263
|
-
.
|
|
260
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-info_4c84z_1dx4y_230:not(#\9):hover {
|
|
264
261
|
cursor: pointer;
|
|
265
262
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
266
263
|
}
|
|
267
|
-
.
|
|
264
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-info_4c84z_1dx4y_230:not(#\9):focus {
|
|
268
265
|
outline: none;
|
|
269
266
|
}
|
|
270
|
-
.
|
|
267
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-info_4c84z_1dx4y_230:not(#\9):active {
|
|
271
268
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
272
269
|
}
|
|
273
|
-
.
|
|
270
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-info_4c84z_1dx4y_230:not(#\9):active, .awsui_link_4c84z_1dx4y_93.awsui_variant-info_4c84z_1dx4y_230:not(#\9):focus, .awsui_link_4c84z_1dx4y_93.awsui_variant-info_4c84z_1dx4y_230:not(#\9):hover {
|
|
274
271
|
text-decoration-line: underline;
|
|
275
272
|
text-decoration-color: var(--color-text-link-button-underline-hover-gyir88, transparent);
|
|
276
273
|
}
|
|
277
|
-
.
|
|
274
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-value-large_4c84z_1dx4y_265:not(#\9) {
|
|
278
275
|
color: var(--color-text-link-default-latg1a, #0972d3);
|
|
279
276
|
font-weight: var(--font-box-value-large-weight-onoq9k, 700);
|
|
280
277
|
text-decoration-line: underline;
|
|
@@ -285,30 +282,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
285
282
|
transition-duration: var(--motion-duration-refresh-only-medium-nf6485, 165ms);
|
|
286
283
|
}
|
|
287
284
|
@media (prefers-reduced-motion: reduce) {
|
|
288
|
-
.
|
|
285
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-value-large_4c84z_1dx4y_265:not(#\9) {
|
|
289
286
|
animation: none;
|
|
290
287
|
transition: none;
|
|
291
288
|
}
|
|
292
289
|
}
|
|
293
|
-
.awsui-motion-disabled .
|
|
290
|
+
.awsui-motion-disabled .awsui_link_4c84z_1dx4y_93.awsui_variant-value-large_4c84z_1dx4y_265:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1dx4y_93.awsui_variant-value-large_4c84z_1dx4y_265:not(#\9) {
|
|
294
291
|
animation: none;
|
|
295
292
|
transition: none;
|
|
296
293
|
}
|
|
297
|
-
.
|
|
294
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-value-large_4c84z_1dx4y_265:not(#\9):hover {
|
|
298
295
|
cursor: pointer;
|
|
299
296
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
300
297
|
}
|
|
301
|
-
.
|
|
298
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-value-large_4c84z_1dx4y_265:not(#\9):focus {
|
|
302
299
|
outline: none;
|
|
303
300
|
}
|
|
304
|
-
.
|
|
301
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-value-large_4c84z_1dx4y_265:not(#\9):active {
|
|
305
302
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
306
303
|
}
|
|
307
|
-
.
|
|
304
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-value-large_4c84z_1dx4y_265:not(#\9):active, .awsui_link_4c84z_1dx4y_93.awsui_variant-value-large_4c84z_1dx4y_265:not(#\9):focus, .awsui_link_4c84z_1dx4y_93.awsui_variant-value-large_4c84z_1dx4y_265:not(#\9):hover {
|
|
308
305
|
text-decoration-line: underline;
|
|
309
306
|
text-decoration-color: currentColor;
|
|
310
307
|
}
|
|
311
|
-
.
|
|
308
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-top-navigation_4c84z_1dx4y_297:not(#\9) {
|
|
312
309
|
color: var(--color-text-interactive-default-lnx6lk, #414d5c);
|
|
313
310
|
font-weight: 700;
|
|
314
311
|
letter-spacing: 0.005em;
|
|
@@ -320,30 +317,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
320
317
|
transition-duration: var(--motion-duration-refresh-only-medium-nf6485, 165ms);
|
|
321
318
|
}
|
|
322
319
|
@media (prefers-reduced-motion: reduce) {
|
|
323
|
-
.
|
|
320
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-top-navigation_4c84z_1dx4y_297:not(#\9) {
|
|
324
321
|
animation: none;
|
|
325
322
|
transition: none;
|
|
326
323
|
}
|
|
327
324
|
}
|
|
328
|
-
.awsui-motion-disabled .
|
|
325
|
+
.awsui-motion-disabled .awsui_link_4c84z_1dx4y_93.awsui_variant-top-navigation_4c84z_1dx4y_297:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1dx4y_93.awsui_variant-top-navigation_4c84z_1dx4y_297:not(#\9) {
|
|
329
326
|
animation: none;
|
|
330
327
|
transition: none;
|
|
331
328
|
}
|
|
332
|
-
.
|
|
329
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-top-navigation_4c84z_1dx4y_297:not(#\9):hover {
|
|
333
330
|
cursor: pointer;
|
|
334
331
|
color: var(--color-text-interactive-hover-mj8add, #000716);
|
|
335
332
|
}
|
|
336
|
-
.
|
|
333
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-top-navigation_4c84z_1dx4y_297:not(#\9):focus {
|
|
337
334
|
outline: none;
|
|
338
335
|
}
|
|
339
|
-
.
|
|
336
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-top-navigation_4c84z_1dx4y_297:not(#\9):active {
|
|
340
337
|
color: var(--color-text-interactive-active-ox3ozh, #000716);
|
|
341
338
|
}
|
|
342
|
-
.
|
|
339
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-top-navigation_4c84z_1dx4y_297:not(#\9):active, .awsui_link_4c84z_1dx4y_93.awsui_variant-top-navigation_4c84z_1dx4y_297:not(#\9):focus, .awsui_link_4c84z_1dx4y_93.awsui_variant-top-navigation_4c84z_1dx4y_297:not(#\9):hover {
|
|
343
340
|
text-decoration-line: underline;
|
|
344
341
|
text-decoration-color: transparent;
|
|
345
342
|
}
|
|
346
|
-
.
|
|
343
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-recovery_4c84z_1dx4y_330:not(#\9) {
|
|
347
344
|
color: var(--color-text-link-default-latg1a, #0972d3);
|
|
348
345
|
font-weight: var(--font-link-button-weight-jephf1, 700);
|
|
349
346
|
letter-spacing: var(--font-link-button-letter-spacing-yi9f0l, 0.005em);
|
|
@@ -355,30 +352,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
355
352
|
transition-duration: var(--motion-duration-refresh-only-medium-nf6485, 165ms);
|
|
356
353
|
}
|
|
357
354
|
@media (prefers-reduced-motion: reduce) {
|
|
358
|
-
.
|
|
355
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-recovery_4c84z_1dx4y_330:not(#\9) {
|
|
359
356
|
animation: none;
|
|
360
357
|
transition: none;
|
|
361
358
|
}
|
|
362
359
|
}
|
|
363
|
-
.awsui-motion-disabled .
|
|
360
|
+
.awsui-motion-disabled .awsui_link_4c84z_1dx4y_93.awsui_variant-recovery_4c84z_1dx4y_330:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1dx4y_93.awsui_variant-recovery_4c84z_1dx4y_330:not(#\9) {
|
|
364
361
|
animation: none;
|
|
365
362
|
transition: none;
|
|
366
363
|
}
|
|
367
|
-
.
|
|
364
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-recovery_4c84z_1dx4y_330:not(#\9):hover {
|
|
368
365
|
cursor: pointer;
|
|
369
366
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
370
367
|
}
|
|
371
|
-
.
|
|
368
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-recovery_4c84z_1dx4y_330:not(#\9):focus {
|
|
372
369
|
outline: none;
|
|
373
370
|
}
|
|
374
|
-
.
|
|
371
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-recovery_4c84z_1dx4y_330:not(#\9):active {
|
|
375
372
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
376
373
|
}
|
|
377
|
-
.
|
|
374
|
+
.awsui_link_4c84z_1dx4y_93.awsui_variant-recovery_4c84z_1dx4y_330:not(#\9):active, .awsui_link_4c84z_1dx4y_93.awsui_variant-recovery_4c84z_1dx4y_330:not(#\9):focus, .awsui_link_4c84z_1dx4y_93.awsui_variant-recovery_4c84z_1dx4y_330:not(#\9):hover {
|
|
378
375
|
text-decoration-line: underline;
|
|
379
376
|
text-decoration-color: var(--color-text-link-button-underline-hover-gyir88, transparent);
|
|
380
377
|
}
|
|
381
|
-
.
|
|
378
|
+
.awsui_link_4c84z_1dx4y_93.awsui_button_4c84z_1dx4y_363:not(#\9) {
|
|
382
379
|
-webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
|
|
383
380
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
|
|
384
381
|
color: var(--color-text-link-button-normal-default-px6yl8, #0972d3);
|
|
@@ -392,40 +389,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
392
389
|
transition-duration: var(--motion-duration-refresh-only-medium-nf6485, 165ms);
|
|
393
390
|
}
|
|
394
391
|
@media (prefers-reduced-motion: reduce) {
|
|
395
|
-
.
|
|
392
|
+
.awsui_link_4c84z_1dx4y_93.awsui_button_4c84z_1dx4y_363:not(#\9) {
|
|
396
393
|
animation: none;
|
|
397
394
|
transition: none;
|
|
398
395
|
}
|
|
399
396
|
}
|
|
400
|
-
.awsui-motion-disabled .
|
|
397
|
+
.awsui-motion-disabled .awsui_link_4c84z_1dx4y_93.awsui_button_4c84z_1dx4y_363:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1dx4y_93.awsui_button_4c84z_1dx4y_363:not(#\9) {
|
|
401
398
|
animation: none;
|
|
402
399
|
transition: none;
|
|
403
400
|
}
|
|
404
|
-
.
|
|
401
|
+
.awsui_link_4c84z_1dx4y_93.awsui_button_4c84z_1dx4y_363:not(#\9):hover {
|
|
405
402
|
cursor: pointer;
|
|
406
403
|
color: var(--color-text-link-button-normal-hover-4psj43, #033160);
|
|
407
404
|
}
|
|
408
|
-
.
|
|
405
|
+
.awsui_link_4c84z_1dx4y_93.awsui_button_4c84z_1dx4y_363:not(#\9):focus {
|
|
409
406
|
outline: none;
|
|
410
407
|
}
|
|
411
|
-
.
|
|
408
|
+
.awsui_link_4c84z_1dx4y_93.awsui_button_4c84z_1dx4y_363:not(#\9):active {
|
|
412
409
|
color: var(--color-text-link-button-normal-active-pv8vqs, #033160);
|
|
413
410
|
}
|
|
414
|
-
.
|
|
411
|
+
.awsui_link_4c84z_1dx4y_93.awsui_button_4c84z_1dx4y_363:not(#\9):active, .awsui_link_4c84z_1dx4y_93.awsui_button_4c84z_1dx4y_363:not(#\9):focus, .awsui_link_4c84z_1dx4y_93.awsui_button_4c84z_1dx4y_363:not(#\9):hover {
|
|
415
412
|
text-decoration-line: underline;
|
|
416
413
|
text-decoration-color: transparent;
|
|
417
414
|
}
|
|
418
|
-
.
|
|
415
|
+
.awsui_link_4c84z_1dx4y_93.awsui_color-inverted_4c84z_1dx4y_398:not(#\9) {
|
|
419
416
|
color: var(--color-text-notification-default-rdawv9, #fbfbfb);
|
|
420
417
|
}
|
|
421
|
-
.
|
|
418
|
+
.awsui_link_4c84z_1dx4y_93.awsui_color-inverted_4c84z_1dx4y_398:not(#\9):not(.awsui_button_4c84z_1dx4y_363) {
|
|
422
419
|
text-decoration-line: underline;
|
|
423
420
|
text-decoration-color: currentColor;
|
|
424
421
|
}
|
|
425
|
-
.
|
|
422
|
+
.awsui_link_4c84z_1dx4y_93.awsui_color-inverted_4c84z_1dx4y_398:not(#\9):hover {
|
|
426
423
|
color: var(--color-text-link-inverted-hover-09cw7h, #ffffff);
|
|
427
424
|
}
|
|
428
|
-
body[data-awsui-focus-visible=true] .
|
|
425
|
+
body[data-awsui-focus-visible=true] .awsui_link_4c84z_1dx4y_93:not(#\9):focus {
|
|
429
426
|
outline: thin dotted;
|
|
430
427
|
outline: var(--border-link-focus-ring-outline-kkfop6, 0);
|
|
431
428
|
outline-offset: 2px;
|
|
@@ -433,61 +430,61 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1dle6_93:not(#\9):focus {
|
|
|
433
430
|
border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
434
431
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-v8hkrl, 2px) var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
435
432
|
}
|
|
436
|
-
.
|
|
433
|
+
.awsui_link_4c84z_1dx4y_93.awsui_font-size-body-s_4c84z_1dx4y_416:not(#\9) {
|
|
437
434
|
font-size: var(--font-size-body-s-asqx2i, 12px);
|
|
438
435
|
line-height: var(--line-height-body-s-7zv1j5, 16px);
|
|
439
436
|
letter-spacing: var(--letter-spacing-body-s-z9jkwp, 0.005em);
|
|
440
437
|
text-underline-offset: 0.3em;
|
|
441
438
|
text-decoration-thickness: 1px;
|
|
442
439
|
}
|
|
443
|
-
.
|
|
440
|
+
.awsui_link_4c84z_1dx4y_93.awsui_font-size-body-m_4c84z_1dx4y_423:not(#\9) {
|
|
444
441
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
445
442
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
446
443
|
text-underline-offset: 0.25em;
|
|
447
444
|
text-decoration-thickness: 1px;
|
|
448
445
|
}
|
|
449
|
-
.
|
|
446
|
+
.awsui_link_4c84z_1dx4y_93.awsui_font-size-heading-xs_4c84z_1dx4y_429:not(#\9) {
|
|
450
447
|
font-size: var(--font-size-heading-xs-wo4hpf, 14px);
|
|
451
448
|
line-height: var(--line-height-heading-xs-aeleja, 18px);
|
|
452
449
|
text-underline-offset: 0.25em;
|
|
453
450
|
text-decoration-thickness: 1px;
|
|
454
451
|
}
|
|
455
|
-
.
|
|
452
|
+
.awsui_link_4c84z_1dx4y_93.awsui_font-size-heading-s_4c84z_1dx4y_435:not(#\9) {
|
|
456
453
|
font-size: var(--font-size-heading-s-yykzif, 16px);
|
|
457
454
|
line-height: var(--line-height-heading-s-4i6ewn, 20px);
|
|
458
455
|
letter-spacing: var(--letter-spacing-heading-s-jr3mor, -0.005em);
|
|
459
456
|
text-underline-offset: 0.3em;
|
|
460
457
|
text-decoration-thickness: 1px;
|
|
461
458
|
}
|
|
462
|
-
.
|
|
459
|
+
.awsui_link_4c84z_1dx4y_93.awsui_font-size-heading-m_4c84z_1dx4y_442:not(#\9) {
|
|
463
460
|
font-size: var(--font-size-heading-m-sjd256, 18px);
|
|
464
461
|
line-height: var(--line-height-heading-m-50evfk, 22px);
|
|
465
462
|
letter-spacing: var(--letter-spacing-heading-m-0w575i, -0.01em);
|
|
466
463
|
text-underline-offset: 0.25em;
|
|
467
464
|
text-decoration-thickness: 1px;
|
|
468
465
|
}
|
|
469
|
-
.
|
|
466
|
+
.awsui_link_4c84z_1dx4y_93.awsui_font-size-heading-l_4c84z_1dx4y_449:not(#\9) {
|
|
470
467
|
font-size: var(--font-size-heading-l-ou0d0l, 20px);
|
|
471
468
|
line-height: var(--line-height-heading-l-mmm3my, 24px);
|
|
472
469
|
letter-spacing: var(--letter-spacing-heading-l-qqjd4y, -0.015em);
|
|
473
470
|
text-underline-offset: 0.25em;
|
|
474
471
|
text-decoration-thickness: 1px;
|
|
475
472
|
}
|
|
476
|
-
.
|
|
473
|
+
.awsui_link_4c84z_1dx4y_93.awsui_font-size-heading-xl_4c84z_1dx4y_456:not(#\9) {
|
|
477
474
|
font-size: var(--font-size-heading-xl-ypc05a, 24px);
|
|
478
475
|
line-height: var(--line-height-heading-xl-avbttk, 30px);
|
|
479
476
|
letter-spacing: var(--letter-spacing-heading-xl-sagq9c, -0.02em);
|
|
480
477
|
text-underline-offset: 0.25em;
|
|
481
478
|
text-decoration-thickness: 1px;
|
|
482
479
|
}
|
|
483
|
-
.
|
|
480
|
+
.awsui_link_4c84z_1dx4y_93.awsui_font-size-display-l_4c84z_1dx4y_463:not(#\9) {
|
|
484
481
|
font-size: var(--font-size-display-l-htkq3e, 42px);
|
|
485
482
|
line-height: var(--line-height-display-l-8nioft, 48px);
|
|
486
483
|
letter-spacing: var(--letter-spacing-display-l-9cigop, -0.03em);
|
|
487
484
|
text-underline-offset: 0.25em;
|
|
488
485
|
text-decoration-thickness: 2px;
|
|
489
486
|
}
|
|
490
|
-
.
|
|
487
|
+
.awsui_link_4c84z_1dx4y_93.awsui_font-size-inherit_4c84z_1dx4y_470:not(#\9) {
|
|
491
488
|
font-size: inherit;
|
|
492
489
|
line-height: inherit;
|
|
493
490
|
letter-spacing: inherit;
|
|
@@ -495,10 +492,10 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1dle6_93:not(#\9):focus {
|
|
|
495
492
|
text-decoration-thickness: 1px;
|
|
496
493
|
}
|
|
497
494
|
|
|
498
|
-
.awsui_icon-
|
|
495
|
+
.awsui_icon-wrapper_4c84z_1dx4y_478:not(#\9) {
|
|
499
496
|
white-space: nowrap;
|
|
500
497
|
}
|
|
501
498
|
|
|
502
|
-
.
|
|
499
|
+
.awsui_icon_4c84z_1dx4y_478:not(#\9) {
|
|
503
500
|
display: inline-block;
|
|
504
501
|
}
|
package/link/styles.selectors.js
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"link": "
|
|
6
|
-
"variant-secondary": "awsui_variant-
|
|
7
|
-
"variant-primary": "awsui_variant-
|
|
8
|
-
"variant-info": "awsui_variant-
|
|
9
|
-
"variant-value-large": "awsui_variant-value-
|
|
10
|
-
"variant-top-navigation": "awsui_variant-top-
|
|
11
|
-
"variant-recovery": "awsui_variant-
|
|
12
|
-
"button": "
|
|
13
|
-
"color-inverted": "awsui_color-
|
|
14
|
-
"font-size-body-s": "awsui_font-size-body-
|
|
15
|
-
"font-size-body-m": "awsui_font-size-body-
|
|
16
|
-
"font-size-heading-xs": "awsui_font-size-heading-
|
|
17
|
-
"font-size-heading-s": "awsui_font-size-heading-
|
|
18
|
-
"font-size-heading-m": "awsui_font-size-heading-
|
|
19
|
-
"font-size-heading-l": "awsui_font-size-heading-
|
|
20
|
-
"font-size-heading-xl": "awsui_font-size-heading-
|
|
21
|
-
"font-size-display-l": "awsui_font-size-display-
|
|
22
|
-
"font-size-inherit": "awsui_font-size-
|
|
23
|
-
"icon-wrapper": "awsui_icon-
|
|
24
|
-
"icon": "
|
|
5
|
+
"link": "awsui_link_4c84z_1dx4y_93",
|
|
6
|
+
"variant-secondary": "awsui_variant-secondary_4c84z_1dx4y_162",
|
|
7
|
+
"variant-primary": "awsui_variant-primary_4c84z_1dx4y_197",
|
|
8
|
+
"variant-info": "awsui_variant-info_4c84z_1dx4y_230",
|
|
9
|
+
"variant-value-large": "awsui_variant-value-large_4c84z_1dx4y_265",
|
|
10
|
+
"variant-top-navigation": "awsui_variant-top-navigation_4c84z_1dx4y_297",
|
|
11
|
+
"variant-recovery": "awsui_variant-recovery_4c84z_1dx4y_330",
|
|
12
|
+
"button": "awsui_button_4c84z_1dx4y_363",
|
|
13
|
+
"color-inverted": "awsui_color-inverted_4c84z_1dx4y_398",
|
|
14
|
+
"font-size-body-s": "awsui_font-size-body-s_4c84z_1dx4y_416",
|
|
15
|
+
"font-size-body-m": "awsui_font-size-body-m_4c84z_1dx4y_423",
|
|
16
|
+
"font-size-heading-xs": "awsui_font-size-heading-xs_4c84z_1dx4y_429",
|
|
17
|
+
"font-size-heading-s": "awsui_font-size-heading-s_4c84z_1dx4y_435",
|
|
18
|
+
"font-size-heading-m": "awsui_font-size-heading-m_4c84z_1dx4y_442",
|
|
19
|
+
"font-size-heading-l": "awsui_font-size-heading-l_4c84z_1dx4y_449",
|
|
20
|
+
"font-size-heading-xl": "awsui_font-size-heading-xl_4c84z_1dx4y_456",
|
|
21
|
+
"font-size-display-l": "awsui_font-size-display-l_4c84z_1dx4y_463",
|
|
22
|
+
"font-size-inherit": "awsui_font-size-inherit_4c84z_1dx4y_470",
|
|
23
|
+
"icon-wrapper": "awsui_icon-wrapper_4c84z_1dx4y_478",
|
|
24
|
+
"icon": "awsui_icon_4c84z_1dx4y_478"
|
|
25
25
|
};
|
|
26
26
|
|