The search results are in small font (<small>). I'd like to increase the font size (and maybe change the red color) a bit. Looks like the use of the "<small>" tag for the search formatting has been hard coded in SpecialSearch.php. Is there a way to effect the formatting without modifying internal files, for example using Mediawiki:Common.css?
thanks Erik
--------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
You can use the css to change how <small> is displayed.
small { font-size-adjust: .8; }
I like to use http://w3schools.com/css/css_font.asp as a reference for css changes.
Good Luck! -Courtney
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Eric K Sent: Tuesday, July 10, 2007 12:34 AM To: MW Subject: [Mediawiki-l] Changing format of Search results
The search results are in small font (<small>). I'd like to increase the font size (and maybe change the red color) a bit. Looks like the use of the "<small>" tag for the search formatting has been hard coded in SpecialSearch.php. Is there a way to effect the formatting without modifying internal files, for example using Mediawiki:Common.css?
thanks Erik
--------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thanks! That helps some, but that means I'll be changing the global usafe of small, not just in the search results.
"Christensen, Courtney" ChristensenC@BATTELLE.ORG wrote: You can use the css to change how is displayed.
small { font-size-adjust: .8; }
I like to use http://w3schools.com/css/css_font.asp as a reference for css changes.
Good Luck! -Courtney
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Eric K Sent: Tuesday, July 10, 2007 12:34 AM To: MW Subject: [Mediawiki-l] Changing format of Search results
The search results are in small font (). I'd like to increase the font size (and maybe change the red color) a bit. Looks like the use of the "" tag for the search formatting has been hard coded in SpecialSearch.php. Is there a way to effect the formatting without modifying internal files, for example using Mediawiki:Common.css?
thanks Erik
--------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- Pinpoint customers who are looking for what you sell.
Eric K wrote:
The search results are in small font (<small>). I'd like to increase the font size (and maybe change the red color) a bit. Looks like the use of the "<small>" tag for the search formatting has been hard coded in SpecialSearch.php. Is there a way to effect the formatting without modifying internal files, for example using Mediawiki:Common.css?
1) You could make the red match text green by adding this line to Mediawiki:Common.css
.searchmatch {color:green !important}
(I don't know why !important is required but it didn't work for me without it.)
I cooked that up by examining the page source of a search results page for my MediaWiki site in my browser and noting each search result match is within a <span class="searchmatch"> ... </span> tag.
2) To change the size of <small> for only the search results page, note the search results page's body tag has four class labels and the last one, page-Special_Search, is probably exclusively for search results pages:
<body class="mediawiki ns--1 ltr page-Special_Search">
You can probably set <small> on search results pages only to whatever you like with a line like this in Mediawiki:Common.css
.page-Special_Search small {font-style:italic; font-size:larger}
(That style's <small> tags within class="page-Special_Search" to be whatever you type within the { ... }. I only added font-style:italic to show you can do more than just size here. I don't actually recommend italic for that text.)
I keep this bookmarked: http://www.w3.org/TR/CSS21/propidx.html
I prefer to not tinker with the defaults, myself. Life gets complicated fast. I focus on essential stuff like keeping a back up of my wiki's database instead.
Good luck,
Roger :-)
mediawiki-l@lists.wikimedia.org