From 4204861d9cdd6cccc2011fccdc2494a0eb39e1b2 Mon Sep 17 00:00:00 2001 From: jh-devv Date: Thu, 27 Jun 2024 23:17:09 +0300 Subject: [PATCH] fix(wikipedia): misc (#885) * chore(wikipedia): add styles for icons, some notification stuff and loading bar * chore(lint): prettier * fix(wikipedia): lint and add appearance icon --------- Co-authored-by: Muslim <42213155+GitMuslim@users.noreply.github.com> --- styles/wikipedia/catppuccin.user.css | 79 +++++++++++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/styles/wikipedia/catppuccin.user.css b/styles/wikipedia/catppuccin.user.css index 9919994982..659d4c8be1 100644 --- a/styles/wikipedia/catppuccin.user.css +++ b/styles/wikipedia/catppuccin.user.css @@ -109,7 +109,11 @@ .vector-header-container .vector-sticky-header, .mw-mmv-image, .mw-body, - .frb-form-wrapper { + .frb-form-wrapper, + .mw-echo-ui-placeholderItemWidget, + .oo-ui-popupWidget-popup, + .mw-echo-ui-notificationItemWidget, + .oo-ui-optionWidget-selected { background-color: @base; } @@ -167,6 +171,8 @@ .mw-mmv-post-image, .mw-mmv-credit, .frb-form-wrapper, + .mw-echo-ui-notificationItemWidget-content-message-header, + .oo-ui-labelElement, #contentSub:not(:empty) { color: @text; } @@ -266,6 +272,21 @@ background-color: @surface1 !important; border-color: @surface2 !important; } + + .oo-ui-pendingElement-pending { + background-color: @base; + background-image: linear-gradient( + 135deg, + @surface0 25%, + transparent 25%, + transparent 50%, + @surface0 50%, + @surface0 75%, + transparent 75%, + transparent + ); + } + .oo-ui-tagItemWidget.oo-ui-widget-disabled { color: @text; background-color: @overlay0; @@ -529,10 +550,17 @@ } } + .mw-echo-ui-pageNotificationsOptionWidget.oo-ui-optionWidget-highlighted, .cdx-menu-item--enabled.cdx-menu-item--highlighted { background-color: fade(@accent-color, 20%); } + .mw-echo-ui-sortedListWidget, + .mw-echo-ui-sortedListWidget-group, + .mw-echo-ui-subGroupListWidget-header { + border-color: @surface2; + } + .mw-mmv-post-image, .cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive .cdx-button__icon { @@ -1260,6 +1288,13 @@ content: url("data:image/svg+xml,@{svg}"); } + .vector-icon.mw-ui-icon-wikimedia-appearance { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + .vector-feature-zebra-design-enabled .vector-dropdown .vector-dropdown-label:not(.cdx-button--icon-only)::after, @@ -1446,6 +1481,13 @@ background-image: url("data:image/svg+xml,@{svg}"); } + .vector-icon.mw-ui-icon-wikimedia-unStar { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}"); + } + .oo-ui-image-progressive.oo-ui-icon-settings { @svg: escape( '' @@ -1453,6 +1495,41 @@ background-image: url("data:image/svg+xml,@{svg}"); } + .oo-ui-icon-bell { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}"); + } + + .oo-ui-icon-next { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}"); + } + + .oo-ui-icon-settings { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}"); + } + + .oo-ui-icon-expand { + @svg: escape( + ' expand ' + ); + background-image: url("data:image/svg+xml,@{svg}"); + } + + .oo-ui-icon-tray { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}"); + } + .vector-icon.mw-ui-icon-wikimedia-labFlask { @svg: escape( ''