diff --git a/extension.json b/extension.json index 9dcde8b64..4df0481f8 100644 --- a/extension.json +++ b/extension.json @@ -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", diff --git a/modules/ext.cite.a11y.css b/modules/ext.cite.a11y.less similarity index 100% rename from modules/ext.cite.a11y.css rename to modules/ext.cite.a11y.less diff --git a/modules/ext.cite.highlighting.css b/modules/ext.cite.highlighting.less similarity index 100% rename from modules/ext.cite.highlighting.css rename to modules/ext.cite.highlighting.less diff --git a/modules/ext.cite.parsoid.styles.css b/modules/ext.cite.parsoid.styles.less similarity index 97% rename from modules/ext.cite.parsoid.styles.css rename to modules/ext.cite.parsoid.styles.less index ab89be9d6..bab530b8b 100644 --- a/modules/ext.cite.parsoid.styles.css +++ b/modules/ext.cite.parsoid.styles.less @@ -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; diff --git a/modules/ext.cite.print.css b/modules/ext.cite.print.less similarity index 100% rename from modules/ext.cite.print.css rename to modules/ext.cite.print.less diff --git a/modules/ext.cite.styles.css b/modules/ext.cite.styles.less similarity index 100% rename from modules/ext.cite.styles.css rename to modules/ext.cite.styles.less diff --git a/tests/parser/citeParserTests.txt b/tests/parser/citeParserTests.txt index 2dab9474c..43b9f9fcf 100644 --- a/tests/parser/citeParserTests.txt +++ b/tests/parser/citeParserTests.txt @@ -4,7 +4,7 @@ version=2 # NOTE about Parsoid HTML for cite tests with follows. # Parsoid HTML has 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