From a9d7f4163d18ac564148089e9d57e9a14fdb5bd5 Mon Sep 17 00:00:00 2001 From: Arthur Taylor Date: Thu, 19 Sep 2024 10:02:40 +0200 Subject: [PATCH] Use Codex tokens and custom spacing variables Migrate away from Wikit tokens to Codex SASS variables where they are available. In some cases we use custom CSS variables for values from Wikit whose Codex equivalents are missing. Bug: T369510 Bug: T369508 Bug: T369509 --- src/components/AnonymousEditWarning.vue | 4 +++- src/components/LanguageInput.vue | 4 ++-- src/components/LemmaInput.vue | 4 ++-- src/components/LexicalCategoryInput.vue | 4 ++-- src/components/NewLexemeForm.vue | 23 ++++++++++++----------- src/components/RequiredAsterisk.vue | 8 ++++---- src/components/SearchExisting.vue | 16 +++++++++++----- src/components/SpellingVariantInput.vue | 6 +++--- src/styles/custom-variables.css | 5 +++++ 9 files changed, 44 insertions(+), 30 deletions(-) create mode 100644 src/styles/custom-variables.css diff --git a/src/components/AnonymousEditWarning.vue b/src/components/AnonymousEditWarning.vue index ec7ac614..4d998e9c 100644 --- a/src/components/AnonymousEditWarning.vue +++ b/src/components/AnonymousEditWarning.vue @@ -33,7 +33,9 @@ const warning = computed( diff --git a/src/components/LanguageInput.vue b/src/components/LanguageInput.vue index bab445d3..d632bde5 100644 --- a/src/components/LanguageInput.vue +++ b/src/components/LanguageInput.vue @@ -79,11 +79,11 @@ export default { diff --git a/src/components/LexicalCategoryInput.vue b/src/components/LexicalCategoryInput.vue index 54427801..b93ead0b 100644 --- a/src/components/LexicalCategoryInput.vue +++ b/src/components/LexicalCategoryInput.vue @@ -73,10 +73,10 @@ export default { diff --git a/src/components/SearchExisting.vue b/src/components/SearchExisting.vue index 3bd87532..9f140393 100644 --- a/src/components/SearchExisting.vue +++ b/src/components/SearchExisting.vue @@ -24,13 +24,19 @@ const searchMessage = computed( () => messages.get( diff --git a/src/components/SpellingVariantInput.vue b/src/components/SpellingVariantInput.vue index 7e873a1c..1b5f7f3e 100644 --- a/src/components/SpellingVariantInput.vue +++ b/src/components/SpellingVariantInput.vue @@ -128,17 +128,17 @@ export default {