@matteusan/himig 1.3.4 → 1.4.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.
- package/.yarn/cache/@matteusan-pintig-file-c8b932c391-8cba90ad6a.zip +0 -0
- package/.yarn/install-state.gz +0 -0
- package/_index.scss +38 -38
- package/ms-badge/_badge-base.scss +2 -2
- package/ms-badge/_badge-extend.scss +5 -5
- package/ms-badge/_badge-styles.scss +11 -11
- package/ms-button/_button-base.scss +13 -13
- package/ms-button/_button-extend.scss +5 -5
- package/ms-button/_button-mixins.scss +32 -32
- package/ms-button/_button-styles.scss +29 -29
- package/ms-card/_card-base.scss +50 -50
- package/ms-card/_card-extend.scss +5 -5
- package/ms-card/_card-styles.scss +16 -16
- package/ms-form-field/_form-field-base.scss +16 -16
- package/ms-form-field/_form-field-extend.scss +5 -5
- package/ms-form-field/_form-field-styles.scss +72 -72
- package/ms-list/_list-base.scss +5 -5
- package/ms-list/_list-extend.scss +5 -5
- package/ms-list/_list-styles.scss +20 -20
- package/ms-select-field/_select-field-base.scss +13 -13
- package/ms-select-field/_select-field-extend.scss +5 -5
- package/ms-select-field/_select-field-styles.scss +69 -69
- package/ms-tick-field/_tick-field-base.scss +10 -10
- package/ms-tick-field/_tick-field-extend.scss +5 -5
- package/ms-tick-field/_tick-field-styles.scss +46 -46
- package/ms-utils/_color-utils.scss +10 -10
- package/ms-utils/_consts.scss +1 -1
- package/ms-utils/_layout-utils.scss +19 -19
- package/ms-utils/_struct-utils.scss +41 -41
- package/ms-utils/_typography-utils.scss +40 -22
- package/ms-utils/_util-helpers.scss +4 -4
- package/package.json +2 -1
- package/ms-core/README.md +0 -2
- package/ms-core/_index.scss +0 -77
- package/ms-core/breakpoint/_breakpoint-sentro.scss +0 -53
- package/ms-core/breakpoint/_index.scss +0 -23
- package/ms-core/color/_color-constants.scss +0 -33
- package/ms-core/color/_color-setters.scss +0 -75
- package/ms-core/color/_color-utils.scss +0 -62
- package/ms-core/color/_color-validators.scss +0 -59
- package/ms-core/color/_index.scss +0 -25
- package/ms-core/component/_component-extend.scss +0 -56
- package/ms-core/component/_index.scss +0 -23
- package/ms-core/component/component-base.ts +0 -81
- package/ms-core/component/component-properties.ts +0 -25
- package/ms-core/component/index.ts +0 -29
- package/ms-core/component/types/ms-component.d.ts +0 -24
- package/ms-core/index.ts +0 -29
- package/ms-core/package.json +0 -15
- package/ms-core/sprite/_index.scss +0 -23
- package/ms-core/sprite/_sprite-mixins.scss +0 -29
- package/ms-core/struct/_index.scss +0 -24
- package/ms-core/struct/_struct-setters.scss +0 -98
- package/ms-core/struct/_struct-utils.scss +0 -218
- package/ms-core/struct/_struct-validators.scss +0 -57
- package/ms-core/theme/_index.scss +0 -30
- package/ms-core/theme/_theme-get.scss +0 -41
- package/ms-core/theme/_theme-keys.scss +0 -43
- package/ms-core/theme/_theme-merge.scss +0 -46
- package/ms-core/theme/_theme-properties.scss +0 -61
- package/ms-core/theme/_theme-setters.scss +0 -167
- package/ms-core/theme/_theme-tokens.scss +0 -57
- package/ms-core/tokens/_index.scss +0 -23
- package/ms-core/tokens/_token-data.scss +0 -249
- package/ms-core/tokens/_token-methods.scss +0 -118
- package/ms-core/tools/_index.scss +0 -27
- package/ms-core/tools/_tools-color.scss +0 -79
- package/ms-core/tools/_tools-helpers.scss +0 -30
- package/ms-core/tools/_tools-sentro.scss +0 -52
- package/ms-core/tools/_tools-string.scss +0 -45
- package/ms-core/tools/_tools-validation.scss +0 -71
- package/ms-core/typography/_index.scss +0 -24
- package/ms-core/typography/_typography-setters.scss +0 -78
- package/ms-core/typography/_typography-utils.scss +0 -76
- package/ms-core/typography/_typography-validators.scss +0 -47
package/ms-card/_card-base.scss
CHANGED
|
@@ -20,39 +20,39 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
//---------------------------------------------------
|
|
22
22
|
|
|
23
|
-
@use '
|
|
23
|
+
@use '@matteusan/pintig';
|
|
24
24
|
@use 'sass:map';
|
|
25
25
|
|
|
26
26
|
@mixin init(
|
|
27
27
|
$struct,
|
|
28
28
|
$typography,
|
|
29
29
|
) {
|
|
30
|
-
$radius:
|
|
31
|
-
$padding:
|
|
32
|
-
$section-gap:
|
|
33
|
-
$header-gap:
|
|
34
|
-
$footer-gap:
|
|
30
|
+
$radius: pintig.theme-get($struct, 'radius');
|
|
31
|
+
$padding: pintig.theme-get($struct, 'padding');
|
|
32
|
+
$section-gap: pintig.theme-get($struct, 'gap', 'section');
|
|
33
|
+
$header-gap: pintig.theme-get($struct, 'gap', 'header');
|
|
34
|
+
$footer-gap: pintig.theme-get($struct, 'gap', 'footer');
|
|
35
35
|
|
|
36
|
-
$title-family:
|
|
37
|
-
$title-size:
|
|
38
|
-
$title-weight:
|
|
39
|
-
$title-line-height:
|
|
36
|
+
$title-family: pintig.theme-get($typography, 'family', 'title');
|
|
37
|
+
$title-size: pintig.theme-get($typography, 'size', 'title');
|
|
38
|
+
$title-weight: pintig.theme-get($typography, 'weight', 'title');
|
|
39
|
+
$title-line-height: pintig.theme-get($typography, 'line-height', 'title');
|
|
40
40
|
|
|
41
|
-
$subtitle-family:
|
|
42
|
-
$subtitle-size:
|
|
43
|
-
$subtitle-weight:
|
|
44
|
-
$subtitle-line-height:
|
|
41
|
+
$subtitle-family: pintig.theme-get($typography, 'family', 'subtitle');
|
|
42
|
+
$subtitle-size: pintig.theme-get($typography, 'size', 'subtitle');
|
|
43
|
+
$subtitle-weight: pintig.theme-get($typography, 'weight', 'subtitle');
|
|
44
|
+
$subtitle-line-height: pintig.theme-get($typography, 'line-height', 'subtitle');
|
|
45
45
|
|
|
46
|
-
$content-family:
|
|
47
|
-
$content-size:
|
|
48
|
-
$content-weight:
|
|
49
|
-
$content-line-height:
|
|
46
|
+
$content-family: pintig.theme-get($typography, 'family');
|
|
47
|
+
$content-size: pintig.theme-get($typography, 'size');
|
|
48
|
+
$content-weight: pintig.theme-get($typography, 'weight');
|
|
49
|
+
$content-line-height: pintig.theme-get($typography, 'line-height');
|
|
50
50
|
|
|
51
|
-
$icon-size:
|
|
51
|
+
$icon-size: pintig.theme-get($struct, 'size', 'icon');
|
|
52
52
|
|
|
53
53
|
.ms-card {
|
|
54
|
-
// @include
|
|
55
|
-
@include
|
|
54
|
+
// @include pintig.key-bind('card-section-gap', pintig.primitive-token-switch('spacing.#{$section-gap}', $section-gap));
|
|
55
|
+
@include pintig.struct-gap('card-section', $section-gap, 'bind');
|
|
56
56
|
// overflow: hidden;
|
|
57
57
|
|
|
58
58
|
@content;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
height: 100%;
|
|
63
63
|
max-height: 120px;
|
|
64
64
|
overflow: hidden;
|
|
65
|
-
@include
|
|
65
|
+
@include pintig.struct-apply('card-media', (
|
|
66
66
|
radius: ($radius $radius 0 0),
|
|
67
67
|
));
|
|
68
68
|
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
display: flex;
|
|
79
79
|
flex-flow: row nowrap;
|
|
80
80
|
justify-content: space-between;
|
|
81
|
-
gap:
|
|
82
|
-
@include
|
|
83
|
-
@include
|
|
81
|
+
gap: pintig.key-create('card-header-gap', pintig.primitive-token-switch('spacing.#{$header-gap}', $header-gap));
|
|
82
|
+
@include pintig.color-border('card', transparent);
|
|
83
|
+
@include pintig.struct-apply('card-header', (
|
|
84
84
|
radius: (0),
|
|
85
85
|
padding: ($padding $padding 0),
|
|
86
86
|
border-width: ('xs' 'xs' 0),
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
|
|
90
90
|
&:not(:only-child),
|
|
91
91
|
&:not(:last-child) {
|
|
92
|
-
padding-bottom:
|
|
92
|
+
padding-bottom: pintig.key-get('card-section-gap');
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
&:last-child {
|
|
96
|
-
@include
|
|
96
|
+
@include pintig.struct-bind('card-header', (
|
|
97
97
|
radius: (0 0 $radius $radius),
|
|
98
98
|
border-width: (0 'xs' 'xs'),
|
|
99
99
|
padding: (0 $padding $padding),
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
&:first-child {
|
|
104
|
-
@include
|
|
104
|
+
@include pintig.struct-bind('card-header', (
|
|
105
105
|
radius: ($radius $radius 0 0),
|
|
106
106
|
padding: ($padding $padding 0),
|
|
107
107
|
border-width: ('xs' 'xs' 0),
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
&:only-child {
|
|
112
|
-
@include
|
|
112
|
+
@include pintig.struct-bind('card-header', (
|
|
113
113
|
radius: $radius,
|
|
114
114
|
padding: $padding,
|
|
115
115
|
border-width: ('xs'),
|
|
@@ -118,34 +118,34 @@
|
|
|
118
118
|
|
|
119
119
|
.ms-card__mast {
|
|
120
120
|
.ms-card__title {
|
|
121
|
-
@include
|
|
121
|
+
@include pintig.typography-apply('card-title', (
|
|
122
122
|
family: $title-family,
|
|
123
123
|
size: $title-size,
|
|
124
124
|
weight: $title-weight,
|
|
125
125
|
line-height: $title-line-height
|
|
126
126
|
));
|
|
127
|
-
@include
|
|
127
|
+
@include pintig.break(1);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.ms-card__subtitle {
|
|
131
|
-
@include
|
|
131
|
+
@include pintig.typography-apply('card-subtitle', (
|
|
132
132
|
family: $subtitle-family,
|
|
133
133
|
size: $subtitle-size,
|
|
134
134
|
weight: $subtitle-weight,
|
|
135
135
|
line-height: $subtitle-line-height
|
|
136
136
|
));
|
|
137
|
-
@include
|
|
137
|
+
@include pintig.break(2);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.ms-card__icon {
|
|
142
|
-
width:
|
|
143
|
-
height:
|
|
142
|
+
width: pintig.key-create('card-icon-size', pintig.token-switch($icon-size));
|
|
143
|
+
height: pintig.key-create('card-icon-size', pintig.token-switch($icon-size));
|
|
144
144
|
border-radius: 50%;
|
|
145
|
-
@include
|
|
145
|
+
@include pintig.color-apply('card-icon', (
|
|
146
146
|
border: 'accent-400'
|
|
147
147
|
));
|
|
148
|
-
@include
|
|
148
|
+
@include pintig.struct-apply('card-icon', (
|
|
149
149
|
border-width: 1px,
|
|
150
150
|
border-style: solid
|
|
151
151
|
));
|
|
@@ -159,8 +159,8 @@
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
.ms-card__content {
|
|
162
|
-
@include
|
|
163
|
-
@include
|
|
162
|
+
@include pintig.color-border('card', transparent);
|
|
163
|
+
@include pintig.struct-apply('card', (
|
|
164
164
|
radius: (0 0 $radius $radius),
|
|
165
165
|
padding: (0 $padding),
|
|
166
166
|
border-width: (0 'xs' 'xs'),
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
));
|
|
169
169
|
|
|
170
170
|
p {
|
|
171
|
-
@include
|
|
171
|
+
@include pintig.typography-apply('card', (
|
|
172
172
|
family: $content-family,
|
|
173
173
|
size: $content-size,
|
|
174
174
|
weight: $content-weight,
|
|
@@ -178,18 +178,18 @@
|
|
|
178
178
|
|
|
179
179
|
&:not(:only-child),
|
|
180
180
|
&:not(:last-child) {
|
|
181
|
-
padding-bottom:
|
|
181
|
+
padding-bottom: pintig.key-get('card-section-gap');
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
&:last-child {
|
|
185
|
-
@include
|
|
185
|
+
@include pintig.struct-bind('card', (
|
|
186
186
|
radius: (0 0 $radius $radius),
|
|
187
187
|
padding: (0 $padding $padding),
|
|
188
188
|
));
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
&:first-child {
|
|
192
|
-
@include
|
|
192
|
+
@include pintig.struct-bind('card', (
|
|
193
193
|
radius: ($radius $radius 0 0),
|
|
194
194
|
padding: ($padding $padding 0),
|
|
195
195
|
border-width: ('xs' 'xs' 0),
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
&:only-child {
|
|
200
|
-
@include
|
|
200
|
+
@include pintig.struct-bind('card', (
|
|
201
201
|
radius: $radius,
|
|
202
202
|
padding: $padding,
|
|
203
203
|
border-width: 'xs'
|
|
@@ -209,9 +209,9 @@
|
|
|
209
209
|
display: flex;
|
|
210
210
|
flex-flow: row nowrap;
|
|
211
211
|
justify-content: end;
|
|
212
|
-
gap:
|
|
213
|
-
@include
|
|
214
|
-
@include
|
|
212
|
+
gap: pintig.key-create('card-footer-gap', pintig.primitive-token-switch('spacing.#{$footer-gap}', $footer-gap));
|
|
213
|
+
@include pintig.color-border('card', transparent);
|
|
214
|
+
@include pintig.struct-apply('card-footer', (
|
|
215
215
|
radius: (0 0 $radius $radius),
|
|
216
216
|
padding: (0 $padding),
|
|
217
217
|
border-width: 'xs',
|
|
@@ -219,21 +219,21 @@
|
|
|
219
219
|
));
|
|
220
220
|
|
|
221
221
|
&:last-child {
|
|
222
|
-
@include
|
|
222
|
+
@include pintig.struct-bind('card-footer', (
|
|
223
223
|
radius: (0 0 $radius $radius),
|
|
224
224
|
padding: (0 $padding $padding),
|
|
225
225
|
));
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
&:first-child {
|
|
229
|
-
@include
|
|
229
|
+
@include pintig.struct-bind('card-footer', (
|
|
230
230
|
radius: ($radius $radius 0 0),
|
|
231
231
|
padding: ($padding $padding 0),
|
|
232
232
|
));
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
&:only-child {
|
|
236
|
-
@include
|
|
236
|
+
@include pintig.struct-bind('card-footer', (
|
|
237
237
|
radius: $radius,
|
|
238
238
|
padding: $padding,
|
|
239
239
|
));
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
//---------------------------------------------------
|
|
22
22
|
|
|
23
|
-
@use '
|
|
23
|
+
@use '@matteusan/pintig';
|
|
24
24
|
|
|
25
25
|
/// Component variant maker.
|
|
26
26
|
/// @param {string} $variants
|
|
27
27
|
/// @return {*} extension class.
|
|
28
28
|
@mixin extend($variants) {
|
|
29
|
-
@include
|
|
29
|
+
@include pintig.component-extend('card', $variants) {
|
|
30
30
|
@content;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
/// @param {map} $color-map
|
|
36
36
|
/// @return {*} color styles.
|
|
37
37
|
@mixin color($color-map) {
|
|
38
|
-
@include
|
|
38
|
+
@include pintig.color-bind('card', $color-map);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/// Structure variant mixin.
|
|
42
42
|
/// @param {map} $struct-map
|
|
43
43
|
/// @return {*} struct styles.
|
|
44
44
|
@mixin struct($struct-map) {
|
|
45
|
-
@include
|
|
45
|
+
@include pintig.struct-bind('card', $struct-map);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/// Typography variant mixin.
|
|
49
49
|
/// @param {map} $type-map
|
|
50
50
|
/// @return {*} typography styles.
|
|
51
51
|
@mixin typography($type-map) {
|
|
52
|
-
@include
|
|
52
|
+
@include pintig.typography-bind('card', $type-map);
|
|
53
53
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
//---------------------------------------------------
|
|
22
22
|
|
|
23
|
-
@use '
|
|
23
|
+
@use '@matteusan/pintig';
|
|
24
24
|
@use 'sass:list';
|
|
25
25
|
@use 'card-base' as base;
|
|
26
26
|
@use 'card-theme' as theme;
|
|
@@ -31,35 +31,35 @@
|
|
|
31
31
|
$typography: (),
|
|
32
32
|
$settings: ()
|
|
33
33
|
) {
|
|
34
|
-
$color:
|
|
35
|
-
$struct:
|
|
36
|
-
$typography:
|
|
37
|
-
$settings:
|
|
34
|
+
$color: pintig.theme-merge(theme.$init-color, $color);
|
|
35
|
+
$struct: pintig.theme-merge(theme.$init-struct, $struct);
|
|
36
|
+
$typography: pintig.theme-merge(theme.$init-typography, $typography);
|
|
37
|
+
$settings: pintig.theme-merge(theme.$init-settings, $settings);
|
|
38
38
|
|
|
39
39
|
@include base.init(
|
|
40
40
|
$struct,
|
|
41
41
|
$typography
|
|
42
42
|
) {
|
|
43
|
-
@include
|
|
44
|
-
fill:
|
|
45
|
-
ink:
|
|
43
|
+
@include pintig.color-apply('card', (
|
|
44
|
+
fill: pintig.theme-get($color, 'fill'),
|
|
45
|
+
ink: pintig.theme-get($color, 'ink'),
|
|
46
46
|
));
|
|
47
|
-
@include
|
|
48
|
-
@include
|
|
49
|
-
radius:
|
|
47
|
+
@include pintig.color-border('card', pintig.theme-get($color, 'border'), 'bind');
|
|
48
|
+
@include pintig.struct-apply('card', (
|
|
49
|
+
radius: pintig.theme-get($struct, 'radius'),
|
|
50
50
|
shadow: 'none',
|
|
51
51
|
));
|
|
52
52
|
|
|
53
53
|
&:where(.is-outlined) {
|
|
54
|
-
@include
|
|
55
|
-
fill:
|
|
56
|
-
ink:
|
|
57
|
-
border:
|
|
54
|
+
@include pintig.color-bind('card', (
|
|
55
|
+
fill: pintig.theme-get($color, 'fill', 'outlined'),
|
|
56
|
+
ink: pintig.theme-get($color, 'ink'),
|
|
57
|
+
border: pintig.theme-get($color, 'border')
|
|
58
58
|
));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&:where(.is-raised) {
|
|
62
|
-
@include
|
|
62
|
+
@include pintig.struct-bind('card', (
|
|
63
63
|
shadow: 'low'
|
|
64
64
|
));
|
|
65
65
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
//---------------------------------------------------
|
|
22
22
|
|
|
23
|
-
@use '
|
|
23
|
+
@use '@matteusan/pintig';
|
|
24
24
|
|
|
25
25
|
@use 'sass:math';
|
|
26
26
|
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
position: absolute;
|
|
38
38
|
top: calc(#{$top-label-distance});
|
|
39
39
|
left: calc(#{$left-label-distance} + 2px);
|
|
40
|
-
@include
|
|
40
|
+
@include pintig.color-apply('form-field-label', (
|
|
41
41
|
fill: rgba(0 0 0 / 0),
|
|
42
42
|
ink: inherit,
|
|
43
43
|
));
|
|
44
|
-
@include
|
|
44
|
+
@include pintig.struct-apply('form-field-label', (
|
|
45
45
|
padding: ('xs' 'xs' 0 0),
|
|
46
46
|
));
|
|
47
|
-
@include
|
|
48
|
-
@include
|
|
47
|
+
@include pintig.typography-apply('form-field-label', pintig.$type-inherit-template);
|
|
48
|
+
@include pintig.prefix(transition, all var(--ms-transition-time) ease);
|
|
49
49
|
cursor: text;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
&:has(.ms-form-field__input:not(:placeholder-shown)), {
|
|
54
54
|
.ms-form-field__label {
|
|
55
55
|
top: math.div($top-label-distance, 2);
|
|
56
|
-
@include
|
|
56
|
+
@include pintig.typography-bind('form-field-label', (
|
|
57
57
|
family: 'small',
|
|
58
58
|
size: 'small',
|
|
59
59
|
));
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
|
|
63
63
|
&:has(.ms-form-field__label) {
|
|
64
64
|
.ms-form-field__input {
|
|
65
|
-
@include
|
|
65
|
+
@include pintig.key-bind('form-field-placeholder-ink', rgba(0 0 0 / 0) !important);
|
|
66
66
|
padding-top: calc(#{$top-padding} + 1rem) !important;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.ms-form-field__input {
|
|
71
|
-
@include
|
|
71
|
+
@include pintig.struct-apply('form-field', (
|
|
72
72
|
width: 100%,
|
|
73
73
|
margin: 0,
|
|
74
74
|
radius: 0,
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
border-style: solid,
|
|
77
77
|
shadow: 'none',
|
|
78
78
|
));
|
|
79
|
-
padding:
|
|
80
|
-
@include
|
|
79
|
+
padding: pintig.key-get('form-field-padding');
|
|
80
|
+
@include pintig.color-apply('form-field', (
|
|
81
81
|
fill: inherit,
|
|
82
82
|
ink: inherit,
|
|
83
83
|
border: inherit
|
|
84
84
|
));
|
|
85
|
-
@include
|
|
85
|
+
@include pintig.typography-apply('form-field', (
|
|
86
86
|
family: inherit,
|
|
87
87
|
size: inherit,
|
|
88
88
|
weight: inherit,
|
|
@@ -92,25 +92,25 @@
|
|
|
92
92
|
resize: none;
|
|
93
93
|
cursor: text;
|
|
94
94
|
-webkit-appearance: caret;
|
|
95
|
-
@include
|
|
95
|
+
@include pintig.prefix(transition, all var(--ms-transition-time) ease);
|
|
96
96
|
|
|
97
97
|
&::placeholder {
|
|
98
|
-
color:
|
|
98
|
+
color: pintig.key-create('form-field-placeholder-ink', inherit);
|
|
99
99
|
user-select: none !important;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.ms-form-field__helper {
|
|
104
|
-
@include
|
|
104
|
+
@include pintig.color-apply('form-field-helper', (
|
|
105
105
|
ink: inherit,
|
|
106
106
|
));
|
|
107
|
-
@include
|
|
107
|
+
@include pintig.typography-apply('form-field-helper', (
|
|
108
108
|
family: inherit,
|
|
109
109
|
size: inherit,
|
|
110
110
|
weight: inherit,
|
|
111
111
|
line-height: inherit,
|
|
112
112
|
));
|
|
113
|
-
@include
|
|
113
|
+
@include pintig.prefix(transition, all var(--ms-transition-time) ease);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
//---------------------------------------------------
|
|
22
22
|
|
|
23
|
-
@use '
|
|
23
|
+
@use '@matteusan/pintig';
|
|
24
24
|
|
|
25
25
|
/// Component variant maker.
|
|
26
26
|
/// @param {string} $variants
|
|
27
27
|
/// @return {*} extension class.
|
|
28
28
|
@mixin extend($variants) {
|
|
29
|
-
@include
|
|
29
|
+
@include pintig.component-extend('form-field', $variants) {
|
|
30
30
|
@content;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
/// @param {map} $color-map
|
|
36
36
|
/// @return {*} color styles.
|
|
37
37
|
@mixin color($color-map) {
|
|
38
|
-
@include
|
|
38
|
+
@include pintig.color-bind('form-field', $color-map);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/// Structure variant mixin.
|
|
42
42
|
/// @param {map} $struct-map
|
|
43
43
|
/// @return {*} struct styles.
|
|
44
44
|
@mixin struct($struct-map) {
|
|
45
|
-
@include
|
|
45
|
+
@include pintig.struct-bind('form-field', $struct-map);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/// Typography variant mixin.
|
|
49
49
|
/// @param {map} $type-map
|
|
50
50
|
/// @return {*} typography styles.
|
|
51
51
|
@mixin typography($type-map) {
|
|
52
|
-
@include
|
|
52
|
+
@include pintig.typography-bind('form-field', $type-map);
|
|
53
53
|
}
|