mediawiki-extensions-Echo/modules/nojs/mw.echo.notifications.less
Ed Sanders 2af0c6d816 build: Update stylelint-config-wikimedia to 0.13.0
Change-Id: I60f34cb3c3c5c12cf1f9f38426a56c76dcf063fd
2022-05-09 14:05:59 +01:00

91 lines
1.8 KiB
Plaintext

@import '../echo.variables.less';
@import '../echo.mixins.less';
@import 'mediawiki.mixins.less';
// This is only valid for the Special:Notifications page in no-JS mode,
// where the formatting of the notifications include the following structure
.mw-echo-state {
display: block;
box-sizing: border-box;
width: 100%;
.mw-echo-notification-primary-link {
display: none;
}
.mw-echo-icon {
width: 30px;
height: 30px;
float: left;
margin-right: 10px;
margin-left: 10px;
}
.mw-echo-notification {
background-color: @background-color-base;
color: @grey-light;
clear: both;
display: block;
line-height: 90%;
margin: 0;
min-height: 30px;
position: relative;
padding-top: 15px;
padding-bottom: 10px;
/* Force container to expand to height of floated contents */
overflow: hidden;
/* stylelint-disable-next-line selector-class-pattern */
span.autocomment {
color: inherit;
font-style: normal;
}
}
.mw-echo-notifications {
background-color: @notification-background-read;
}
.mw-echo-content {
overflow: hidden;
display: block;
.mw-echo-title {
color: @notification-text-color;
}
.mw-echo-payload {
color: @notification-body-color;
margin-top: 4px;
.text-overflow( @visible: false );
}
.mw-echo-title,
.mw-echo-payload {
font-size: 1em;
line-height: 1.4em;
/* stylelint-disable-next-line selector-class-pattern */
.plainlinks {
max-width: 100%;
display: inline-block;
.text-overflow( @visible: false );
vertical-align: top;
}
}
.mw-echo-notification-footer {
color: @grey-light;
font-size: 11px;
margin-top: 0.2em;
.mw-echo-notification-footer-element {
display: inline-block;
max-width: 15em;
margin-right: 0.5em;
.text-overflow( @visible: false );
}
}
}
}