Last modified: 2014-02-24 21:53:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28544, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26544 - CSS for .redirectText different from all other themes (font-size, margin)
CSS for .redirectText different from all other themes (font-size, margin)
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.23.0
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy, patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-02 13:48 UTC by Erwin Dokter
Modified: 2014-02-24 21:53 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch file for trunk/phase3/skins/vector/screen.css (329 bytes, patch)
2011-05-18 11:05 UTC, Erwin Dokter
Details
Patch for monobook/screen.css (385 bytes, patch)
2011-07-10 20:30 UTC, Erwin Dokter
Details
Patch for monobook/screen.css (386 bytes, patch)
2011-07-10 20:38 UTC, Erwin Dokter
Details
Patch for vector/screen.css (274 bytes, patch)
2011-11-21 11:28 UTC, Erwin Dokter
Details

Description Erwin Dokter 2011-01-02 13:48:22 UTC
In /monobook/main.css, the following CSS for soft redirects is in place, but this has been completely overlooked in Vector, resulting in too small links:

/* Soft redirect */
.redirectText {
  font-size: 150%;
  margin: 5px;
}
Comment 1 Erwin Dokter 2011-05-18 11:05:47 UTC
Created attachment 8552 [details]
Patch file for trunk/phase3/skins/vector/screen.css
Comment 2 Krinkle 2011-05-22 22:33:28 UTC
Trevor:

Was this a design/usability choise (having .redirectText not be small, too many font-size variations on a page, perhaps potentially unreadable) or was it forgotten and is it now too big in Vector / attracting too much attention maybe ?

I can see logic in both.
Comment 3 Erwin Dokter 2011-05-23 01:01:07 UTC
The links are now too *small* in Vector, making them easy to overlook (IMO). I did 'fix' it in enwiki's vector.css, so they show correct there.
Comment 5 Chad H. 2011-05-23 23:38:39 UTC
(In reply to comment #4)
> They look fine to me either way. INVALID?

Umm...

(In reply to comment #3)
> The links are now too *small* in Vector, making them easy to overlook (IMO). I
> did 'fix' it in enwiki's vector.css, so they show correct there.

Maybe because of this ;-)
Comment 6 Brion Vibber 2011-05-23 23:41:57 UTC
Grrrr... hiding a bug and then not providing descriptions or screenshots for anybody to test doesn't help. :)

Here's another site:

http://fr.wikipedia.org/wiki/Foo?redirect=no&useskin=vector
http://fr.wikipedia.org/wiki/Foo?redirect=no&useskin=monobook

Vector is visibly smaller here -- the exact same size as body text -- whereas MonoBook bumps the font size up a bit. Still not particularly bad either way; the smaller font size seems a smidge too small maybe but the larger one is a smidge too large IMO.
Comment 8 Erwin Dokter 2011-05-24 08:53:34 UTC
The 150% in Monobook is the size of H2 headers, which matches with the arrow symbol size. I tried a H3 equevalent, which is 132% (and bolded), but I found that a little too small and bold. I want to fix the alignment anyway by adding the following rule to the patch:

div.redirectMsg img {
  vertical-align: text-bottom;
}

So once we agree on the size, I'll update the patch.
Comment 9 DieBuche 2011-07-10 13:20:05 UTC
I agree with Brion that 150% is a bit over the top; I went with 140% in r91831
Comment 10 Erwin Dokter 2011-07-10 20:30:44 UTC
Created attachment 8768 [details]
Patch for monobook/screen.css

Two thing: 140% does not match with the arrow symbol, and you left out the 5px margin, making the text stick too close to the image. Brion also said there was nothing wrong with 150%. So please don't make unilateral changes to the patch. I've attached a new patch.
Comment 11 Erwin Dokter 2011-07-10 20:38:55 UTC
Created attachment 8769 [details]
Patch for monobook/screen.css

Fix patch file.
Comment 12 DieBuche 2011-07-11 09:23:49 UTC
(In reply to comment #10)
> and you left out the 5px margin, making the text stick too close to the image. 

The arrow leads from the article title to the redirect text. It's not an arrow standing besides unrelated text, where separation would be useful. ( at least use margin-left, since this it what you want to change)


>Brion also said there was nothing wrong with 150%.

Comment #6: 
> the smaller font size seems a smidge too small maybe but the larger one is a
> smidge too large IMO.
Comment 13 Erwin Dokter 2011-07-11 10:55:38 UTC
I just followed the monobook desing; it has a 5px margin on all sides to seperate *any* text from the arrow (yes, there can be other text on a redirect page).
Comment 14 Bugmeister Bot 2011-08-19 19:12:55 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 15 Sumana Harihareswara 2011-11-21 10:34:47 UTC
Comment on attachment 8769 [details]
Patch for monobook/screen.css

Patch no longer applies to trunk, so marking obsolete (checked by Rusty per
http://lists.wikimedia.org/pipermail/wikitech-l/2011-November/056340.html ).
Comment 16 Sumana Harihareswara 2011-11-21 10:36:23 UTC
Erwin, if you'd like to revise your patch to work with the current codebase,
that would be welcome; if you'd like suggestions or discussion, please chat with other MediaWiki developers in #mediawiki on Freenode IRC. Thanks!
Comment 17 Erwin Dokter 2011-11-21 11:28:54 UTC
Created attachment 9508 [details]
Patch for vector/screen.css

Fontsize 150%, margin 5px. The img align was already in trunk. (I also misnamed the previous patch, it was of course ment for Vector.)
Comment 18 Sumana Harihareswara 2011-11-22 20:03:05 UTC
Thanks for the patch, Erwin.  Added the "patch" & "need-review" keywords to indicate that your new patch awaits code review.
Comment 19 Sumana Harihareswara 2012-05-23 19:36:35 UTC
Erwin, I'm sorry for the wait.  Your patch will get reviewed faster if you submit it as a Git branch via Gerrit - https://www.mediawiki.org/wiki/Developer_access .  Thanks.
Comment 20 Andre Klapper 2013-04-05 14:58:18 UTC
To get this going I'd recommend anybody interestedh here to use Developer access
  https://www.mediawiki.org/wiki/Developer_access
to submit this as a Git branch directly into Gerrit:
  https://www.mediawiki.org/wiki/Git/Tutorial
Comment 21 Andre Klapper 2014-02-24 20:01:48 UTC
Patch needs update again (plus http://tools.wmflabs.org/gerrit-patch-uploader/ might be able to work around any Gerrit reluctance):

This is now in https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/skins%2Fvector%2Fcomponents%2Fcommon.less#L70 :

.redirectText {
	font-size: 140%;
}
Comment 22 Erwin Dokter 2014-02-24 20:28:10 UTC
That will be sufficient. No new patch needed. Closing this.
Comment 23 Andre Klapper 2014-02-24 21:53:09 UTC
No fix involved, closing as WORKSFORME.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links