Merge pull request #349 from jameskoster/master
retina friendly sprite/css
This commit is contained in:
commit
0b859744cc
15
select2.css
15
select2.css
@ -508,4 +508,17 @@ disabled look for already selected choices in the results dropdown
|
||||
.select2-result-unselectable .select2-result-selectable .select2-match { text-decoration: underline; }
|
||||
.select2-result-unselectable .select2-match { text-decoration: none; }
|
||||
|
||||
.select2-offscreen { position: absolute; left: -10000px; }
|
||||
.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
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
BIN
select2x2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 845 B |
Loading…
Reference in New Issue
Block a user