mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-13 17:57:06 +00:00
68239ae344
Changes: - mw-ui-button to cdx-button - mw-ui-quiet to cdx-button--weight-quiet - mw-ui-icon-element to cdx-button--icon-only - mw-ui-icon to vector-icon - mw-ui-icon-flush-right/left to vector-button-flush-right/left - Removes $isSmallIcon param in Hooks.php 85 Visual Changes - ~36 changes from minor pixel changes from the new button classes in the main menu, language button - 22 from standardizing the padding of the TOC in page title - ~10 changes from addition of .cdx-button to the TOC toggle buttons PERFORMANCE: This will result in an overall increase of 2.7kb of render blocking CSS, 1kb will be reclaimed when I6c1ed1523df8cc9e2f2ca09506f12a595b8b013d is merged. Co-author: Bernard Wang <bwang@wikimedia.org> Bug: T336526 Change-Id: Ibd558238a41a0d3edb981e441638f9564f43d226
53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
@import '../resources/common/variables.less';
|
|
|
|
.mixin-notification-badge() {
|
|
position: relative;
|
|
|
|
// When 99+ allow counter so spill outside icon
|
|
// FIXME: Remove old button classes after caching
|
|
&.mw-ui-button,
|
|
&.cdx-button {
|
|
overflow: visible;
|
|
}
|
|
|
|
&::after {
|
|
position: absolute;
|
|
left: 55%;
|
|
top: 43%;
|
|
font-size: unit( 12 / @font-size-browser, rem );
|
|
padding: 0 unit( 4 / @font-size-browser, rem );
|
|
border: 1px solid #fff;
|
|
border-radius: @border-radius-base;
|
|
background-color: #72777d;
|
|
content: attr( data-counter-text );
|
|
color: #fff;
|
|
}
|
|
|
|
// The number of notifications shouldn't show if there are none.
|
|
&[ data-counter-num='0' ]::after {
|
|
content: none;
|
|
}
|
|
}
|
|
|
|
.mw-echo-notification-badge-nojs {
|
|
.mixin-notification-badge();
|
|
}
|
|
|
|
// Special colors for unseen notifications
|
|
#pt-notifications-alert .mw-echo-unseen-notifications::after {
|
|
background-color: @color-destructive;
|
|
}
|
|
|
|
#pt-notifications-notice .mw-echo-unseen-notifications::after {
|
|
background-color: @color-progressive;
|
|
}
|
|
|
|
// Override ULS enhanced buttons
|
|
#pt-notifications-notice .mw-echo-notifications-badge,
|
|
#pt-notifications-alert .mw-echo-notifications-badge {
|
|
.mixin-notification-badge();
|
|
display: inline-flex;
|
|
margin: 0;
|
|
opacity: 1;
|
|
}
|