Commit graph

13 commits

Author SHA1 Message Date
sbailey 8f42623520 Add a definition for .mw-ref-follow to Parsoid's stylesheet
This lets us remove the inlined style on follow refs.

It will be used in I8bfc4ee3df162e2040e3c6f0c37fbf2a7c30d7f6

Bug: T263052
Change-Id: I351516b81566aba0adb4d298e39806dfb4fc7b03
2020-12-03 22:50:57 +00:00
Subramanya Sastry 12e2bf155c Sync unicode-bidi property for <sup> tags between Parsoid & core impls
* See T251983#6159540 for a more detailed summary, but these should
  have always been in sync in the first place.

Bug: T251983
Change-Id: I92d2ec19c70c31374fabc9540678b1bb6eb2728c
2020-05-22 16:45:37 -05:00
Thiemo Kreuz d18c0871a8 Fix broken reference list numbering in Firefox
Same as Ib6e9de6.

We must reset the build-in "list-item" counter to make this code behave
sane in Firefox. It looks like this is even described in the CSS spec
and it is not Firefox having a bug, but Chrome being "clever" and not
following the spec.

Bug: T229307
Change-Id: I955786e2b68d087c819a962ded3c571946c61f78
2019-12-09 10:10:54 +01:00
Thiemo Kreuz 13598ba11e Render nested references
Forked from Icd933fc983.

Bugs and unimplemented features are documented as TODOs in the parser test
fixtures.

Bug: T237241
Change-Id: I9427e025ea0bcf2fa24fd539a775429cc64767cc
2019-11-29 13:40:34 +01:00
Volker E b9ee8433f4 build: Update 'stylelint-config-wikimedia' to v0.5.0 and make pass
Change-Id: I05e257b3213dd4039455d7e55efeb72b58da67fb
2018-12-10 02:59:11 -08:00
Derk-Jan Hartman a603ef420f Make references not inherit bold or italic styling.
There is almost never a situation where this is desirable, yet it
happens quite a lot due to table headers etc having bold styling.
It confuses editors and tends to be less readable.

These style rules have been in en.wp:MediaWiki:Common.css for over 10
years or so, so probably a keeper.

Change-Id: If3d12383853a83d8ef14f1ec54c8c381b6c8f6a2
2018-08-01 14:57:37 +02:00
Ed Sanders 2992edc996 build: Update linters
Change-Id: I473dec2bb64ce2242eaf7bbb4cc42ac767716ae0
2018-02-04 21:22:04 +00:00
Ed Sanders fbcd9e41df Allow mw-ref rules apply to any element
i.e. span or sub.

Bug: T45094
Change-Id: Ib3fae04300c379727aad81b2c0c2a882d8657fe0
2018-01-02 13:59:31 +00:00
Ed Sanders b58db89aac build: Update stylelint to 0.4.1
Change-Id: Ia7d685d9e10468d2303c68dc88fee8811251ffcb
2017-03-20 14:37:33 +00:00
Ed Sanders 50b57f017a Update stylelint config version and make a pass
Change-Id: Ice5bcec27ae98dcbcb246ae166ed8f04e07dc099
2016-05-24 13:48:46 +01:00
Ed Sanders bac8dd6be7 Add stylelint and make required style fixes
Change-Id: I8a9def8056a72c3da0c066413e94311a1d839f5b
2016-05-17 18:21:30 +01:00
Amir E. Aharoni 3fa0f7fb22 Prevent jumbling up of footnote numbers after LTR words in RTL wikis
This happens while editing in VisualEditor and ContentTranslation.

This is done by adding unicode-bidi: embed to .mw-ref.

Bug: T105605
Change-Id: I1d03063cad1fa0f2ae8cc792aaaefc715066f17e
2015-07-11 22:55:26 +03:00
Marc Ordinas i Llopis aa8fed3a3d Use CSS to style Parsoid's Cite HTML
* Add a new module ext.cite.style to load the new CSS.
* Add a ResourceLoaderFileModule that adds the correct CSS file
  depending on the content language, so that the visual style of
  citations can be changed per-language.

The main ext.cite.style.css file renders similarly to MediaWiki's
default Cite style. Also, an example CSS for Farsi numbering is
included.

Bug: T86782
Change-Id: I487095df8a7c4241a14f7b4480360f6774130bec
2015-06-08 21:58:15 +01:00