Commit graph

198 commits

Author SHA1 Message Date
Sam Reed
26dc902e59 * (bug 27249) "Installed software" table in Special:Version should always be left-to-right
Patch by Jan Paul Posma
2011-04-25 14:46:42 +00:00
Leo Koppelkamm
92d5213ece Move edit.js stuff to mediawiki.action.edit.js, and remove wikibits dependency. Wrap publicly accessible functions inside mw.toolbar & provide legacy shortcuts to those. Make the traditional toolbar use $.fn.textSelection, to reduce code duplication. This fixes Bug 27116, Bug 15705, Bug 11011 2011-04-21 08:19:24 +00:00
Brian Wolff
74f16767e7 Merge to trunk everything in img_metadata branch.
Hope I did this in an ok fashion. svn merge --re-integrate was giving me issues
so I just essentially over-wrote my working copy with the version at img_metadata.
2011-04-16 01:23:15 +00:00
Leo Koppelkamm
7d6ddfe836 Completely rewritten table sorting script.
Fixes Bug 8028, Bug 8115, Bug 15406, Bug 17141, Bug 8732

1. Sites can specify custom collations.
The script accepts an object "tableSorterCollation" which contains a lookup
table, how specific characters should be treated.
For example, after setting "tableSorterCollation={'ä':'ae', 'ß':'ss'};" in the
site's common.js any string containing an ä or Ä will be sorted as if it were a
'ae'.

2. Table rows can be forced to use a specific data type.
By setting class="sort-{Parsername}", the row will be parsed with the specified
algorithm. class="sort-date" would force date sorting etc.
The following parsers are available: text, IPAddress, number, url, currency,
date, isoDate, usLongDate, time

3. Execution time is reduced by half or more.

Sorting a 935 row * 8 columns table:

Browser     Before      After
--------    ------      -----
Chrome 10   90ms        42ms
Safari 5    115ms       48ms
Firefox 4   412ms       87ms
IE8         720ms       115ms

4. Based on the content language and the mdy vs dmy preference, the parser can
understand dates such as "17. März '11". wgMonthNames=[] and
wgMonthNamesShort=[] 
in the content language and the mdy vs dmy preference are exported to js; A
table containing the following dates would be sorted correctly:
17. Jan. 01
23 Feb 1992
9.02.05
13 November 2001
14 Oktober '76

Was tested in ie6-8, chrome, safari 5, ff3 & ff4
2011-04-14 21:47:00 +00:00
Krinkle
b7aaa1c214 Remove color:black from table {} in skins (bug 28422) + small fixes
* Remove color:black from table {} in skins (bug 28422)
* Add color:black to .wikitable (since it has a background-color)
* Update comment about CSS3 'word-wrap:break-word' support in Gecko
* Remove line-break in mediawiki.js (it's ~ 90 chars, acceptable)
2011-04-06 16:31:46 +00:00
Happy-melon
32dca322af Styling for revdel'd revision links for oversighters/admins: make the links still be greyed out, but still active and with underline-on-hover. 2011-04-04 11:51:06 +00:00
Happy-melon
229b5aa755 (bug 19942) remove deprecated HTML attributes (cellpadding, align, valign) from TablePager. 2011-03-30 17:37:25 +00:00
Happy-melon
1f874c59d2 Follow-up r83907: abstract the flatlist mode into a descriptor option, and make it so the label does not linewrap away from the checkbox. 2011-03-27 22:45:32 +00:00
Tim Starling
2db6020e25 Revert r84615, complaints received from ml.wikipedia.org. Just because a language has its own set of numerals doesn't mean writers of that language prefer to use them. You can make these changes on a case-by-case basis, after community consultation. 2011-03-24 04:24:30 +00:00
Sam Reed
b63e315182 Added 11 more sets of numbered list localisations
Based on http://help.dottoro.com/lccatosn.php

Probably some more that can be done, but I don't know the language codes well enough
2011-03-23 17:45:53 +00:00
Sam Reed
624158c190 Add localised number listing for Oriya 2011-03-23 17:19:23 +00:00
Happy-melon
ccecc7f377 Follow-up r83907: some CSS to achieve flat lists 2011-03-14 15:56:51 +00:00
Niklas Laxström
5b0cc178cb HTMLForm:
* Allow field validators to return multiple errors
* Allow field validators to return Message objects
* Add a class for fields for invalid input
* Style invalid <input> fields with red border color

Done with http://www.mediawiki.org/wiki/StyleGuide/Forms in mind
2011-03-13 09:51:47 +00:00
Happy-melon
b9be69ce3d Spin out all the CSS used on special pages into their own mediawiki.special module. This comprises about a third of /skins/common/shared.css, so it's definitely worthwhile not loading it for the 99.9% of pageviews which aren't special pages. 2011-03-12 22:42:58 +00:00
Ilmari Karonen
7b9aaf7832 (bug 14645) Show expensive special pages differently in miser mode on Special:SpecialPages. Patch by Jarry1250 with a few tweaks by me. Tested, saw no errors or warnings. 2011-03-09 00:06:57 +00:00
Happy-melon
2607e6e458 Rm nonstandard and redundant styles for Special:SpecialPages; really no need for them, plus using an out-of-order header level is bad for accessibility. 2011-02-28 18:43:05 +00:00
Krinkle
7b0b4f0899 Removed white-background from ul.gallery; Updated commonPrint gallery styles
Since a while now proper margins and overflow prevent underlines and stuff from shining through other elements (such as tables, thumbs and galleries). Therefore there's no longer a need to force a white-background which caused ugly galleries on (parts of) pages with a non-white background (ie. a table.wikitable, or div.toccolours or  Commons' {{Information}} template)

