From 80c8eaf3ce2b6bb8d95c826be7ee3405ceaed698 Mon Sep 17 00:00:00 2001 From: thiemowmde Date: Sun, 21 Jan 2024 15:38:12 +0100 Subject: [PATCH] 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 --- extension.json | 10 +++++----- modules/{ext.cite.a11y.css => ext.cite.a11y.less} | 0 ...ite.highlighting.css => ext.cite.highlighting.less} | 0 ...parsoid.styles.css => ext.cite.parsoid.styles.less} | 8 ++++---- modules/{ext.cite.print.css => ext.cite.print.less} | 0 modules/{ext.cite.styles.css => ext.cite.styles.less} | 0 tests/parser/citeParserTests.txt | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) rename modules/{ext.cite.a11y.css => ext.cite.a11y.less} (100%) rename modules/{ext.cite.highlighting.css => ext.cite.highlighting.less} (100%) rename modules/{ext.cite.parsoid.styles.css => ext.cite.parsoid.styles.less} (97%) rename modules/{ext.cite.print.css => ext.cite.print.less} (100%) rename modules/{ext.cite.styles.css => ext.cite.styles.less} (100%) 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