https://bugzilla.wikimedia.org/show_bug.cgi?id=70351

Matthew Flaschen <mflasc...@wikimedia.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pgi...@wikimedia.org

--- Comment #10 from Matthew Flaschen <mflasc...@wikimedia.org> ---
(In reply to Isarra from comment #9)
> Sure, the colour-coded buttons according to their function are nice, but not 
> everyone cares.

And yet someone complained about *not* having them at bug 47698 (see also bug
55554, where this was brought up again and the colors were added to
non-Vector), because the alternative was gray.

Bear in mind that "no MW UI styles" at all may not always do what you want. 
For example Special:UserLogin has a "Join $SITENAME" button.  However, it's
really just a styled link, so if it's completely unstyled it will look like a
link.

So rather than debate between "no MW UI styles" and "current MW UI styles" for
e.g. FooSkin, I'd rather support people who want to make appropriate styles for
FooSkin (unless there's a broad consensus that FooSkin should have either "no
MW UI styles" or "current MW UI styles"; honestly not many people have voiced
opinion on which of the three).

> Is there any documentation on how to do that, or use the underlying
> framework? From where I'm standing it looks like the only option is to
> manually override all the styles, and when they keep changing and getting
> more complex, that's pretty horrible.

The basic tool is
https://www.mediawiki.org/wiki/Manual:$wgResourceModuleSkinStyles , along with
the discussion above about whether you're augmenting or replacing styles (that
is important re what I said about 'default').

Importantly, there are also mixins at
https://git.wikimedia.org/tree/mediawiki%2Fcore.git/e2e6f7767ef58659904422c36d390c230b59852f/resources%2Fsrc%2Fmediawiki.less
which you can use (note the mediawiki.less/mediawiki.ui directory, which has
mixins and variables).  These can be imported with e.g.:

@import "mediawiki.ui/variables";

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to