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 {
|
2016-01-13 03:36:47 +00:00
|
|
|
padding: 0.8em;
|
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-08-13 00:54:16 +00:00
|
|
|
&:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2015-10-16 23:18:25 +00:00
|
|
|
&-icon {
|
|
|
|
img {
|
2016-01-17 05:47:02 +00:00
|
|
|
height: 30px;
|
|
|
|
width: 30px;
|
2015-10-16 23:18:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
display: inline-block;
|
2016-01-13 03:36:47 +00:00
|
|
|
// The icon is 30px and has a 0.8em right margin
|
|
|
|
padding-left: ~"calc(30px + 0.8em)";
|
2015-10-16 23:18:25 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&-message {
|
2016-01-19 02:26:13 +00:00
|
|
|
&-header {
|
|
|
|
color: @notification-text-color;
|
|
|
|
}
|
2015-12-18 18:56:59 +00:00
|
|
|
&-body {
|
2016-01-20 21:19:54 +00:00
|
|
|
.mw-echo-ui-mixin-one-line-truncated;
|
2015-12-18 18:56:59 +00:00
|
|
|
color: @notification-body-color;
|
|
|
|
}
|
2015-10-16 23:18:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-actions {
|
2016-01-13 03:36:47 +00:00
|
|
|
margin-top: 0.8em;
|
|
|
|
font-size: 0.9em;
|
2015-10-16 23:18:25 +00:00
|
|
|
|
2016-01-30 00:27:47 +00:00
|
|
|
.mw-echo-ui-menuItemWidget {
|
2015-12-23 17:30:50 +00:00
|
|
|
&:not(:last-child) {
|
2016-01-13 03:36:47 +00:00
|
|
|
margin-right: 1em;
|
2015-12-23 17:30:50 +00:00
|
|
|
}
|
2015-10-16 23:18:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-menu {
|
|
|
|
.oo-ui-popupWidget-popup {
|
|
|
|
font-size: 1 / 0.8em;
|
|
|
|
padding: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-timestamp {
|
|
|
|
float: right;
|
|
|
|
color: black;
|
|
|
|
opacity: @opacity-low;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
|
2015-12-22 23:16:32 +00:00
|
|
|
// Table layout only for the content inside bundles
|
|
|
|
&-bundle {
|
|
|
|
display: table;
|
|
|
|
width: ~"calc( 100% - " @bundle-group-padding ~");";
|
|
|
|
|
|
|
|
.mw-echo-ui-notificationItemWidget-content {
|
|
|
|
display: table-row;
|
|
|
|
|
|
|
|
.mw-echo-ui-notificationItemWidget {
|
|
|
|
// CSS table layout
|
|
|
|
&-icon,
|
|
|
|
&-content-message,
|
|
|
|
&-content-actions,
|
|
|
|
&-markAsReadButton {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Positioning fixes for bundled items
|
|
|
|
&-icon {
|
|
|
|
position: relative;
|
|
|
|
padding-right: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content-message {
|
2016-01-22 01:04:58 +00:00
|
|
|
display: table-cell;
|
|
|
|
width: 100%;
|
2015-12-22 23:16:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-content-actions {
|
|
|
|
&-row {
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-buttons {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-menu {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-timestamp {
|
|
|
|
float: none;
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: middle;
|
|
|
|
padding-right: 0.5em;
|
2016-01-22 01:04:58 +00:00
|
|
|
white-space: nowrap;
|
2015-12-22 23:16:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-markAsReadButton {
|
|
|
|
width: 1em;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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;
|
2016-01-13 03:36:47 +00:00
|
|
|
margin-right: -0.5em;
|
2015-10-16 23:18:25 +00:00
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
.mw-echo-ui-notificationItemWidget-bundle & {
|
|
|
|
font-size: 0.8em;
|
|
|
|
margin-top: 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
|
|
|
}
|