Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

custom css styling for jquery mobile button

I have this button which i have added a custom icon to.

I would like to remove the lighter gray which is within the icon. enter image description here

This lighter gray is not part of the icon, it's got to be somewhere within jquery's CSS which i should be able to overide. enter image description here

What can I do to my CSS to accomplish this?

You can view source on the link i've provided but here is the current CSS:

.ui-icon-my-map {
    background-image: url("images/103-map.png");
    background-position: 4px 50%;
    background-size: 26px 21px;
    height: 24px;
    margin-top: -12px !important;
    width: 35px;
}
like image 936
capdragon Avatar asked Mar 09 '12 16:03

capdragon


4 Answers

your problem is:

.ui-icon, .ui-icon-searchfield::after {
  background: #666;
  background: rgba(0, 0, 0, .4);
}

just add

.ui-icon-my-map {
[...]
  background-color: transparent;
}
like image 139
Hannes Avatar answered Oct 10 '22 11:10

Hannes


You can overide with your css (put it after jquery mobile css load, or add important at the end).

.ui-icon, .ui-icon-searchfield::after {
background: none;
}
like image 21
Alytrem Avatar answered Oct 10 '22 12:10

Alytrem


For the style of this guy

<span class="ui-icon ui-icon-my-map ui-icon-shadow"></span>

Add:

background-color: transparent;
like image 1
thepriebe Avatar answered Oct 10 '22 12:10

thepriebe


Set the background color of the span to transparent.

.ui-icon-my-map{
    background-color: transparent;
}

enter image description here

like image 1
ShankarSangoli Avatar answered Oct 10 '22 10:10

ShankarSangoli