@stackoverflow/stacks 1.8.0 → 1.9.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 +161 -153
- package/dist/{controllers/s-banner.d.ts → components/banner/banner.d.ts} +1 -1
- package/dist/{controllers/s-expandable-control.d.ts → components/expandable/expandable.d.ts} +1 -1
- package/dist/{controllers/s-modal.d.ts → components/modal/modal.d.ts} +1 -1
- package/dist/{controllers/s-navigation-tablist.d.ts → components/navigation/navigation.d.ts} +1 -1
- package/dist/{controllers/s-popover.d.ts → components/popover/popover.d.ts} +1 -1
- package/dist/{controllers/s-tooltip.d.ts → components/popover/tooltip.d.ts} +1 -1
- package/dist/components/table/table.d.ts +30 -0
- package/dist/{controllers/s-toast.d.ts → components/toast/toast.d.ts} +1 -1
- package/dist/{controllers/s-uploader.d.ts → components/uploader/uploader.d.ts} +1 -1
- package/dist/controllers.d.ts +9 -0
- package/dist/css/stacks.css +2063 -1994
- package/dist/css/stacks.min.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/js/stacks.js +1465 -1436
- package/dist/js/stacks.min.js +1 -1
- package/lib/{css/atomic/borders.less → atomic/border.less} +397 -379
- package/lib/{css/atomic/colors.less → atomic/color.less} +210 -210
- package/lib/{css/atomic → atomic}/flex.less +426 -426
- package/lib/{css/atomic → atomic}/gap.less +44 -44
- package/lib/{css/atomic → atomic}/grid.less +139 -139
- package/lib/{css/atomic → atomic}/misc.less +343 -343
- package/lib/{css/atomic → atomic}/spacing.less +342 -342
- package/lib/{css/atomic → atomic}/typography.less +267 -267
- package/lib/{css/atomic → atomic}/width-height.less +194 -194
- package/lib/{css/base → base}/body.less +44 -44
- package/lib/{css/base → base}/configuration-static.less +61 -61
- package/lib/{css/base → base}/fieldset.less +5 -5
- package/lib/{css/base/icons.less → base/icon.less} +11 -20
- package/lib/{css/base/internals.less → base/internal.less} +220 -220
- package/lib/{css/base → base}/reset-meyer.less +64 -64
- package/lib/{css/base → base}/reset-normalize.less +449 -449
- package/lib/{css/base → base}/reset.less +20 -20
- package/lib/components/activity-indicator/activity-indicator.a11y.test.ts +21 -0
- package/lib/{css/components → components/activity-indicator}/activity-indicator.less +40 -40
- package/lib/components/activity-indicator/activity-indicator.visual.test.ts +23 -0
- package/lib/{css/components/anchors.less → components/anchor/anchor.less} +61 -61
- package/lib/components/avatar/avatar.a11y.test.ts +36 -0
- package/lib/{css/components/avatars.less → components/avatar/avatar.less} +108 -108
- package/lib/components/avatar/avatar.visual.test.ts +54 -0
- package/lib/components/award-bling/award-bling.a11y.test.ts +17 -0
- package/lib/{css/components → components/award-bling}/award-bling.less +31 -31
- package/lib/components/award-bling/award-bling.visual.test.ts +26 -0
- package/lib/{css/components/badges.less → components/badge/badge.less} +251 -251
- package/lib/components/banner/banner.a11y.test.ts +37 -0
- package/lib/components/banner/banner.less +51 -0
- package/lib/{test/s-banner.test.ts → components/banner/banner.test.ts} +73 -73
- package/lib/{ts/controllers/s-banner.ts → components/banner/banner.ts} +149 -149
- package/lib/components/banner/banner.visual.test.ts +37 -0
- package/lib/components/block-link/block-link.a11y.test.ts +68 -0
- package/lib/{css/components → components/block-link}/block-link.less +80 -80
- package/lib/components/block-link/block-link.visual.test.ts +61 -0
- package/lib/components/breadcrumbs/breadcrumbs.a11y.test.ts +37 -0
- package/lib/{css/components → components/breadcrumbs}/breadcrumbs.less +41 -41
- package/lib/components/breadcrumbs/breadcrumbs.visual.test.ts +37 -0
- package/lib/components/button/button.a11y.test.ts +32 -0
- package/lib/{css/components/buttons.less → components/button/button.less} +502 -501
- package/lib/components/button/button.visual.test.ts +52 -0
- package/lib/{css/components/button-groups.less → components/button-group/button-group.less} +83 -83
- package/lib/components/card/card.a11y.test.ts +13 -0
- package/lib/{css/components/cards.less → components/card/card.less} +29 -29
- package/lib/components/card/card.visual.test.ts +54 -0
- package/lib/components/check-control/check-control.less +17 -0
- package/lib/components/check-group/check-group.less +19 -0
- package/lib/{css/components/checkboxes-radios.less → components/checkbox_radio/checkbox_radio.less} +158 -158
- package/lib/{css/components/code-blocks.less → components/code-block/code-block.less} +116 -116
- package/lib/{css/components → components/description}/description.less +9 -9
- package/lib/{css/components/empty-states.less → components/empty-state/empty-state.less} +16 -16
- package/lib/{css/components → components/expandable}/expandable.less +118 -115
- package/lib/components/expandable/expandable.test.ts +51 -0
- package/lib/{ts/controllers/s-expandable-control.ts → components/expandable/expandable.ts} +238 -238
- package/lib/components/input-fill/input-fill.less +35 -0
- package/lib/components/input-icon/input-icon.less +45 -0
- package/lib/components/input-message/input-message.less +48 -0
- package/lib/{css/components/inputs.less → components/input_textarea/input_textarea.less} +166 -297
- package/lib/{css/components/labels.less → components/label/label.less} +111 -111
- package/lib/{css/components → components/link}/link.less +119 -119
- package/lib/{css/components/link-previews.less → components/link-preview/link-preview.less} +139 -139
- package/lib/{css/components → components/menu}/menu.less +41 -41
- package/lib/{css/components/modals.less → components/modal/modal.less} +113 -113
- package/lib/{ts/controllers/s-modal.ts → components/modal/modal.ts} +379 -379
- package/lib/{css/components → components/navigation}/navigation.less +134 -134
- package/lib/{ts/controllers/s-navigation-tablist.ts → components/navigation/navigation.ts} +128 -128
- package/lib/{css/components/notices.less → components/notice/notice.less} +203 -292
- package/lib/{css/components/page-titles.less → components/page-title/page-title.less} +51 -51
- package/lib/{css/components → components/pagination}/pagination.less +52 -52
- package/lib/{css/components/popovers.less → components/popover/popover.less} +148 -147
- package/lib/{ts/controllers/s-popover.ts → components/popover/popover.ts} +651 -651
- package/lib/{test/s-tooltip.test.ts → components/popover/tooltip.test.ts} +62 -62
- package/lib/{ts/controllers/s-tooltip.ts → components/popover/tooltip.ts} +343 -343
- package/lib/{test/s-tooltip.visual.test.ts → components/popover/tooltip.visual.test.ts} +31 -31
- package/lib/{css/components → components/post-summary}/post-summary.less +415 -415
- package/lib/{css/components/progress-bars.less → components/progress-bar/progress-bar.less} +291 -291
- package/lib/{css/components → components/prose}/prose.less +452 -452
- package/lib/{css/components → components/select}/select.less +148 -148
- package/lib/{css/components/sidebar-widgets.less → components/sidebar-widget/sidebar-widget.less} +257 -259
- package/lib/{css/components → components/spinner}/spinner.less +103 -103
- package/lib/{css/components → components/table}/table.less +307 -297
- package/lib/components/table/table.test.ts +366 -0
- package/lib/{ts/controllers/s-table.ts → components/table/table.ts} +296 -263
- package/lib/components/table-container/table-container.less +4 -0
- package/lib/{css/components/tags.less → components/tag/tag.less} +213 -213
- package/lib/components/toast/toast.less +35 -0
- package/lib/{test/s-toast.test.ts → components/toast/toast.test.ts} +63 -63
- package/lib/{ts/controllers/s-toast.ts → components/toast/toast.ts} +357 -357
- package/lib/components/toast/toast.visual.test.ts +27 -0
- package/lib/{css/components/toggle-switches.less → components/toggle-switch/toggle-switch.less} +110 -110
- package/lib/{css/components → components/topbar}/topbar.less +436 -435
- package/lib/{css/components → components/uploader}/uploader.less +195 -195
- package/lib/{ts/controllers/s-uploader.ts → components/uploader/uploader.ts} +205 -205
- package/lib/{css/components/user-cards.less → components/user-card/user-card.less} +129 -129
- package/lib/controllers.ts +33 -0
- package/lib/{css/exports → exports}/constants-colors.less +1112 -1111
- package/lib/{css/exports → exports}/constants-helpers.less +108 -108
- package/lib/{css/exports → exports}/constants-type.less +153 -153
- package/lib/{css/exports → exports}/exports.less +15 -15
- package/lib/{css/exports → exports}/mixins.less +299 -299
- package/lib/{ts/index.ts → index.ts} +32 -32
- package/lib/{css/input-utils.less → input-utils.less} +44 -44
- package/lib/{css/stacks-dynamic.less → stacks-dynamic.less} +24 -25
- package/lib/stacks-static.less +93 -0
- package/lib/{css/stacks.less → stacks.less} +13 -13
- package/lib/{ts/stacks.ts → stacks.ts} +113 -113
- package/lib/test/open-wc-testing-patch.d.ts +26 -0
- package/lib/test/test-utils.ts +466 -0
- package/lib/tsconfig.build.json +4 -0
- package/lib/tsconfig.json +16 -13
- package/package.json +106 -105
- package/dist/controllers/index.d.ts +0 -9
- package/dist/controllers/s-table.d.ts +0 -8
- package/lib/css/stacks-static.less +0 -87
- package/lib/test/s-avatar.a11y.test.ts +0 -77
- package/lib/test/s-banner.visual.test.ts +0 -61
- package/lib/test/s-btn.a11y.test.ts +0 -123
- package/lib/test/s-btn.visual.test.ts +0 -16
- package/lib/test/s-toast.visual.test.ts +0 -48
- package/lib/ts/controllers/index.ts +0 -17
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
.s-pagination {
|
|
2
|
-
& &--item {
|
|
3
|
-
--_pa-item-bg: transparent;
|
|
4
|
-
--_pa-item-bc: var(--bc-medium);
|
|
5
|
-
--_pa-item-fc: var(--fc-medium);
|
|
6
|
-
--_pa-item-bg-hover: var(--black-100);
|
|
7
|
-
--_pa-item-bc-hover: var(--bc-darker);
|
|
8
|
-
--_pa-item-fc-hover: var(--fc-dark);
|
|
9
|
-
|
|
10
|
-
// CONTEXTUAL STYLES
|
|
11
|
-
.highcontrast-mode({ text-decoration: none; });
|
|
12
|
-
|
|
13
|
-
// MODIFIERS
|
|
14
|
-
&.is-selected {
|
|
15
|
-
--_pa-item-bg: var(--theme-primary-color);
|
|
16
|
-
--_pa-item-bc: transparent;
|
|
17
|
-
--_pa-item-fc: var(--white);
|
|
18
|
-
}
|
|
19
|
-
&.s-pagination--item__clear {
|
|
20
|
-
--_pa-item-bg: transparent;
|
|
21
|
-
--_pa-item-bc: transparent;
|
|
22
|
-
--_pa-item-fc: inherit;
|
|
23
|
-
}
|
|
24
|
-
// override hover styles to match base styles
|
|
25
|
-
&.is-selected,
|
|
26
|
-
&.s-pagination--item__clear {
|
|
27
|
-
--_pa-item-bc-hover: var(--_pa-item-bc);
|
|
28
|
-
--_pa-item-bg-hover: var(--_pa-item-bg);
|
|
29
|
-
--_pa-item-fc-hover: var(--_pa-item-fc);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// INTERACTION
|
|
33
|
-
&:hover {
|
|
34
|
-
background-color: var(--_pa-item-bg-hover);
|
|
35
|
-
border-color: var(--_pa-item-bc-hover);
|
|
36
|
-
color: var(--_pa-item-fc-hover);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
background-color: var(--_pa-item-bg);
|
|
40
|
-
border: 1px solid var(--_pa-item-bc);
|
|
41
|
-
color: var(--_pa-item-fc);
|
|
42
|
-
|
|
43
|
-
border-radius: var(--br-sm);
|
|
44
|
-
font-size: var(--fs-body1);
|
|
45
|
-
line-height: var(--lh-xl);
|
|
46
|
-
padding: 0 var(--su8);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-wrap: wrap;
|
|
51
|
-
gap: var(--su4);
|
|
52
|
-
}
|
|
1
|
+
.s-pagination {
|
|
2
|
+
& &--item {
|
|
3
|
+
--_pa-item-bg: transparent;
|
|
4
|
+
--_pa-item-bc: var(--bc-medium);
|
|
5
|
+
--_pa-item-fc: var(--fc-medium);
|
|
6
|
+
--_pa-item-bg-hover: var(--black-100);
|
|
7
|
+
--_pa-item-bc-hover: var(--bc-darker);
|
|
8
|
+
--_pa-item-fc-hover: var(--fc-dark);
|
|
9
|
+
|
|
10
|
+
// CONTEXTUAL STYLES
|
|
11
|
+
.highcontrast-mode({ text-decoration: none; });
|
|
12
|
+
|
|
13
|
+
// MODIFIERS
|
|
14
|
+
&.is-selected {
|
|
15
|
+
--_pa-item-bg: var(--theme-primary-color);
|
|
16
|
+
--_pa-item-bc: transparent;
|
|
17
|
+
--_pa-item-fc: var(--white);
|
|
18
|
+
}
|
|
19
|
+
&.s-pagination--item__clear {
|
|
20
|
+
--_pa-item-bg: transparent;
|
|
21
|
+
--_pa-item-bc: transparent;
|
|
22
|
+
--_pa-item-fc: inherit;
|
|
23
|
+
}
|
|
24
|
+
// override hover styles to match base styles
|
|
25
|
+
&.is-selected,
|
|
26
|
+
&.s-pagination--item__clear {
|
|
27
|
+
--_pa-item-bc-hover: var(--_pa-item-bc);
|
|
28
|
+
--_pa-item-bg-hover: var(--_pa-item-bg);
|
|
29
|
+
--_pa-item-fc-hover: var(--_pa-item-fc);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// INTERACTION
|
|
33
|
+
&:hover {
|
|
34
|
+
background-color: var(--_pa-item-bg-hover);
|
|
35
|
+
border-color: var(--_pa-item-bc-hover);
|
|
36
|
+
color: var(--_pa-item-fc-hover);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
background-color: var(--_pa-item-bg);
|
|
40
|
+
border: 1px solid var(--_pa-item-bc);
|
|
41
|
+
color: var(--_pa-item-fc);
|
|
42
|
+
|
|
43
|
+
border-radius: var(--br-sm);
|
|
44
|
+
font-size: var(--fs-body1);
|
|
45
|
+
line-height: var(--lh-xl);
|
|
46
|
+
padding: 0 var(--su8);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-wrap: wrap;
|
|
51
|
+
gap: var(--su4);
|
|
52
|
+
}
|
|
@@ -1,147 +1,148 @@
|
|
|
1
|
-
.s-popover {
|
|
2
|
-
--_po-bg: var(--white);
|
|
3
|
-
--_po-bc: var(--bc-medium);
|
|
4
|
-
--_po-bs: var(--bs-md);
|
|
5
|
-
--_po-d: none;
|
|
6
|
-
--_po-wmn: 12rem;
|
|
7
|
-
--_po-w: 100%;
|
|
8
|
-
// arrow
|
|
9
|
-
--_po-arrow-fc: var(--white);
|
|
10
|
-
--_po-arrow-b: unset;
|
|
11
|
-
--_po-arrow-l: unset;
|
|
12
|
-
--_po-arrow-r: unset;
|
|
13
|
-
--_po-arrow-t: unset;
|
|
14
|
-
--_po-arrow-ps: calc(var(--su6) * -1); // ps suffix used for placement, not positioning value
|
|
15
|
-
--_po-arrow-after-b: unset;
|
|
16
|
-
--_po-arrow-after-l: unset;
|
|
17
|
-
--_po-arrow-after-r: unset;
|
|
18
|
-
--_po-arrow-after-t: unset;
|
|
19
|
-
--_po-arrow-after-bs: unset;
|
|
20
|
-
|
|
21
|
-
// CONTEXTUAL STYLES
|
|
22
|
-
.dark-mode({
|
|
23
|
-
--_po-bg: var(--black-075);
|
|
24
|
-
--_po-bc: var(--bc-light);
|
|
25
|
-
--_po-bs: var(--bs-lg);
|
|
26
|
-
--_po-arrow-fc: var(--black-075);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
// MODIFIERS
|
|
30
|
-
&.is-visible {
|
|
31
|
-
--_po-d: block;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
--_po-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
//
|
|
40
|
-
|
|
41
|
-
& &--
|
|
42
|
-
& &--
|
|
43
|
-
& &--
|
|
44
|
-
|
|
45
|
-
--_po-arrow-
|
|
46
|
-
--_po-arrow-after-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
& &--
|
|
51
|
-
& &--
|
|
52
|
-
& &--
|
|
53
|
-
|
|
54
|
-
--_po-arrow-
|
|
55
|
-
--_po-arrow-after-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
& &--
|
|
60
|
-
& &--
|
|
61
|
-
& &--
|
|
62
|
-
|
|
63
|
-
--_po-arrow-
|
|
64
|
-
--_po-arrow-after-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
& &--
|
|
69
|
-
& &--
|
|
70
|
-
& &--
|
|
71
|
-
|
|
72
|
-
--_po-arrow-
|
|
73
|
-
--_po-arrow-after-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
& &--
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
& &--
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
& &--
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
&:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
&:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
width: var(--_po-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
1
|
+
.s-popover {
|
|
2
|
+
--_po-bg: var(--white);
|
|
3
|
+
--_po-bc: var(--bc-medium);
|
|
4
|
+
--_po-bs: var(--bs-md);
|
|
5
|
+
--_po-d: none;
|
|
6
|
+
--_po-wmn: 12rem;
|
|
7
|
+
--_po-w: 100%;
|
|
8
|
+
// arrow
|
|
9
|
+
--_po-arrow-fc: var(--white);
|
|
10
|
+
--_po-arrow-b: unset;
|
|
11
|
+
--_po-arrow-l: unset;
|
|
12
|
+
--_po-arrow-r: unset;
|
|
13
|
+
--_po-arrow-t: unset;
|
|
14
|
+
--_po-arrow-ps: calc(var(--su6) * -1); // ps suffix used for placement, not positioning value
|
|
15
|
+
--_po-arrow-after-b: unset;
|
|
16
|
+
--_po-arrow-after-l: unset;
|
|
17
|
+
--_po-arrow-after-r: unset;
|
|
18
|
+
--_po-arrow-after-t: unset;
|
|
19
|
+
--_po-arrow-after-bs: unset;
|
|
20
|
+
|
|
21
|
+
// CONTEXTUAL STYLES
|
|
22
|
+
.dark-mode({
|
|
23
|
+
--_po-bg: var(--black-075);
|
|
24
|
+
--_po-bc: var(--bc-light);
|
|
25
|
+
--_po-bs: var(--bs-lg);
|
|
26
|
+
--_po-arrow-fc: var(--black-075);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// MODIFIERS
|
|
30
|
+
&.is-visible {
|
|
31
|
+
--_po-d: block;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&&__tooltip {
|
|
35
|
+
--_po-wmn: unset;
|
|
36
|
+
--_po-w: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// CHILD ELEMENTS
|
|
40
|
+
// Arrow
|
|
41
|
+
&[data-popper-placement^="top"] > &--arrow,
|
|
42
|
+
& &--arrow__bc,
|
|
43
|
+
& &--arrow__bl,
|
|
44
|
+
& &--arrow__br {
|
|
45
|
+
--_po-arrow-b: var(--_po-arrow-ps);
|
|
46
|
+
--_po-arrow-after-b: var(--su-static1);
|
|
47
|
+
--_po-arrow-after-bs: 2px 2px 5px 0 hsla(0, 0%, 0%, 0.07), 2px 2px 2px -1px hsla(0, 0%, 0%, 0.1);
|
|
48
|
+
.highcontrast-mode({ --_po-arrow-after-bs: 1px 1px 0 0 var(--bc-medium); });
|
|
49
|
+
}
|
|
50
|
+
&[data-popper-placement^="bottom"] > &--arrow,
|
|
51
|
+
& &--arrow__tc,
|
|
52
|
+
& &--arrow__tl,
|
|
53
|
+
& &--arrow__tr {
|
|
54
|
+
--_po-arrow-t: var(--_po-arrow-ps);
|
|
55
|
+
--_po-arrow-after-t: var(--su-static1);
|
|
56
|
+
--_po-arrow-after-bs: -1px -1px 1px 0 hsla(0, 0%, 0%, 0.12);
|
|
57
|
+
.highcontrast-mode({ --_po-arrow-after-bs: -1px -1px 0 0 var(--bc-medium); });
|
|
58
|
+
}
|
|
59
|
+
&[data-popper-placement^="left"] > &--arrow,
|
|
60
|
+
& &--arrow__rc,
|
|
61
|
+
& &--arrow__rt,
|
|
62
|
+
& &--arrow__rb {
|
|
63
|
+
--_po-arrow-r: var(--_po-arrow-ps);
|
|
64
|
+
--_po-arrow-after-r: var(--su-static1);
|
|
65
|
+
--_po-arrow-after-bs: 2px -2px 5px 0 hsla(0, 0%, 0%, 0.07), 2px -2px 2px -1px hsla(0, 0%, 0%, 0.1);
|
|
66
|
+
.highcontrast-mode({ --_po-arrow-after-bs: 1px -1px 0 0 var(--bc-medium); });
|
|
67
|
+
}
|
|
68
|
+
&[data-popper-placement^="right"] > &--arrow,
|
|
69
|
+
& &--arrow__lc,
|
|
70
|
+
& &--arrow__lt,
|
|
71
|
+
& &--arrow__lb {
|
|
72
|
+
--_po-arrow-l: var(--_po-arrow-ps);
|
|
73
|
+
--_po-arrow-after-l: var(--su-static1);
|
|
74
|
+
--_po-arrow-after-bs: -2px 2px 5px 0 hsla(0, 0%, 0%, 0.07), -2px 2px 2px -1px hsla(0, 0%, 0%, 0.1);
|
|
75
|
+
.highcontrast-mode({ --_po-arrow-after-bs: -1px 1px 0 0 var(--bc-medium); });
|
|
76
|
+
}
|
|
77
|
+
& &--arrow__tc,
|
|
78
|
+
& &--arrow__bc {
|
|
79
|
+
--_po-arrow-l: calc(50% - var(--su6));
|
|
80
|
+
}
|
|
81
|
+
& &--arrow__lc,
|
|
82
|
+
& &--arrow__rc {
|
|
83
|
+
--_po-arrow-t: calc(50% - var(--su6));
|
|
84
|
+
}
|
|
85
|
+
& &--arrow__tr,
|
|
86
|
+
.s-popover--arrow__br {
|
|
87
|
+
--_po-arrow-r: var(--su12);
|
|
88
|
+
}
|
|
89
|
+
& &--arrow__rb,
|
|
90
|
+
& &--arrow__lb {
|
|
91
|
+
--_po-arrow-b: var(--su12);
|
|
92
|
+
}
|
|
93
|
+
& &--arrow {
|
|
94
|
+
&,
|
|
95
|
+
&:before,
|
|
96
|
+
&:after {
|
|
97
|
+
display: block;
|
|
98
|
+
height: var(--su12);
|
|
99
|
+
position: absolute;
|
|
100
|
+
width: var(--su12);
|
|
101
|
+
z-index: -1;
|
|
102
|
+
}
|
|
103
|
+
&:before, // This renders our border
|
|
104
|
+
&:after {
|
|
105
|
+
content: '';
|
|
106
|
+
transform: rotate(45deg);
|
|
107
|
+
}
|
|
108
|
+
&:after { // This renders our foreground color
|
|
109
|
+
bottom: var(--_po-arrow-after-b);
|
|
110
|
+
box-shadow: var(--_po-arrow-after-bs);
|
|
111
|
+
left: var(--_po-arrow-after-l);
|
|
112
|
+
right: var(--_po-arrow-after-r);
|
|
113
|
+
top: var(--_po-arrow-after-t);
|
|
114
|
+
|
|
115
|
+
background: currentColor;
|
|
116
|
+
border-radius: calc(var(--su-static1) * 1.5);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
bottom: var(--_po-arrow-b);
|
|
120
|
+
color: var(--_po-arrow-fc);
|
|
121
|
+
left: var(--_po-arrow-l);
|
|
122
|
+
right: var(--_po-arrow-r);
|
|
123
|
+
top: var(--_po-arrow-t);
|
|
124
|
+
}
|
|
125
|
+
// Close btn
|
|
126
|
+
& &--close {
|
|
127
|
+
float: right; // Use floats for title wrapping
|
|
128
|
+
top: calc(var(--su8) * -1); // Compensate for s-popover's padding
|
|
129
|
+
right: calc(var(--su8) * -1); // Compensate for s-popover's padding
|
|
130
|
+
padding: var(--su8) !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
background-color: var(--_po-bg);
|
|
134
|
+
border: 1px solid var(--_po-bc);
|
|
135
|
+
box-shadow: var(--_po-bs);
|
|
136
|
+
display: var(--_po-d);
|
|
137
|
+
min-width: var(--_po-wmn);
|
|
138
|
+
width: var(--_po-w);
|
|
139
|
+
|
|
140
|
+
border-radius: var(--br-md);
|
|
141
|
+
color: var(--fc-dark);
|
|
142
|
+
font-size: var(--fs-body1);
|
|
143
|
+
max-width: 24rem;
|
|
144
|
+
padding: var(--su12);
|
|
145
|
+
position: absolute;
|
|
146
|
+
white-space: normal; // Guard against popovers being in a container with white-space: nowrap. Without this, the content pops *out* of the popover.
|
|
147
|
+
z-index: var(--zi-popovers);
|
|
148
|
+
}
|