2016-04-10 13:31:02 +00:00
|
|
|
@import '../echo.variables';
|
|
|
|
@import '../echo.mixins';
|
2015-08-13 00:54:16 +00:00
|
|
|
|
2015-11-12 19:37:56 +00:00
|
|
|
.mw-echo-ui-notificationItemWidget {
|
2016-04-10 13:31:02 +00:00
|
|
|
position: relative;
|
2016-05-31 01:08:25 +00:00
|
|
|
white-space: normal;
|
2016-03-15 23:27:59 +00:00
|
|
|
padding: 0.8em 1em 0.5em 1em;
|
2015-08-13 00:54:16 +00:00
|
|
|
background-color: #F1F1F1;
|
2016-05-31 01:08:25 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
border: 1px solid #DDDDDD;
|
|
|
|
border-bottom: 0;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: 1px solid #DDDDDD;
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
|
2016-03-23 23:12:29 +00:00
|
|
|
> a,
|
2015-09-09 22:12:01 +00:00
|
|
|
&:hover > a {
|
|
|
|
text-decoration: 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 {
|
2016-05-22 10:29:42 +00:00
|
|
|
display: block;
|
|
|
|
// The icon is 30px
|
|
|
|
margin-left: 30px;
|
|
|
|
padding-left: 0.8em;
|
2015-10-16 23:18:25 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
&-message {
|
2016-03-03 20:54:11 +00:00
|
|
|
line-height: 16px;
|
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;
|
2016-02-15 20:55:28 +00:00
|
|
|
margin-top: 4px;
|
2015-12-18 18:56:59 +00:00
|
|
|
}
|
2015-10-16 23:18:25 +00:00
|
|
|
}
|
|
|
|
|
2016-02-23 01:44:48 +00:00
|
|
|
&-table {
|
|
|
|
display: table;
|
|
|
|
width: 100%;
|
2016-01-13 03:36:47 +00:00
|
|
|
margin-top: 0.8em;
|
2016-02-23 01:44:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-actions {
|
|
|
|
display: table-row;
|
2016-01-13 03:36:47 +00:00
|
|
|
font-size: 0.9em;
|
2015-10-16 23:18:25 +00:00
|
|
|
|
2016-02-23 01:44:48 +00:00
|
|
|
& > &-buttons.oo-ui-buttonSelectWidget {
|
|
|
|
display: table-cell;
|
2016-03-15 23:27:59 +00:00
|
|
|
vertical-align: bottom;
|
2016-02-23 01:44:48 +00:00
|
|
|
}
|
|
|
|
|
2016-03-15 23:14:47 +00:00
|
|
|
&-button,
|
2016-05-09 22:00:18 +00:00
|
|
|
.mw-echo-ui-menuItemWidget-prioritized {
|
2016-03-03 20:54:11 +00:00
|
|
|
margin-right: 1.2em;
|
2015-10-16 23:18:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-menu {
|
2016-03-03 20:54:11 +00:00
|
|
|
.mw-echo-ui-mixin-hover-opacity();
|
2016-02-23 01:44:48 +00:00
|
|
|
display: table-cell;
|
2016-03-15 23:27:59 +00:00
|
|
|
vertical-align: bottom;
|
2016-03-03 20:54:11 +00:00
|
|
|
padding: 0;
|
2016-02-23 01:44:48 +00:00
|
|
|
|
2015-10-16 23:18:25 +00:00
|
|
|
.oo-ui-popupWidget-popup {
|
|
|
|
font-size: 1 / 0.8em;
|
|
|
|
padding: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-timestamp {
|
2016-02-23 01:44:48 +00:00
|
|
|
display: table-cell;
|
2016-03-15 23:27:59 +00:00
|
|
|
vertical-align: bottom;
|
2016-03-03 20:54:11 +00:00
|
|
|
text-align: right;
|
2015-10-16 23:18:25 +00:00
|
|
|
color: black;
|
|
|
|
opacity: @opacity-low;
|
2016-02-23 01:44:48 +00:00
|
|
|
white-space: nowrap;
|
2016-03-03 20:54:11 +00:00
|
|
|
width: 100%;
|
2015-10-16 23:18:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
|
2015-12-22 23:16:32 +00:00
|
|
|
// Table layout only for the content inside bundles
|
2016-05-31 01:08:25 +00:00
|
|
|
&-bundled {
|
2015-12-22 23:16:32 +00:00
|
|
|
display: table;
|
2016-03-10 23:22:14 +00:00
|
|
|
width: 100%;
|
2016-05-31 01:08:25 +00:00
|
|
|
padding: 0.5em;
|
2015-12-22 23:16:32 +00:00
|
|
|
|
|
|
|
.mw-echo-ui-notificationItemWidget-content {
|
|
|
|
display: table-row;
|
2016-05-31 01:08:25 +00:00
|
|
|
padding-left: 0.5em + 1.5em;
|
2015-12-22 23:16:32 +00:00
|
|
|
|
|
|
|
.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;
|
2016-05-31 01:08:25 +00:00
|
|
|
|
|
|
|
img {
|
|
|
|
height: 1.5em;
|
|
|
|
width: 1.5em;
|
|
|
|
}
|
|
|
|
|
2015-12-22 23:16:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-content-message {
|
2016-01-22 01:04:58 +00:00
|
|
|
display: table-cell;
|
2016-02-23 01:44:48 +00:00
|
|
|
padding-right: 0.5em;
|
2016-01-22 01:04:58 +00:00
|
|
|
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 {
|
2016-06-20 20:00:37 +00:00
|
|
|
display: table-cell;
|
|
|
|
vertical-align: top;
|
2015-12-22 23:16:32 +00:00
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-13 00:54:16 +00:00
|
|
|
&-markAsReadButton {
|
|
|
|
float: right;
|
2015-11-05 19:26:14 +00:00
|
|
|
font-size: 1em;
|
2016-06-20 20:00:37 +00:00
|
|
|
// Compensate for the padding in the item widget
|
|
|
|
margin-top: -0.8em;
|
|
|
|
margin-right: -1em;
|
2015-10-16 23:18:25 +00:00
|
|
|
padding: 0;
|
|
|
|
|
2016-06-20 20:00:37 +00:00
|
|
|
.mw-echo-ui-notificationItemWidget-bundled & {
|
2015-10-16 23:18:25 +00:00
|
|
|
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
|
|
|
}
|