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,28 @@
|
|
1
|
+
$shadow-color: rgba(color(black), 0.1);
|
2
|
+
$shadow-size: rem(20px);
|
3
|
+
$shadow-bottom: inset 0 (-1 * $shadow-size) $shadow-size (-1 * $shadow-size) $shadow-color;
|
4
|
+
$shadow-top: inset 0 $shadow-size $shadow-size (-1 * $shadow-size) $shadow-color;
|
5
|
+
|
6
|
+
.Polaris-Scrollable {
|
7
|
+
-webkit-overflow-scrolling: touch;
|
8
|
+
}
|
9
|
+
|
10
|
+
.Polaris-Scrollable--horizontal {
|
11
|
+
overflow-x: auto;
|
12
|
+
}
|
13
|
+
|
14
|
+
.Polaris-Scrollable--vertical {
|
15
|
+
overflow-y: auto;
|
16
|
+
}
|
17
|
+
|
18
|
+
.Polaris-Scrollable--hasTopShadow {
|
19
|
+
box-shadow: $shadow-top;
|
20
|
+
}
|
21
|
+
|
22
|
+
.Polaris-Scrollable--hasBottomShadow {
|
23
|
+
box-shadow: $shadow-bottom;
|
24
|
+
}
|
25
|
+
|
26
|
+
.Polaris-Scrollable--hasTopShadow.Polaris-Scrollable--hasBottomShadow {
|
27
|
+
box-shadow: $shadow-top, $shadow-bottom;
|
28
|
+
}
|
@@ -0,0 +1,103 @@
|
|
1
|
+
$stacking-order: (
|
2
|
+
backdrop: 10,
|
3
|
+
input: 20,
|
4
|
+
icon: 30
|
5
|
+
);
|
6
|
+
|
7
|
+
$icon-size: rem(16px);
|
8
|
+
$input-horizontal-padding: spacing(tight) * 1.5;
|
9
|
+
|
10
|
+
// Without a small amount of vertical adjustment, the text
|
11
|
+
// in the Select does not appear vertically centered.
|
12
|
+
$input-vertical-adjust: rem(1px);
|
13
|
+
|
14
|
+
.Polaris-Select {
|
15
|
+
position: relative;
|
16
|
+
|
17
|
+
// IE 11 fix to remove default dropdown arrow
|
18
|
+
select::-ms-expand {
|
19
|
+
display: none;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.Polaris-Select--disabled {
|
24
|
+
.Polaris-Select__Backdrop {
|
25
|
+
@include control-backdrop(disabled);
|
26
|
+
}
|
27
|
+
|
28
|
+
.Polaris-Select__Icon {
|
29
|
+
opacity: 0.4;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.Polaris-Select--error {
|
34
|
+
.Polaris-Select__Backdrop {
|
35
|
+
@include control-backdrop(error);
|
36
|
+
}
|
37
|
+
|
38
|
+
// Need to override the higher specificity of the sibling selector
|
39
|
+
// so that errors still have red borders.
|
40
|
+
// stylelint-disable-next-line selector-max-specificity
|
41
|
+
.Polaris-Select__Input:focus ~ .Polaris-Select__Backdrop {
|
42
|
+
@include control-backdrop(focused-error);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.Polaris-Select--placeholder {
|
47
|
+
.Polaris-Select__Input {
|
48
|
+
color: color(ink, lightest);
|
49
|
+
}
|
50
|
+
|
51
|
+
&.Polaris-Select--error .Polaris-Select__Input {
|
52
|
+
// This is the only place this color is used.
|
53
|
+
// stylelint-disable-next-line color-no-hex
|
54
|
+
color: #9c9798;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.Polaris-Select__Backdrop {
|
59
|
+
@include control-backdrop;
|
60
|
+
position: absolute;
|
61
|
+
z-index: z-index(backdrop, $stacking-order);
|
62
|
+
top: 0;
|
63
|
+
bottom: 0;
|
64
|
+
left: 0;
|
65
|
+
right: 0;
|
66
|
+
}
|
67
|
+
|
68
|
+
.Polaris-Select__Icon {
|
69
|
+
@include recolor-icon(color(ink, lighter));
|
70
|
+
position: absolute;
|
71
|
+
z-index: z-index(icon, $stacking-order);
|
72
|
+
top: 50%;
|
73
|
+
right: $input-horizontal-padding;
|
74
|
+
transform: translateY(-50%);
|
75
|
+
margin-right: (-0.25 * $icon-size);
|
76
|
+
pointer-events: none;
|
77
|
+
}
|
78
|
+
|
79
|
+
.Polaris-Select__Input {
|
80
|
+
@include text-style-input;
|
81
|
+
position: relative;
|
82
|
+
z-index: z-index(input, $stacking-order);
|
83
|
+
width: 100%;
|
84
|
+
min-height: control-height();
|
85
|
+
margin: 0;
|
86
|
+
padding: control-vertical-padding() ($input-horizontal-padding + $icon-size) control-vertical-padding() $input-horizontal-padding;
|
87
|
+
background: transparent;
|
88
|
+
border: border(transparent);
|
89
|
+
appearance: none;
|
90
|
+
line-height: rem(20px);
|
91
|
+
|
92
|
+
&:focus {
|
93
|
+
outline: none;
|
94
|
+
|
95
|
+
~ .Polaris-Select__Backdrop {
|
96
|
+
@include control-backdrop(focused);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
&:disabled {
|
101
|
+
color: color(ink, lightest);
|
102
|
+
}
|
103
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
$feature-width: rem(350px);
|
2
|
+
|
3
|
+
.Polaris-SettingAction {
|
4
|
+
display: flex;
|
5
|
+
flex-wrap: wrap;
|
6
|
+
align-items: center;
|
7
|
+
margin-top: -1 * spacing();
|
8
|
+
margin-left: -1 * spacing();
|
9
|
+
}
|
10
|
+
|
11
|
+
.Polaris-SettingAction__Setting,
|
12
|
+
.Polaris-SettingAction__Action {
|
13
|
+
flex: 0 0 auto;
|
14
|
+
margin-top: spacing();
|
15
|
+
margin-left: spacing();
|
16
|
+
max-width: calc(100% - #{spacing()});
|
17
|
+
min-width: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
.Polaris-SettingAction__Setting {
|
21
|
+
flex: 1 0 $feature-width;
|
22
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
/// Adjusts the spacing for the stack and contained items.
|
2
|
+
/// @param {String} $spacing - The spacing variant to use.
|
3
|
+
|
4
|
+
@mixin stack-spacing($spacing: base) {
|
5
|
+
margin-top: -1 * spacing($spacing);
|
6
|
+
margin-left: -1 * spacing($spacing);
|
7
|
+
|
8
|
+
> .Polaris-Stack__Item {
|
9
|
+
margin-top: spacing($spacing);
|
10
|
+
margin-left: spacing($spacing);
|
11
|
+
max-width: calc(100% - #{spacing($spacing)});
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.Polaris-Stack {
|
16
|
+
@include stack-spacing;
|
17
|
+
display: flex;
|
18
|
+
flex-wrap: wrap;
|
19
|
+
align-items: stretch;
|
20
|
+
}
|
21
|
+
|
22
|
+
.Polaris-Stack--vertical {
|
23
|
+
flex-direction: column;
|
24
|
+
}
|
25
|
+
|
26
|
+
.Polaris-Stack--spacingNone {
|
27
|
+
@include stack-spacing(none);
|
28
|
+
}
|
29
|
+
|
30
|
+
.Polaris-Stack--spacingTight {
|
31
|
+
@include stack-spacing(tight);
|
32
|
+
}
|
33
|
+
|
34
|
+
.Polaris-Stack--spacingLoose {
|
35
|
+
@include stack-spacing(loose);
|
36
|
+
}
|
37
|
+
|
38
|
+
.Polaris-Stack--spacingExtraLoose {
|
39
|
+
@include stack-spacing(extra-loose);
|
40
|
+
}
|
41
|
+
|
42
|
+
.Polaris-Stack--distributionLeading {
|
43
|
+
justify-content: flex-start;
|
44
|
+
}
|
45
|
+
|
46
|
+
.Polaris-Stack--distributionTrailing {
|
47
|
+
justify-content: flex-end;
|
48
|
+
}
|
49
|
+
|
50
|
+
.Polaris-Stack--distributionCenter {
|
51
|
+
justify-content: center;
|
52
|
+
}
|
53
|
+
|
54
|
+
.Polaris-Stack--distributionEqualSpacing {
|
55
|
+
justify-content: space-between;
|
56
|
+
}
|
57
|
+
|
58
|
+
.Polaris-Stack--distributionFill > .Polaris-Stack__Item {
|
59
|
+
flex: 1 1 auto;
|
60
|
+
}
|
61
|
+
|
62
|
+
.Polaris-Stack--distributionFillEvenly > .Polaris-Stack__Item {
|
63
|
+
flex: 1 1 auto;
|
64
|
+
|
65
|
+
@supports (min-width: fit-content) {
|
66
|
+
flex: 1 0 0%;
|
67
|
+
min-width: fit-content;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.Polaris-Stack--alignmentLeading {
|
72
|
+
align-items: flex-start;
|
73
|
+
}
|
74
|
+
|
75
|
+
.Polaris-Stack--alignmentTrailing {
|
76
|
+
align-items: flex-end;
|
77
|
+
}
|
78
|
+
|
79
|
+
.Polaris-Stack--alignmentCenter {
|
80
|
+
align-items: center;
|
81
|
+
}
|
82
|
+
|
83
|
+
.Polaris-Stack--alignmentFill {
|
84
|
+
align-items: stretch;
|
85
|
+
}
|
86
|
+
|
87
|
+
.Polaris-Stack--alignmentBaseline {
|
88
|
+
align-items: baseline;
|
89
|
+
}
|
90
|
+
|
91
|
+
.Polaris-Stack__Item {
|
92
|
+
flex: 0 0 auto;
|
93
|
+
min-width: 0;
|
94
|
+
}
|
95
|
+
|
96
|
+
.Polaris-Stack__Item--fill {
|
97
|
+
flex: 1 1 auto;
|
98
|
+
}
|
@@ -0,0 +1,150 @@
|
|
1
|
+
$border-bottom-height: rem(3px);
|
2
|
+
$item-min-height: rem(16px);
|
3
|
+
$item-vertical-padding: $item-min-height / 2;
|
4
|
+
$focus-state-box-shadow-color: rgba(92, 106, 196, 0.8);
|
5
|
+
|
6
|
+
.Polaris-Tabs {
|
7
|
+
display: flex;
|
8
|
+
margin: 0;
|
9
|
+
padding: 0;
|
10
|
+
border-bottom: border();
|
11
|
+
list-style: none;
|
12
|
+
}
|
13
|
+
|
14
|
+
.Polaris-Tabs--fitted {
|
15
|
+
.Polaris-Tabs__TabContainer {
|
16
|
+
flex: 1 1 auto;
|
17
|
+
}
|
18
|
+
|
19
|
+
.Polaris-Tabs__Tab {
|
20
|
+
padding: 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
.Polaris-Tabs__Title {
|
24
|
+
width: 100%;
|
25
|
+
padding: spacing(tight) spacing();
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.Polaris-Tabs--fillSpace {
|
30
|
+
.Polaris-Tabs__TabContainer {
|
31
|
+
flex: 1 1 auto;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.Polaris-Tabs__TabContainer {
|
36
|
+
display: flex;
|
37
|
+
margin: 0;
|
38
|
+
padding: 0;
|
39
|
+
}
|
40
|
+
|
41
|
+
.Polaris-Tabs__Tab {
|
42
|
+
@include unstyled-link;
|
43
|
+
@include unstyled-button;
|
44
|
+
@include text-style-body;
|
45
|
+
@include text-emphasis-subdued;
|
46
|
+
position: relative;
|
47
|
+
justify-content: center;
|
48
|
+
width: 100%;
|
49
|
+
min-width: 100%; // IE11 fix for overflowing flex items from parent container
|
50
|
+
margin-top: 1px;
|
51
|
+
margin-bottom: -1px;
|
52
|
+
padding: 0 spacing();
|
53
|
+
outline: none;
|
54
|
+
text-align: center;
|
55
|
+
white-space: nowrap;
|
56
|
+
text-decoration: none;
|
57
|
+
cursor: pointer;
|
58
|
+
|
59
|
+
&:hover {
|
60
|
+
.Polaris-Tabs__Title {
|
61
|
+
@include text-emphasis-normal;
|
62
|
+
border-bottom: $border-bottom-height solid color(sky);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
&:focus {
|
67
|
+
box-shadow: inset 0 0 2px 0 $focus-state-box-shadow-color, 0 0 2px 0 $focus-state-box-shadow-color;
|
68
|
+
|
69
|
+
.Polaris-Tabs__Title {
|
70
|
+
@include text-emphasis-normal;
|
71
|
+
border-bottom: $border-bottom-height solid color(indigo, light);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
&:visited {
|
76
|
+
color: color(ink, lighter);
|
77
|
+
}
|
78
|
+
|
79
|
+
&.Polaris-Tabs__Tab--selected {
|
80
|
+
.Polaris-Tabs__Title {
|
81
|
+
border-bottom: $border-bottom-height solid color(indigo);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.Polaris-Tabs__Tab--selected {
|
87
|
+
@include text-emphasis-normal;
|
88
|
+
}
|
89
|
+
|
90
|
+
.Polaris-Tabs__Title {
|
91
|
+
display: block;
|
92
|
+
padding: spacing(tight) 0 (spacing(tight) - $border-bottom-height) 0;
|
93
|
+
border-bottom: $border-bottom-height solid transparent;
|
94
|
+
}
|
95
|
+
|
96
|
+
.Polaris-Tabs__Panel {
|
97
|
+
display: block;
|
98
|
+
}
|
99
|
+
|
100
|
+
.Polaris-Tabs__List {
|
101
|
+
list-style: none;
|
102
|
+
margin: 0;
|
103
|
+
padding: spacing(tight) 0;
|
104
|
+
}
|
105
|
+
|
106
|
+
.Polaris-Tabs__Item {
|
107
|
+
@include unstyled-link;
|
108
|
+
@include unstyled-button;
|
109
|
+
display: block;
|
110
|
+
width: 100%;
|
111
|
+
min-height: $item-min-height;
|
112
|
+
padding: $item-vertical-padding spacing();
|
113
|
+
cursor: pointer;
|
114
|
+
|
115
|
+
&:hover,
|
116
|
+
&:focus,
|
117
|
+
&:active {
|
118
|
+
background: color(indigo);
|
119
|
+
outline: none;
|
120
|
+
color: color(white);
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
.Polaris-Tabs__DisclosureTab {
|
125
|
+
display: none;
|
126
|
+
padding-top: (0.625 * spacing());
|
127
|
+
}
|
128
|
+
|
129
|
+
.Polaris-Tabs__DisclosureTab--visible {
|
130
|
+
display: block;
|
131
|
+
}
|
132
|
+
|
133
|
+
.Polaris-Tabs__DisclosureActivator {
|
134
|
+
@include recolor-icon(color(ink, lighter));
|
135
|
+
position: relative;
|
136
|
+
justify-content: center;
|
137
|
+
height: 100%;
|
138
|
+
padding: 0 spacing();
|
139
|
+
background-color: transparent;
|
140
|
+
cursor: pointer;
|
141
|
+
border: none;
|
142
|
+
outline: none;
|
143
|
+
text-align: center;
|
144
|
+
}
|
145
|
+
|
146
|
+
.Polaris-Tabs__TabMeasurer {
|
147
|
+
display: flex;
|
148
|
+
visibility: hidden;
|
149
|
+
height: 0;
|
150
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
$height: rem(28px);
|
2
|
+
$icon-size: rem(16px);
|
3
|
+
|
4
|
+
.Polaris-Tag {
|
5
|
+
display: inline-flex;
|
6
|
+
overflow: hidden;
|
7
|
+
align-items: center;
|
8
|
+
min-height: $height;
|
9
|
+
padding-left: spacing(tight);
|
10
|
+
background-color: color(sky);
|
11
|
+
border-radius: border-radius();
|
12
|
+
color: color(ink);
|
13
|
+
}
|
14
|
+
|
15
|
+
.Polaris-Tag__Button {
|
16
|
+
@include recolor-icon(color(ink, lighter));
|
17
|
+
@include unstyled-button;
|
18
|
+
display: block;
|
19
|
+
height: $height;
|
20
|
+
width: $height;
|
21
|
+
margin-left: spacing(extra-tight);
|
22
|
+
will-change: background, fill;
|
23
|
+
transition-property: background, fill;
|
24
|
+
transition-duration: duration();
|
25
|
+
transition-timing-function: easing();
|
26
|
+
|
27
|
+
&:hover,
|
28
|
+
&:focus,
|
29
|
+
&:active {
|
30
|
+
@include recolor-icon(color(ink));
|
31
|
+
background: color(sky, dark);
|
32
|
+
}
|
33
|
+
|
34
|
+
&:active {
|
35
|
+
background: rgba(color(ink, lightest), 0.6);
|
36
|
+
}
|
37
|
+
}
|