polaris_view_helpers 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/polaris_view_helpers/version.rb +1 -1
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3.css +3414 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles.scss +4 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components.scss +51 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/AccountConnection.scss +9 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/ActionList.scss +75 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Avatar.scss +70 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Badge.scss +68 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Banner.scss +140 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Breadcrumbs.scss +45 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Button.scss +228 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/ButtonGroup.scss +67 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/CalloutCard.scss +27 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Caption.scss +4 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Card.scss +43 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Checkbox.scss +78 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Choice.scss +62 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/ChoiceList.scss +22 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Collapsible.scss +18 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/ColorPicker.scss +133 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss +67 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/DatePicker.scss +147 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/DescriptionList.scss +44 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/DisplayText.scss +19 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/EmptyState.scss +63 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/FooterHelp.scss +26 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/FormLayout.scss +35 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Heading.scss +4 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Icon.scss +226 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/KeyboardKey.scss +22 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Label.scss +18 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Labelled.scss +24 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Layout.scss +69 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Link.scss +18 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/List.scss +52 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Page.scss +125 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/PageActions.scss +9 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Pagination.scss +139 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Popover.scss +98 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/PositionedOverlay.scss +8 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/RadioButton.scss +68 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/ResourceList.scss +272 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Scrollable.scss +28 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Select.scss +103 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/SettingAction.scss +22 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Stack.scss +98 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Subheading.scss +4 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Tabs.scss +150 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Tag.scss +37 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/TextContainer.scss +12 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/TextField.scss +219 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/TextStyle.scss +15 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Thumbnail.scss +49 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Tooltip.scss +70 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/VisuallyHidden.scss +3 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation.scss +11 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/border-radius.scss +12 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/borders.scss +19 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/colors.scss +142 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/duration.scss +24 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/easing.scss +23 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/layout.scss +46 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/shadows.scss +25 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/spacing.scss +25 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/typography.scss +127 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/utilities.scss +90 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/foundation/z-index.scss +19 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/global.scss +55 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/shared.scss +8 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/shared/accessibility.scss +16 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/shared/breakpoints.scss +127 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/shared/buttons.scss +87 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/shared/controls.scss +59 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/shared/icons.scss +11 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/shared/layout.scss +8 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/shared/links.scss +8 -0
- data/vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/shared/typography.scss +128 -0
- metadata +79 -3
@@ -0,0 +1,44 @@
|
|
1
|
+
$breakpoint: 550px;
|
2
|
+
|
3
|
+
.Polaris-DescriptionList {
|
4
|
+
margin: 0;
|
5
|
+
padding: 0;
|
6
|
+
|
7
|
+
@include page-content-breakpoint-after($breakpoint) {
|
8
|
+
display: flex;
|
9
|
+
flex-wrap: wrap;
|
10
|
+
align-items: flex-start;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
.Polaris-DescriptionList__Term {
|
15
|
+
@include text-emphasis-strong;
|
16
|
+
padding: spacing() 0 spacing(tight);
|
17
|
+
|
18
|
+
@include page-content-breakpoint-after($breakpoint) {
|
19
|
+
flex: 0 1 25%;
|
20
|
+
padding: spacing() spacing() spacing() 0;
|
21
|
+
|
22
|
+
.Polaris-DescriptionList__Description + & + .Polaris-DescriptionList__Description {
|
23
|
+
border-top: border();
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.Polaris-DescriptionList__Description {
|
29
|
+
margin-left: 0;
|
30
|
+
padding: 0 0 spacing();
|
31
|
+
|
32
|
+
+ .Polaris-DescriptionList__Term {
|
33
|
+
border-top: border();
|
34
|
+
}
|
35
|
+
|
36
|
+
@include page-content-breakpoint-after($breakpoint) {
|
37
|
+
flex: 1 1 51%;
|
38
|
+
padding: spacing() 0;
|
39
|
+
|
40
|
+
+ .Polaris-DescriptionList__Term + .Polaris-DescriptionList__Description {
|
41
|
+
border-top: border();
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.Polaris-DisplayText {
|
2
|
+
margin: 0;
|
3
|
+
}
|
4
|
+
|
5
|
+
.Polaris-DisplayText--sizeSmall {
|
6
|
+
@include text-style-display-small;
|
7
|
+
}
|
8
|
+
|
9
|
+
.Polaris-DisplayText--sizeMedium {
|
10
|
+
@include text-style-display-medium;
|
11
|
+
}
|
12
|
+
|
13
|
+
.Polaris-DisplayText--sizeLarge {
|
14
|
+
@include text-style-display-large;
|
15
|
+
}
|
16
|
+
|
17
|
+
.Polaris-DisplayText--sizeExtraLarge {
|
18
|
+
@include text-style-display-x-large;
|
19
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
$image-offset: 40%;
|
2
|
+
$image-overflow-width: calc(100% + #{$image-offset} * 2);
|
3
|
+
|
4
|
+
.Polaris-EmptyState {
|
5
|
+
display: flex;
|
6
|
+
flex-direction: column;
|
7
|
+
align-items: center;
|
8
|
+
width: 100%;
|
9
|
+
margin-top: spacing(loose);
|
10
|
+
padding: spacing(loose);
|
11
|
+
padding-left: spacing(extra-loose);
|
12
|
+
text-align: center;
|
13
|
+
|
14
|
+
@include page-content-when-not-partially-condensed {
|
15
|
+
flex-direction: row-reverse;
|
16
|
+
padding-left: spacing(loose);
|
17
|
+
text-align: left;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.Polaris-EmptyState--imageContained {
|
22
|
+
.Polaris-EmptyState__Image {
|
23
|
+
@include page-content-when-not-partially-condensed {
|
24
|
+
position: initial;
|
25
|
+
width: 100%;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.Polaris-EmptyState__ImageContainer,
|
31
|
+
.Polaris-EmptyState__Details {
|
32
|
+
@include page-content-when-not-partially-condensed {
|
33
|
+
flex-basis: 50%;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.Polaris-EmptyState__Image {
|
38
|
+
z-index: -1;
|
39
|
+
width: 60vw;
|
40
|
+
|
41
|
+
@include page-content-when-not-partially-condensed {
|
42
|
+
position: relative;
|
43
|
+
left: $image-offset * -1;
|
44
|
+
width: $image-overflow-width;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.Polaris-EmptyState__Details {
|
49
|
+
margin-top: spacing();
|
50
|
+
|
51
|
+
@include page-content-when-not-partially-condensed {
|
52
|
+
padding-right: spacing();
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
.Polaris-EmptyState__Actions {
|
57
|
+
margin-top: spacing();
|
58
|
+
|
59
|
+
@include page-content-when-partially-condensed {
|
60
|
+
display: flex;
|
61
|
+
justify-content: center;
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
// reduces the radii of the circle to half the size of the smallest side
|
2
|
+
$border-radius: 999px;
|
3
|
+
|
4
|
+
.Polaris-FooterHelp {
|
5
|
+
display: flex;
|
6
|
+
justify-content: center;
|
7
|
+
margin: spacing(loose);
|
8
|
+
}
|
9
|
+
|
10
|
+
.Polaris-FooterHelp__Content {
|
11
|
+
display: inline-flex;
|
12
|
+
align-items: center;
|
13
|
+
padding: spacing(tight) spacing(tight) * 3;
|
14
|
+
border: border();
|
15
|
+
border-radius: $border-radius;
|
16
|
+
}
|
17
|
+
|
18
|
+
.Polaris-FooterHelp__Icon {
|
19
|
+
margin-left: -1 * spacing();
|
20
|
+
margin-right: spacing(tight);
|
21
|
+
color: color(ink, lightest);
|
22
|
+
}
|
23
|
+
|
24
|
+
.Polaris-FooterHelp__Text {
|
25
|
+
@include text-emphasis-subdued;
|
26
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
$item-min-size: rem(220px);
|
2
|
+
|
3
|
+
.Polaris-FormLayout {
|
4
|
+
margin-top: -1 * spacing();
|
5
|
+
margin-left: -1 * spacing(loose);
|
6
|
+
}
|
7
|
+
|
8
|
+
.Polaris-FormLayout--condensed .Polaris-FormLayout__Item {
|
9
|
+
flex-basis: (0.5 * $item-min-size);
|
10
|
+
min-width: (0.5 * $item-min-size);
|
11
|
+
}
|
12
|
+
|
13
|
+
.Polaris-FormLayout__Title {
|
14
|
+
margin-bottom: -1 * spacing(tight);
|
15
|
+
padding: spacing() spacing(loose) 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
.Polaris-FormLayout__Items {
|
19
|
+
display: flex;
|
20
|
+
flex-wrap: wrap;
|
21
|
+
align-items: center;
|
22
|
+
}
|
23
|
+
|
24
|
+
.Polaris-FormLayout__HelpText {
|
25
|
+
@include text-emphasis-subdued;
|
26
|
+
padding: spacing(tight) spacing(loose) 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
.Polaris-FormLayout__Item {
|
30
|
+
flex: 1 1 $item-min-size;
|
31
|
+
margin-top: spacing();
|
32
|
+
margin-left: spacing(loose);
|
33
|
+
min-width: $item-min-size;
|
34
|
+
max-width: calc(100% - #{spacing(loose)});
|
35
|
+
}
|
@@ -0,0 +1,226 @@
|
|
1
|
+
$stacking-order: (
|
2
|
+
backdrop: 1,
|
3
|
+
icon: 2,
|
4
|
+
);
|
5
|
+
|
6
|
+
.Polaris-Icon {
|
7
|
+
display: block;
|
8
|
+
height: rem(20px);
|
9
|
+
width: rem(20px);
|
10
|
+
max-height: 100%;
|
11
|
+
max-width: 100%;
|
12
|
+
margin: auto;
|
13
|
+
}
|
14
|
+
|
15
|
+
.Polaris-Icon--hasBackdrop {
|
16
|
+
position: relative;
|
17
|
+
display: flex;
|
18
|
+
align-items: center;
|
19
|
+
margin: spacing(tight);
|
20
|
+
|
21
|
+
&::after {
|
22
|
+
content: '';
|
23
|
+
position: absolute;
|
24
|
+
z-index: z-index(backdrop, $stacking-order);
|
25
|
+
top: -1 * spacing(tight);
|
26
|
+
bottom: -1 * spacing(tight);
|
27
|
+
left: -1 * spacing(tight);
|
28
|
+
right: -1 * spacing(tight);
|
29
|
+
border-radius: 50%;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.Polaris-Icon--colorWhite {
|
34
|
+
fill: color(white);
|
35
|
+
}
|
36
|
+
|
37
|
+
.Polaris-Icon--colorBlack {
|
38
|
+
fill: color(black);
|
39
|
+
}
|
40
|
+
|
41
|
+
.Polaris-Icon--colorSkyLighter {
|
42
|
+
fill: color(sky, lighter);
|
43
|
+
}
|
44
|
+
|
45
|
+
.Polaris-Icon--colorSkyLight {
|
46
|
+
fill: color(sky, light);
|
47
|
+
}
|
48
|
+
|
49
|
+
.Polaris-Icon--colorSky {
|
50
|
+
fill: color(sky);
|
51
|
+
}
|
52
|
+
|
53
|
+
.Polaris-Icon--colorSkyDark {
|
54
|
+
fill: color(sky, dark);
|
55
|
+
}
|
56
|
+
|
57
|
+
.Polaris-Icon--colorInkLightest {
|
58
|
+
fill: color(ink, lightest);
|
59
|
+
}
|
60
|
+
|
61
|
+
.Polaris-Icon--colorInkLighter {
|
62
|
+
fill: color(ink, lighter);
|
63
|
+
}
|
64
|
+
|
65
|
+
.Polaris-Icon--colorInkLight {
|
66
|
+
fill: color(ink, light);
|
67
|
+
}
|
68
|
+
|
69
|
+
.Polaris-Icon--colorInk {
|
70
|
+
fill: color(ink);
|
71
|
+
|
72
|
+
&::after {
|
73
|
+
background-color: color(sky);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.Polaris-Icon--colorBlueLighter {
|
78
|
+
fill: color(blue, lighter);
|
79
|
+
}
|
80
|
+
|
81
|
+
.Polaris-Icon--colorBlueLight {
|
82
|
+
fill: color(blue, light);
|
83
|
+
}
|
84
|
+
|
85
|
+
.Polaris-Icon--colorBlue {
|
86
|
+
fill: color(blue);
|
87
|
+
}
|
88
|
+
|
89
|
+
.Polaris-Icon--colorBlueDark {
|
90
|
+
fill: color(blue, dark);
|
91
|
+
|
92
|
+
&::after {
|
93
|
+
background-color: color(blue, light);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.Polaris-Icon--colorBlueDarker {
|
98
|
+
fill: color(blue, darker);
|
99
|
+
}
|
100
|
+
|
101
|
+
.Polaris-Icon--colorIndigoLighter {
|
102
|
+
fill: color(indigo, lighter);
|
103
|
+
}
|
104
|
+
|
105
|
+
.Polaris-Icon--colorIndigoLight {
|
106
|
+
fill: color(indigo, light);
|
107
|
+
}
|
108
|
+
|
109
|
+
.Polaris-Icon--colorIndigo {
|
110
|
+
fill: color(indigo);
|
111
|
+
}
|
112
|
+
|
113
|
+
.Polaris-Icon--colorIndigoDark {
|
114
|
+
fill: color(indigo, dark);
|
115
|
+
}
|
116
|
+
|
117
|
+
.Polaris-Icon--colorIndigoDarker {
|
118
|
+
fill: color(indigo, darker);
|
119
|
+
}
|
120
|
+
|
121
|
+
.Polaris-Icon--colorTealLighter {
|
122
|
+
fill: color(teal, lighter);
|
123
|
+
}
|
124
|
+
|
125
|
+
.Polaris-Icon--colorTealLight {
|
126
|
+
fill: color(teal, light);
|
127
|
+
}
|
128
|
+
|
129
|
+
.Polaris-Icon--colorTeal {
|
130
|
+
fill: color(teal);
|
131
|
+
|
132
|
+
&::after {
|
133
|
+
background-color: color(white);
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
.Polaris-Icon--colorTealDark {
|
138
|
+
fill: color(teal, dark);
|
139
|
+
|
140
|
+
&::after {
|
141
|
+
background-color: color(teal, light);
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
.Polaris-Icon--colorTealDarker {
|
146
|
+
fill: color(teal, darker);
|
147
|
+
}
|
148
|
+
|
149
|
+
.Polaris-Icon--colorGreenLighter {
|
150
|
+
fill: color(green, lighter);
|
151
|
+
}
|
152
|
+
|
153
|
+
.Polaris-Icon--colorGreen {
|
154
|
+
fill: color(green);
|
155
|
+
|
156
|
+
&::after {
|
157
|
+
background-color: color(green, lighter);
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
.Polaris-Icon--colorGreenDark {
|
162
|
+
fill: color(green, dark);
|
163
|
+
|
164
|
+
&::after {
|
165
|
+
background-color: color(green, light);
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
.Polaris-Icon--colorYellowLighter {
|
170
|
+
fill: color(yellow, lighter);
|
171
|
+
}
|
172
|
+
|
173
|
+
.Polaris-Icon--colorYellow {
|
174
|
+
fill: color(yellow);
|
175
|
+
}
|
176
|
+
|
177
|
+
.Polaris-Icon--colorYellowDark {
|
178
|
+
fill: color(yellow, dark);
|
179
|
+
|
180
|
+
&::after {
|
181
|
+
background-color: color(yellow, light);
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
.Polaris-Icon--colorOrange {
|
186
|
+
fill: color(orange);
|
187
|
+
}
|
188
|
+
|
189
|
+
.Polaris-Icon--colorOrangeDark {
|
190
|
+
fill: color(orange, dark);
|
191
|
+
}
|
192
|
+
|
193
|
+
.Polaris-Icon--colorRedLighter {
|
194
|
+
fill: color(red, lighter);
|
195
|
+
}
|
196
|
+
|
197
|
+
.Polaris-Icon--colorRed {
|
198
|
+
fill: color(red);
|
199
|
+
}
|
200
|
+
|
201
|
+
.Polaris-Icon--colorRedDark {
|
202
|
+
fill: color(red, dark);
|
203
|
+
|
204
|
+
&::after {
|
205
|
+
background-color: color(red, light);
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
.Polaris-Icon--colorPurple {
|
210
|
+
fill: color(purple);
|
211
|
+
}
|
212
|
+
|
213
|
+
.Polaris-Icon__Svg {
|
214
|
+
position: relative;
|
215
|
+
z-index: z-index(icon, $stacking-order);
|
216
|
+
display: block;
|
217
|
+
width: 100%;
|
218
|
+
color: color(white);
|
219
|
+
max-width: 100%;
|
220
|
+
max-height: 100%;
|
221
|
+
}
|
222
|
+
|
223
|
+
.Polaris-Icon__Placeholder {
|
224
|
+
padding-bottom: 100%;
|
225
|
+
background: currentColor;
|
226
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
$key-base-height: rem(24px);
|
2
|
+
$bottom-shadow-size: 2px;
|
3
|
+
|
4
|
+
.Polaris-KeyboardKey {
|
5
|
+
display: inline-block;
|
6
|
+
height: $key-base-height;
|
7
|
+
margin: 0 (spacing(extra-tight) / 2) $bottom-shadow-size;
|
8
|
+
padding: 0 spacing(extra-tight);
|
9
|
+
background-color: color(white, base);
|
10
|
+
box-shadow:
|
11
|
+
0 0 0 1px color(sky, dark),
|
12
|
+
0 $bottom-shadow-size 0 0 color(white),
|
13
|
+
0 $bottom-shadow-size 0 1px color(sky, dark);
|
14
|
+
border-radius: border-radius();
|
15
|
+
font-size: rem(12px);
|
16
|
+
font-weight: 500;
|
17
|
+
line-height: $key-base-height;
|
18
|
+
color: color(ink, lighter);
|
19
|
+
text-align: center;
|
20
|
+
min-width: $key-base-height;
|
21
|
+
user-select: none;
|
22
|
+
}
|