Commit Graph

110 Commits

Author SHA1 Message Date
Santhosh Thottingal
081310b45e Style adjustments for no-results
* 20px spacing above and below the "No results found" message.
* 12px spacing above and below the search indications ("You can search by...")
* Adjusting the text color to use Base20 (#54595D)
* Adjust the background to use the same background color as the area above it (#FCFCFC).
* Add a top border in Base80 (#EAECF0) to separate both areas.

See https://phabricator.wikimedia.org/T175235
2018-01-30 12:52:47 +05:30
Pl217
4545872983 Use unidirection language icon
* Use single language icon for both LTR and RTL.
* Reduce padding between icon and autonym language name.
2018-01-16 17:39:32 +05:30
Niklas Laxström
d349937772 Do not group search results by region
* Documentation updates
* Do not group search results by region
* Disable grouping by script when region grouping is disabled
* Add docs, clarify names per code review
* Fix bool -> boolean for consistency
2018-01-16 17:04:29 +05:30
Pl217
fd41bbe5e1 - Replace ULS trigger icon with monochromatic one.
- Reduce left padding between icon and language autonym name.

Phab ID: T175769
2018-01-12 19:20:11 +01:00
Santhosh Thottingal
2aa43148bb Custom no-results message support (#286)
* Custom no-results message support
* Refactoring and clean up for LanguageCategoryDisplay class
* Document the options for LanguageCategoryDisplay class
* Reduce the spreading of no results handler code
* Add an option to accept no results template
* Remove unwanted, unused constructor too
* Use CSS to hide or show the no-results view
* Remove the unwanted noresults method in jquery.uls.core, directly
  call the same method of lcd.
* Add an example
* Support a function returning jquery element as the no-result handler
2018-01-12 16:05:11 +02:00
Santhosh Thottingal
2a77df6c41 Use eslint and stylelint, fix all errors (#282)
* Use eslint and stylelint, fix all errors

* Remove jshint, jsbeautify
* Use Object.keys directly since that is available in all major browsers
* Fixes for eslint, stylelint errors
* stylelint is not included in grunt test yet because jquery.uls.mobile.css
  has so many !important and need to figure out whether they are really needed
2018-01-04 15:58:35 +02:00
James D. Forrester
f47692a390 Drop -webkit-linear-gradient image CSS fallback
This reduces the payload of CSS slightly (and in the few cases where these
were not just present but @embed'ed, significantly), at a cost of giving
those user agents which don't support the un-prefixed rule the icons as
PNGs rather than SVGs (i.e. Chrome < 25, Safari < 6.1, Android < 4.4).

We made this change for MediaWiki back in November 2015 in T118815. This
repo is not alone in not having noticed. :-)

Change-Id: I1469bce3dd6c6eed0d291a0cb8a19eceeaff4c10
2017-11-29 15:56:04 +05:30
Volker E
18a2006708 Update .uls-lcd-region-title to conform to WCAG level AA
Updating `.uls-lcd-region-title` to be on the safe side with color contrast, 
conforming to WCAG level AA no matter what `background-color` grey or `font-size`.
2017-10-09 19:45:07 -07:00
Santhosh Thottingal
34df56f650 Merge pull request #272 from wikimedia/fix-no-search-results
Improve how "no search results" is handled
2017-09-11 11:32:46 +05:30
Volker E
0ca0bd0e7b Improve CSS
Improving by merging same value selectors and aligning whitespace
2017-09-07 19:06:54 -07:00
Volker E
70eba564d8 Improve color values and CSS 2017-09-07 19:04:08 -07:00
Volker E
6c84980453 Remove redundancy, increase contrast
Removing redundancy by stripping out default values or using shorthands where applicable.
Also increasing color contrast to conform to WCAG level AA.
2017-09-07 19:01:12 -07:00
Niklas Laxström
ca550e22cd Improve how "no search results" is handled
* Drop the ugly height: 100% hack and do it properly and remove TODO
* after( $suggestions.show() ) seems to not work as expected in recent
  jQuery versions. Changed it to manipulate the presence of 'hide'
  class properly.
* Consistency fix in a comment
* Fixed a bug where creating multiple ULS instances would break the
  "no search results" functionality. This is because we were appending
  a jQuery element wrapped in a $(). This is obviously a no-op and a
  regression when the template actually was a string and not jQuery.
  Fixed by using clone() on it.

https://phabricator.wikimedia.org/T175233
2017-09-07 11:22:26 +02:00
Niklas Laxström
8a8f502de7 Style changes to lcd
This change is larger than it should because I came across lots of
unused CSS which I removed or simplified.

https://phabricator.wikimedia.org/T138235
2016-08-17 16:29:08 +02:00
Santhosh Thottingal
ae9dda23b7 Merge branch 'nikerabbit-badges' 2016-06-09 15:08:28 +05:30
Niklas Laxström
25775dd147 Adjust styles and code to support custom list bullets
Tweak specificty of the rule that hides bullets so that it is easy
to override.

Move dir and lang attributes from <li> to <a> so that the bullets
appear on the correct side for reverse directionality scripts.

Change-Id: Ic0d0c5220b0b374c2a3a19023c40d81f3e20007c
2016-06-09 15:08:15 +05:30
Niklas Laxström
fb12b5e25d Avoid scrollbars in RTL 2016-06-02 10:55:51 +03:00
Niklas Laxström
eaf350a20c Some styling tweaks to search bar
From https://gerrit.wikimedia.org/r/#/c/285593/6/resources/css/ext.uls.css
2016-05-23 18:10:30 +03:00
Santhosh Thottingal
d61eb1ffd4 Merge pull request #216 from wikimedia/drop-compact
Remove compact mode
2016-04-22 11:12:07 +05:30
Niklas Laxström
c103030cc3 Replace search icon with a new one
Also removed the smallening of the search icon narrow mode.
2016-04-21 15:50:50 +05:30
Niklas Laxström
2a538b78e1 Remove compact mode
Make the regular mode look like compact mode
2016-04-21 15:27:49 +05:30
Niklas Laxström
20d5e431a3 Some cleanup to the language filter
No longer using grid to position the icon, but nested divs instead.

Tweaked some padding etc. related cleanup.
2016-04-06 17:26:44 +03:00
Santhosh Thottingal
2e16e9b701 Remove the reference to map block
Change-Id: I141d468d352176f000a750d40b54b4dbf799ba05
2016-04-06 10:23:38 +05:30
Santhosh Thottingal
7780bfb17a Add left and right padding for search header of compact ULS
See https://phabricator.wikimedia.org/T130633

Change-Id: I59a632c312682a92cf8341dec9de2779a81bb298
2016-04-05 10:15:27 +05:30
Santhosh Thottingal
499c30d0ea Merge branch 'uls-remove-map' of https://github.com/santhoshtr/jquery.uls into santhoshtr-uls-remove-map
Change-Id: Ie59e2a59225873b5cf432df526cbfc135e539d32
2014-12-22 14:51:46 +05:30
Amir E. Aharoni
f44302106b For narrow ULS show one column without separators 2014-12-22 11:09:48 +05:30
Amir E. Aharoni
dd59d4d0c8 CSS tweaks for narrow ULS 2014-12-04 00:39:57 +02:00
Amir E. Aharoni
b55bc61dc7 Grid-compatible adjustable columns 2014-12-02 22:16:09 +02:00
Amir E. Aharoni
752a295ee2 Allow sending the number of lcd columns as a parameter
This is needed for https://phabricator.wikimedia.org/T76196
and may also nbe useful for many other features.
2014-12-02 13:23:22 +02:00
Santhosh Thottingal
c2b68e8cbc Remove the region selector feature
* Maps removed from UI
* From no-results UI, removed the links to navigate by clicking region names
* Removed the $.fn.regionSelctor plugin, Retained the RegionSelector class
* Removed all related css for the removed UI parts
* Reduced the padding for main ULS title so that the top header takes less height
* And a dozen of related changes

Change-Id: I8ac89ebe380047ca267e5c7720c2eaa3da080e9d
2014-07-27 20:29:01 +05:30
Santhosh Thottingal
fef552d97b Merge branch 'master' of https://github.com/nemobis/jquery.uls into nemobis-master
Change-Id: I27589e099cf9841194c92228b8d91cee33937390
2014-06-02 10:03:31 +05:30
Santhosh Thottingal
36478fa55a Fix css class names in the template
Somehow missed in previous merges

Change-Id: I700f53b6d9d78f7b5db88d880c151139bfb7e4dc
2014-05-22 09:33:12 +05:30
Santhosh Thottingal
b3c5c44efa Merge branch 'css' of github.com:edg2s/jquery.uls into edg2s-css
Change-Id: I04d52aa78bb99762dbc1982f8b1515e9cb9d7e67
2014-05-18 14:08:09 +05:30
thiemowmde
951a485878 Hide misplaced borders in the compact design
The border on top is white and therefore not visible. It's simply the wrong element hidden.

The border at the bottom was gray and visible. It looked like a misplaced 2px border.
2014-05-15 21:44:24 +02:00
Nemo bis
4237fbc82a Remove the world map from language selector: unused
Nobody objected in months, see issue 128 and bug 62637.
2014-05-11 18:53:16 +02:00
Ed Sanders
3c924396fe Rename languagefilter to uls-languagefilter 2014-05-02 14:45:20 +01:00
Ed Sanders
6e8a736863 Rename languagefilter-clear to uls-languagefilter-clear 2014-05-02 14:42:29 +01:00
Ed Sanders
e4ac600fc5 Rename filtersuggestion to uls-filtersuggestion 2014-05-02 14:41:17 +01:00
Ed Sanders
90dae4cfcd Rename filterinput to uls-filterinput 2014-05-02 14:39:16 +01:00
Ed Sanders
b31254396e Rename search-input-block to uls-search-input-block 2014-05-02 14:37:22 +01:00
Ed Sanders
b4913cd717 Rename search to uls-search 2014-05-02 14:36:53 +01:00
Ed Sanders
9a4be3023b Rename search-label to uls-search-label 2014-05-02 14:36:46 +01:00
Ed Sanders
20d80a1294 Rename icon-close to uls-icon-close 2014-05-02 14:36:39 +01:00
Ed Sanders
4c8ecb2ebd Rename map-block to uls-map-block 2014-05-02 14:36:31 +01:00
Niklas Laxström
42733b5856 Remove prefixed border-radius rules 2014-03-22 18:03:01 +00:00
Niklas Laxström
d4ea222750 Drop -moz-linear-gradient for images
The costs are bigger than benefits now
2014-01-23 23:47:13 +00:00
Ori Livneh
02ebadf008 Apply /* @embed */ pragma to every image, not just the topmost in each block
ResourceLoader's CSSMin scopes each /* @embed */ to the rule immediately below
it, not the entire block. This patch adds the pragma for the image assets
which were omitted.
2014-01-20 01:52:05 -08:00
Santhosh Thottingal
49497d7078 Avoid overriding grid css for language list
Change-Id: I7606c5af716f2094bc1766a95123a68413634c91
2013-11-05 19:49:38 +05:30
Santhosh Thottingal
22475812b1 Move the autonym font to example instead of making part of jquery.uls
Change-Id: I1fa119ef3a89f34e1fde18712d4e267d174869c8
2013-11-01 14:55:44 +05:30
Siebrand Mazeland
ac8aa2723c Remove non-existing "-ms-linear-gradient"
Per https://bugzilla.wikimedia.org/56138
2013-10-29 17:26:07 +01:00