1
0
mirror of synced 2024-11-30 00:26:03 +03:00
Commit Graph

132 Commits

Author SHA1 Message Date
Kevin Brown
e943f6ef08 Revert "Fixed Select2 jumping around in Chrome"
This reverts commit 0daee34626.
This results in artifacts being displayed in Chrome, and doesn't
fix the other jumping issue.
2014-10-31 18:27:33 -04:00
Kevin Brown
0daee34626 Fixed Select2 jumping around in Chrome
This fixes #2769, where Select2 will jump around because of how
focus moves to the original element when selections are made.

Because absolute positioning pushed the original element out of the
viewport, bringing it back into the viewport should be the best
fix.
2014-10-31 18:10:13 -04:00
Rich Christiansen
75e089f3a1 Basic CSS gradient fix for choices
The “top” on the other styles (-moz-linear-gradient,
-webkit-linear-gradient, etc) signifies “start at the top”.  The
equivalent basic “linear-gradient” style is “to bottom”, not “to top”.
2014-07-31 10:10:34 -06:00
Ermish
b505601629 Added Ajax Error Handling
Added an error message when an ajax error occurs. This can be
overridden through the select2 option “formatAjaxError”.
2014-06-25 19:40:08 -04:00
Robert-Jan Bijl
5470a453f9 Getting a few more pixels perfect in the RTL mode for multiple selects 2014-05-13 09:05:37 +02:00
Robert-Jan Bijl
fb91adaa57 More RTL style fixes, now for the multiple select 2014-05-13 08:44:20 +02:00
Robert-Jan Bijl
06b93b2703 Better support for RTL languages
CSS changes to better support RTL languages. Most notable is the positioning of the arrow on the left side of the select2 for RTL
2014-05-12 15:34:40 +02:00
Soichi Hayashi
09003853e4 Fixed the issue where multi-line item inside multi list will touch the right end of the container 2014-05-07 17:24:07 +00:00
Matthias Kurz
a6d7ecc273 Css dept-* rules should start with 1 no 0 2014-04-06 17:29:45 +02:00
Jesper Rønn-Jensen
7390721038 Reduced 10 level deep nesting of CSS rules. Instead, using the simpler depth-0,-1,-2,etc for adding padding to the result when nested.
Greatly simplifies complexity of expressions and reduces (hopefully) rendering time.

