matcha-theme 19.45.0 → 19.46.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/components/matcha-hint-text.scss +75 -0
- package/main.scss +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@mixin generate-matcha-hint-size-classes($helper-breakpoints) {
|
|
2
|
+
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
3
|
+
@include media-breakpoint($materialBreakpoint) {
|
|
4
|
+
$infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
|
|
5
|
+
|
|
6
|
+
&[size#{$infix}="tiny"] {
|
|
7
|
+
font-size: px-to-rem(10px);
|
|
8
|
+
line-height: px-to-rem(16px);
|
|
9
|
+
|
|
10
|
+
matcha-icon span {
|
|
11
|
+
width: px-to-rem(16px);
|
|
12
|
+
height: px-to-rem(16px);
|
|
13
|
+
font-size: px-to-rem(16px);
|
|
14
|
+
line-height: px-to-rem(16px);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&[size#{$infix}="medium"] {
|
|
19
|
+
font-size: px-to-rem(14px);
|
|
20
|
+
line-height: px-to-rem(24px);
|
|
21
|
+
|
|
22
|
+
& .text {
|
|
23
|
+
margin-top: 4px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
matcha-icon span {
|
|
27
|
+
width: px-to-rem(24px);
|
|
28
|
+
height: px-to-rem(24px);
|
|
29
|
+
font-size: px-to-rem(24px);
|
|
30
|
+
line-height: px-to-rem(24px);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@mixin matcha-hint-text($theme) {
|
|
38
|
+
matcha-hint-text {
|
|
39
|
+
// Cor por type
|
|
40
|
+
&[type="error"] {
|
|
41
|
+
color: getRed($theme);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[type="warning"] {
|
|
45
|
+
color: getYellow($theme);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[type="info"] {
|
|
49
|
+
color: getBlue($theme);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[type="success"] {
|
|
53
|
+
color: getGreen($theme);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:not([size]) {
|
|
57
|
+
font-size: px-to-rem(10px);
|
|
58
|
+
line-height: px-to-rem(16px);
|
|
59
|
+
|
|
60
|
+
matcha-icon span {
|
|
61
|
+
width: px-to-rem(16px);
|
|
62
|
+
height: px-to-rem(16px);
|
|
63
|
+
font-size: px-to-rem(16px);
|
|
64
|
+
line-height: px-to-rem(16px);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@include generate-matcha-hint-size-classes($helper-breakpoints);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
matcha-hint-text {
|
|
72
|
+
& .text {
|
|
73
|
+
margin-top: 4px;
|
|
74
|
+
}
|
|
75
|
+
}
|
package/main.scss
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
@import "./components/matcha-accordion.scss";
|
|
40
40
|
@import "./components/matcha-ripple.scss"; // matcha-ripple-theme($theme)
|
|
41
41
|
@import "./components/matcha-spin.scss"; // matcha-spin-theme($theme)
|
|
42
|
+
@import "./components/matcha-hint-text.scss"; // matcha-hint-theme($theme)
|
|
42
43
|
|
|
43
44
|
// VENDORS
|
|
44
45
|
@import "./vendors/angular-editor.scss";
|
|
@@ -138,4 +139,5 @@
|
|
|
138
139
|
@include matcha-form-field($theme);
|
|
139
140
|
@include matcha-checkbox($theme);
|
|
140
141
|
@include matcha-spin($theme);
|
|
142
|
+
@include matcha-hint-text($theme);
|
|
141
143
|
}
|