Make buttons generatable, add text hovers

This commit is contained in:
Adam Wathan 2017-08-18 14:44:08 -04:00
parent b93b352faf
commit 1b048a1f10
5 changed files with 39 additions and 136 deletions

View file

@ -0,0 +1,17 @@
.define-text-hover-colors(@variants) {
.generate-utility-variants('hover-text'; @variants; {
&:hover { color: extract(@__variant-value, 2); }
});
}
.define-text-hover-colors(@variants; none) {
.define-text-hover-colors(@variants);
}
.define-text-hover-colors(@variants; @screens) when not (@screens = none) {
.define-text-hover-colors(@variants);
.generate-responsive-utility-variants('hover-text'; @variants; @screens; {
&:hover { color: extract(@__variant-value, 2); }
});
}