Facet title status icons

https://fedorahosted.org/freeipa/ticket/3904
This commit is contained in:
Petr Vobornik 2013-11-06 15:19:42 +01:00 committed by Martin Kosek
parent af26018c0d
commit f0b42ed060
2 changed files with 19 additions and 14 deletions

View File

@ -1448,20 +1448,25 @@ form#login {
.facet-title .header-icon {
display: none;
width: 17px;
height: 17px;
font-size: 70%;
vertical-align: 20%;
margin-right: 3px;
/* Font awesome style, TODO: use mixin */
display: inline-block;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.facet-title.enabled .header-icon {
background-image: url(images/ui-icons_222222_256x240.png);
background-position: -64px -144px;
display: inline-block;
.facet-title.enabled .header-icon:before {
content: "\f00c";
}
.facet-title.disabled .header-icon {
background-image: url(images/ui-icons_bbbbbb_256x240.png);
background-position: -64px -128px;
display: inline-block;
.facet-title.disabled .header-icon:before {
content: "\f068";
}
.facet-title.disabled h3,

View File

@ -1443,12 +1443,12 @@ exp.facet_title = IPA.facet_title = function(spec) {
'class': 'facet-title'
}).appendTo(container);
that.icon = $('<div />', {
'class': 'header-icon'
}).appendTo(that.title_container);
var h3 = $('<h3/>').appendTo(that.title_container);
that.icon = $('<i />', {
'class': 'header-icon'
}).appendTo(h3);
that.title = $('<span/>').appendTo(h3);
that.pkey = $('<span/>', {