polaris_view_components 3.2.0 → 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
|
@@ -1,50 +1,150 @@
|
|
|
1
1
|
html[class~="Polaris-Summer-Editions-2023"] .Polaris-LegacyCard {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
--pc-card-surface-bg: var(--p-color-bg-surface);
|
|
3
|
+
--pc-card-radius: var(--p-border-radius-container);
|
|
4
|
+
|
|
5
|
+
background: transparent;
|
|
6
|
+
border: none;
|
|
7
|
+
border-radius: 0;
|
|
8
|
+
box-shadow: none;
|
|
9
|
+
|
|
10
|
+
&::before { content: none; }
|
|
11
|
+
|
|
12
|
+
/* Stacked cards are 16px apart, plus 16px above an outside header (like s-section). */
|
|
13
|
+
& + .Polaris-LegacyCard { margin-top: var(--p-space-400); }
|
|
14
|
+
& + .Polaris-LegacyCard:has(> .Polaris-LegacyCard__Header) { margin-top: var(--p-space-800); }
|
|
15
|
+
|
|
16
|
+
.Polaris-LegacyCard__Header,
|
|
17
|
+
.Polaris-LegacyCard__SectionHeader {
|
|
18
|
+
.Polaris-ButtonGroup {
|
|
19
|
+
margin: 0;
|
|
20
|
+
gap: var(--p-space-200);
|
|
5
21
|
|
|
6
|
-
|
|
7
|
-
|
|
22
|
+
& > .Polaris-ButtonGroup__Item { margin: 0; }
|
|
23
|
+
}
|
|
8
24
|
}
|
|
9
25
|
|
|
10
|
-
.Polaris-
|
|
11
|
-
|
|
26
|
+
& > .Polaris-LegacyCard__Header {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
min-height: 1.75rem;
|
|
30
|
+
padding: 0;
|
|
31
|
+
margin-bottom: var(--p-space-300);
|
|
32
|
+
overflow-wrap: anywhere;
|
|
12
33
|
|
|
13
|
-
|
|
14
|
-
|
|
34
|
+
.Polaris-Text--headingMd {
|
|
35
|
+
font-size: 0.9375rem;
|
|
36
|
+
line-height: 1.375rem;
|
|
37
|
+
letter-spacing: -0.01em;
|
|
15
38
|
}
|
|
16
39
|
|
|
17
|
-
|
|
18
|
-
|
|
40
|
+
& > .Polaris-LegacyStack {
|
|
41
|
+
flex: 1;
|
|
42
|
+
min-width: 0;
|
|
43
|
+
margin: 0;
|
|
44
|
+
gap: var(--p-space-200);
|
|
45
|
+
align-items: center;
|
|
46
|
+
|
|
47
|
+
& > .Polaris-LegacyStack__Item { margin: 0; min-width: 0; }
|
|
48
|
+
& > .Polaris-LegacyStack__Item--fill { flex: 1 1 10rem; }
|
|
19
49
|
}
|
|
20
50
|
|
|
21
|
-
|
|
22
|
-
|
|
51
|
+
.Polaris-Button--plain { margin: 0; }
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
& > .Polaris-LegacyCard__Surface {
|
|
55
|
+
min-width: 0;
|
|
56
|
+
background: var(--pc-card-surface-bg);
|
|
57
|
+
border-radius: var(--pc-card-radius);
|
|
58
|
+
box-shadow: var(--p-shadow-container);
|
|
59
|
+
|
|
60
|
+
& > .Polaris-LegacyCard__Section {
|
|
61
|
+
padding: var(--p-space-400) var(--p-space-400) var(--p-space-200);
|
|
62
|
+
|
|
63
|
+
& + .Polaris-LegacyCard__Section { padding-top: var(--p-space-200); }
|
|
64
|
+
&:last-child { padding-bottom: var(--p-space-400); }
|
|
65
|
+
|
|
66
|
+
&:first-child {
|
|
67
|
+
border-top-left-radius: var(--pc-card-radius);
|
|
68
|
+
border-top-right-radius: var(--pc-card-radius);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:last-child {
|
|
72
|
+
border-bottom-left-radius: var(--pc-card-radius);
|
|
73
|
+
border-bottom-right-radius: var(--pc-card-radius);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.Polaris-LegacyCard__Section--subdued {
|
|
77
|
+
padding-top: var(--p-space-300);
|
|
78
|
+
padding-bottom: var(--p-space-300);
|
|
79
|
+
|
|
80
|
+
&:last-child { padding-bottom: var(--p-space-400); }
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.Polaris-LegacyCard__Section--fullWidth { padding-inline: 0; }
|
|
84
|
+
|
|
85
|
+
&:has(> .Polaris-LegacyFilters) { padding-bottom: var(--p-space-400); }
|
|
23
86
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
width: 100%;
|
|
87
|
+
&.Polaris-LegacyCard__Section--flush {
|
|
88
|
+
padding: 0;
|
|
89
|
+
|
|
90
|
+
img { display: block; width: 100%; }
|
|
91
|
+
&:first-child img {
|
|
92
|
+
border-top-left-radius: var(--pc-card-radius);
|
|
93
|
+
border-top-right-radius: var(--pc-card-radius);
|
|
94
|
+
}
|
|
95
|
+
&:last-child img {
|
|
96
|
+
border-bottom-left-radius: var(--pc-card-radius);
|
|
97
|
+
border-bottom-right-radius: var(--pc-card-radius);
|
|
98
|
+
}
|
|
28
99
|
}
|
|
29
100
|
}
|
|
30
|
-
}
|
|
31
101
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
102
|
+
/* Tabs leave 8px below them, so a section under tabs starts 12px down, like
|
|
103
|
+
the 12px a bordered section leaves below its content. */
|
|
104
|
+
& > :is(.Polaris-LegacyTabs__Wrapper, :has(> .Polaris-LegacyTabs__Wrapper)) + .Polaris-LegacyCard__Section:not(.Polaris-LegacyCard__Section--flush) {
|
|
105
|
+
padding-top: var(--p-space-100);
|
|
106
|
+
}
|
|
35
107
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
padding-top: var(--p-space-400);
|
|
108
|
+
& > .Polaris-LegacyCard__Footer {
|
|
109
|
+
padding-top: var(--p-space-100);
|
|
110
|
+
&:first-child { padding-top: var(--p-space-400); }
|
|
39
111
|
}
|
|
40
112
|
}
|
|
41
113
|
|
|
42
|
-
&.Polaris-LegacyCard--
|
|
43
|
-
border: none;
|
|
44
|
-
box-shadow: none;
|
|
114
|
+
&.Polaris-LegacyCard--subdued { --pc-card-surface-bg: var(--p-color-bg-surface-secondary); }
|
|
45
115
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
116
|
+
&.Polaris-LegacyCard--borderless > .Polaris-LegacyCard__Surface { box-shadow: none; }
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Layout sections that open with an outside card header get the same extra 16px as stacked cards.
|
|
120
|
+
The card may sit in one wrapper (a turbo frame, say). Sections that share the first row keep the
|
|
121
|
+
default so they stay aligned. */
|
|
122
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-Layout__Section:has(
|
|
123
|
+
> .Polaris-LegacyCard:first-child > .Polaris-LegacyCard__Header,
|
|
124
|
+
> :first-child > .Polaris-LegacyCard:first-child > .Polaris-LegacyCard__Header
|
|
125
|
+
):not(
|
|
126
|
+
:first-child,
|
|
127
|
+
.Polaris-Layout__Section:first-child + .Polaris-Layout__Section--secondary,
|
|
128
|
+
.Polaris-Layout__Section--oneHalf:first-child + .Polaris-Layout__Section--oneHalf,
|
|
129
|
+
.Polaris-Layout__Section--oneThird:first-child + .Polaris-Layout__Section--oneThird,
|
|
130
|
+
.Polaris-Layout__Section--oneThird:first-child + .Polaris-Layout__Section--oneThird + .Polaris-Layout__Section--oneThird
|
|
131
|
+
) {
|
|
132
|
+
margin-top: var(--p-space-800);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Pages have no side padding on small screens, so cards run edge to edge. */
|
|
136
|
+
@media (max-width: 30.6225em) {
|
|
137
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-LegacyCard {
|
|
138
|
+
--pc-card-radius: 0;
|
|
139
|
+
|
|
140
|
+
& > .Polaris-LegacyCard__Header { padding-inline: var(--p-space-400); }
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-Banner.Polaris-Banner--withinPage {
|
|
144
|
+
border-radius: 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-Layout__Annotation {
|
|
148
|
+
padding-left: var(--p-space-400);
|
|
49
149
|
}
|
|
50
150
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* Checkbox and radio button */
|
|
2
|
+
html[class~="Polaris-Summer-Editions-2023"] {
|
|
3
|
+
.Polaris-Checkbox__Backdrop,
|
|
4
|
+
.Polaris-RadioButton__Backdrop {
|
|
5
|
+
border: none;
|
|
6
|
+
background-color: var(--p-color-input-bg-surface);
|
|
7
|
+
box-shadow: var(--p-shadow-input-strong);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.Polaris-Checkbox__Backdrop {
|
|
11
|
+
border-radius: var(--p-border-radius-100);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:is(.Polaris-Choice, .Polaris-Checkbox__ChoiceLabel, .Polaris-OptionList-Option__CheckboxLabel):hover .Polaris-Checkbox__Input:not(:checked, :disabled, .Polaris-Checkbox__Input--indeterminate) + .Polaris-Checkbox__Backdrop,
|
|
15
|
+
:is(.Polaris-Choice, .Polaris-RadioButton__ChoiceLabel):hover .Polaris-RadioButton__Input:not(:checked, :disabled) + .Polaris-RadioButton__Backdrop {
|
|
16
|
+
background-color: var(--p-color-input-bg-surface-hover);
|
|
17
|
+
box-shadow: var(--p-shadow-input-strong);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:is(.Polaris-Choice, .Polaris-Checkbox__ChoiceLabel, .Polaris-OptionList-Option__CheckboxLabel):hover .Polaris-Checkbox__Input:is(:checked, .Polaris-Checkbox__Input--indeterminate):not(:disabled) + .Polaris-Checkbox__Backdrop,
|
|
21
|
+
.Polaris-Checkbox__Input:is(:checked, .Polaris-Checkbox__Input--indeterminate):focus-visible + .Polaris-Checkbox__Backdrop,
|
|
22
|
+
.Polaris-Checkbox__Input:checked + .Polaris-Checkbox__Backdrop,
|
|
23
|
+
.Polaris-Checkbox__Input.Polaris-Checkbox__Input--indeterminate + .Polaris-Checkbox__Backdrop,
|
|
24
|
+
.Polaris-RadioButton__Input:checked:not([disabled]) + .Polaris-RadioButton__Backdrop,
|
|
25
|
+
.Polaris-RadioButton__ChoiceLabel:hover .Polaris-RadioButton__Input:checked:not([disabled]) + .Polaris-RadioButton__Backdrop {
|
|
26
|
+
border: none;
|
|
27
|
+
background-color: var(--p-color-bg-fill-brand);
|
|
28
|
+
box-shadow: 0 0.0625rem 0.0625rem -0.03125rem rgba(0, 0, 0, 0.13), inset 0 0 0 0.03125rem rgba(0, 0, 0, 0.4), inset 0 0.09375rem 0.125rem -0.0625rem rgba(255, 255, 255, 0.42);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.Polaris-Checkbox__Input:disabled + .Polaris-Checkbox__Backdrop,
|
|
32
|
+
.Polaris-RadioButton__Input:disabled + .Polaris-RadioButton__Backdrop,
|
|
33
|
+
.Polaris-Checkbox__ChoiceLabel:hover .Polaris-Checkbox__Input:disabled + .Polaris-Checkbox__Backdrop,
|
|
34
|
+
.Polaris-RadioButton__ChoiceLabel:hover .Polaris-RadioButton__Input:disabled + .Polaris-RadioButton__Backdrop {
|
|
35
|
+
background-color: var(--p-color-bg-fill-disabled);
|
|
36
|
+
box-shadow: 0 0 0 0.0625rem rgba(0, 0, 0, 0.08);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.Polaris-Checkbox__Input:disabled:checked + .Polaris-Checkbox__Backdrop,
|
|
40
|
+
.Polaris-RadioButton__Input:disabled:checked + .Polaris-RadioButton__Backdrop,
|
|
41
|
+
.Polaris-Checkbox__ChoiceLabel:hover .Polaris-Checkbox__Input:disabled:is(:checked, .Polaris-Checkbox__Input--indeterminate) + .Polaris-Checkbox__Backdrop,
|
|
42
|
+
.Polaris-RadioButton__ChoiceLabel:hover .Polaris-RadioButton__Input:disabled:checked + .Polaris-RadioButton__Backdrop {
|
|
43
|
+
background-color: var(--p-color-bg-fill-brand-disabled);
|
|
44
|
+
box-shadow: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.Polaris-Checkbox--error .Polaris-Checkbox__Input + .Polaris-Checkbox__Backdrop {
|
|
48
|
+
background-color: var(--p-color-input-bg-surface);
|
|
49
|
+
box-shadow: var(--p-shadow-input-critical);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.Polaris-Choice:hover .Polaris-Checkbox--error .Polaris-Checkbox__Input:not(:checked, :disabled, .Polaris-Checkbox__Input--indeterminate) + .Polaris-Checkbox__Backdrop,
|
|
53
|
+
.Polaris-Checkbox--error .Polaris-Checkbox__Input:not(:checked, :disabled, .Polaris-Checkbox__Input--indeterminate):focus-visible + .Polaris-Checkbox__Backdrop {
|
|
54
|
+
background-color: var(--p-color-input-bg-surface-hover);
|
|
55
|
+
box-shadow: var(--p-shadow-input-critical);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.Polaris-Checkbox--error .Polaris-Checkbox__Input:is(:checked, .Polaris-Checkbox__Input--indeterminate):not(:disabled) + .Polaris-Checkbox__Backdrop,
|
|
59
|
+
.Polaris-Choice:hover .Polaris-Checkbox--error .Polaris-Checkbox__Input:is(:checked, .Polaris-Checkbox__Input--indeterminate):not(:disabled) + .Polaris-Checkbox__Backdrop {
|
|
60
|
+
background-color: var(--p-color-bg-fill-critical);
|
|
61
|
+
box-shadow: none !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Both icons render, so toggling the indeterminate class in JS swaps them. */
|
|
65
|
+
.Polaris-Checkbox__Input:not(.Polaris-Checkbox__Input--indeterminate) ~ .Polaris-Checkbox__Icon .Polaris-Checkbox__MinusIcon,
|
|
66
|
+
.Polaris-Checkbox__Input--indeterminate ~ .Polaris-Checkbox__Icon .Polaris-Checkbox__CheckIcon {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.Polaris-Choice__Label {
|
|
71
|
+
font-size: var(--p-font-size-325);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Checkboxes are 14px, radio buttons 16px. */
|
|
75
|
+
.Polaris-Choice__Control:has(> .Polaris-Checkbox) {
|
|
76
|
+
width: 1rem;
|
|
77
|
+
height: 1rem;
|
|
78
|
+
margin-top: 0.0625rem;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -87,23 +87,23 @@ html[class~="Polaris-Summer-Editions-2023"] {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&:first-of-type > div > div > button {
|
|
90
|
-
border-top-left-radius: var(--p-border-radius-
|
|
91
|
-
border-bottom-left-radius: var(--p-border-radius-
|
|
90
|
+
border-top-left-radius: var(--p-border-radius-full);
|
|
91
|
+
border-bottom-left-radius: var(--p-border-radius-full);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
&.Polaris-LegacyFilters-ConnectedFilterControl--queryFieldHidden {
|
|
96
96
|
.Polaris-LegacyFilters-ConnectedFilterControl__Item:first-of-type > div > div > button {
|
|
97
|
-
border-top-left-radius: var(--p-border-radius-
|
|
98
|
-
border-bottom-left-radius: var(--p-border-radius-
|
|
97
|
+
border-top-left-radius: var(--p-border-radius-full);
|
|
98
|
+
border-bottom-left-radius: var(--p-border-radius-full);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.Polaris-LegacyFilters-ConnectedFilterControl__RightContainerWithoutMoreFilters {
|
|
104
104
|
.Polaris-LegacyFilters-ConnectedFilterControl__Item:last-child > div > div > button {
|
|
105
|
-
border-top-right-radius: var(--p-border-radius-
|
|
106
|
-
border-bottom-right-radius: var(--p-border-radius-
|
|
105
|
+
border-top-right-radius: var(--p-border-radius-full);
|
|
106
|
+
border-bottom-right-radius: var(--p-border-radius-full);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -210,67 +210,6 @@ html[class~="Polaris-Summer-Editions-2023"] {
|
|
|
210
210
|
border: none !important;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
/* ResourceItem Actions + Disclosure */
|
|
214
|
-
|
|
215
|
-
.Polaris-ResourceItem__Actions {
|
|
216
|
-
display: none;
|
|
217
|
-
}
|
|
218
|
-
.Polaris-ResourceItem:hover .Polaris-ResourceItem__Actions {
|
|
219
|
-
display: flex;
|
|
220
|
-
}
|
|
221
|
-
@media (max-width: 45em), (min-width: 48.0625em) and (max-width: 61.5em) {
|
|
222
|
-
[data-has-navigation] .Polaris-ResourceItem__Actions {
|
|
223
|
-
display: none !important;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
@media (max-width: 46.5em) {
|
|
227
|
-
.Polaris-ResourceItem__Actions {
|
|
228
|
-
display: none !important;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.Polaris-ResourceItem--persistActions .Polaris-ResourceItem__Actions {
|
|
233
|
-
display: flex;
|
|
234
|
-
}
|
|
235
|
-
@media (max-width: 45em), (min-width: 48.0625em) and (max-width: 61.5em) {
|
|
236
|
-
[data-has-navigation] .Polaris-ResourceItem--persistActions .Polaris-ResourceItem__Actions {
|
|
237
|
-
display: none !important;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
@media (max-width: 46.5em) {
|
|
241
|
-
.Polaris-ResourceItem--persistActions .Polaris-ResourceItem__Actions {
|
|
242
|
-
display: none !important;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.Polaris-ResourceItem__Disclosure {
|
|
247
|
-
position: relative;
|
|
248
|
-
top: -0.7rem;
|
|
249
|
-
right: -1.65rem;
|
|
250
|
-
display: none;
|
|
251
|
-
width: 4.8rem;
|
|
252
|
-
pointer-events: initial;
|
|
253
|
-
}
|
|
254
|
-
.Polaris-ResourceItem--selectMode .Polaris-ResourceItem__Disclosure {
|
|
255
|
-
display: none;
|
|
256
|
-
}
|
|
257
|
-
@media (max-width: 45em), (min-width: 48.0625em) and (max-width: 61.5em) {
|
|
258
|
-
[data-has-navigation] .Polaris-ResourceItem__Disclosure {
|
|
259
|
-
display: flex;
|
|
260
|
-
flex: 0 0 4.8rem;
|
|
261
|
-
justify-content: center;
|
|
262
|
-
align-items: center;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
@media (max-width: 46.5em) {
|
|
266
|
-
.Polaris-ResourceItem__Disclosure {
|
|
267
|
-
display: flex;
|
|
268
|
-
flex: 0 0 4.8rem;
|
|
269
|
-
justify-content: center;
|
|
270
|
-
align-items: center;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
213
|
/* Polaris-VisuallyHidden */
|
|
275
214
|
|
|
276
215
|
.Polaris-VisuallyHidden {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
html[class~="Polaris-Summer-Editions-2023"] .Polaris-DataTable {
|
|
2
|
+
border-radius: var(--p-border-radius-container);
|
|
3
|
+
|
|
2
4
|
.Polaris-DataTable__TableRow {
|
|
3
5
|
content-visibility: auto;
|
|
4
6
|
contain-intrinsic-size: auto 250px;
|
|
@@ -7,13 +9,67 @@ html[class~="Polaris-Summer-Editions-2023"] .Polaris-DataTable {
|
|
|
7
9
|
.Polaris-DataTable__Heading:not(
|
|
8
10
|
.Polaris-DataTable__Heading--flush
|
|
9
11
|
):first-child {
|
|
10
|
-
padding-left: var(--p-space-
|
|
12
|
+
padding-left: var(--p-space-300);
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.Polaris-DataTable__Cell:not(.Polaris-DataTable__Cell--flush):last-child,
|
|
14
16
|
.Polaris-DataTable__Heading:not(
|
|
15
17
|
.Polaris-DataTable__Heading--flush
|
|
16
18
|
):last-child {
|
|
17
|
-
padding-right: var(--p-space-
|
|
19
|
+
padding-right: var(--p-space-300);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Inside cards, tables round only the corners they share with the card, so a header row below tabs, filters, or another section stays square. */
|
|
24
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-LegacyCard__Surface {
|
|
25
|
+
:is(.Polaris-DataTable, .Polaris-IndexTable) { border-radius: var(--pc-card-radius); }
|
|
26
|
+
|
|
27
|
+
:is(.Polaris-DataTable, .Polaris-IndexTable):not(:first-child),
|
|
28
|
+
:not(:first-child) :is(.Polaris-DataTable, .Polaris-IndexTable) {
|
|
29
|
+
border-top-left-radius: 0;
|
|
30
|
+
border-top-right-radius: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:is(.Polaris-DataTable, .Polaris-IndexTable):not(:last-child),
|
|
34
|
+
:not(:last-child) :is(.Polaris-DataTable, .Polaris-IndexTable) {
|
|
35
|
+
border-bottom-left-radius: 0;
|
|
36
|
+
border-bottom-right-radius: 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-DataTable {
|
|
41
|
+
.Polaris-DataTable__Cell--header {
|
|
42
|
+
padding-top: var(--p-space-150);
|
|
43
|
+
padding-bottom: var(--p-space-150);
|
|
44
|
+
background-color: var(--p-color-bg-surface-secondary);
|
|
45
|
+
color: var(--p-color-text-secondary);
|
|
46
|
+
font-size: var(--p-font-size-300);
|
|
47
|
+
font-weight: var(--p-font-weight-medium);
|
|
48
|
+
line-height: 1.125rem;
|
|
49
|
+
border-bottom: var(--p-border-width-025) solid var(--p-color-border-secondary);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.Polaris-DataTable__Cell:not(.Polaris-DataTable__Cell--header) {
|
|
53
|
+
padding-top: var(--p-space-150);
|
|
54
|
+
padding-bottom: var(--p-space-150);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.Polaris-DataTable__Cell--sortable {
|
|
58
|
+
padding-top: 0;
|
|
59
|
+
padding-bottom: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.Polaris-DataTable__Heading {
|
|
63
|
+
padding-top: var(--p-space-150);
|
|
64
|
+
padding-bottom: var(--p-space-150);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.Polaris-DataTable__TableRow + .Polaris-DataTable__TableRow .Polaris-DataTable__Cell,
|
|
68
|
+
.Polaris-DataTable__Cell--total {
|
|
69
|
+
border-color: var(--p-color-border-secondary);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.Polaris-DataTable__TableRow:hover .Polaris-DataTable__Cell {
|
|
73
|
+
background-color: var(--p-color-bg-surface-hover);
|
|
18
74
|
}
|
|
19
75
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* Rows are 12px apart (8px when tight), and the first and last rows leave the outer padding to the card section. */
|
|
2
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-DescriptionList {
|
|
3
|
+
--pc-description-list-spacing: var(--p-space-300);
|
|
4
|
+
|
|
5
|
+
&.Polaris-DescriptionList--spacingTight { --pc-description-list-spacing: var(--p-space-200); }
|
|
6
|
+
|
|
7
|
+
.Polaris-DescriptionList__Term {
|
|
8
|
+
font-weight: var(--p-font-weight-medium);
|
|
9
|
+
padding: var(--pc-description-list-spacing) 0 var(--p-space-100);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.Polaris-DescriptionList__Description {
|
|
13
|
+
padding: 0 0 var(--pc-description-list-spacing);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
& > .Polaris-DescriptionList__Term:first-child { padding-top: 0; }
|
|
17
|
+
& > .Polaris-DescriptionList__Description:last-child { padding-bottom: 0; }
|
|
18
|
+
|
|
19
|
+
@media (min-width: 30.625em) {
|
|
20
|
+
.Polaris-DescriptionList__Term {
|
|
21
|
+
padding: var(--pc-description-list-spacing) var(--p-space-400) var(--pc-description-list-spacing) 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.Polaris-DescriptionList__Description {
|
|
25
|
+
padding: var(--pc-description-list-spacing) 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
& > .Polaris-DescriptionList__Term:first-child,
|
|
29
|
+
& > .Polaris-DescriptionList__Term:first-child + .Polaris-DescriptionList__Description { padding-top: 0; }
|
|
30
|
+
|
|
31
|
+
& > .Polaris-DescriptionList__Term:nth-last-child(2),
|
|
32
|
+
& > .Polaris-DescriptionList__Description:last-child { padding-bottom: 0; }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-DropZone {
|
|
2
|
+
--p-color-input-bg-surface-hover: var(--p-color-bg-surface-hover);
|
|
3
|
+
border-radius: var(--p-border-radius-control);
|
|
4
|
+
|
|
5
|
+
&::after,
|
|
6
|
+
&.Polaris-DropZone--hasOutline:not(.Polaris-DropZone--focused)::after {
|
|
7
|
+
border-radius: var(--p-border-radius-control);
|
|
8
|
+
border-width: var(--p-border-width-0165);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.Polaris-DropZone--sizeExtraLarge,
|
|
12
|
+
&.Polaris-DropZone--sizeLarge { min-height: 7.5rem; }
|
|
13
|
+
|
|
14
|
+
.Polaris-DropZone__Container::after { border-radius: var(--p-border-radius-control); }
|
|
15
|
+
|
|
16
|
+
.Polaris-DropZone__Overlay {
|
|
17
|
+
border-radius: var(--p-border-radius-control);
|
|
18
|
+
background-color: var(--p-color-bg-surface-hover);
|
|
19
|
+
padding: var(--p-space-200);
|
|
20
|
+
|
|
21
|
+
.Polaris-Text--root {
|
|
22
|
+
font-size: var(--p-font-size-325);
|
|
23
|
+
line-height: var(--p-font-line-height-500);
|
|
24
|
+
font-weight: var(--p-font-weight-regular);
|
|
25
|
+
letter-spacing: inherit;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.Polaris-DropZone-FileUpload { min-height: inherit; }
|
|
30
|
+
|
|
31
|
+
.Polaris-DropZone-FileUpload__Content {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: var(--p-space-200);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.Polaris-DropZone-FileUpload__UploadIcon { display: none; }
|
|
39
|
+
|
|
40
|
+
.Polaris-DropZone-FileUpload__Button {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
border-radius: var(--p-border-radius-full);
|
|
45
|
+
padding: var(--p-space-150) var(--p-space-300);
|
|
46
|
+
background: var(--p-color-bg-fill-secondary);
|
|
47
|
+
color: var(--p-color-text);
|
|
48
|
+
font-size: var(--p-font-size-300);
|
|
49
|
+
line-height: var(--p-font-line-height-400);
|
|
50
|
+
font-weight: var(--p-font-weight-medium);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.Polaris-DropZone-FileUpload__HelpText {
|
|
54
|
+
color: var(--p-color-text-secondary);
|
|
55
|
+
font-size: var(--p-font-size-300);
|
|
56
|
+
line-height: 1.125rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:not(.Polaris-DropZone--isDisabled) .Polaris-DropZone-FileUpload__Button {
|
|
60
|
+
&:hover { background: var(--p-color-bg-fill-secondary-hover); }
|
|
61
|
+
&:active { background: var(--p-color-bg-fill-secondary-active); }
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.Polaris-DropZone--sizeMedium .Polaris-DropZone-FileUpload { padding: var(--p-space-400); }
|
|
65
|
+
|
|
66
|
+
&.Polaris-DropZone--sizeSmall {
|
|
67
|
+
min-height: 2.5rem;
|
|
68
|
+
max-height: 7.5rem;
|
|
69
|
+
aspect-ratio: 1;
|
|
70
|
+
|
|
71
|
+
.Polaris-DropZone-FileUpload { padding: var(--p-space-200); }
|
|
72
|
+
.Polaris-DropZone-FileUpload__UploadIcon { display: block; }
|
|
73
|
+
.Polaris-DropZone-FileUpload__Button,
|
|
74
|
+
.Polaris-DropZone-FileUpload__HelpText { display: none; }
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.Polaris-DropZone--hasError {
|
|
78
|
+
--p-color-input-border: var(--p-color-border-critical-secondary);
|
|
79
|
+
--p-color-input-border-hover: var(--p-color-border-critical-secondary);
|
|
80
|
+
--p-color-input-bg-surface-hover: var(--p-color-bg-surface-critical);
|
|
81
|
+
background: var(--p-color-bg-surface-critical);
|
|
82
|
+
|
|
83
|
+
&:hover { background: var(--p-color-bg-surface-critical); }
|
|
84
|
+
&::after { border-color: var(--p-color-border-critical-secondary); }
|
|
85
|
+
.Polaris-DropZone__Overlay { background: var(--p-color-bg-surface-critical); }
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.Polaris-DropZone--isDisabled {
|
|
89
|
+
background: var(--p-color-bg-surface-disabled);
|
|
90
|
+
cursor: default;
|
|
91
|
+
|
|
92
|
+
&::after { border-color: var(--p-color-bg-surface-disabled); }
|
|
93
|
+
.Polaris-DropZone-FileUpload__Button {
|
|
94
|
+
background: var(--p-color-bg-fill-disabled);
|
|
95
|
+
color: var(--p-color-text-disabled);
|
|
96
|
+
}
|
|
97
|
+
.Polaris-DropZone-FileUpload__HelpText { color: var(--p-color-text-disabled); }
|
|
98
|
+
.Polaris-DropZone-FileUpload__UploadIcon svg { fill: var(--p-color-icon-disabled); }
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
/* ShopifyInter is the Inter fork used in the Shopify admin. It's licensed under the SIL Open Font License (see OFL.txt). */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: ShopifyInter;
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 100 900;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: url('ShopifyInterVariable-latin-ext.woff2') format('woff2');
|
|
8
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
9
|
+
}
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: ShopifyInter;
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-weight: 100 900;
|
|
14
|
+
font-display: swap;
|
|
15
|
+
src: url('ShopifyInterVariable-latin.woff2') format('woff2');
|
|
16
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
17
|
+
}
|
|
18
|
+
/* ShopifyInter has no italic, so use Inter's italic instead of a synthesized one */
|
|
19
|
+
@font-face {
|
|
20
|
+
font-family: ShopifyInter;
|
|
21
|
+
font-style: italic;
|
|
22
|
+
font-weight: 100 900;
|
|
23
|
+
font-display: swap;
|
|
24
|
+
src: url('InterVariable-Italic.woff2') format('woff2');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Inter covers the scripts that aren't included in ShopifyInter subsets */
|
|
1
28
|
@font-face {
|
|
2
29
|
font-family: Inter;
|
|
3
30
|
font-style: normal;
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
html[class~="Polaris-Summer-Editions-2023"] .Polaris-FooterHelp {
|
|
2
|
+
flex-direction: column;
|
|
3
|
+
align-items: center;
|
|
4
|
+
margin: var(--p-space-500) 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
|
|
2
7
|
.Polaris-FooterHelp__Text {
|
|
3
8
|
font-size: var(--p-font-size-325);
|
|
9
|
+
letter-spacing: inherit;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.Polaris-Link {
|
|
14
|
+
color: inherit;
|
|
15
|
+
border-radius: var(--p-border-radius-100);
|
|
16
|
+
text-decoration: underline;
|
|
17
|
+
|
|
18
|
+
&:hover,
|
|
19
|
+
&:active { color: inherit; }
|
|
20
|
+
|
|
21
|
+
&:focus:not(:focus-visible) { outline: none; }
|
|
22
|
+
|
|
23
|
+
&:focus-visible {
|
|
24
|
+
outline: var(--p-border-width-050) solid var(--p-color-border-focus);
|
|
25
|
+
outline-offset: var(--p-space-050);
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
}
|
|
4
28
|
}
|
|
5
29
|
}
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
html[class~="Polaris-Summer-Editions-2023"] .Polaris-IndexTable {
|
|
2
|
+
border-radius: var(--p-border-radius-container);
|
|
2
3
|
|
|
3
4
|
.Polaris-IndexTable__TableCell:not(.Polaris-IndexTable__TableCell--flush):first-child,
|
|
4
5
|
.Polaris-IndexTable__TableHeading:not(.Polaris-IndexTable__TableHeading--flush):first-child {
|
|
5
|
-
padding-left: var(--p-space-
|
|
6
|
+
padding-left: var(--p-space-300);
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
.Polaris-IndexTable__TableCell:not(.Polaris-IndexTable__TableCell--flush):last-child,
|
|
9
10
|
.Polaris-IndexTable__TableHeading:not(.Polaris-IndexTable__TableHeading--flush):last-child {
|
|
10
|
-
padding-right: var(--p-space-
|
|
11
|
+
padding-right: var(--p-space-300);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
html[class~="Polaris-Summer-Editions-2023"] .Polaris-IndexTable {
|
|
16
|
+
.Polaris-IndexTable__TableHeading {
|
|
17
|
+
padding-top: var(--p-space-150);
|
|
18
|
+
padding-bottom: var(--p-space-150);
|
|
19
|
+
font-weight: var(--p-font-weight-medium);
|
|
20
|
+
line-height: 1.125rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.Polaris-IndexTable__TableRow:not(:first-child) .Polaris-IndexTable__TableCell,
|
|
24
|
+
.Polaris-IndexTable__TableRow + .Polaris-IndexTable__TableRow {
|
|
25
|
+
border-color: var(--p-color-border-secondary);
|
|
11
26
|
}
|
|
12
27
|
}
|