mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +00:00
33655c75e7
Replacing colors with ones from the overhauled WCAG 2.0 level AA compliant color palette https://phabricator.wikimedia.org/M82 Applying Less variables where possible for better flexibility in future design maintenance. Also introducing some variables from WikimediaUI Base. Bug: T147365 Depends-on: I16bdfbdada252ee27d5a0de11e0930347315b699 Change-Id: Ic05ed15b44d86752c686d80efc4f2ed2a1e71b41
93 lines
1.7 KiB
Plaintext
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 {
|
|
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;
|
|
zoom: 1;
|
|
|
|
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 {
|
|
.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: @grey-light;
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|