简体   繁体   English

如何为 openshift 模板使用 FontAwesome 图标

[英]how to use a FontAwesome icon for openshift template

As mentioned in dev_guide , we can set an icon for an openshift template.正如dev_guide 中提到的,我们可以为 openshift 模板设置一个图标。

The description for iconClass said: iconClass的描述说:

An icon to be displayed with your template in the web console.与您的模板一起显示在 Web 控制台中的图标。 Choose from our existing logo icons when possible.尽可能从我们现有的徽标图标中选择。 You can also use icons from FontAwesome and PatternFly.您还可以使用来自 FontAwesome 和 PatternFly 的图标。 Alternatively, provide icons through CSS customizations that can be added to an OpenShift Container Platform cluster that uses your template.或者,通过 CSS 自定义提供图标,这些图标可以添加到使用您的模板的 OpenShift Container Platform 集群。 You must specify an icon class that exists, or it will prevent falling back to the generic icon您必须指定一个存在的图标类,否则它将阻止回退到通用图标

when I use default openshift logos like icon-laravel it works but I don't know how to use a FontAwesome logo.当我使用像icon-laravel这样的默认 openshift 标志时,它可以工作,但我不知道如何使用FontAwesome标志。 i tried using ghost , fa fa-ghost and fas fa-ghost as mentioned here but non of them worked.我尝试使用ghostfa fa-ghostfas fa-ghost这里提到的那样但它们都不起作用。

how can I use non default logos such as FontAwesome for openshift template ?如何将非默认徽标(例如 FontAwesome)用于 openshift 模板?


PS: I use openshift origin v3.10 and google-chrome v69.0 if it's important PS:如果重要的话,我使用 openshift origin v3.10 和 google-chrome v69.0

字体真棒版本 4.7 在openshift-console 3.10 (和更新版本)中可用,因此您将仅限于这些fa fa-snapchat-ghost是我在那里找到的唯一“幽灵”)。

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

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