mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Convert (almost) all .css files to .less
Intentionally no other change is made (yet). This is for a later, separate patch. Intentionally not touching the huge list of per-language ext.cite.style.*.css files for the moment. Again, I would prefer to do this in a separate patch. Change-Id: I4e392c7bd1c69849a6c7946676a64c749ddbcd60
This commit is contained in:
parent
e3bbe96939
commit
80c8eaf3ce
|
@ -47,8 +47,8 @@
|
|||
"ResourceModules": {
|
||||
"ext.cite.styles": {
|
||||
"styles": {
|
||||
"ext.cite.styles.css": {},
|
||||
"ext.cite.print.css": {
|
||||
"ext.cite.styles.less": {},
|
||||
"ext.cite.print.less": {
|
||||
"media": "print"
|
||||
}
|
||||
},
|
||||
|
@ -58,7 +58,7 @@
|
|||
},
|
||||
"ext.cite.parsoid.styles": {
|
||||
"class": "Cite\\ResourceLoader\\CiteCSSFileModule",
|
||||
"styles": "ext.cite.parsoid.styles.css"
|
||||
"styles": "ext.cite.parsoid.styles.less"
|
||||
},
|
||||
"ext.cite.visualEditor.core": {
|
||||
"localBasePath": "modules/ve-cite",
|
||||
|
@ -209,8 +209,8 @@
|
|||
"ext.cite.tracking.js"
|
||||
],
|
||||
"styles": [
|
||||
"ext.cite.a11y.css",
|
||||
"ext.cite.highlighting.css"
|
||||
"ext.cite.a11y.less",
|
||||
"ext.cite.highlighting.less"
|
||||
],
|
||||
"messages": [
|
||||
"cite_references_link_accessibility_label",
|
||||
|
|
|
@ -37,10 +37,10 @@ ol.mw-references {
|
|||
* We have 2 counters for Parsoid HTML for different functionality.
|
||||
* Make sure both are reset!
|
||||
*
|
||||
* NOTE: This rule is a duplicate of the one present in ext.cite.styles.css
|
||||
* NOTE: This rule is a duplicate of the one present in ext.cite.styles.less
|
||||
* but duplicating it here ensures no matter how the rules and files are
|
||||
* refactored and which rule ends up applying on the loaded doc, both
|
||||
* counters continue to be incremented. As of now, the rule in ext.cite.styles.css
|
||||
* counters continue to be incremented. As of now, the rule in ext.cite.styles.less
|
||||
* is the one that seems to be winning.
|
||||
**/
|
||||
counter-reset: mw-ref-extends-parent mw-references list-item;
|
||||
|
@ -51,10 +51,10 @@ ol.mw-references > li {
|
|||
* We have 2 counters for Parsoid HTML for different functionality.
|
||||
* Make sure both are incremented!
|
||||
*
|
||||
* NOTE: This rule is a duplicate of the one present in ext.cite.styles.css
|
||||
* NOTE: This rule is a duplicate of the one present in ext.cite.styles.less
|
||||
* but duplicating it here ensures no matter how the rules and files are
|
||||
* refactored and which rule ends up applying on the loaded doc, both
|
||||
* counters continue to be incremented. As of now, the rule in ext.cite.styles.css
|
||||
* counters continue to be incremented. As of now, the rule in ext.cite.styles.less
|
||||
* is the one that seems to be winning.
|
||||
**/
|
||||
counter-increment: mw-ref-extends-parent mw-references;
|
|
@ -4,7 +4,7 @@ version=2
|
|||
|
||||
# NOTE about Parsoid HTML for cite tests with follows.
|
||||
# Parsoid HTML has <sup>s for follows because it needs to be able to roundtrip it back.
|
||||
# This output is hidden from read views via CSS in ext.cite.style.css.
|
||||
# This output is hidden from read views via CSS in ext.cite.parsoid.styles.less.
|
||||
|
||||
# Force the test runner to ensure the extension is loaded
|
||||
!! hooks
|
||||
|
|
Loading…
Reference in a new issue