From 251109c7129c13fb7908f794ea22a56e4c39bbc7 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Fri, 5 Jul 2024 16:52:54 -0400 Subject: [PATCH] =?UTF-8?q?feat(SearchDigest):=20=E2=9C=A8=20add=20styles?= =?UTF-8?q?=20for=20Extension:SearchDigest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + skin.json | 1 + .../SearchDigest/ext.searchdigest.styles.less | 65 +++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 skinStyles/extensions/SearchDigest/ext.searchdigest.styles.less diff --git a/README.md b/README.md index 4918614c..1361d324 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ Name | Grade | Version | Last updated [RevisionSlider](https://www.mediawiki.org/wiki/Extension:RevisionSlider) | B | REL1_35 `4c4e368` | 2022-06-02 [Score](https://www.mediawiki.org/wiki/Extension:Score) | B | REL1_39 `0a66cef` | 2023-06-10 [Scribunto](https://www.mediawiki.org/wiki/Extension:Scribunto) | B | REL1_39 `ebb91f2` | 2023-05-29 +[SearchDigest](https://www.mediawiki.org/wiki/Extension:SearchDigest) | A | Master `ddd4665` | 2024-07-05 [Semantic MediaWiki](https://www.mediawiki.org/wiki/Extension:Semantic_MediaWiki) | A | 4.0.2 `0fcdfce` | 2022-10-21 [Semantic Result Formats](https://www.mediawiki.org/wiki/Extension:Semantic_Result_Formats) | E | N/A | N/A [SimpleTooltip](https://www.mediawiki.org/wiki/Extension:SimpleTooltip) | B | N/A | 2022-02-19 diff --git a/skin.json b/skin.json index bee9aa09..88fd8739 100644 --- a/skin.json +++ b/skin.json @@ -474,6 +474,7 @@ "+ext.SimpleTooltip": "skinStyles/extensions/SimpleTooltip/ext.SimpleTooltip.less", "+ext.SmiteSpam.retriever": "skinStyles/extensions/SmiteSpam/ext.SmiteSpam.retriever.less", "+ext.pygments": "skinStyles/extensions/SyntaxHighlight_GeSHi/ext.pygments.less", + "+ext.searchdigest.styles": "skinStyles/extensions/SearchDigest/ext.searchdigest.styles.less", "+ext.tabs": "skinStyles/extensions/Tabs/ext.tabs.less", "+ext.tmh.player.styles": "skinStyles/extensions/TimedMediaHandler/ext.tmh.player.styles.less", "+ext.translate": "skinStyles/extensions/Translate/ext.translate.less", diff --git a/skinStyles/extensions/SearchDigest/ext.searchdigest.styles.less b/skinStyles/extensions/SearchDigest/ext.searchdigest.styles.less new file mode 100644 index 00000000..98f4e47f --- /dev/null +++ b/skinStyles/extensions/SearchDigest/ext.searchdigest.styles.less @@ -0,0 +1,65 @@ +/* + * Citizen + * + * SkinStyles for Extension:SearchDiggest + * Module: ext.searchdigest.styles + * Version: Master ddd4665 + * + * Date: 2024-07-05 +*/ + +/* Disable sticky header to make space for thead */ +#citizen-page-header-sticky-sentinel { + display: none; +} + +.searchdigest-admin-tools { + border-color: var( --border-color-base ); +} + +.searchdigest-stats-table { + font-size: var( --font-size-small ); + border-collapse: collapse; + border-color: var( --border-color-base ); +} + +.searchdigest-stats-table th, +.searchdigest-stats-table td { + padding: var( --space-xxs ) var( --space-sm ) !important; +} + +.searchdigest-stats-table thead { + position: sticky; + top: 0; +} + +.searchdigest-stats-table thead th { + padding-top: var( --space-xs ) !important; + padding-bottom: var( --space-xs ) !important; + font-weight: var( --font-weight-normal ); + color: var( --color-subtle ); + letter-spacing: 0.05em; +} + +.searchdigest-stats-table thead th, +.searchdigest-stats-table tr:not( :last-child ) th, +.searchdigest-stats-table tr:not( :last-child ) td { + border-bottom-color: var( --border-color-base ); +} + +.searchdigest-stats-table thead th:last-child, +.searchdigest-stats-table td { + border-left-color: var( --border-color-base ); +} + +.searchdigest-stats-table thead tr { + background: var( --color-surface-0 ); +} + +.searchdigest-stats-progress-bar { + background: var( --background-color-destructive-subtle ); +} + +.searchdigest-stats-progress-done { + background: var( --color-success ); +}