Skin talk:Minerva Neue

Jump to navigation Jump to search

About this board

JiKay23 (talkcontribs)

Apparently, the mobile editor lacks the ability to mark edits as minor.

Is that deliberate? Why, if I may ask?

Jdlrobson (talkcontribs)

It's just never been prioritized. I think there's also an element of how to fit this into the UI without being confusing - I don't think it's widely understood by the average user what is and what isn't a minor edit, but the phab ticket is pretty quiet so I think it's more likely a case of priority

https://phabricator.wikimedia.org/T123694

Jdlrobson (talkcontribs)
Reply to "Marking edits as minor?"
79.241.207.111 (talkcontribs)

I have noticed two distinct versions of Minerva(Neue) on various MediaWiki instances on the Internet:


The superior variant has an article/discussion tab on the top and watch/history/contributions/edit/options top shortcut (the third only on user pages).


The menial variant only has the editing pen and a link to the discussion page above the green bar at the bottom that links to the page history.


Sometimes, it is the latter only when viewed using desktop front end (with useskin=minerva) while the former when viewed using the mobile front end.


One can know which front end is being viewed by the design of article message boxes and the missing view count at the bottom.

Ammarpad (talkcontribs)
Jdlrobson (talkcontribs)

All these features are configurable. In desktop Minerva they are enabled by default. In mobile many of them are off by default. Please explore the configuration options to find what you need for your wiki.

Jdlrobson (talkcontribs)
Reply to "Two distinct versions?"

site specific CSS added via JS rather than <link>

3
Tlgonline (talkcontribs)

As stated on the extension page, "MediaWiki:Mobile.css (for mobile mode) or MediaWiki:Common.css (for desktop mode) will be loaded."

In Vector skin (desktop mode), the site specific CSS set forth in MediaWiki:Common.css is loaded via a <link rel="stylesheet" . . . >.

In MinervaNeue skin (mobile mode), the site specific CSS set forth in MediaWiki:Mobile.css is loaded via JavaScript.

I use site specific CSS to hide certain elements on my MW 1.35.0 installation. This works without any problem in Vector skin (desktop mode). However, in MinervaNeue skin (mobile mode) the page is rendered in full, then a second or so later the "hidden elements" disappear and the page abruptly shifts into the desired appearance. Obviously, this is not optimal.

First, can you tell me why site specific CSS is implemented this way in MinervaNeue skin (mobile mode)?

Second, can you recommend any workaround short of modifying the MinervaNeue skin code and inserting my site specific CSS directly into an appropriate source file?

157.131.72.208 (talkcontribs)

If you are using MobileFrontend you need $wgMFSiteStylesRenderBlocking = true

Minerva when used as desktop skin should load MediaWiki:Minerva.css without any problem.

Tlgonline (talkcontribs)

Thanks for the quick response. I made the recommended change and it works as stated.

I had previously read the MW 1.35 Mobile Frontend documentation (including the README.md file) but the phrase "render blocking" was too obtuse for me to understand the effect of $wgMFSiteStylesRenderBlocking.

Reply to "site specific CSS added via JS rather than <link>"

How to edit the shortcuts of the side menu?

2
Ghaleb,K. (talkcontribs)

How to change the shortcuts of the side menu. For example, to add recent changes, special pages ...etc. Also the preferences page is currently empty.

CayceP (talkcontribs)

Looks like you can't (I was missing recent changes as well). Try the Timeless Skin instead that one offers recent changes and special pages.

IF wfLoadSkin( 'Timeless' ); throws an error on your wiki, be sure to include $wgMFDefaultSkinClass = "SkinTimeless"; in your LocalSettings.php as well.

Reply to "How to edit the shortcuts of the side menu?"
2601:5CD:C200:9BE0:4815:C61F:98BF:9617 (talkcontribs)

Does anyone have some CSS for that? Thanks.

CayceP (talkcontribs)

Seems there is no Dark Mode for hte Minerve_Neue skin yet, but there seems to be two for the Timeless skin (for example https://www.mediawiki.org/wiki/Skin:Timeless-DarkCSS although I couldn't make it work yet on my wiki) so you may want to use that one instead (IMO it is offer way better functions than Minerva_Neue).

If wfLoadSkin( 'Timeless' ); throws an error on your wiki, be sure to add $wgMFDefaultSkinClass = "SkinTimeless"; to your LocalSettings.php as well.

Reply to "How do I put it in dark mode?"
2001:8F8:1E23:DE9:D94E:8FD4:457A:4C50 (talkcontribs)

how to increase max width on desktop

i tried the following with no luck:

@media screen and ( min-width: @width-breakpoint-desktop ) .banner-container, .header, .page-header-bar, .overlay-header, .content, .overlay-content, .content-unstyled, .pre-content, .post-content, #mw-content-text > form { margin-right: auto; margin-left: auto; width: 100%; max-width: 70em; }

79.249.159.6 (talkcontribs)

Try a fixed width breakpoint such as (min-width:960px).

Reply to "increase max width on desktop"

Observation on the mobile menu

2
84.147.33.167 (talkcontribs)

There used to be a Special:MobileMenu non-JavaScript fallback for the mobile menu until recently, when it was removed.

Just thought I would share it here due to it being undocumented so far.

Jdlrobson (talkcontribs)

The current menu now works with and without JavaScript with no need for the special page.

Reply to "Observation on the mobile menu"

Any way to change the 'edit' action on pages to 'tinymceedit' action? 1.34

1
Deadly Artist (talkcontribs)

Just what the title says. Just like what VisualEditor does when you install it along with minerva.


The command $wgMinervaPageActions does nothing no matter how I modify it. Even emptying it does not change anything.

EDIT: I looked through the code and ended up finding what I wanted. I changed skins/MinervaNeue/includes/menu/PageActions/ToolbarBuilder.php line 175: 'edit' to 'tinymceedit'.

Would still prefer something official/better.

Reply to "Any way to change the 'edit' action on pages to 'tinymceedit' action? 1.34"

MobileExtension hard dependency

4
Pio~frwiki (talkcontribs)

"but at the time of writing this is a soft dependency and it will function without the extension installed." --> with latest version today I get the exception "Fatal error: Uncaught ExtensionDependencyError: MinervaNeue requires MobileFrontend to be installed."

I guess this sentence needs to be updated :)

Jdlrobson (talkcontribs)

I think your Minerva needs updating... are you sure you are running the latest version? What version does it say on Special:Version ?

108.81.83.60 (talkcontribs)

Nope, can confirm that with the latest version downloaded from the link provided (ba11b7b) for MW 1.34.2, you get a php error that MobileFrontend must be installed to be able to use the skin.


This line needs updated to show that it's a hard dependency now.


--ketura

Jdlrobson (talkcontribs)

This is currently only true in the master branch since Janauary 2020 ( T171000) and the 1.35 release. This page refers to the most recent version. I will clarify the documentation.

Reply to "MobileExtension hard dependency"

(Git master) link is broken in the side template

1
Uziel302 (talkcontribs)

Thanks

Reply to "(Git master) link is broken in the side template"