Thanks to a neighboring thread, I re-explored monobook's main.css to learn a bit more about this CSS stuff.
I learned that I can (ab)use a couple of concepts to make my text invisible and still useful.
<div class=hiddenStructure> this won't show, but it's searchable! </div>
also "printfooter" would work the same.
However, I'm searching for a way to have text appear in regular view, but not appear in the printable version. Is this possible with the way things are currently set up?
I don't want to have to hack the css myself.. that's too messy for me.
I'm using mw 1.5b4
look at page MedaiWiki:Monobook.css its a page that is already downloaded (raw) and used as a stylesheet on all your pages
however to have soemthing NOT show on the print you will have to edit the print css manualy, sorry
Mike Valstar
Sy wrote:
Thanks to a neighboring thread, I re-explored monobook's main.css to learn a bit more about this CSS stuff.
I learned that I can (ab)use a couple of concepts to make my text invisible and still useful.
<div class=hiddenStructure> this won't show, but it's searchable! </div>
also "printfooter" would work the same.
However, I'm searching for a way to have text appear in regular view, but not appear in the printable version. Is this possible with the way things are currently set up?
I don't want to have to hack the css myself.. that's too messy for me.
I'm using mw 1.5b4 _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 8/16/05, Mike Valstar mikevalstar@gentoo-wiki.com wrote:
look at page MedaiWiki:Monobook.css its a page that is already downloaded (raw) and used as a stylesheet on all your pages
however to have soemthing NOT show on the print you will have to edit the print css manualy, sorry
I knew of the MediaWiki:Monobook.css, but now I see that I could customize it very easily there without hacking the actual file. Very nice.
Ok.. so I'd have to do manual stuff to get this to work my way then.. does anyone have any ideas how I can start? I don't quite grasp CSS enough to see where the printable version of a page comes from.
I can see a printfooter and some other stuff.. but I'm not quite sure how to go about this.
look in the header section of the html for the site you will notice it including many stylesheets
one will say media="print" thats the one used only for printing while those that say media="screen" are for your monitor only
Mike Valstar
Sy wrote:
On 8/16/05, Mike Valstar mikevalstar@gentoo-wiki.com wrote:
look at page MedaiWiki:Monobook.css its a page that is already downloaded (raw) and used as a stylesheet on all your pages
however to have soemthing NOT show on the print you will have to edit the print css manualy, sorry
I knew of the MediaWiki:Monobook.css, but now I see that I could customize it very easily there without hacking the actual file. Very nice.
Ok.. so I'd have to do manual stuff to get this to work my way then.. does anyone have any ideas how I can start? I don't quite grasp CSS enough to see where the printable version of a page comes from.
I can see a printfooter and some other stuff.. but I'm not quite sure how to go about this. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Aha! That put me on the right track.
I saw a "common/commonPrint.css", within which I found "noprint"
<div class=noprint> This will display in a regular view, but not in the printable view. </div>
Yay! =)
Along the same lines.. when editing MediaWiki:Monobook.css .. I notice that I cannot do something like:
h1, h2 { border-bottom: none; border-top: 1px solid #aaa; }
.. to customize my header displays. Is this because this file is not appropriate for customizing things already found in the physical monobook.css file?
On 8/16/05, Mike Valstar mikevalstar@gentoo-wiki.com wrote:
look in the header section of the html for the site you will notice it including many stylesheets
one will say media="print" thats the one used only for printing while those that say media="screen" are for your monitor only
On 8/16/05, Sy sy1234@gmail.com wrote:
Along the same lines.. when editing MediaWiki:Monobook.css .. I notice that I cannot do something like:
h1, h2 { border-bottom: none; border-top: 1px solid #aaa; }
.. to customize my header displays. Is this because this file is not appropriate for customizing things already found in the physical monobook.css file?
I'm far from an expert on CSS, but you might be able to fix this with
h1, h2 { border-bottom: none !important; border-top: 1px solid #aaa !important; }
No idea why it doesn't work the other way -- MediaWiki:Monobook.css is sourced after the CSS you're trying to override.
-- Josh
mediawiki-l@lists.wikimedia.org