polaris_view_components 3.2.1 → 4.0.0
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/fonts/OFL.txt +92 -0
- data/app/assets/fonts/ShopifyInterVariable-latin-ext.woff2 +0 -0
- data/app/assets/fonts/ShopifyInterVariable-latin.woff2 +0 -0
- data/app/assets/icons/polaris/AlertCircleFilledIcon.svg +1 -0
- data/app/assets/icons/polaris/CheckCircleFilledIcon.svg +1 -0
- data/app/assets/icons/polaris/InfoFilledIcon.svg +1 -0
- data/app/assets/javascripts/polaris_view_components/button_controller.js +6 -7
- data/app/assets/javascripts/polaris_view_components/dropzone_controller.js +2 -0
- data/app/assets/javascripts/polaris_view_components/index.js +2 -0
- data/app/assets/javascripts/polaris_view_components/popover_controller.js +33 -6
- data/app/assets/javascripts/polaris_view_components/tabs_controller.js +14 -0
- data/app/assets/javascripts/polaris_view_components.js +103 -7
- data/app/assets/stylesheets/polaris_view_components/action_list.pcss +19 -4
- data/app/assets/stylesheets/polaris_view_components/badge.pcss +75 -0
- data/app/assets/stylesheets/polaris_view_components/banner.pcss +132 -87
- data/app/assets/stylesheets/polaris_view_components/button.pcss +395 -61
- data/app/assets/stylesheets/polaris_view_components/callout_card.pcss +63 -2
- data/app/assets/stylesheets/polaris_view_components/card.pcss +130 -30
- data/app/assets/stylesheets/polaris_view_components/choice.pcss +80 -0
- data/app/assets/stylesheets/polaris_view_components/custom.pcss +6 -67
- data/app/assets/stylesheets/polaris_view_components/data_table.pcss +58 -2
- data/app/assets/stylesheets/polaris_view_components/description_list.pcss +34 -0
- data/app/assets/stylesheets/polaris_view_components/drop_zone.pcss +100 -0
- data/app/assets/stylesheets/polaris_view_components/fonts.pcss +27 -0
- data/app/assets/stylesheets/polaris_view_components/footer_help.pcss +24 -0
- data/app/assets/stylesheets/polaris_view_components/index_table.pcss +17 -2
- data/app/assets/stylesheets/polaris_view_components/media.pcss +126 -0
- data/app/assets/stylesheets/polaris_view_components/modal.pcss +115 -3
- data/app/assets/stylesheets/polaris_view_components/navigation.pcss +49 -0
- data/app/assets/stylesheets/polaris_view_components/navigation_list_component.pcss +73 -10
- data/app/assets/stylesheets/polaris_view_components/page.pcss +120 -10
- data/app/assets/stylesheets/polaris_view_components/pagination.pcss +6 -2
- data/app/assets/stylesheets/polaris_view_components/popover.pcss +13 -0
- data/app/assets/stylesheets/polaris_view_components/resource_list.pcss +100 -0
- data/app/assets/stylesheets/polaris_view_components/save_bar.pcss +35 -25
- data/app/assets/stylesheets/polaris_view_components/shopify_navigation.pcss +21 -18
- data/app/assets/stylesheets/polaris_view_components/tabs.pcss +69 -0
- data/app/assets/stylesheets/polaris_view_components/tag.pcss +45 -0
- data/app/assets/stylesheets/polaris_view_components/text_fields.pcss +226 -0
- data/app/assets/stylesheets/polaris_view_components/theme.pcss +386 -0
- data/app/assets/stylesheets/polaris_view_components/tooltip_component.pcss +7 -5
- data/app/assets/stylesheets/polaris_view_components/variables.pcss +1 -1
- data/app/assets/stylesheets/polaris_view_components.css +1766 -275
- data/app/assets/stylesheets/polaris_view_components.pcss +8 -0
- data/app/components/polaris/avatar_component.rb +1 -1
- data/app/components/polaris/banner_component.html.erb +27 -90
- data/app/components/polaris/banner_component.rb +4 -5
- data/app/components/polaris/button_component.html.erb +1 -9
- data/app/components/polaris/callout_card_component.html.erb +11 -7
- data/app/components/polaris/callout_card_component.rb +4 -3
- data/app/components/polaris/card/header_component.rb +1 -1
- data/app/components/polaris/card/section_component.html.erb +1 -1
- data/app/components/polaris/card/section_component.rb +2 -1
- data/app/components/polaris/card_component.html.erb +39 -37
- data/app/components/polaris/card_component.rb +3 -3
- data/app/components/polaris/checkbox_component.html.erb +2 -1
- data/app/components/polaris/checkbox_component.rb +0 -4
- data/app/components/polaris/dropzone_component.html.erb +12 -36
- data/app/components/polaris/headless_button.html.erb +1 -9
- data/app/components/polaris/headless_button.rb +13 -0
- data/app/components/polaris/modal_component.html.erb +6 -0
- data/app/components/polaris/page_component.html.erb +4 -4
- data/app/components/polaris/progress_bar_component.rb +4 -4
- data/app/components/polaris/resource_item/shortcut_actions_component.html.erb +6 -8
- data/app/components/polaris/resource_item/shortcut_actions_component.rb +5 -1
- data/app/components/polaris/resource_item_component.html.erb +4 -4
- data/app/components/polaris/resource_item_component.rb +4 -1
- data/app/components/polaris/spinner_component.html.erb +4 -9
- data/app/components/polaris/tabs_component.rb +2 -0
- data/lib/polaris/view_components/version.rb +1 -1
- metadata +18 -3
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
/* Tokens from the updated Polaris design language (Shopify admin "admin-next" theme).
|
|
2
|
+
Legacy token names are aliased too, since Polaris CSS still reads both. */
|
|
3
|
+
html[class~="Polaris-Summer-Editions-2023"] {
|
|
4
|
+
/* Typography */
|
|
5
|
+
--p-font-family-sans: "ShopifyInter", "Inter", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
6
|
+
--p-font-weight-regular: 400;
|
|
7
|
+
--p-font-weight-medium: 500;
|
|
8
|
+
--p-font-weight-semibold: 600;
|
|
9
|
+
--p-font-weight-bold: 600;
|
|
10
|
+
--p-font-letter-spacing-dense: -0.005em;
|
|
11
|
+
--p-font-letter-spacing-denser: -0.01em;
|
|
12
|
+
--p-font-letter-spacing-densest: -0.02em;
|
|
13
|
+
|
|
14
|
+
/* Backgrounds */
|
|
15
|
+
--p-color-bg: #fff;
|
|
16
|
+
--p-color-bg-app: #fff;
|
|
17
|
+
--p-color-bg-inverse: #0a0a0a;
|
|
18
|
+
--p-color-bg-surface: #fff;
|
|
19
|
+
--p-color-bg-surface-hover: #f7f7f7;
|
|
20
|
+
--p-color-bg-surface-active: #f2f2f2;
|
|
21
|
+
--p-color-bg-surface-selected: #f2f2f2;
|
|
22
|
+
--p-color-bg-surface-disabled: #00000008;
|
|
23
|
+
--p-color-bg-surface-secondary: #f7f7f7;
|
|
24
|
+
--p-color-bg-surface-secondary-hover: #f2f2f2;
|
|
25
|
+
--p-color-bg-surface-secondary-active: #ebebeb;
|
|
26
|
+
--p-color-bg-surface-secondary-selected: #ebebeb;
|
|
27
|
+
--p-color-bg-surface-tertiary: #f2f2f2;
|
|
28
|
+
--p-color-bg-surface-tertiary-hover: #ebebeb;
|
|
29
|
+
--p-color-bg-surface-tertiary-active: #ddd;
|
|
30
|
+
--p-color-bg-surface-brand: #f7f7f7;
|
|
31
|
+
--p-color-bg-surface-brand-hover: #f2f2f2;
|
|
32
|
+
--p-color-bg-surface-brand-active: #ebebeb;
|
|
33
|
+
--p-color-bg-surface-brand-selected: #ebebeb;
|
|
34
|
+
--p-color-bg-surface-inverse: #1b1b1b;
|
|
35
|
+
--p-color-bg-surface-info: oklch(0.95 0.0448 212.63);
|
|
36
|
+
--p-color-bg-surface-info-hover: #b2e9f6;
|
|
37
|
+
--p-color-bg-surface-info-active: oklch(0.8821 0.0848 215.71);
|
|
38
|
+
--p-color-bg-surface-success: oklch(0.9672 0.0599 131.73);
|
|
39
|
+
--p-color-bg-surface-success-hover: oklch(0.9241 0.1033 132.55);
|
|
40
|
+
--p-color-bg-surface-success-active: oklch(0.9147 0.1488 133.17);
|
|
41
|
+
--p-color-bg-surface-caution: oklch(0.9662 0.0722 97.61);
|
|
42
|
+
--p-color-bg-surface-caution-hover: oklch(0.9468 0.1191 98.52);
|
|
43
|
+
--p-color-bg-surface-caution-active: oklch(0.9325 0.1496 98.46);
|
|
44
|
+
--p-color-bg-surface-warning: oklch(0.9557 0.035 67.45);
|
|
45
|
+
--p-color-bg-surface-warning-hover: oklch(0.9316 0.0545 67.18);
|
|
46
|
+
--p-color-bg-surface-warning-active: oklch(0.8907 0.0887 65.7);
|
|
47
|
+
--p-color-bg-surface-critical: oklch(0.947 0.03 20.5);
|
|
48
|
+
--p-color-bg-surface-critical-hover: oklch(0.897 0.0609 23.88);
|
|
49
|
+
--p-color-bg-surface-critical-active: oklch(0.8382 0.0956 22.58);
|
|
50
|
+
|
|
51
|
+
/* Fills */
|
|
52
|
+
--p-color-bg-fill-disabled: #00000008;
|
|
53
|
+
--p-color-bg-fill-secondary: #ebebeb;
|
|
54
|
+
--p-color-bg-fill-secondary-hover: #ddd;
|
|
55
|
+
--p-color-bg-fill-secondary-active: #d0d0d0;
|
|
56
|
+
--p-color-bg-fill-tertiary: #ddd;
|
|
57
|
+
--p-color-bg-fill-tertiary-hover: #d0d0d0;
|
|
58
|
+
--p-color-bg-fill-tertiary-active: #c0c0c0;
|
|
59
|
+
--p-color-bg-fill-transparent: #0000000d;
|
|
60
|
+
--p-color-bg-fill-transparent-hover: #00000014;
|
|
61
|
+
--p-color-bg-fill-transparent-active: #00000021;
|
|
62
|
+
--p-color-bg-fill-transparent-selected: #00000021;
|
|
63
|
+
--p-color-bg-fill-transparent-secondary: #00000014;
|
|
64
|
+
--p-color-bg-fill-transparent-secondary-hover: #00000021;
|
|
65
|
+
--p-color-bg-fill-transparent-secondary-active: #0000002e;
|
|
66
|
+
--p-color-bg-fill-brand: #101010;
|
|
67
|
+
--p-color-bg-fill-brand-hover: #0a0a0a;
|
|
68
|
+
--p-color-bg-fill-brand-active: #0a0a0a;
|
|
69
|
+
--p-color-bg-fill-brand-selected: #101010;
|
|
70
|
+
--p-color-bg-fill-brand-disabled: #00000021;
|
|
71
|
+
--p-color-bg-fill-inverse: #1b1b1b;
|
|
72
|
+
--p-color-bg-fill-inverse-hover: #4a4a4a;
|
|
73
|
+
--p-color-bg-fill-inverse-active: #606060;
|
|
74
|
+
--p-color-bg-fill-info: #5bc9eb;
|
|
75
|
+
--p-color-bg-fill-info-hover: #3dbce5;
|
|
76
|
+
--p-color-bg-fill-info-active: oklch(0.7045 0.1543 225.11);
|
|
77
|
+
--p-color-bg-fill-info-secondary: oklch(0.8637 0.1018 216.95);
|
|
78
|
+
--p-color-bg-fill-success: #8ae156;
|
|
79
|
+
--p-color-bg-fill-success-hover: #75d63b;
|
|
80
|
+
--p-color-bg-fill-success-active: oklch(0.7477 0.2647 137.07);
|
|
81
|
+
--p-color-bg-fill-success-secondary: oklch(0.9053 0.1942 133.49);
|
|
82
|
+
--p-color-bg-fill-caution: #ffdd34;
|
|
83
|
+
--p-color-bg-fill-caution-hover: oklch(0.8849 0.2086 94.82);
|
|
84
|
+
--p-color-bg-fill-caution-active: oklch(0.7777 0.1833 90.68);
|
|
85
|
+
--p-color-bg-fill-caution-secondary: oklch(0.9167 0.1785 98);
|
|
86
|
+
--p-color-bg-fill-warning: #ff8a3e;
|
|
87
|
+
--p-color-bg-fill-warning-hover: oklch(0.7194 0.2136 47.51);
|
|
88
|
+
--p-color-bg-fill-warning-active: oklch(0.6819 0.2132 45.87);
|
|
89
|
+
--p-color-bg-fill-warning-secondary: oklch(0.8497 0.1229 65.04);
|
|
90
|
+
--p-color-bg-fill-critical: oklch(0.5656 0.2454 28.92);
|
|
91
|
+
--p-color-bg-fill-critical-hover: oklch(0.5462 0.2365 28.88);
|
|
92
|
+
--p-color-bg-fill-critical-active: oklch(0.4913 0.2122 28.82);
|
|
93
|
+
--p-color-bg-fill-critical-selected: oklch(0.4913 0.2122 28.82);
|
|
94
|
+
--p-color-bg-fill-critical-secondary: oklch(0.897 0.0609 23.88);
|
|
95
|
+
|
|
96
|
+
/* Text */
|
|
97
|
+
--p-color-text: #101010;
|
|
98
|
+
--p-color-text-secondary: #4a4a4a;
|
|
99
|
+
--p-color-text-disabled: #a6a6a6;
|
|
100
|
+
--p-color-text-link: oklch(0.484 0.2413 262.8);
|
|
101
|
+
--p-color-text-link-hover: oklch(0.4441 0.2201 262.81);
|
|
102
|
+
--p-color-text-link-active: #0d3faa;
|
|
103
|
+
--p-color-text-link-inverse: oklch(0.734 0.1449 264.63);
|
|
104
|
+
--p-color-text-brand: #101010;
|
|
105
|
+
--p-color-text-brand-hover: #101010;
|
|
106
|
+
--p-color-text-inverse: #fcfcfc;
|
|
107
|
+
--p-color-text-inverse-secondary: #a6a6a6;
|
|
108
|
+
--p-color-text-info: oklch(0.2715 0.0576 221.37);
|
|
109
|
+
--p-color-text-info-hover: oklch(0.2715 0.0576 221.37);
|
|
110
|
+
--p-color-text-info-active: oklch(0.2715 0.0576 221.37);
|
|
111
|
+
--p-color-text-info-on-bg-fill: oklch(0.2715 0.0576 221.37);
|
|
112
|
+
--p-color-text-success: oklch(0.2334 0.0796 134.14);
|
|
113
|
+
--p-color-text-success-hover: oklch(0.2334 0.0796 134.14);
|
|
114
|
+
--p-color-text-success-active: oklch(0.2334 0.0796 134.14);
|
|
115
|
+
--p-color-text-success-on-bg-fill: oklch(0.2334 0.0796 134.14);
|
|
116
|
+
--p-color-text-caution: oklch(0.2708 0.0638 90.28);
|
|
117
|
+
--p-color-text-caution-hover: oklch(0.2708 0.0638 90.28);
|
|
118
|
+
--p-color-text-caution-active: oklch(0.2708 0.0638 90.28);
|
|
119
|
+
--p-color-text-caution-on-bg-fill: oklch(0.2708 0.0638 90.28);
|
|
120
|
+
--p-color-text-warning: oklch(0.2475 0.0726 51.49);
|
|
121
|
+
--p-color-text-warning-hover: oklch(0.2475 0.0726 51.49);
|
|
122
|
+
--p-color-text-warning-active: oklch(0.2475 0.0726 51.49);
|
|
123
|
+
--p-color-text-warning-on-bg-fill: oklch(0.2475 0.0726 51.49);
|
|
124
|
+
--p-color-text-critical: oklch(0.5462 0.2365 28.88);
|
|
125
|
+
--p-color-text-critical-hover: oklch(0.4913 0.2122 28.82);
|
|
126
|
+
--p-color-text-critical-active: oklch(0.2121 0.0942 30.9);
|
|
127
|
+
--p-color-text-critical-secondary: #7e100c;
|
|
128
|
+
--p-color-text-critical-on-bg-fill: #fff;
|
|
129
|
+
|
|
130
|
+
/* Borders */
|
|
131
|
+
--p-color-border: #ddd;
|
|
132
|
+
--p-color-border-hover: #d0d0d0;
|
|
133
|
+
--p-color-border-disabled: #f7f7f7;
|
|
134
|
+
--p-color-border-secondary: #f2f2f2;
|
|
135
|
+
--p-color-border-tertiary: #c0c0c0;
|
|
136
|
+
--p-color-border-focus: oklch(0.6289 0.2036 263.44);
|
|
137
|
+
--p-color-border-brand: #d0d0d0;
|
|
138
|
+
--p-color-border-info: oklch(0.8637 0.1018 216.95);
|
|
139
|
+
--p-color-border-success: oklch(0.9147 0.1488 133.17);
|
|
140
|
+
--p-color-border-caution: oklch(0.9468 0.1191 98.52);
|
|
141
|
+
--p-color-border-warning: oklch(0.9316 0.0545 67.18);
|
|
142
|
+
--p-color-border-critical: oklch(0.5849 0.2543 28.97);
|
|
143
|
+
--p-color-border-critical-secondary: oklch(0.7794 0.1304 21.97);
|
|
144
|
+
--p-color-border-inverse: #606060;
|
|
145
|
+
--p-color-border-inverse-hover: #c0c0c0;
|
|
146
|
+
--p-color-border-inverse-active: #d0d0d0;
|
|
147
|
+
|
|
148
|
+
/* Icons */
|
|
149
|
+
--p-color-icon: #101010;
|
|
150
|
+
--p-color-icon-hover: #0a0a0a;
|
|
151
|
+
--p-color-icon-active: #0a0a0a;
|
|
152
|
+
--p-color-icon-disabled: #a6a6a6;
|
|
153
|
+
--p-color-icon-secondary: #606060;
|
|
154
|
+
--p-color-icon-secondary-hover: #4a4a4a;
|
|
155
|
+
--p-color-icon-secondary-active: #303030;
|
|
156
|
+
--p-color-icon-brand: #0a0a0a;
|
|
157
|
+
--p-color-icon-inverse: #fcfcfc;
|
|
158
|
+
--p-color-icon-info: oklch(0.7045 0.1543 225.11);
|
|
159
|
+
--p-color-icon-success: oklch(0.7477 0.2647 137.07);
|
|
160
|
+
--p-color-icon-caution: oklch(0.8849 0.2086 94.82);
|
|
161
|
+
--p-color-icon-warning: oklch(0.7194 0.2136 47.51);
|
|
162
|
+
--p-color-icon-critical: oklch(0.5849 0.2543 28.97);
|
|
163
|
+
|
|
164
|
+
/* Inputs */
|
|
165
|
+
--p-color-input-bg-surface: #fff;
|
|
166
|
+
--p-color-input-bg-surface-hover: #f7f7f7;
|
|
167
|
+
--p-color-input-bg-surface-active: #fff;
|
|
168
|
+
--p-color-input-border: #8c8c8c;
|
|
169
|
+
--p-color-input-border-hover: #606060;
|
|
170
|
+
--p-color-input-border-active: oklch(0.6289 0.2036 263.44);
|
|
171
|
+
|
|
172
|
+
/* Avatars */
|
|
173
|
+
--p-color-avatar-bg-fill: #a6a6a6;
|
|
174
|
+
--p-color-avatar-text-on-bg-fill: #101010;
|
|
175
|
+
--p-color-avatar-one-bg-fill: oklch(0.6465 0.2575 341.25);
|
|
176
|
+
--p-color-avatar-one-text-on-bg-fill: #fff;
|
|
177
|
+
--p-color-avatar-two-bg-fill: oklch(0.7477 0.2647 137.07);
|
|
178
|
+
--p-color-avatar-two-text-on-bg-fill: #fff;
|
|
179
|
+
--p-color-avatar-three-bg-fill: oklch(0.7045 0.1543 225.11);
|
|
180
|
+
--p-color-avatar-three-text-on-bg-fill: #fff;
|
|
181
|
+
--p-color-avatar-four-bg-fill: oklch(0.5238 0.2625 262.78);
|
|
182
|
+
--p-color-avatar-four-text-on-bg-fill: #fff;
|
|
183
|
+
--p-color-avatar-five-bg-fill: oklch(0.5849 0.2543 28.97);
|
|
184
|
+
--p-color-avatar-five-text-on-bg-fill: #fff;
|
|
185
|
+
--p-color-avatar-six-bg-fill: oklch(0.8849 0.2086 94.82);
|
|
186
|
+
--p-color-avatar-six-text-on-bg-fill: #fff;
|
|
187
|
+
--p-color-avatar-seven-bg-fill: oklch(0.5169 0.2701 285.54);
|
|
188
|
+
--p-color-avatar-seven-text-on-bg-fill: #fff;
|
|
189
|
+
|
|
190
|
+
/* Shadows */
|
|
191
|
+
--p-shadow-container: 0 0 0.125rem 0 rgba(0, 0, 0, 0.24), 0 0.125rem 0.75rem 0 rgba(0, 0, 0, 0.02), 0 0.25rem 1rem 0 rgba(0, 0, 0, 0.02), 0 0.25rem 3rem 0 rgba(0, 0, 0, 0.02);
|
|
192
|
+
--p-shadow-popover: 0 0.125rem 0.125rem -0.0625rem rgba(0, 0, 0, 0.06), 0 0.1875rem 0.25rem -0.125rem rgba(0, 0, 0, 0.06), 0 0.375rem 0.5rem -0.1875rem rgba(0, 0, 0, 0.06), 0 0.75rem 1rem -0.25rem rgba(0, 0, 0, 0.06), 0 0 0 0.0625rem rgba(0, 0, 0, 0.08);
|
|
193
|
+
--p-shadow-dialog: 0 0.125rem 0.1875rem -0.0625rem rgba(0, 0, 0, 0.06), 0 0.25rem 0.375rem -0.125rem rgba(0, 0, 0, 0.06), 0 0.5rem 0.75rem -0.25rem rgba(0, 0, 0, 0.06), 0 1rem 1.5rem -0.375rem rgba(0, 0, 0, 0.06), 0 2rem 3rem -0.5rem rgba(0, 0, 0, 0.06), 0 0 0 0.0625rem rgba(0, 0, 0, 0.08);
|
|
194
|
+
--p-shadow-input: 0 0.125rem 0.1875rem -0.0625rem rgba(0, 0, 0, 0.04), 0 0.1875rem 0.25rem -0.09375rem rgba(0, 0, 0, 0.04), 0 0 0 0.0625rem rgba(0, 0, 0, 0.13);
|
|
195
|
+
--p-shadow-input-strong: 0 0.125rem 0.1875rem -0.0625rem rgba(0, 0, 0, 0.04), 0 0.1875rem 0.25rem -0.09375rem rgba(0, 0, 0, 0.04), 0 0 0 0.0625rem rgba(0, 0, 0, 0.2);
|
|
196
|
+
--p-shadow-input-focus: 0 0.125rem 0.1875rem -0.0625rem rgba(0, 0, 0, 0.04), 0 0.1875rem 0.25rem -0.09375rem rgba(0, 0, 0, 0.04), 0 0.25rem 0.3125rem -0.125rem rgba(0, 0, 0, 0.04), 0 0 0 0.0625rem #4680ff, 0 0 0 0.1875rem rgba(53, 115, 246, 0.06), 0 0.25rem 1.25rem 0.125rem rgba(53, 115, 246, 0.06), inset 0 0 0.5rem 0.0625rem rgba(53, 115, 246, 0.05);
|
|
197
|
+
--p-shadow-input-critical: 0 0 0 0.0625rem #eb0014, 0 0.25rem 0.3125rem -0.125rem rgba(0, 0, 0, 0.04), 0 0.1875rem 0.25rem -0.09375rem rgba(0, 0, 0, 0.04), 0 0.125rem 0.1875rem -0.0625rem rgba(0, 0, 0, 0.04), inset 0 0 0.5rem 0.0625rem rgba(224, 61, 80, 0.05);
|
|
198
|
+
--p-shadow-input-critical-focus: inset 0 0 0.5rem 0.0625rem rgba(255, 43, 58, 0.05), 0 0 0 0.1875rem rgba(255, 43, 58, 0.14), 0 0 0 0.0625rem #ff2b3a, 0 0.25rem 0.3125rem -0.125rem rgba(0, 0, 0, 0.04), 0 0.1875rem 0.25rem -0.09375rem rgba(0, 0, 0, 0.04), 0 0.125rem 0.1875rem -0.0625rem rgba(0, 0, 0, 0.04);
|
|
199
|
+
--p-shadow-button-primary: 0 0.0625rem 0.03125rem -0.03125rem rgba(0, 0, 0, 0.13), 0 0.0625rem 0.125rem -0.03125rem rgba(0, 0, 0, 0.13), 0 0.25rem 0.375rem -0.125rem rgba(0, 0, 0, 0.13), 0 0.125rem 0.1875rem -0.09375rem rgba(0, 0, 0, 0.13), inset 0 0 0.25rem 0.0625rem #101010, inset 0 0 0.25rem 0.125rem rgba(255, 255, 255, 0.1), inset 0 0 0.75rem -0.375rem rgba(255, 255, 255, 0.75);
|
|
200
|
+
--p-shadow-button-primary-critical: 0 0.0625rem 0.03125rem -0.03125rem rgba(229, 0, 0, 0.16), 0 0.0625rem 0.125rem -0.03125rem rgba(229, 0, 0, 0.16), 0 0.25rem 0.375rem -0.125rem rgba(229, 0, 0, 0.16), 0 0.125rem 0.1875rem -0.09375rem rgba(255, 0, 0, 0.1), inset 0 0 0.25rem 0.0625rem #f50000, inset 0 0 0.25rem 0.125rem rgba(255, 255, 255, 0.1), inset 0 0 0.75rem -0.375rem rgba(255, 255, 255, 0.75);
|
|
201
|
+
--p-shadow-page-button: 0 0 0 0.0625rem rgba(0, 0, 0, 0.07), 0 0.125rem 1.25rem 0 rgba(0, 0, 0, 0.03), 0 0.3125rem 1.25rem 0 rgba(0, 0, 0, 0.03), 0 0.5rem 3.75rem 0 rgba(0, 0, 0, 0.03);
|
|
202
|
+
--p-color-button-gradient-bg-fill: radial-gradient(50% 50% at 50% 0%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%), radial-gradient(49.59% 37.11% at 50.41% 101.56%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 66.46%);
|
|
203
|
+
|
|
204
|
+
/* Radius */
|
|
205
|
+
--p-border-radius-action: 9999px;
|
|
206
|
+
--p-border-radius-control: 0.75rem;
|
|
207
|
+
--p-border-radius-container: 1.25rem;
|
|
208
|
+
--p-border-radius-popover: 1rem;
|
|
209
|
+
--p-border-radius-dialog: 1.5rem;
|
|
210
|
+
--p-border-radius-tag: 0.5rem;
|
|
211
|
+
|
|
212
|
+
/* Legacy aliases */
|
|
213
|
+
--p-color-bg-app-selected: var(--p-color-bg-surface-selected);
|
|
214
|
+
--p-color-bg-subdued: var(--p-color-bg-surface-secondary);
|
|
215
|
+
--p-color-bg-subdued-hover: var(--p-color-bg-surface-secondary-hover);
|
|
216
|
+
--p-color-bg-subdued-active: var(--p-color-bg-surface-secondary-active);
|
|
217
|
+
--p-color-bg-secondary-experimental: var(--p-color-bg-surface-tertiary);
|
|
218
|
+
--p-color-bg-info-subdued: var(--p-color-bg-surface-info);
|
|
219
|
+
--p-color-bg-info-subdued-hover: var(--p-color-bg-surface-info-hover);
|
|
220
|
+
--p-color-bg-info-subdued-active: var(--p-color-bg-surface-info-active);
|
|
221
|
+
--p-color-bg-success-subdued: var(--p-color-bg-surface-success);
|
|
222
|
+
--p-color-bg-success-subdued-hover: var(--p-color-bg-surface-success-hover);
|
|
223
|
+
--p-color-bg-success-subdued-active: var(--p-color-bg-surface-success-active);
|
|
224
|
+
--p-color-bg-caution-subdued: var(--p-color-bg-surface-caution);
|
|
225
|
+
--p-color-bg-caution-subdued-hover: var(--p-color-bg-surface-caution-hover);
|
|
226
|
+
--p-color-bg-caution-subdued-active: var(--p-color-bg-surface-caution-active);
|
|
227
|
+
--p-color-bg-warning-subdued-experimental: var(--p-color-bg-surface-warning);
|
|
228
|
+
--p-color-bg-critical-subdued: var(--p-color-bg-surface-critical);
|
|
229
|
+
--p-color-bg-critical-subdued-hover: var(--p-color-bg-surface-critical-hover);
|
|
230
|
+
--p-color-bg-critical-subdued-active: var(--p-color-bg-surface-critical-active);
|
|
231
|
+
--p-color-bg-transparent-disabled-experimental: var(--p-color-bg-fill-disabled);
|
|
232
|
+
--p-color-bg-inset: var(--p-color-bg-fill-secondary);
|
|
233
|
+
--p-color-bg-strong: var(--p-color-bg-fill-tertiary);
|
|
234
|
+
--p-color-bg-strong-hover: var(--p-color-bg-fill-tertiary-hover);
|
|
235
|
+
--p-color-bg-strong-active: var(--p-color-bg-fill-tertiary-active);
|
|
236
|
+
--p-color-bg-transparent-hover-experimental: var(--p-color-bg-fill-transparent-hover);
|
|
237
|
+
--p-color-bg-transparent-active-experimental: var(--p-color-bg-fill-transparent-active);
|
|
238
|
+
--p-color-bg-transparent-subdued-experimental: var(--p-color-bg-fill-transparent-secondary);
|
|
239
|
+
--p-color-bg-transparent-primary-disabled-experimental: var(--p-color-bg-fill-brand-disabled);
|
|
240
|
+
--p-color-bg-inset-strong: var(--p-color-bg-fill-inverse);
|
|
241
|
+
--p-color-bg-inverse-hover: var(--p-color-bg-fill-inverse-hover);
|
|
242
|
+
--p-color-bg-inverse-active: var(--p-color-bg-fill-inverse-active);
|
|
243
|
+
--p-color-bg-info-strong: var(--p-color-bg-fill-info);
|
|
244
|
+
--p-color-bg-info: var(--p-color-bg-fill-info-secondary);
|
|
245
|
+
--p-color-bg-success-strong: var(--p-color-bg-fill-success);
|
|
246
|
+
--p-color-bg-success-strong-hover-experimental: var(--p-color-bg-fill-success-hover);
|
|
247
|
+
--p-color-bg-success-strong-active-experimental: var(--p-color-bg-fill-success-active);
|
|
248
|
+
--p-color-bg-success: var(--p-color-bg-fill-success-secondary);
|
|
249
|
+
--p-color-bg-caution-strong: var(--p-color-bg-fill-caution);
|
|
250
|
+
--p-color-bg-caution: var(--p-color-bg-fill-caution-secondary);
|
|
251
|
+
--p-color-bg-warning-strong-experimental: var(--p-color-bg-fill-warning);
|
|
252
|
+
--p-color-bg-warning: var(--p-color-bg-fill-warning-secondary);
|
|
253
|
+
--p-color-bg-critical-strong: var(--p-color-bg-fill-critical);
|
|
254
|
+
--p-color-bg-critical-strong-hover: var(--p-color-bg-fill-critical-hover);
|
|
255
|
+
--p-color-bg-critical-strong-active: var(--p-color-bg-fill-critical-active);
|
|
256
|
+
--p-color-bg-critical: var(--p-color-bg-fill-critical-secondary);
|
|
257
|
+
--p-color-text-subdued: var(--p-color-text-secondary);
|
|
258
|
+
--p-color-text-primary: var(--p-color-text-brand);
|
|
259
|
+
--p-color-text-primary-hover: var(--p-color-text-brand-hover);
|
|
260
|
+
--p-color-text-inverse-subdued: var(--p-color-text-inverse-secondary);
|
|
261
|
+
--p-color-text-info-strong: var(--p-color-text-info-on-bg-fill);
|
|
262
|
+
--p-color-border-subdued: var(--p-color-border-secondary);
|
|
263
|
+
--p-color-border-interactive-focus: var(--p-color-border-focus);
|
|
264
|
+
--p-color-border-primary: var(--p-color-border-brand);
|
|
265
|
+
--p-color-border-critical-strong-experimental: var(--p-color-border-critical-secondary);
|
|
266
|
+
--p-color-icon-subdued: var(--p-color-icon-secondary);
|
|
267
|
+
--p-color-icon-primary: var(--p-color-icon-brand);
|
|
268
|
+
--p-color-bg-input: var(--p-color-input-bg-surface);
|
|
269
|
+
--p-color-bg-input-hover-experimental: var(--p-color-input-bg-surface-hover);
|
|
270
|
+
--p-color-bg-input-active-experimental: var(--p-color-input-bg-surface-active);
|
|
271
|
+
--p-color-border-input: var(--p-color-input-border);
|
|
272
|
+
--p-color-border-input-hover: var(--p-color-input-border-hover);
|
|
273
|
+
--p-color-border-input-active-experimental: var(--p-color-input-border-active);
|
|
274
|
+
--p-color-avatar-background-experimental: var(--p-color-avatar-bg-fill);
|
|
275
|
+
--p-color-avatar-color-experimental: var(--p-color-avatar-text-on-bg-fill);
|
|
276
|
+
--p-color-avatar-style-one-background-experimental: var(--p-color-avatar-one-bg-fill);
|
|
277
|
+
--p-color-avatar-style-one-color-experimental: var(--p-color-avatar-one-text-on-bg-fill);
|
|
278
|
+
--p-color-avatar-style-two-background-experimental: var(--p-color-avatar-two-bg-fill);
|
|
279
|
+
--p-color-avatar-style-two-color-experimental: var(--p-color-avatar-two-text-on-bg-fill);
|
|
280
|
+
--p-color-avatar-style-three-background-experimental: var(--p-color-avatar-three-bg-fill);
|
|
281
|
+
--p-color-avatar-style-three-color-experimental: var(--p-color-avatar-three-text-on-bg-fill);
|
|
282
|
+
--p-color-avatar-style-four-background-experimental: var(--p-color-avatar-four-bg-fill);
|
|
283
|
+
--p-color-avatar-style-four-color-experimental: var(--p-color-avatar-four-text-on-bg-fill);
|
|
284
|
+
--p-color-avatar-style-five-background-experimental: var(--p-color-avatar-five-bg-fill);
|
|
285
|
+
--p-color-avatar-style-five-color-experimental: var(--p-color-avatar-five-text-on-bg-fill);
|
|
286
|
+
--p-color-text-on-color: #fff;
|
|
287
|
+
--p-color-icon-on-color: #fff;
|
|
288
|
+
--p-color-bg-interactive: var(--p-color-bg-fill-brand);
|
|
289
|
+
--p-color-bg-interactive-hover: var(--p-color-bg-fill-brand-hover);
|
|
290
|
+
--p-color-bg-primary: var(--p-color-bg-fill-brand);
|
|
291
|
+
--p-color-bg-primary-hover: var(--p-color-bg-fill-brand-hover);
|
|
292
|
+
--p-color-bg-primary-active: var(--p-color-bg-fill-brand-active);
|
|
293
|
+
--p-color-text-interactive: var(--p-color-text-link);
|
|
294
|
+
--p-color-text-interactive-hover: var(--p-color-text-link-hover);
|
|
295
|
+
--p-color-text-interactive-active: var(--p-color-text-link-active);
|
|
296
|
+
--p-color-border-interactive: var(--p-color-border-focus);
|
|
297
|
+
--p-color-icon-interactive: var(--p-color-text-link);
|
|
298
|
+
--p-color-icon-interactive-hover: var(--p-color-text-link-hover);
|
|
299
|
+
--p-color-icon-interactive-active: var(--p-color-text-link-active);
|
|
300
|
+
--p-color-text-emphasis: var(--p-color-text-link);
|
|
301
|
+
--p-color-text-emphasis-hover: var(--p-color-text-link-hover);
|
|
302
|
+
--p-color-text-emphasis-active: var(--p-color-text-link-active);
|
|
303
|
+
--p-color-icon-emphasis: var(--p-color-text-link);
|
|
304
|
+
--p-color-icon-emphasis-hover: var(--p-color-text-link-hover);
|
|
305
|
+
--p-color-icon-emphasis-active: var(--p-color-text-link-active);
|
|
306
|
+
--p-color-border-interactive-hover: var(--p-color-border-focus);
|
|
307
|
+
--p-color-border-interactive-active: var(--p-color-border-focus);
|
|
308
|
+
--p-color-border-emphasis-hover: var(--p-color-text-link-hover);
|
|
309
|
+
--p-color-border-info-subdued: var(--p-color-border-info);
|
|
310
|
+
--p-color-border-success-subdued: var(--p-color-border-success);
|
|
311
|
+
--p-color-border-caution-subdued: var(--p-color-border-caution);
|
|
312
|
+
--p-color-border-critical-subdued: var(--p-color-border-critical-secondary);
|
|
313
|
+
--p-color-backdrop-bg: #000000b5;
|
|
314
|
+
--p-color-bg-backdrop-experimental: var(--p-color-backdrop-bg);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* Base typography */
|
|
318
|
+
html[class~="Polaris-Summer-Editions-2023"] {
|
|
319
|
+
font-feature-settings: "calt" on, "ss03" on, "cv02" on, "cv03" on, "cv04" on, "cv09" on;
|
|
320
|
+
|
|
321
|
+
body {
|
|
322
|
+
letter-spacing: -0.01em;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* Headings use medium weight */
|
|
327
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-Text--root:is(
|
|
328
|
+
.Polaris-Text--headingXs,
|
|
329
|
+
.Polaris-Text--headingSm,
|
|
330
|
+
.Polaris-Text--headingMd,
|
|
331
|
+
.Polaris-Text--headingLg,
|
|
332
|
+
.Polaris-Text--headingXl,
|
|
333
|
+
.Polaris-Text--heading2xl,
|
|
334
|
+
.Polaris-Text--heading3xl
|
|
335
|
+
) {
|
|
336
|
+
font-weight: var(--p-font-weight-medium);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-Text--root:is(
|
|
340
|
+
.Polaris-Text--headingLg,
|
|
341
|
+
.Polaris-Text--headingXl,
|
|
342
|
+
.Polaris-Text--heading2xl,
|
|
343
|
+
.Polaris-Text--heading3xl
|
|
344
|
+
) {
|
|
345
|
+
letter-spacing: -0.02em;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* Links: standalone links are blue without an underline; links inside running
|
|
349
|
+
text follow the text color and stay underlined, like s-link. */
|
|
350
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-Link {
|
|
351
|
+
color: var(--p-color-text-link);
|
|
352
|
+
text-decoration: none;
|
|
353
|
+
text-decoration-color: currentColor;
|
|
354
|
+
text-underline-offset: 0.125em;
|
|
355
|
+
|
|
356
|
+
&:hover {
|
|
357
|
+
color: var(--p-color-text-link-hover);
|
|
358
|
+
text-decoration: underline;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
&:active { color: var(--p-color-text-link-active); }
|
|
362
|
+
|
|
363
|
+
&.Polaris-Link--removeUnderline {
|
|
364
|
+
text-decoration: none;
|
|
365
|
+
|
|
366
|
+
&:hover { text-decoration: underline; }
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-Link.Polaris-Link--monochrome {
|
|
371
|
+
&, &:hover, &:active { color: inherit; }
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
html[class~="Polaris-Summer-Editions-2023"] :is(p, li, dd, .Polaris-Text--root, .Polaris-TextContainer, .Polaris-Banner__Message) .Polaris-Link:not(.Polaris-Link--removeUnderline),
|
|
375
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-Link.Polaris-Link--monochrome:not(.Polaris-Link--removeUnderline) {
|
|
376
|
+
&, &:hover, &:active {
|
|
377
|
+
color: inherit;
|
|
378
|
+
text-decoration: underline;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/* Critical text uses the dark admin tone; the brighter --p-color-text-critical
|
|
383
|
+
is kept for inline errors. */
|
|
384
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-Text--root.Polaris-Text--critical {
|
|
385
|
+
color: var(--p-color-text-critical-active);
|
|
386
|
+
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
left: 0;
|
|
6
6
|
z-index: var(--p-z-index-2);
|
|
7
7
|
opacity: 1;
|
|
8
|
-
filter: drop-shadow(rgba(0, 0, 0, 0.
|
|
9
|
-
border-radius: var(--p-border-radius-
|
|
8
|
+
filter: drop-shadow(rgba(0, 0, 0, 0.12) 0 2px 6px);
|
|
9
|
+
border-radius: var(--p-border-radius-200);
|
|
10
10
|
pointer-events: none;
|
|
11
11
|
-webkit-backface-visibility: hidden;
|
|
12
12
|
backface-visibility: hidden;
|
|
@@ -14,8 +14,10 @@
|
|
|
14
14
|
transition: opacity 200ms cubic-bezier(0.36, 0, 1, 1) 100ms;
|
|
15
15
|
}
|
|
16
16
|
.Polaris-Tooltip-TooltipOverlay__Content {
|
|
17
|
-
border-radius: var(--p-border-radius-
|
|
18
|
-
padding: var(--p-space-
|
|
17
|
+
border-radius: var(--p-border-radius-200);
|
|
18
|
+
padding: var(--p-space-100) var(--p-space-200);
|
|
19
|
+
font-size: var(--p-font-size-300);
|
|
20
|
+
line-height: var(--p-font-line-height-400);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
.Polaris-Tooltip-Arrow,.Polaris-Tooltip-Arrow::before {
|
|
@@ -28,5 +30,5 @@
|
|
|
28
30
|
.Polaris-Tooltip-Arrow::before {
|
|
29
31
|
content: '';
|
|
30
32
|
transform: rotate(45deg);
|
|
31
|
-
background-color: var(--p-color-bg);
|
|
33
|
+
background-color: var(--p-color-bg-surface);
|
|
32
34
|
}
|
|
@@ -12,7 +12,7 @@ html.Polaris-Summer-Editions-2023 {
|
|
|
12
12
|
|
|
13
13
|
--p-color-bg-surface-secondary: rgba(247, 247, 247, 1);
|
|
14
14
|
--p-color-bg-inverse: #1a1a1a;
|
|
15
|
-
--p-color-bg-fill-inverse: #303030
|
|
15
|
+
--p-color-bg-fill-inverse: #303030;
|
|
16
16
|
--p-color-icon: rgba(74, 74, 74, 1);
|
|
17
17
|
--p-color-border: rgba(235, 235, 235, 1);
|
|
18
18
|
--p-color-button-gradient-bg-fill: linear-gradient(180deg,rgba(48,48,48,0) 63.53%,hsla(0,0%,100%,.15));
|