mediawiki-skins-MinervaNeue/resources/skins.minerva.content.styles
Bartosz Dziewoński 6b0ce86410 Make Minerva section editing more like other skins
Goal: Make skins.minerva.editor not rely on Minerva-specific markup.

SkinMinerva.php:
* Add `class="mw-editsection"` to section edit links in SkinMinerva.
  This is the default behavior in SkinTemplate.
* Tweak the page "Edit" link generated in PHP to be the same as the
  link we were generating in JS: add class="edit-page" and change the
  message for the text.
* (Fix an unrelated code comment that was incorrect.)

skins.minerva.content.styles/hacks.less:
* Remove a hack that was hiding .mw-editsection, since we now use it.

skins.minerva.editor/init.js:
* Stop using the `data-section` attribute on links to decide which
  page section to open in the editor. Instead, use the `href`
  attribute and extract the `section` URL parameter from it.
* Stop using the `edit-page` class to find section edit links.
  Instead, use the `mw-editsection` class.
* Remove super weird code that removed the original "Edit" link from
  the page and generated an identical one to replace it, instead of
  just adding event handlers to the existing one.
* Centralize event handling for all types of edit links.

Bug: T198765
Change-Id: I79639c738ff1c3ec4b48ee2e462d23060151a21b
2018-10-04 14:07:27 -07:00
..
templates Add bottom margin to page issues 2018-08-30 19:22:49 +00:00
blockquotes.less Remove minerva.less from global import path 2018-05-29 12:19:00 +00:00
hacks.less Make Minerva section editing more like other skins 2018-10-04 14:07:27 -07:00
headings.less Remove minerva.less from global import path 2018-05-29 12:19:00 +00:00
images.less Remove minerva.less from global import path 2018-05-29 12:19:00 +00:00
links.less Move Parsoid output overrides to 'mediawiki.skinning.content.parsoid' skinStyles 2018-09-17 21:55:32 +00:00
lists.less Switch to outside list style 2017-11-02 10:56:51 -07:00
main.less build: Update linters 2018-09-11 13:42:11 -07:00
sectionAnchor.less Minerva is its own skin 2017-07-12 08:12:40 -07:00
styles.less Minerva is its own skin 2017-07-12 08:12:40 -07:00
tables.less Remove minerva.less from global import path 2018-05-29 12:19:00 +00:00
text.less Move Parsoid output overrides to 'mediawiki.skinning.content.parsoid' skinStyles 2018-09-17 21:55:32 +00:00
thumbnails.less Move Parsoid output overrides to 'mediawiki.skinning.content.parsoid' skinStyles 2018-09-17 21:55:32 +00:00