2019-12-29 18:45:17 +00:00
|
|
|
/*
|
2021-08-11 20:17:43 +00:00
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* SkinStyles for Extension:Echo
|
|
|
|
* Module: ext.echo.ui
|
|
|
|
* Version: REL1_35 347c30e
|
|
|
|
*
|
2023-06-01 22:47:40 +00:00
|
|
|
* Date: 2023-05-27
|
2019-12-29 18:45:17 +00:00
|
|
|
*/
|
|
|
|
|
2022-05-25 20:00:45 +00:00
|
|
|
@import '../../../resources/variables.less';
|
2022-09-29 23:12:56 +00:00
|
|
|
@import '../../../resources/mixins.less';
|
|
|
|
|
2023-05-23 16:46:36 +00:00
|
|
|
#pt-talk-alert {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-09-29 23:12:56 +00:00
|
|
|
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup {
|
|
|
|
top: unset !important;
|
|
|
|
bottom: var( --header-size ) !important;
|
2022-11-01 00:34:00 +00:00
|
|
|
margin: var( --space-xs );
|
2024-07-25 01:53:51 +00:00
|
|
|
box-shadow: var( --box-shadow-drop-xx-large );
|
2023-05-27 19:00:15 +00:00
|
|
|
|
|
|
|
.oo-ui-popupWidget-body {
|
|
|
|
height: auto !important;
|
2023-06-01 22:47:40 +00:00
|
|
|
max-height: ~'calc( var( --header-card-maxheight ) - 2 * 3.1428571em )'; // 3.1428571em = height of .oo-ui-popupWidget-head & .oo-ui-popupWidget-footer
|
2023-05-27 19:00:15 +00:00
|
|
|
}
|
2022-09-29 23:12:56 +00:00
|
|
|
}
|
|
|
|
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-tablet ) {
|
2022-09-29 23:12:56 +00:00
|
|
|
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup {
|
|
|
|
// .citizen-header-card-tablet( right );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
2022-09-29 23:12:56 +00:00
|
|
|
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup {
|
|
|
|
bottom: 0 !important;
|
|
|
|
left: var( --header-size ) !important;
|
|
|
|
}
|
|
|
|
}
|
2022-05-25 20:00:45 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
/* mw.echo.ui.mobile.less */
|
|
|
|
@media all and ( max-width: 720px ) {
|
|
|
|
.mw-echo-ui-overlay {
|
|
|
|
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup {
|
2022-09-29 23:12:56 +00:00
|
|
|
right: 0 !important;
|
|
|
|
left: 0 !important;
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
/* mw.echo.ui.overlay.less */
|
2019-12-29 18:45:17 +00:00
|
|
|
.mw-echo-ui-overlay {
|
2021-08-11 20:17:43 +00:00
|
|
|
position: fixed; // Header is fixed
|
2022-09-29 23:12:56 +00:00
|
|
|
// The notification button is always bottom-aligned
|
|
|
|
// Setting a top value will break the 0 height hack used in the original
|
|
|
|
top: unset;
|
|
|
|
bottom: 0;
|
2023-07-28 01:19:27 +00:00
|
|
|
z-index: @z-index-overlay; // Higher than header
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
/* mw.echo.ui.NotificationItemWidget.less */
|
2019-12-29 18:45:17 +00:00
|
|
|
.mw-echo-ui-notificationItemWidget {
|
2021-08-11 20:17:43 +00:00
|
|
|
background-color: var( --color-surface-3 );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-color: var( --border-color-base );
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: var( --color-surface-2--hover );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:active {
|
|
|
|
background-color: var( --color-surface-2--active );
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:last-child {
|
|
|
|
border-bottom-color: var( --border-color-base );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-unread {
|
|
|
|
background-color: var( --color-surface-1 );
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: var( --color-surface-2--hover );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-notify {
|
|
|
|
&-description {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-icon {
|
|
|
|
img {
|
|
|
|
width: 24px; // It looks nicer
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-content {
|
|
|
|
&-message {
|
|
|
|
&-header {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-body {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-table {
|
|
|
|
display: block;
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-actions {
|
|
|
|
display: flex; // Table row does not align things properly
|
|
|
|
align-items: center;
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
& > &-buttons.oo-ui-buttonSelectWidget {
|
|
|
|
display: block;
|
|
|
|
margin-right: 0;
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
.mw-echo-ui-menuItemWidget-prioritized {
|
|
|
|
border-radius: var( --border-radius-small );
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:hover {
|
2024-07-01 00:41:31 +00:00
|
|
|
background-color: var( --background-color-button-quiet--hover );
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:active {
|
2024-07-01 00:41:31 +00:00
|
|
|
background-color: var( --background-color-button-quiet--active );
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-menu {
|
|
|
|
opacity: var( --opacity-icon-base );
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:hover {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:active {
|
2024-06-30 05:04:30 +00:00
|
|
|
opacity: var( --opacity-icon-base--selected );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-timestamp {
|
|
|
|
display: block;
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2021-08-11 20:17:43 +00:00
|
|
|
opacity: 1;
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-bundled {
|
|
|
|
.mw-echo-ui-notificationItemWidget-content {
|
|
|
|
.mw-echo-ui-notificationItemWidget {
|
|
|
|
&-content-message {
|
|
|
|
&-header {
|
|
|
|
em {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-initiallyUnseen {
|
|
|
|
-webkit-animation-name: unseen-fadeout-to-read;
|
|
|
|
animation-name: unseen-fadeout-to-read;
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&.mw-echo-ui-notificationItemWidget-unread {
|
|
|
|
-webkit-animation-name: unseen-fadeout-to-unread;
|
|
|
|
animation-name: unseen-fadeout-to-unread;
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
@-webkit-keyframes unseen-fadeout-to-unread {
|
|
|
|
from {
|
|
|
|
background-color: var( --color-surface-2 );
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
to {
|
|
|
|
background-color: var( --color-surface-1 );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
@keyframes unseen-fadeout-to-unread {
|
|
|
|
from {
|
|
|
|
background-color: var( --color-surface-2 );
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
to {
|
|
|
|
background-color: var( --color-surface-1 );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
@-webkit-keyframes unseen-fadeout-to-read {
|
|
|
|
from {
|
|
|
|
background-color: var( --color-surface-2 );
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
to {
|
|
|
|
background-color: var( --color-surface-3 );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
@keyframes unseen-fadeout-to-read {
|
|
|
|
from {
|
|
|
|
background-color: var( --color-surface-2 );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
to {
|
|
|
|
background-color: var( --color-surface-3 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.echo.ui.ToggleReadCircleButtonWidget.less */
|
|
|
|
.mw-echo-ui-toggleReadCircleButtonWidget {
|
|
|
|
&-circle {
|
2024-06-30 05:04:30 +00:00
|
|
|
background-color: var( --color-progressive );
|
2021-08-11 20:17:43 +00:00
|
|
|
|
|
|
|
&-unread {
|
|
|
|
background-color: var( --color-surface-2 );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-color: var( --border-color-base );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:hover .mw-echo-ui-toggleReadCircleButtonWidget-circle {
|
2024-06-30 05:04:30 +00:00
|
|
|
background-color: var( --color-progressive--hover );
|
2021-08-11 20:17:43 +00:00
|
|
|
|
|
|
|
&-unread {
|
|
|
|
background-color: var( --color-surface-2--hover );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:active .mw-echo-ui-toggleReadCircleButtonWidget-circle {
|
2024-06-30 05:04:30 +00:00
|
|
|
background-color: var( --color-progressive--active );
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-unread {
|
|
|
|
background-color: var( --color-surface-2--active );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.echo.ui.CrossWikiNotificationItemWidget.less */
|
|
|
|
.mw-echo-ui-crossWikiNotificationItemWidget,
|
|
|
|
.mw-echo-ui-bundleNotificationItemWidget {
|
|
|
|
&-separator {
|
|
|
|
border-bottom-color: var( --border-color-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
&-group {
|
|
|
|
background-color: var( --color-surface-2 );
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
.mw-echo-ui-subGroupListWidget-header {
|
|
|
|
&-row-title {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
/* mw.echo.ui.NotificationsListWidget.less */
|
|
|
|
.mw-echo-ui-notificationsListWidget {
|
|
|
|
> a,
|
|
|
|
&:hover > a {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:not( :hover ) a,
|
|
|
|
#p-personal &:not( :hover ) a.new {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.echo.ui.PlaceholderItemWidget.less */
|
|
|
|
.mw-echo-ui-placeholderItemWidget {
|
|
|
|
background-color: var( --color-surface-1 );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.echo.ui.MenuItemWidget.less */
|
|
|
|
.mw-echo-ui-menuItemWidget {
|
2022-05-31 23:15:06 +00:00
|
|
|
// First selector is polyfill for MW 1.35
|
|
|
|
> .oo-ui-labelElement-label,
|
|
|
|
> .oo-ui-buttonElement-button > .oo-ui-labelElement-label {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-prioritized {
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:active {
|
2024-06-30 05:04:30 +00:00
|
|
|
opacity: var( --opacity-icon-base--selected );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&-dynamic-action {
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --color-surface-1 );
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-echo-ui-menuItemWidget-description {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-11 20:17:43 +00:00
|
|
|
|
|
|
|
.mw-echo-ui-actionMenuPopupWidget-menu:hover {
|
|
|
|
background-color: var( --color-surface-2--hover );
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|