Skip to content

Commit

Permalink
remove opaque
Browse files Browse the repository at this point in the history
  • Loading branch information
karlprieb committed Nov 17, 2017
1 parent 408d407 commit 2010ad8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
5 changes: 0 additions & 5 deletions packages/rocketchat-theme/client/imports/general/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,6 @@ button {
}
}

.first-unread-opaque .body::after {
color: rgba(0, 0, 0, 0.2);
background: transparent;
}

.message.new-day.first-unread {
&::after {
border-color: var(--rc-color-error);
Expand Down
8 changes: 0 additions & 8 deletions packages/rocketchat-theme/server/colors.less
Original file line number Diff line number Diff line change
Expand Up @@ -562,14 +562,6 @@ input:-webkit-autofill {
* Message content
*/

.first-unread-opaque {
.body {
&::before {
background: @transparent-dark;
}
}
}

.message {
&.new-day::before {
background-color: @content-background-color;
Expand Down
6 changes: 1 addition & 5 deletions packages/rocketchat-ui/client/lib/readMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ const readMessage = new class {
return;
}

const $roomDom = $(room.dom);
$roomDom.find('.message.first-unread').addClass('first-unread-opaque');

if (!subscription.alert && (subscription.unread === 0)) {
room.unreadSince.set(undefined);
return;
Expand All @@ -137,7 +134,6 @@ const readMessage = new class {
return;
}

$roomDom.find('.message.first-unread').removeClass('first-unread').removeClass('first-unread-opaque');

let lastReadRecord = ChatMessage.findOne({
rid: subscription.rid,
Expand Down Expand Up @@ -184,7 +180,7 @@ const readMessage = new class {

if (firstUnreadRecord != null) {
room.unreadFirstId = firstUnreadRecord._id;
return $roomDom.find(`.message#${ firstUnreadRecord._id }`).addClass('first-unread');
$(room.dom).find(`.message#${ firstUnreadRecord._id }`).addClass('first-unread');
}
}
}
Expand Down

0 comments on commit 2010ad8

Please sign in to comment.