From 668c49bb213274172b2c05793eb8507542e88ccf Mon Sep 17 00:00:00 2001 From: James Koster Date: Mon, 20 Aug 2012 16:26:18 +0100 Subject: [PATCH] Retina-ize icons --- select2.css | 15 ++++++++++++++- select2.png | Bin 396 -> 613 bytes select2x2.png | Bin 0 -> 845 bytes 3 files changed, 14 insertions(+), 1 deletion(-) mode change 100755 => 100644 select2.png create mode 100644 select2x2.png diff --git a/select2.css b/select2.css index fb34b37e..f0bdfb82 100755 --- a/select2.css +++ b/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; } \ No newline at end of file +.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; + } +} \ No newline at end of file diff --git a/select2.png b/select2.png old mode 100755 new mode 100644 index d08e4b7e624c44f4fb862f23f046262780847490..1d804ffb99699b9e030f1010314de0970b5a000d GIT binary patch delta 599 zcmV-d0;v6r1LXve8Gi-<005%9ng0L)0xU^HK~#9!?b**u6k#04@wEs_jD^-NVqGdI z$%qaScBy364Wc|0{h%LE1pNbsAyNl%w^ZoRp-2QH2)suW5qa%W*srCFl!bvvbTCYq zKD~wS;W@Z0Z7JK=dEj-J*@b=HJI~Axvnff-N)o&*ga5}-D1Q|0<5;jA;T~4F3nuCk zgimO~Mie0odkk*IdkB-5fGql;*Ckz#*N_=UV~XK5cndy2<}$q2m=+yc0dRXRAsPDxF6sD z;@rK4JGdR_``1S~o6Xi@2&aR6hcSrEp9HVRzEqVDqBD1?`&!%B=o z=<&LwThS0~XK=vTk}f}z;3PN+PJ*l9kwH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