The printstyles were outdated (stil targeted <table> instead of the new fluid galleries' <ul>). Updated now and white background removed there as well

* This commit fixes (bug 27458) Remove white background-color from ul.gallery
* r65923 introduced print-style for galleries (to make them look like galleries instead of tables)
* r77411 made galleries fluid and therewith changed the element from <table> to <ul>
2011-02-24 21:16:41 +00:00
Mark A. Hershberger
f39a2aeee9 followup r82181 and r82215 to fix the FIXME and botched fix for FIXME.
Patch supplied by DieBuche (bug #27338) along with screenshot
demonstrating fix.

Took out fix for bug #27458 (“<gallery> has a white background now”)
since bug it conflicts with a fix for bug #26470.
2011-02-16 23:21:19 +00:00
Krinkle
6e2f248ab9 Adding italics for .watchlistredir
* Adding comment about Special:PrefixIndex (uses same class as Special:AllPages).
* Follow-up r78964: Adding them for .watchlistredir as well (was forgotten)
2011-02-15 23:45:57 +00:00
Mark A. Hershberger
02d95fc21b * (bug 27338) Gallery in 1.17 breaks for audio/video + ogghandler
Patch by DieBuche, who explains the CSS:

    If the image height is lower than the line-height, the margin-top
    is applied to the top of the line.  a very short image will not
    follow for 3-4px laters, thus leading to a bigger distance from
    the top than it should be.  vertical-align:text-top moves the
    picture up, so this problem doesn't happen

I've not tested this, but DieBuche and Derk-Jan Hartman tested and
provided screenshots in the bug.
2011-02-15 19:39:45 +00:00
Krinkle
2836fc7014 Removing more, no longer needed, overrides for the white table background (which is no longer the case since bug 26449 was solved in r79087 and r79091)
* table#mw-search-top-table (r52669 / 55748)
* table.allpageslist, table.mw-allpages-table-form, table.mw-allpages-table-chunk (r49500)
* (r32269, r55393, r78865)
Thanks to Fomafix!
See also r80495 CR
2011-01-28 23:30:04 +00:00
Derk-Jan Hartman
edfa7adc62 Follow up to r80773. Repair the thumbcaptions alignment. 2011-01-22 22:29:57 +00:00
Derk-Jan Hartman
7a50063e28 Remove RTL definitions from skins/common/shared.css
With the new auto rtl flipping of resourceloader, all rtl sites were broken.
2011-01-22 22:21:57 +00:00
Krinkle
3d68d1da36 whitespace clean up in shared.css 2011-01-14 00:46:02 +00:00
Krinkle
7259e50d3e Oops, FF2 doesn't support inline-block display. Restoring that one.
FF2 ignores the latter display:inline-block and sticks to the -moz-inline-box
(Follow-up r78232,r 80214)
2011-01-14 00:39:51 +00:00
Krinkle
12da122590 Removing redundant line (Follow-up r78232)
<code>
ul.gallery, li.gallerybox {
display: inline-block;
</code>
the display of ul.gallery is overwritten later.
the display of li.gallery is overwriting an earlier one.

Shouldn't change anything other then having one line less
2011-01-14 00:34:06 +00:00
Roan Kattouw
0d41856eb1 Add /* @embed */ comments for URLs in all RL-ified CSS files, except in jQuery UI's default theme. This'll reduce the number of images loaded, especially for jQuery UI. 2011-01-04 14:25:35 +00:00
Happy-melon
ca15303c81 Refactoring in RecentChanges/Watchlist:
* Use new jQuery/RL collapsible implementation, remove legacy JS.
* Refactor ChangesList::flag() and ChangesList::recentChangesFlags(), the latter to now take an array rather than a growing list of out-of-order parameters.
* Resolve the FIXME requested in r44421 (just passed its second birthday :D) by replacing extract() calls with direct references.
2010-12-27 19:07:28 +00:00
Krinkle
c996e4237a Skins override shared.css, merged fix for bug 26423 in r79010 to skins instead 2010-12-25 23:10:14 +00:00
Krinkle
520f59941f Removing ugly whitespace around thumbnails on a non-white background.
* (bug 26423) Margin around thumbnails is forced to be white
2010-12-25 22:57:38 +00:00
Krinkle
a987ea008e Reverting r78889 and r78865. Breaks changeslist on translatewiki (unpatrolled-flag exclamation mark popping up on page histories and and diff-views where they shouldn't instead of an 'm' for minor)
-  = ChangesList::flag( 'minor' );
- The jquery effects plugin and collapsible implementation, also in those commits, are redundant now.
- If/when skins.commons is needed again, we can simply add that part back in.
- (r78891 is not reverted because the file it altered was deleted while r78865 was -merged)
2010-12-25 00:29:41 +00:00
Krinkle
a61210b140 Adding default styling for redirects
* Fixes bug 26266
* HTML class .allpagesredirect (redirects on [[Special:AllPages]]), .redirect-in-category (redirects in category listings)
2010-12-24 15:07:01 +00:00
Happy-melon
023debde16 (bug 17456) implement CollapsibleTables in core javascript. Using ResourceLoader/jQuery, this is now able to replace not only the ubiquitous collapsible tables in articles ([[mw:Manual:Collapsible tables]]), but also most of the other places we collapse things as well, like the enhanced Watchlist/RecentChanges feed. 2010-12-23 00:06:58 +00:00
Krinkle
daa5af44a6 small fixes
* Change assumptions about default/newest skin in CSS comments from Monobook to Vector
* Single-item array to string
2010-12-22 04:08:40 +00:00
Roan Kattouw
d1149f9da6 Fix r78196: readd accidentally removed lines in shared.css 2010-12-13 12:40:08 +00:00
Aryeh Gregor
f5ee1d4c61 Make ul.gallery block, not inline-block
As suggested by fomafix at
<https://bugzilla.wikimedia.org/show_bug.cgi?id=3276#c33>.  This makes
it play nicer with floats, at least in Firefox 4, and doesn't seem to
otherwise break stuff (but I haven't tested in many browsers).
2010-12-12 00:30:06 +00:00
Chad Horohoe
699e53dc2f Revert r68230, r68231 (mode="grid" on tables) per CR. It's in the history if anyone wants to work on this again 2010-12-10 16:03:57 +00:00
Roan Kattouw
1ca55b6df2 Revert r78158, Aryeh tells me it's a deliberate browser hack 2010-12-10 00:06:50 +00:00
Roan Kattouw
08320daecc Fix bad CSS syntax from r77411 2010-12-09 23:47:59 +00:00
Brandon Harris
44a91da53a * Fix issues brought up in r75832
* Really and truly add in a couple files that were supposed to go in with r77898, and fully revert r77860 (which was a reversion of r75832). (Ran previous commit for r77898 from wrong directory. Oops.)
* Fixed issue with help box text not being parsed.
* Modified help system to remove tooltips and instead open/show hidden boxes.
  - I am not happy with this design and future revisions will iterate upon it.
  - The biggest problem is everything sitting "on top" of itself.  I dislike this a great deal and plan on changing it to be more aesthetic and natural; however, I wanted to get a version of this in that allowed for cut-and-pasting and solved the text parsing issue.
  - With javascript disabled, help text is visible by default.
* Remove redundancy in checkboxes
* Added i18n entry for "help", which wasn't there for some reason.
* Removed references to tipsy library in installer html
  - Kept tipsy library in core; this is being used elsewhere.
2010-12-06 23:13:35 +00:00
Tim Starling
41b92f3343 Reverted r75832 per my comments on CR, unanswered for 19 days. Moving all help information into tooltips is a step backwards for usability. Reverted followups r75836, r75866, r76314 and r76315. 2010-12-06 07:08:31 +00:00
Derk-Jan Hartman
bb84043024 Follow up to r77411. Patch by DieBuche
1. Adds a line css to actually fix Bug 3770 (Sorry, I had forgotten to paste it
there as well)
2. Fixes a problem, where the box size would be slighty higher if the image
thumb has a height of less than 8px
3. Normalize the calculation of the vertical padding to be exactly the same one
as the horizontal padding. (This is only relevant for unusually large
galleries, eg. previously it returned a not-exactly-square box if you specified
500px as both width and height)
2010-12-05 22:41:06 +00:00
Aryeh Gregor
05579cf0e6 Give image <gallery>s fluid width
Bug 3276.  Patch by DieBuche, with style cleanups by me, plus a tweak
from comment 27 of the bug to fix spacing.  This incidentally removes
the border around galleries, but this was hard to notice anyway, and
could be easily readded if desired.  Tested in a few browsers, including
IE6, but more testing and/or input from CSS gurus would be appreciated.

Updates parser tests, including for Cite.
2010-11-29 00:11:19 +00:00
Brandon Harris
d00ddeef7f * Added tipsy library
* Added associated files for tooltip display
* Added associated css rules for tooltip display
* Updated installer's help system in (most?) places to display help as tooltips instead of show/hide system
* Beginnings of visual changes (e.g., less boxes, more color)
* Modified several of the installer's widget display methods
* Added a couple new i18n values
* Fixed small bug in installer logic:
  - Password validation on new users was being executed even if there wasn't a $user object
2010-11-01 21:17:15 +00:00
Niklas Laxström
e3e2d138fd Fix immediate issues in r72900. I'd still like more testing and perhaps requests from language communities before adding the rest. 2010-10-23 15:24:08 +00:00
Niklas Laxström
89372f706c Testing localised list numbering per http://translatewiki.net/wiki/Thread:Talk:Issues_and_features/CSS_Customization_and_numbering_system 2010-09-13 14:39:57 +00:00
Jack Phoenix
8adecf7a8c removed TablePager CSS from Modern's main.css as shared.css already contains that and Modern includes shared.css. Also merged two .TablePager rules into one in shared.css and updated comments 2010-07-05 20:45:20 +00:00
Andrew Garrett
351e25c211 Add vertical-label option to HTMLForm, for CommunityHiring 2010-07-02 21:20:54 +00:00
Daniel Kinzler
389eba6bd9 follop-up to 68230: forgot to commit the styles needed for layout grids 2010-06-18 19:21:04 +00:00
Derk-Jan Hartman
109cbf1847 Fix bug 23519. Move styling of the previewpage note from monobook to common, so that it can be used by Vector as well. 2010-06-10 23:23:32 +00:00