Reputation:
I'm trying to put a standard jQuery Mobile icon inline with a span element, and scale the icon:
<span ui-btn-icon-right ui-icon-refresh style="position:relative;background-size:75%;"/>
The icon is placed perfectly, however the background-size has no effect. A !important does not help.
Upvotes: 0
Views: 168
Reputation: 24738
The icon image is actually applied to the :after pseudoelement. So your background CSS needs to applied there:
<span class="ui-icon-refresh ui-btn-icon-notext inlineIcon"></span>
.inlineIcon {
display: inline-block;
position: relative;
vertical-align: middle;
margin-right: 6px;
}
.inlineIcon:after {
background-size: 75% !important;
}
Upvotes: 2