2015-08-13 00:54:16 +00:00
|
|
|
@import '../../echo.variables';
|
2015-10-16 23:18:25 +00:00
|
|
|
@import '../../echo.mixins';
|
2015-08-13 00:54:16 +00:00
|
|
|
|
2015-11-12 19:37:56 +00:00
|
|
|
.mw-echo-ui-notificationItemWidget {
|
2015-10-16 23:18:25 +00:00
|
|
|
padding: 1em 0.5em;
|
2015-08-13 00:54:16 +00:00
|
|
|
background-color: #F1F1F1;
|
|
|
|
border-bottom: 1px solid #DDDDDD;
|
|
|
|
white-space: normal;
|
|
|
|
line-height: 16px;
|
|
|
|
|
2015-09-09 22:12:01 +00:00
|
|
|
&:hover > a {
|
|
|
|
text-decoration: none;
|
2015-12-18 18:56:59 +00:00
|
|
|
color: @notification-text-color;
|
2015-09-09 22:12:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:hover) a,
|
|
|
|
#p-personal &:not(:hover) a.new {
|
2015-12-18 18:56:59 +00:00
|
|
|
color: @notification-text-color;
|
2015-09-09 22:12:01 +00:00
|
|
|
}
|
|
|
|
|
2015-08-13 00:54:16 +00:00
|
|
|
&:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2015-10-16 23:18:25 +00:00
|
|
|
&-icon {
|
|
|
|
img {
|
|
|
|
height: 2.5em;
|
|
|
|
width: 2.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
display: inline-block;
|
|
|
|
// The icon is 2.5em and has a 1em right margin
|
|
|
|
padding-left: 2.5em + 1em;
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&-message {
|
2015-12-18 18:56:59 +00:00
|
|
|
&-body {
|
|
|
|
color: @notification-body-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Only for bundled items
|
2015-10-16 23:18:25 +00:00
|
|
|
.mw-echo-ui-notificationItemWidget-bundle & {
|
|
|
|
float: left;
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
&-header {
|
|
|
|
width: 18em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-actions {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
|
|
|
.mw-echo-ui-notificationItemWidget-bundle & {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-button .oo-ui-buttonElement-button {
|
|
|
|
.mw-echo-ui-mixin-hover-opacity;
|
|
|
|
|
|
|
|
.oo-ui-labelElement-label {
|
|
|
|
// We have to override oojs-ui's color, which uses
|
|
|
|
// a very specific selector
|
|
|
|
font-weight: normal !important;
|
|
|
|
color: #000 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-menu {
|
|
|
|
.mw-echo-ui-notificationItemWidget-bundle & {
|
|
|
|
float: right;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-buttonElement-button {
|
|
|
|
.mw-echo-ui-mixin-hover-opacity;
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-popupWidget-popup {
|
|
|
|
font-size: 1 / 0.8em;
|
|
|
|
padding: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-timestamp {
|
|
|
|
float: right;
|
|
|
|
color: black;
|
|
|
|
opacity: @opacity-low;
|
|
|
|
.mw-echo-ui-notificationItemWidget-bundle & {
|
|
|
|
margin-top: 0.2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-markAsReadButton {
|
2015-10-16 23:18:25 +00:00
|
|
|
.mw-echo-ui-mixin-hover-opacity;
|
2015-08-13 00:54:16 +00:00
|
|
|
float: right;
|
2015-11-05 19:26:14 +00:00
|
|
|
font-size: 1em;
|
2015-10-16 23:18:25 +00:00
|
|
|
margin-top: -0.5em;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
.mw-echo-ui-notificationItemWidget-bundle & {
|
|
|
|
font-size: 0.8em;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
|
2015-10-16 23:18:25 +00:00
|
|
|
&.oo-ui-buttonWidget {
|
|
|
|
margin-right: 0;
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-03 22:37:02 +00:00
|
|
|
&-initiallyUnseen {
|
2015-09-17 18:56:56 +00:00
|
|
|
-webkit-animation-name: unseen-fadeout-to-read;
|
|
|
|
animation-name: unseen-fadeout-to-read;
|
2015-08-13 00:54:16 +00:00
|
|
|
-webkit-animation-duration: .5s;
|
|
|
|
animation-duration: .5s;
|
|
|
|
-webkit-animation-delay: 2s;
|
|
|
|
animation-delay: 2s;
|
|
|
|
-webkit-animation-timing-function: ease-out;
|
|
|
|
animation-timing-function: ease-out;
|
|
|
|
-webkit-animation-fill-mode: both;
|
|
|
|
animation-fill-mode: both;
|
|
|
|
|
2015-11-12 19:37:56 +00:00
|
|
|
&.mw-echo-ui-notificationItemWidget-unread {
|
2015-09-17 18:56:56 +00:00
|
|
|
-webkit-animation-name: unseen-fadeout-to-unread;
|
|
|
|
animation-name: unseen-fadeout-to-unread;
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&-unread {
|
|
|
|
background-color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.oo-ui-optionWidget-selected,
|
|
|
|
&.oo-ui-optionWidget-highlighted {
|
|
|
|
background-color: #F9F9F9;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-unread.oo-ui-optionWidget-highlighted {
|
|
|
|
background-color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
// NOTE: The internal styling of the notifications is outside this file, because
|
|
|
|
// it also affects the notifications in Special:Notifications
|
|
|
|
// These styles are in modules/nojs/ext.echo.notifications.less
|
|
|
|
}
|
|
|
|
|
2015-09-17 18:56:56 +00:00
|
|
|
@-webkit-keyframes unseen-fadeout-to-unread {
|
2015-10-01 13:48:52 +00:00
|
|
|
from {
|
|
|
|
background-color: @notification-background-unseen;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
background-color: @notification-background-unread;
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
|
2015-09-17 18:56:56 +00:00
|
|
|
@keyframes unseen-fadeout-to-unread {
|
2015-10-01 13:48:52 +00:00
|
|
|
from {
|
|
|
|
background-color: @notification-background-unseen;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
background-color: @notification-background-unread;
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@-webkit-keyframes unseen-fadeout-to-read {
|
2015-10-01 13:48:52 +00:00
|
|
|
from {
|
|
|
|
background-color: @notification-background-unseen;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
background-color: @notification-background-read;
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes unseen-fadeout-to-read {
|
2015-10-01 13:48:52 +00:00
|
|
|
from {
|
|
|
|
background-color: @notification-background-unseen;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
background-color: @notification-background-read;
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|