更新时间:2023-01-23 18:33:57
我拥有全部.键是:after
修饰符和is-focused
类.只需将#FAFAFA
替换为您的indigo-pink
,它就可以正常工作了.这仅仅是概念的证明.检查小提琴.它的文字标签也有颜色.
I have it all. The keys are the :after
modifier and the is-focused
class. Just replace #FAFAFA
with your indigo-pink
and it should work for ya. This is just proof of concept. Check the fiddle. it has the text label colored too.
.mdl-textfield.is-focused .mdl-textfield__label {
color: #FAFAFA;
}
.mdl-textfield__label:after{
background-color: #FAFAFA;
}