Created a new message indicator component to indicate new messages (#4299)

* Created a new message indicator component to indicate new messages are present
outside the user's view:

 * Created new component with styling

 * Theming and i18n support for new messages indicator

 * Count new unviewed messages and integrate with component

 * Coding style for new message indicator

* Fixed bugs with new message indicator:

 * Fix display issues with new message indicator
 * Update text to deal with plurals in React

* Fix coded style for ticket 'PLT-1917': add new message indicator.

* Use only server generated timestamps for checking new messages at the bottom

* Move transitionend to prop, fix style selectors
Этот коммит содержится в:
Pepijn
2016-12-08 00:08:37 +01:00
коммит произвёл Harrison Healey
родитель 9b96fcc7c6
Коммит 7399d349de
6 изменённых файлов: 132 добавлений и 4 удалений

Просмотреть файл

@@ -258,6 +258,33 @@
outline: none;
text-align: center;
}
.nav-pills__unread-indicator-bottom {
position: absolute;
bottom: -30px;
left: 0;
right: 0;
@include border-radius(50px);
font-size: 13.5px;
margin: 0 auto;
padding: 3px 0 4px;
text-align: center;
max-width: 250px;
z-index: 1;
cursor: pointer;
transition: bottom 0.2s ease-out;
.fa {
margin-right: 0.5rem;
}
&.visible {
bottom: 0;
}
&.disabled {
display: none;
}
}
}
.post-list__timestamp {