1
0
mirror of synced 2024-11-25 06:16:08 +03:00

Retina-ize icons

This commit is contained in:
James Koster 2012-08-20 16:26:18 +01:00
parent b5cceab21e
commit 668c49bb21
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