简体   繁体   English

如何更改实体化图标的活动颜色?

[英]How to change active color of materialize icon?

I'm doing a web app for a school project and I'm using materialize for it but I can't change the default teal color of the icon when it's active我正在为一个学校项目做一个 web 应用程序,我正在为它使用物化,但是当它处于活动状态时我无法更改图标的默认蓝绿色在此处输入图像描述

You can use this syntax, It's just a sample change it with your style您可以使用此语法,这只是一个示例,可以根据您的风格进行更改

input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

Try this out.试试这个。 Materialize adds .active class to icon, when input is active.当输入处于活动状态时,Materialise 将.active class 添加到图标。

i.material-icons.prefix.active {
    color: #1e469a;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM