From 87756194fb8f219c112d6831cd5c913a43b69c69 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Wed, 5 May 2021 13:08:37 -0400 Subject: [PATCH] feat: add icon and text for addsection action (#368) --- i18n/en.json | 2 ++ i18n/qqq.json | 2 ++ resources/skins.citizen.icons/shared/add.svg | 7 +++++++ skin.json | 9 +++++---- 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 resources/skins.citizen.icons/shared/add.svg diff --git a/i18n/en.json b/i18n/en.json index 307eca6d..7735a4c4 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -26,6 +26,8 @@ "citizen-footer-desc": "Edit this text on MediaWiki:Citizen-footer-desc", "citizen-footer-tagline": "Edit this text on MediaWiki:Citizen-footer-tagline", + "citizen-action-addsection": "Add topic", + "citizen-jumptotop": "Back to top", "citizen-search-fulltext": "Search pages containing", diff --git a/i18n/qqq.json b/i18n/qqq.json index 8e66603a..0619862a 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -21,6 +21,7 @@ "citizen-drawer-search": "Placeholder and title text for search input on main menu", "citizen-footer-desc": "Edit this text on MediaWiki:Citizen-footer-desc", "citizen-footer-tagline": "Edit this text on MediaWiki:Citizen-footer-tagline", + "citizen-action-addsection": "Used in the Citizen skin. See for example {{canonicalurl:Talk:Main_Page|useskin=vector}}\n{{Identical|Add topic}}. Same as vector-action-addsection in Vector skin.", "citizen-jumptotop": "Label for link to jump to top of page", "citizen-search-fulltext": "Fulltext search suggestion", "citizen-tagline-ns-talk": "Tagline for pages in talk namespace", @@ -37,4 +38,5 @@ "prefs-citizen-fontsize-label": "Label for the font size settings", "prefs-citizen-pagewidth-label": "Label for the page width settings", "prefs-citizen-resetbutton-label": "Label for the reset button that restore default settings" + } diff --git a/resources/skins.citizen.icons/shared/add.svg b/resources/skins.citizen.icons/shared/add.svg new file mode 100644 index 00000000..8bcb1694 --- /dev/null +++ b/resources/skins.citizen.icons/shared/add.svg @@ -0,0 +1,7 @@ + + + + add + + + diff --git a/skin.json b/skin.json index ece7b66f..74e95b1f 100644 --- a/skin.json +++ b/skin.json @@ -255,7 +255,7 @@ }, "skins.citizen.icons.ca": { "class": "ResourceLoaderImageModule", - "selector": "#ca-{name} > *:after", + "selector": "#ca-{name} > a:after", "defaultColor": "#000", "images": { "view": "resources/skins.citizen.icons/shared/article.svg", @@ -269,6 +269,7 @@ "unprotect": "resources/skins.citizen.icons/shared/unLock.svg", "watch": "resources/skins.citizen.icons/shared/eye.svg", "unwatch": "resources/skins.citizen.icons/shared/eyeClosed.svg", + "addsection": "resources/skins.citizen.icons/shared/add.svg", "talk": "resources/skins.citizen.icons/shared/discussion.svg", "nstab-main": "resources/skins.citizen.icons/shared/article.svg", "translate": "resources/skins.citizen.icons/shared/language.svg" @@ -285,7 +286,7 @@ }, "skins.citizen.icons.n": { "class": "ResourceLoaderImageModule", - "selector": "#n-{name} > *:after", + "selector": "#n-{name} > a:after", "defaultColor": "#000", "images": { "mainpage-description": "resources/skins.citizen.icons/shared/home.svg", @@ -296,7 +297,7 @@ }, "skins.citizen.icons.t": { "class": "ResourceLoaderImageModule", - "selector": "#t-{name} > *:after", + "selector": "#t-{name} > a:after", "defaultColor": "#000", "images": { "whatlinkshere": "resources/skins.citizen.icons/shared/whatlinkshere.svg", @@ -314,7 +315,7 @@ }, "skins.citizen.icons.pt": { "class": "ResourceLoaderImageModule", - "selector": "#pt-{name} > *:after", + "selector": "#pt-{name} > a:after", "defaultColor": "#000", "images": { "mytalk": "resources/skins.citizen.icons/shared/userTalk.svg",