mediawiki-extensions-Echo/modules/nojs/mw.echo.notifications.less
Volker E 6d2e560c1e Introduce stylelint
Introducing stylelint with configuration rules compliant to
Wikimedia CSS Coding Standards 'stylelint-config-wikimedia', nullifying
some for now and making majority pass.

Change-Id: I2c4acee41c9b56d9b00e2a2c5b7ab0ab5de454ce
2016-10-04 18:15:02 -07:00

93 lines
1.7 KiB
Plaintext

@import '../echo.variables';
@import '../echo.mixins';
@import 'mediawiki.mixins';
// 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;
width: 100%;
.box-sizing( border-box );
.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 {
clear: both;
display: block;
color: #6d6d6d;
line-height: 90%;
margin: 0;
min-height: 30px;
background-color: #fff;
position: relative;
padding-top: 15px;
padding-bottom: 10px;
/* Force container to expand to height of floated contents */
overflow: hidden;
zoom: 1;
span.autocomment {
color: inherit;
font-style: normal;
}
}
.mw-echo-notifications {
background-color: #eee;
}
.mw-echo-content {
overflow: hidden;
display: block;
.mw-echo-title {
color: @notification-text-color;
}
.mw-echo-payload {
.mw-echo-ui-mixin-one-line-truncated;
color: @notification-body-color;
margin-top: 4px;
}
.mw-echo-title,
.mw-echo-payload {
font-size: 1em;
line-height: 1.4em;
.plainlinks {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
display: inline-block;
vertical-align: top;
}
}
.mw-echo-notification-footer {
color: #6d6d6d;
font-size: 11px;
margin-top: 0.2em;
.mw-echo-notification-footer-element {
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 15em;
margin-right: 0.5em;
}
}
}
}