Css Primefaces使用主题图标自定义行编辑器
Css Primefaces使用主题图标自定义行编辑器,css,jsf,primefaces,jsf-2,roweditor,Css,Jsf,Primefaces,Jsf 2,Roweditor,我想用任何Primefaces主题(如Sentinel)提供的图标(如铅笔等)定制p:rowEditor图标(参见此处:[) 我编辑了我的自定义CSS文件,并试图覆盖行编辑器类,将CSS元素复制到Sentinel主题CSS文件中,因此结果如下: .ui-datatable table tbody tr td .ui-row-editor .ui-icon-pencil { background: none !important; font-family: "fontello"; fo
我想用任何Primefaces主题(如Sentinel)提供的图标(如铅笔等)定制
p:rowEditor
图标(参见此处:[)
我编辑了我的自定义CSS文件,并试图覆盖行编辑器类,将CSS元素复制到Sentinel主题CSS文件中,因此结果如下:
.ui-datatable table tbody tr td .ui-row-editor .ui-icon-pencil
{
background: none !important;
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;
}
.ui-datatable table tbody tr td .ui-row-editor .ui-icon-pencil:before {
content: '\e851';
}
没有机会让它工作。我看到所有的空白。也许我需要调整任何位置属性?
有什么建议吗?
谢谢!最有可能的是,
文本缩进属性是不显示内容的原因
components.css
定义:
.ui-icon{
text-indent: -99999px;
}
要覆盖它,请将文本缩进:0;
添加到.ui图标铅笔的css中