I understand that I can edit MediaWiki:monobook.css to add in stylesheet type stuff.
Reading the w3 stuff:
http://www.w3.org/TR/CSS21/selector.html#class-html
I see that I can do:
H1.pastoral { color: green } /* H1 elements with class~=pastoral */
<H1>Not green</H1> <H1 class="pastoral">Very green</H1>
However, this does not seem to do anything.
Playing around with my cache doesn't seem to influence anything. Is there another caching mechanism I need to know about? Some sort of maintenance script or something?
Sy, at first I would try to see if I can get the color to change by speficing directly as a 'style' ellement. Like <H1 style="color: green;"> to see if this works. Which it does in my MW1.5b4 setup. I have had similar trouble with specifying a class in monobook I eventually succeeded by using the hexadecimal color notation, thus: H1.pastoral { color: "#00FF00;" }
Success
On 8/17/05, Sy sy1234@gmail.com wrote:
I understand that I can edit MediaWiki:monobook.css to add in stylesheet type stuff.
Reading the w3 stuff:
http://www.w3.org/TR/CSS21/selector.html#class-html
I see that I can do:
H1.pastoral { color: green } /* H1 elements with class~=pastoral */
<H1>Not green</H1> <H1 class="pastoral">Very green</H1>
However, this does not seem to do anything.
Playing around with my cache doesn't seem to influence anything. Is there another caching mechanism I need to know about? Some sort of maintenance script or something? _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Am 17.08.2005 um 10:34 schrieb Hans Voss:
H1.pastoral { color: "#00FF00;" }
should be h1.pastoral { color:#00FF00; } or h1.pastoral { color:"#00FF00"; }
H1.pastoral { color: green } /* H1 elements with class~=pastoral */
<H1>Not green</H1> <H1 class="pastoral">Very green</H1>
use h1 instead of H1. don't know wether that's the bug but maybe.
ciao, tom
-- http://de.wikipedia.org/wiki/Benutzer:TomK32 http://www.tomk32.de
This works as expected: <h1 style="color:green;">green</h1>
This does not (in MediaWiki:monobook.css): h1.pastoral { color:green; } <h1 style="pastoral">not green</h1>
Sy,
On 8/17/05, Hans Voss hans.voss@gmail.com wrote:
Sy, at first I would try to see if I can get the color to change by speficing directly as a 'style' ellement. Like <H1 style="color: green;"> to see if this works. Which it does in my MW1.5b4 setup.
If you tried it exactly as you wrote here, it shouldn't ;-)
I hope you tried: <h1 CLASS="pastoral">Green maybe?</h1>
(so 'class' in stead of 'style').
On 8/17/05, Sy sy1234@gmail.com wrote:
This works as expected:
<h1 style="color:green;">green</h1>
This does not (in MediaWiki:monobook.css): h1.pastoral { color:green; }
<h1 style="pastoral">not green</h1>
Sy,
On 8/17/05, Hans Voss hans.voss@gmail.com wrote:
Sy, at first I would try to see if I can get the color to change by speficing directly as a 'style' ellement. Like <H1 style="color: green;"> to see if this works. Which it does in my MW1.5b4 setup.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Oh and again, I haven't had much luck using color NAMES in stylesheets. I always use the #abcdef RGB location.
On 8/17/05, Hans Voss hans.voss@gmail.com wrote:
If you tried it exactly as you wrote here, it shouldn't ;-)
I hope you tried:
<h1 CLASS="pastoral">Green maybe?</h1>
(so 'class' in stead of 'style').
On 8/17/05, Sy sy1234@gmail.com wrote:
This works as expected:
<h1 style="color:green;">green</h1>
This does not (in MediaWiki:monobook.css): h1.pastoral { color:green; }
<h1 style="pastoral">not green</h1>
Sy,
On 8/17/05, Hans Voss hans.voss@gmail.com wrote:
Sy, at first I would try to see if I can get the color to change by speficing directly as a 'style' ellement. Like <H1 style="color: green;"> to see if this works. Which it does in my MW1.5b4 setup.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
--
Met vriendelijke groeten / With kind regards Hans Voss
skype: hans.voss
On 8/17/05, Hans Voss hans.voss@gmail.com wrote:
Oh and again, I haven't had much luck using color NAMES in stylesheets. I always use the #abcdef RGB location.
h1.pastoral { color:#f9f9f9; } <h1 class="pastoral">not a colour</h1>
No success with that..
I actually have it working.
I included: h1.hvsbefore { color: #00ff00; } and refreshed the page (with ?action=purge :-)
and behold it did work.
Then I tried with 'pastoral' instead of hvsbefore and that also worked.
Sorry.
On 8/17/05, Sy sy1234@gmail.com wrote:
On 8/17/05, Hans Voss hans.voss@gmail.com wrote:
Oh and again, I haven't had much luck using color NAMES in stylesheets. I always use the #abcdef RGB location.
h1.pastoral { color:#f9f9f9; }
<h1 class="pastoral">not a colour</h1>
No success with that.. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 8/17/05, Hans Voss hans.voss@gmail.com wrote:
I actually have it working.
I included: h1.hvsbefore { color: #00ff00; } and refreshed the page (with ?action=purge :-)
and behold it did work.
Then I tried with 'pastoral' instead of hvsbefore and that also worked.
No luck here.
The only contents of MediaWiki:Monobook.css are:
h1.pastoral { color: #00ff00; }
http://jrandomhacker.info/mw/index.php?title=Sandbox&action=purge contains:
<h1 class="pastoral">colour</h1>
I've switched to using b instead of h1, just in case.. no change. Also tried making *.pastoral { color: #00ff00; }.. and using <div class=pastoral>.. again .. no change.
Ah, I've been more brutal in my change. I changed the actual css file: <location of wiki>/skins/monobook/main.css (in my case: w:\www\wiki\skins\monobook\main.css) That works absolute. (But is overwritten with a MW update, yes).
On 8/17/05, Sy sy1234@gmail.com wrote:
On 8/17/05, Hans Voss hans.voss@gmail.com wrote:
I actually have it working.
I included: h1.hvsbefore { color: #00ff00; } and refreshed the page (with ?action=purge :-)
and behold it did work.
Then I tried with 'pastoral' instead of hvsbefore and that also worked.
No luck here.
The only contents of MediaWiki:Monobook.css are:
h1.pastoral { color: #00ff00; }
http://jrandomhacker.info/mw/index.php?title=Sandbox&action=purge contains:
<h1 class="pastoral">colour</h1>
I've switched to using b instead of h1, just in case.. no change. Also tried making *.pastoral { color: #00ff00; }.. and using <div class=pastoral>.. again .. no change. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 8/17/05, Hans Voss hans.voss@gmail.com wrote:
Ah, I've been more brutal in my change. I changed the actual css file: <location of wiki>/skins/monobook/main.css (in my case: w:\www\wiki\skins\monobook\main.css) That works absolute. (But is overwritten with a MW update, yes).
You're cheating. =)
I know I could modify main.css.. but I want to avoid that where possible, and I figured I was looking in the right place to override main.css (with the monobook skin).
Moved your reply to this thread.
Hey Josh.. I tried the !important concept and it doesn't seem to change anything.
(also, to me.. !important means "not important".. strange they should use that for priority)
Sy,
On 8/17/05, Joshua Oreman oremanj@gmail.com wrote:
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.
On 8/17/05, Hans Voss hans.voss@gmail.com wrote:
If you tried it exactly as you wrote here, it shouldn't ;-)
I hope you tried:
<h1 CLASS="pastoral">Green maybe?</h1>
(so 'class' in stead of 'style').
Whoops. =)
h1.pastoral { color:green; } <h1 class="pastoral">still not green</h1>
Did you clear your browser cache? (Ctrl-F5, Shift+Click, Ctrl-R, etc.) That's one thing you should always try.
On 8/17/05, Sy sy1234@gmail.com wrote:
I understand that I can edit MediaWiki:monobook.css to add in stylesheet type stuff.
[snip]
On 8/17/05, Sy sy1234@gmail.com wrote:
I understand that I can edit MediaWiki:monobook.css to add in stylesheet type stuff.
On 8/17/05, Jamie Bliss astronouth7303@gmail.com wrote:
Did you clear your browser cache? (Ctrl-F5, Shift+Click, Ctrl-R, etc.) That's one thing you should always try.
yes.. =)
On 17/08/05, Jamie Bliss astronouth7303@gmail.com wrote:
Did you clear your browser cache? (Ctrl-F5, Shift+Click, Ctrl-R, etc.) That's one thing you should always try.
Just to correct a common misconception: There is no browser (that I know of) for which Ctrl-R is the shortcut for a hard refresh; it's commonly used for a *normal* refresh, but it *will not* bypass your cache in any major browser I've encountered. (The correct shortcut in Mozilla & co, which you may have been thinking of, is Ctrl-Shift-R)
For *correct* instructions, see http://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache (which I should probably also copy to meta...)
mediawiki-l@lists.wikimedia.org