pacem-less 0.40.0-bactra → 0.40.0-berbera
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.
|
@@ -52,18 +52,20 @@
|
|
|
52
52
|
each(@colors, {
|
|
53
53
|
.text-@{value}{
|
|
54
54
|
|
|
55
|
+
// 'invert' behaves differently for backward-compatibility.
|
|
56
|
+
|
|
55
57
|
&:not(.text-interactive){
|
|
56
58
|
// force !important here
|
|
57
|
-
color: ~"var(--@{PCSS}-color-@{value}) !important";
|
|
59
|
+
color: if(@value = invert, ~"var(--@{PCSS}-color-@{value}-inverse) !important", ~"var(--@{PCSS}-color-@{value}) !important");
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
&.text-interactive{
|
|
62
|
+
&.text-interactive when (@value = invert){
|
|
61
63
|
// no need to force !important here
|
|
62
|
-
color: ~"var(--@{PCSS}-color-@{value})";
|
|
64
|
+
color: if(@value = invert, ~"var(--@{PCSS}-color-@{value}-inverse)", ~"var(--@{PCSS}-color-@{value})");
|
|
63
65
|
|
|
64
66
|
&:hover,
|
|
65
67
|
&:focus{
|
|
66
|
-
color: ~"var(--@{PCSS}-color-@{value}-emphasis-hover)";
|
|
68
|
+
color: if(@value = invert, ~"var(--@{PCSS}-color-@{value}-inverse-emphasis-hover)", ~"var(--@{PCSS}-color-@{value}-emphasis-hover)");
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
}
|
package/package.json
CHANGED