matcha-theme 19.47.0 → 19.51.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.
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
@mixin _field-height($line-height) {
|
|
2
|
+
.matcha-form-field {
|
|
3
|
+
input[type="text"],
|
|
4
|
+
input[type="email"],
|
|
5
|
+
input[type="tel"],
|
|
6
|
+
input[type="url"],
|
|
7
|
+
input[type="password"],
|
|
8
|
+
input[type="number"],
|
|
9
|
+
input[type="search"],
|
|
10
|
+
textarea {
|
|
11
|
+
min-height: px-to-rem(20px); /* Mantém a altura dos inputs de texto */
|
|
12
|
+
line-height: px-to-rem($line-height);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin generate-matcha-form-field-size-classes($helper-breakpoints){
|
|
18
|
+
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
19
|
+
@include media-breakpoint($materialBreakpoint) {
|
|
20
|
+
$infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
|
|
21
|
+
|
|
22
|
+
&[size#{$infix}="tiny"] {
|
|
23
|
+
@include _field-height(24px)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[size#{$infix}="small"] {
|
|
27
|
+
@include _field-height(24px)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&[size#{$infix}="medium"] {
|
|
31
|
+
@include _field-height(32px);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&[size#{$infix}="large"] {
|
|
35
|
+
@include _field-height(40px)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[size#{$infix}="huge"] {
|
|
39
|
+
@include _field-height(40px)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
1
45
|
@mixin matcha-form-field($theme) {
|
|
2
46
|
$primary: map-get($theme, primary);
|
|
3
47
|
$accent: map-get($theme, accent);
|
|
@@ -35,7 +79,11 @@
|
|
|
35
79
|
input[type="search"]:focus,
|
|
36
80
|
textarea:focus {
|
|
37
81
|
outline: none;
|
|
38
|
-
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
matcha-form-field{
|
|
86
|
+
@include generate-matcha-form-field-size-classes($helper-breakpoints);
|
|
39
87
|
}
|
|
40
88
|
}
|
|
41
89
|
|
|
@@ -52,10 +100,8 @@
|
|
|
52
100
|
outline: none;
|
|
53
101
|
box-shadow: none;
|
|
54
102
|
font-size: 16px;
|
|
55
|
-
min-height: 16px; /* Mantém a altura dos inputs de texto */
|
|
56
103
|
resize: none;
|
|
57
104
|
font-weight: 500;
|
|
58
|
-
line-height: 20px;
|
|
59
105
|
}
|
|
60
106
|
|
|
61
107
|
input[type="text"]:focus,
|