如何更改语义UI图标的颜色?

Nik*_*ntz 4 css colors semantic-ui

我可以用代码制作竖起大拇指的图标

<i class="thumbs up icon large"></i>

但是如何将颜色从黑色更改为灰色?我是为chrome扩展做的,我在这里添加CSS manifest.js:

"content_scripts": [
    {
        "matches": ["http://*/*", "https://*/*"],

        "css": [ "tab/layouts/style.css", "app/lib/semantic.min.css" ],
        "js": [ "common/owconstants.js", "common/OWprotocol.js", "3rdparty/jquery-1.10.2.min.js", "3rdparty/jquery.mCustomScrollbar.concat.min.js", "3rdparty/jquery-ui-1.10.3.custom.min.js", "common/common.js", "tab/sidebars.js", "tab/communication.js", "tab/syncobject.js", "tab/popup.js", "tab/authorization.js", "tab/userinfo.js", "tab/annotation.js", "tab/usercard.js", "tab/userlist.js", "tab/notifications.js", "tab/friendlist.js", "tab/injection.js", "tab/drops.js", "tab/chat.js", "tab/tracking.js", "tab/keywords.js", "tab/tabscript.js", "app/lib/semantic.min.js"]
    }
],
Run Code Online (Sandbox Code Playgroud)

yai*_*eno 7

您也可以申请:<i class="red users icon"></i>.有关语义的更多信息,我建议您访问此文档http://semantic-ui.com/elements/icon.html#/definition


Gar*_*ker 6

您可以申请:

color: gray; // or any suitable color code, e.g. #808080
Run Code Online (Sandbox Code Playgroud)

thumbs up icon large如果合适,添加到现有类之一,或者添加您自己的新类并对其应用样式:

HTML

<i class="thumbs up icon large own-class"></i>
Run Code Online (Sandbox Code Playgroud)

样式表

.own-class {
    color: gray;
}
Run Code Online (Sandbox Code Playgroud)