From https://developers.google.com/speed/docs/best-practices/rendering#UseEfficientCSSSelectors
Descendant selectors are inefficient because, for each element that matches the key, the browser must also traverse up the DOM tree, evaluating every ancestor element until it finds a match or reaches the root element.
2014-03-23 21:50:35 +01:00
djarnis73
b7695ec6a9 Update select2.css 2014-02-26 13:01:10 +01:00
Kevin Brown
2244365790 Merge pull request #2056 from mkurz/fix_2042
Reset background position for multiple backgrounds [Fixes #2042]
2014-01-20 06:22:47 -08:00
Matthias Kurz
05efcaf160 Use dppx instead of non-existing ppx resolution unit 2014-01-20 11:50:46 +01:00
Matthias Kurz
6a3ec3f5de Fix for #2042 Chrome bug: Reset the background position for multiple backgrounds 2014-01-20 11:46:39 +01:00
Tim Robertson
eaf09c7f76 Accessibility updates based on jQuery UI Autocomplete 2014-01-19 18:52:56 -05:00
Kevin Brown
4f4d77d36e Fixed dpi warning [Fixes #1964] 2014-01-12 11:10:51 -05:00
Kevin Brown
79ee2084dc Gradients are all set now 2014-01-11 21:01:16 -05:00
Kevin Brown
e2cccc9988 Fixed reversed gradients, again
The gradients that were fixed in #2002 had the wrong target value.
Most of them were targetting the bottom, though not all of them,
and the code set them to target the top.
2014-01-11 18:48:53 -05:00
Kevin Brown
aab3381494 Fixed reversed gradient 2014-01-09 14:58:33 -05:00
Kevin Brown
f83ca8ec2c Merge pull request #2000 from leods92/patch-1
Added padding to searching/no-results messages.
2014-01-06 17:56:18 -08:00
Justin Beasley
8a560453b1 Fix CSS linear-gradient syntax
the first argument to linear-gradient is required to either be an angle, or expressed as "to [side]". Omitting the "to" keyword causes gradients to not render in IE10.
2013-12-31 00:05:23 -08:00
Leonardo D. Schlossmacher
23b2574d4b Added padding to searching/no-results messages.
It feels just weird without paddings.
2013-12-28 11:55:29 -02:00
Jake
ef9f1dea90 Fix for drop-auto-width collision detection and css border top
- collision detection was not moving the drop left based on the
difference between viewport and relative location of box (dropleft +
dropwidth)
- .select2-drop-active was overriding the .select2-drop-auto-width
making the shifted dropbox look a bit wierd
2013-11-07 16:21:52 -05:00
Khaled Hosny
39f9fc79a5 Styling fixes for RTL direction
* Align the selects to the right
* Place the close button on the left to not cover parts of the label.
2013-11-04 08:07:39 +02:00
Rouven Weßling
299f87440e Remove duplicate property. 2013-08-18 14:35:04 +02:00
Rouven Weßling
e7649880cb Remove -khtml-user-select. It's not supported by KHTML anyways and their marketshare is incredibly minor. 2013-08-18 14:35:04 +02:00
Rouven Weßling
488526ccf5 Remove -o-linear-gradient used by Opera 11.1 - 12.0. These versions are now very rarely used. 2013-08-18 14:35:01 +02:00
Rouven Weßling
bba1eb04c7 Remove -ms-linear-gradient that was only used by IE 10 preview releases. 2013-08-18 14:34:58 +02:00
Igor Vaynberg
dcee289874 Merge pull request #1578 from yuripc/colors-2
Colors to shorthand hexadecimal
2013-07-31 21:44:35 -07:00
Igor Vaynberg
e162a4802c tweak how mask is created to remove jitter. fixes #1574 2013-07-31 21:41:37 -07:00
Yuri Pereira
7fd8a9f6e7 Colors to shorthand hexadecimal/2 2013-07-27 14:28:45 -03:00
Yuri Pereira
4ea4246c44 Colors to shorthand hexadecimal 2013-07-27 14:25:24 -03:00
Igor Vaynberg
f886f716e2 Revert "Colors to shorthand hexadecimal"
This reverts commit fe307f6f15.
2013-07-27 09:53:49 -07:00
Igor Vaynberg
86fe603082 Merge pull request #1548 from yuripc/colors
Colors to shorthand hexadecimal
2013-07-26 23:47:35 -07:00
Igor Vaynberg
0ce22d5b80 make sure offscreen doesnt cause vertical shift. fixes #829 2013-07-26 22:51:36 -07:00
cmfcmf
2be293ab4a Added !important to select2-offscreen to make sure that it is definitly hidden. 2013-07-19 21:29:35 +02:00
Yuri Pereira
fe307f6f15 Colors to shorthand hexadecimal 2013-07-19 13:16:39 -03:00
Yuri Pereira
f9b1e150e5 Add missing space 2013-07-19 10:09:44 -03:00
Yuri Pereira
95634b830d Add space after comma 2013-07-19 09:54:48 -03:00
Yuri Pereira
2fc63f264f Add space before { 2013-07-19 09:50:47 -03:00
Igor Vaynberg
81b98e7567 fix typo from #1477 2013-07-03 22:45:50 -07:00
Ugoku
b7b292bc3b Update select2.css
-ms-box-sizing does not exist, Konqueror does not need prefix.
-ms-text-overflow does not exist, Opera does not need prefix.
-moz-border-radius and -webkit-border-radius not needed anymore.
-moz-background-clip and -webkit-background-clip not needed anymore.
-moz-box-shadow not needed anymore (-webkit still used for Android 2.3)
2013-06-29 17:16:51 +02:00
Cyrille Jouineau
7303852862 replaces a <div> inside a <a> with a <span>
and minor code cleaning
2013-06-26 16:32:07 +02:00
daniele panza
161dbb4281 Updated CSS rule to avoid unwanted styling of <span> tags used in options templates 2013-06-20 17:50:41 +02:00
fitnr
9062267ffa Add border to select2-drop-active
This creates a blue border around an entire active select2 element
2013-06-19 11:58:45 -04:00
easy2luv
2e9ae91d6c add styles to .select2-drop-mask needed for mask to work in IE 2013-06-13 10:47:14 -07:00
Igor Vaynberg
a4a3eedd51 component stays open after clicking on a native select in IE. fixes #1356 2013-05-31 17:57:21 -07:00
Julen Ruiz Aizpuru
66e06acde8 Removed BOM. 2013-05-14 11:41:31 +02:00
Igor Vaynberg
26751cb157 small css tweak. #929 2013-05-10 00:34:49 -07:00
Igor Vaynberg
828d7a5052 better way to remove outlines 2013-05-09 21:21:37 -07:00