1
0
mirror of synced 2024-11-26 14:56:07 +03:00

Merge pull request #349 from jameskoster/master

retina friendly sprite/css
This commit is contained in:
Igor Vaynberg 2012-08-20 08:55:09 -07:00
commit 0b859744cc
3 changed files with 14 additions and 1 deletions

View File

@ -509,3 +509,16 @@ disabled look for already selected choices in the results dropdown
.select2-result-unselectable .select2-match { text-decoration: none; }
.select2-offscreen { position: absolute; left: -10000px; }
/* Retina-ize icons */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
.select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice div b {
background-image: url(select2x2.png) !important;
background-repeat: no-repeat !important;
background-size: 60px 40px !important;
}
.select2-search input {
background-position: 100% -21px !important;
}
}

BIN
select2.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 396 B

After

Width:  |  Height:  |  Size: 613 B

BIN
select2x2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 845 B