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,16 @@
|
|
1
|
+
/// Used to hide an element visually, but keeping it accessible for
|
2
|
+
/// accessibility tools.
|
3
|
+
|
4
|
+
@mixin visually-hidden {
|
5
|
+
// Need to make sure we override any existing styles.
|
6
|
+
// stylelint-disable declaration-no-important
|
7
|
+
position: absolute !important;
|
8
|
+
top: 0;
|
9
|
+
clip: rect(1px, 1px, 1px, 1px) !important;
|
10
|
+
overflow: hidden !important;
|
11
|
+
height: 1px !important;
|
12
|
+
width: 1px !important;
|
13
|
+
padding: 0 !important;
|
14
|
+
border: 0 !important;
|
15
|
+
// stylelint-enable declaration-no-important
|
16
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
$has-nav: false !default;
|
2
|
+
|
3
|
+
$stacked-content: em(layout-width(primary, min) + layout-width(secondary, min) + layout-width(inner-spacing));
|
4
|
+
$not-condensed-content: em(layout-width(page-content, not-condensed));
|
5
|
+
$partially-condensed-content: em(layout-width(page-content, partially-condensed));
|
6
|
+
|
7
|
+
$not-condensed-outer-spacing: em(2 * layout-width(outer-spacing, max));
|
8
|
+
$partially-condensed-outer-spacing: em(2 * layout-width(outer-spacing, min));
|
9
|
+
|
10
|
+
$not-condensed-min-page: $not-condensed-content + $not-condensed-outer-spacing;
|
11
|
+
$partially-condensed-min-page: $partially-condensed-content + $partially-condensed-outer-spacing;
|
12
|
+
|
13
|
+
$nav-size: em(layout-width(nav));
|
14
|
+
$nav-min-window: em(layout-width(page-with-nav));
|
15
|
+
|
16
|
+
@function breakpoint($value) {
|
17
|
+
@return em($value);
|
18
|
+
}
|
19
|
+
|
20
|
+
// These end up being too awkward because they are already multiline.
|
21
|
+
// stylelint-disable media-query-list-comma-newline-after
|
22
|
+
|
23
|
+
@mixin page-content-breakpoint-before($size) {
|
24
|
+
$size: breakpoint($size);
|
25
|
+
|
26
|
+
@if $has-nav {
|
27
|
+
@if $size < $partially-condensed-content {
|
28
|
+
@media
|
29
|
+
(max-width: #{min($nav-min-window, $size)}),
|
30
|
+
(min-width: #{$nav-min-window}) and (max-width: #{$nav-size + $size}) { @content; }
|
31
|
+
} @else if $size < $not-condensed-content {
|
32
|
+
@media
|
33
|
+
(max-width: #{min($nav-min-window, $size + $partially-condensed-outer-spacing)}),
|
34
|
+
(min-width: #{$nav-min-window}) and (max-width: #{$nav-size + $size + $not-condensed-outer-spacing}) { @content; }
|
35
|
+
} @else {
|
36
|
+
@media
|
37
|
+
(max-width: #{min($nav-min-window, $size + $partially-condensed-outer-spacing)}),
|
38
|
+
(min-width: #{$nav-min-window}) and (max-width: #{$nav-size + $size + $not-condensed-outer-spacing}) { @content; }
|
39
|
+
}
|
40
|
+
} @else {
|
41
|
+
@if $size < $partially-condensed-content {
|
42
|
+
@media (max-width: #{$size}) { @content; }
|
43
|
+
} @else if $size < $not-condensed-content {
|
44
|
+
@media (max-width: #{$size + $partially-condensed-outer-spacing}) { @content; }
|
45
|
+
} @else {
|
46
|
+
@media (max-width: #{$size + $not-condensed-outer-spacing}) { @content; }
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
@mixin page-content-breakpoint-after($size) {
|
52
|
+
$size: breakpoint($size);
|
53
|
+
|
54
|
+
@if $has-nav {
|
55
|
+
@if $size < $partially-condensed-content {
|
56
|
+
@media
|
57
|
+
(max-width: #{$nav-min-window}) and (min-width: #{$size}),
|
58
|
+
(min-width: #{$nav-size + $size}) { @content; }
|
59
|
+
} @else if $size < $not-condensed-content {
|
60
|
+
@media
|
61
|
+
(max-width: #{$nav-min-window}) and (min-width: #{$size + $partially-condensed-outer-spacing}),
|
62
|
+
(min-width: #{$nav-size + $size + $partially-condensed-outer-spacing}) { @content; }
|
63
|
+
} @else {
|
64
|
+
@media
|
65
|
+
(max-width: #{$nav-min-window}) and (min-width: #{$size + $not-condensed-outer-spacing}),
|
66
|
+
(min-width: #{$nav-size + $size + $not-condensed-outer-spacing}) { @content; }
|
67
|
+
}
|
68
|
+
} @else {
|
69
|
+
@if $size < $partially-condensed-content {
|
70
|
+
@media (min-width: #{$size}) { @content; }
|
71
|
+
} @else if $size < $not-condensed-content {
|
72
|
+
@media (min-width: #{$size + $partially-condensed-outer-spacing}) { @content; }
|
73
|
+
} @else {
|
74
|
+
@media (min-width: #{$size + $not-condensed-outer-spacing}) { @content; }
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
// stylelint-enable media-query-list-comma-newline-after
|
80
|
+
|
81
|
+
@mixin breakpoint-after($breakpoint) {
|
82
|
+
@media (min-width: #{breakpoint($breakpoint)}) {
|
83
|
+
@content;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
@mixin breakpoint-before($breakpoint) {
|
88
|
+
@media (max-width: #{breakpoint($breakpoint)}) {
|
89
|
+
@content;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
@mixin page-content-when-layout-stacked() {
|
94
|
+
@include page-content-breakpoint-before($stacked-content) {
|
95
|
+
@content;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
@mixin page-content-when-layout-not-stacked() {
|
100
|
+
@include page-content-breakpoint-after($stacked-content) {
|
101
|
+
@content;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
@mixin page-content-when-partially-condensed() {
|
106
|
+
@include page-content-breakpoint-before($not-condensed-content) {
|
107
|
+
@content;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
@mixin page-content-when-not-partially-condensed() {
|
112
|
+
@include page-content-breakpoint-after($not-condensed-content) {
|
113
|
+
@content;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
@mixin page-content-when-fully-condensed() {
|
118
|
+
@include page-content-breakpoint-before($partially-condensed-content) {
|
119
|
+
@content;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
@mixin page-content-when-not-fully-condensed() {
|
124
|
+
@include page-content-breakpoint-after($partially-condensed-content) {
|
125
|
+
@content;
|
126
|
+
}
|
127
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
@mixin button-filled($button-color, $focus-color, $outline-color: null) {
|
2
|
+
$border-color: darken($button-color, 10%);
|
3
|
+
$active-color: darken($button-color, 15%);
|
4
|
+
|
5
|
+
background: linear-gradient(to bottom, lighten($button-color, 2%), darken($button-color, 2%));
|
6
|
+
border-color: $border-color;
|
7
|
+
box-shadow:
|
8
|
+
inset 0 1px 0 0 lighten($button-color, 3%),
|
9
|
+
shadow(faint),
|
10
|
+
0 0 0 0 transparent;
|
11
|
+
color: color(white);
|
12
|
+
|
13
|
+
&:hover {
|
14
|
+
background: linear-gradient(to bottom, $button-color, darken($button-color, 5%));
|
15
|
+
border-color: $border-color;
|
16
|
+
}
|
17
|
+
|
18
|
+
&:focus {
|
19
|
+
border-color: $focus-color;
|
20
|
+
box-shadow:
|
21
|
+
inset 0 1px 0 0 lighten($button-color, 5%),
|
22
|
+
shadow(faint),
|
23
|
+
0 0 0 1px $focus-color;
|
24
|
+
}
|
25
|
+
|
26
|
+
&:active {
|
27
|
+
background: linear-gradient(to bottom, $border-color, $border-color);
|
28
|
+
border-color: $active-color;
|
29
|
+
box-shadow:
|
30
|
+
inset 0 0 0 0 transparent,
|
31
|
+
shadow(faint),
|
32
|
+
0 0 1px 0 $active-color;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
@mixin button-outline($outline-color) {
|
37
|
+
background: transparent;
|
38
|
+
border-color: rgba($outline-color, 0.4);
|
39
|
+
box-shadow: none;
|
40
|
+
color: darken($outline-color, 20%);
|
41
|
+
|
42
|
+
&:hover {
|
43
|
+
background: rgba($outline-color, 0.05);
|
44
|
+
border-color: rgba($outline-color, 0.4);
|
45
|
+
}
|
46
|
+
|
47
|
+
&:focus {
|
48
|
+
border-color: rgba($outline-color, 0.8);
|
49
|
+
box-shadow: 0 0 0 1px rgba($outline-color, 0.8);
|
50
|
+
}
|
51
|
+
|
52
|
+
&:active {
|
53
|
+
background: rgba($outline-color, 0.1);
|
54
|
+
box-shadow: none;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
@function plain-button-background() {
|
59
|
+
@return rgba(color(ink), 0.1);
|
60
|
+
}
|
61
|
+
|
62
|
+
@mixin plain-button-backdrop() {
|
63
|
+
position: absolute;
|
64
|
+
top: -2px;
|
65
|
+
bottom: -2px;
|
66
|
+
left: -5px;
|
67
|
+
right: -5px;
|
68
|
+
display: block;
|
69
|
+
background: plain-button-background();
|
70
|
+
border-radius: border-radius();
|
71
|
+
transition: opacity duration() easing();
|
72
|
+
}
|
73
|
+
|
74
|
+
@mixin unstyled-button() {
|
75
|
+
appearance: none;
|
76
|
+
margin: 0;
|
77
|
+
padding: 0;
|
78
|
+
background: none;
|
79
|
+
border: none;
|
80
|
+
font-size: inherit;
|
81
|
+
line-height: inherit;
|
82
|
+
cursor: pointer;
|
83
|
+
|
84
|
+
&:focus {
|
85
|
+
outline: none;
|
86
|
+
}
|
87
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
@function control-height() {
|
2
|
+
@return rem(36px);
|
3
|
+
}
|
4
|
+
|
5
|
+
@function control-vertical-padding() {
|
6
|
+
@return (control-height() - line-height(input) - rem(2px)) / 2;
|
7
|
+
}
|
8
|
+
|
9
|
+
@function control-icon-transition() {
|
10
|
+
@return transform duration(fast) easing(in);
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin control-backdrop($style: base) {
|
14
|
+
@if $style == base {
|
15
|
+
background: color(sky, dark);
|
16
|
+
border: border(transparent);
|
17
|
+
box-shadow:
|
18
|
+
0 0 0 1px transparent,
|
19
|
+
shadow(faint);
|
20
|
+
border-radius: border-radius();
|
21
|
+
transition-property: box-shadow, background;
|
22
|
+
transition-duration: duration();
|
23
|
+
transition-timing-function: easing();
|
24
|
+
|
25
|
+
&::after {
|
26
|
+
content: '';
|
27
|
+
position: absolute;
|
28
|
+
top: 0;
|
29
|
+
bottom: 0;
|
30
|
+
left: 0;
|
31
|
+
right: 0;
|
32
|
+
display: block;
|
33
|
+
background: linear-gradient(to bottom, color(white), color(sky, lighter));
|
34
|
+
border-radius: calc(#{border-radius()} - 1px);
|
35
|
+
}
|
36
|
+
} @else if $style == focused {
|
37
|
+
background: color(indigo);
|
38
|
+
box-shadow:
|
39
|
+
0 0 0 1px color(indigo),
|
40
|
+
shadow(transparent);
|
41
|
+
|
42
|
+
&::after { background: color(white); }
|
43
|
+
} @else if $style == error {
|
44
|
+
background: color(red);
|
45
|
+
box-shadow: 0 0 0 1px transparent;
|
46
|
+
|
47
|
+
&::after { background: color(red, lighter); }
|
48
|
+
} @else if $style == disabled {
|
49
|
+
background: color(sky);
|
50
|
+
box-shadow: none;
|
51
|
+
|
52
|
+
&::after { background: color(sky, lighter); }
|
53
|
+
} @else if $style == focused-error {
|
54
|
+
background: color(indigo);
|
55
|
+
box-shadow: 0 0 0 1px color(indigo);
|
56
|
+
|
57
|
+
&::after { background: color(red, lighter); }
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// To be used on flex items. Resolves some common layout issues, such as
|
2
|
+
/// text truncation not respecting padding or breaking out of container.
|
3
|
+
/// https://css-tricks.com/flexbox-truncated-text/
|
4
|
+
|
5
|
+
@mixin layout-flex-fix {
|
6
|
+
min-width: 0;
|
7
|
+
max-width: 100%;
|
8
|
+
}
|
@@ -0,0 +1,128 @@
|
|
1
|
+
$typography-condensed: em(640px);
|
2
|
+
|
3
|
+
@mixin when-typography-not-condensed {
|
4
|
+
@include breakpoint-after($typography-condensed) { @content; }
|
5
|
+
}
|
6
|
+
|
7
|
+
@mixin when-typography-condensed {
|
8
|
+
@include breakpoint-before($typography-condensed) { @content; }
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin text-style-caption {
|
12
|
+
font-size: font-size(caption);
|
13
|
+
font-weight: 400;
|
14
|
+
line-height: line-height(caption);
|
15
|
+
|
16
|
+
@include when-typography-not-condensed {
|
17
|
+
font-size: font-size(caption, large-screen);
|
18
|
+
line-height: line-height(caption, large-screen);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
@mixin text-style-heading {
|
23
|
+
font-size: font-size(heading);
|
24
|
+
font-weight: 600;
|
25
|
+
line-height: line-height(heading);
|
26
|
+
|
27
|
+
@include when-typography-not-condensed {
|
28
|
+
font-size: font-size(heading, large-screen);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@mixin text-style-subheading {
|
33
|
+
font-size: font-size(subheading);
|
34
|
+
font-weight: 700;
|
35
|
+
line-height: line-height(subheading);
|
36
|
+
text-transform: uppercase;
|
37
|
+
|
38
|
+
@include when-typography-not-condensed {
|
39
|
+
font-size: font-size(subheading, large-screen);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
@mixin text-style-input {
|
44
|
+
font-size: font-size(input);
|
45
|
+
font-weight: 400;
|
46
|
+
line-height: line-height(input);
|
47
|
+
|
48
|
+
text-transform: initial;
|
49
|
+
letter-spacing: initial;
|
50
|
+
|
51
|
+
@include when-typography-not-condensed {
|
52
|
+
font-size: font-size(input, large-screen);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
@mixin text-style-body {
|
57
|
+
font-size: font-size(body);
|
58
|
+
font-weight: 400;
|
59
|
+
line-height: line-height(body);
|
60
|
+
|
61
|
+
text-transform: initial;
|
62
|
+
letter-spacing: initial;
|
63
|
+
|
64
|
+
@include when-typography-not-condensed {
|
65
|
+
font-size: font-size(body, large-screen);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
@mixin text-style-display-x-large {
|
70
|
+
font-size: font-size(display-x-large);
|
71
|
+
font-weight: 600;
|
72
|
+
line-height: line-height(display-x-large);
|
73
|
+
|
74
|
+
@include when-typography-not-condensed {
|
75
|
+
font-size: font-size(display-x-large, large-screen);
|
76
|
+
line-height: line-height(display-x-large, large-screen);
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
@mixin text-style-display-large {
|
81
|
+
font-size: font-size(display-large);
|
82
|
+
font-weight: 600;
|
83
|
+
line-height: line-height(display-large);
|
84
|
+
|
85
|
+
@include when-typography-not-condensed {
|
86
|
+
font-size: font-size(display-large, large-screen);
|
87
|
+
line-height: line-height(display-large, large-screen);
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
@mixin text-style-display-medium {
|
92
|
+
font-size: font-size(display-medium);
|
93
|
+
font-weight: 400;
|
94
|
+
line-height: line-height(display-medium);
|
95
|
+
|
96
|
+
@include when-typography-not-condensed {
|
97
|
+
font-size: font-size(display-medium, large-screen);
|
98
|
+
line-height: line-height(display-medium, large-screen);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
@mixin text-style-display-small {
|
103
|
+
font-size: font-size(display-small);
|
104
|
+
font-weight: 400;
|
105
|
+
line-height: line-height(display-small);
|
106
|
+
|
107
|
+
@include when-typography-not-condensed {
|
108
|
+
font-size: font-size(display-small, large-screen);
|
109
|
+
line-height: line-height(display-small, large-screen);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
@mixin text-emphasis-placeholder() {
|
114
|
+
color: color(ink, lightest);
|
115
|
+
}
|
116
|
+
|
117
|
+
@mixin text-emphasis-subdued($for-background: null) {
|
118
|
+
color: color(ink, lighter, $for-background: $for-background);
|
119
|
+
}
|
120
|
+
|
121
|
+
@mixin text-emphasis-strong {
|
122
|
+
font-weight: 700;
|
123
|
+
}
|
124
|
+
|
125
|
+
@mixin text-emphasis-normal($for-background: null) {
|
126
|
+
font-weight: 400;
|
127
|
+
color: color(ink, $for-background: $for-background);
|
128
|
+
}
|