From 46c139ac86f1c4dca862133bffbe29645488cb8f Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Thu, 11 Jul 2024 17:49:19 -0400 Subject: [PATCH] =?UTF-8?q?feat(DataMaps):=20=E2=9C=A8=20add=20DataMaps=20?= =?UTF-8?q?init=20styles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin.json | 1 + .../DataMaps/ext.datamaps.core.styles.less | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 skinStyles/extensions/DataMaps/ext.datamaps.core.styles.less diff --git a/skin.json b/skin.json index bfd88595..614781e4 100644 --- a/skin.json +++ b/skin.json @@ -389,6 +389,7 @@ "+ext.CodeMirror.mode.mediawiki": "skinStyles/extensions/CodeMirror/ext.CodeMirror.mode.mediawiki.less", "+ext.CodeMirror.visualEditor": "skinStyles/extensions/CodeMirror/ext.CodeMirror.visualEditor.less", "+ext.CommentStreams": "skinStyles/extensions/CommentStreams/ext.CommentStreams.less", + "+ext.datamaps.core.styles": "skinStyles/extensions/DataMaps/ext.datamaps.core.styles.less", "+ext.datamaps.leaflet": "skinStyles/lib/leaflet/leaflet.less", "+ext.discussionTools.init.styles": "skinStyles/extensions/DiscussionTools/ext.discussionTools.init.styles.less", "+ext.discussionTools.ReplyWidget": "skinStyles/extensions/DiscussionTools/ext.discussionTools.ReplyWidget.less", diff --git a/skinStyles/extensions/DataMaps/ext.datamaps.core.styles.less b/skinStyles/extensions/DataMaps/ext.datamaps.core.styles.less new file mode 100644 index 00000000..338efdca --- /dev/null +++ b/skinStyles/extensions/DataMaps/ext.datamaps.core.styles.less @@ -0,0 +1,35 @@ +/* + * Citizen + * + * SkinStyles for Extension:DataMaps + * Module: ext.datamaps.core.styles + * Version: 0.17.7 9c448d3 + * + * Date: 2024-07-11 + */ + + /* early.less */ +.ext-datamaps-container { + box-shadow: none; + border-color: transparent !important; // Needed to override OOUI styles +} + +.ext-datamaps-container-content { + .ext-datamaps-container-leaflet { + background: var(--color-surface-3); + } +} + +/* Status.less */ +.ext-datamaps-container-status { + font-size: var(--font-size-x-large); + > :not( .oo-ui-widget ) { + background: transparent; + color: var(--color-subtle); + } + + &[ data-severity='error' ] > :not( .oo-ui-widget ) { + background: var(--background-color-destructive-subtle); + color: var(--color-emphasized); + } +}