Skip to content

Rocket Chat Enhance by mehranarji

Details

Authormehranarji

LicenseNo License

Categoryrocket-chat

Created

Updated

Size7.1 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

We made some minor improvements on rocket chat main template

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         Rocket Chat Enhance
@version      20220302.06.14
@namespace    userstyles.world/user/mehranarji
@description  We made some minor improvements on rocket chat main template
@author       mehranarji
@license      No License
==/UserStyle== */

@-moz-document domain("chat.partdp.ir") {
/* 
* Author: Mohsen Mehrabanpour WPTeam
*/

/* header.rc-header.rc-header--room {
	background: #fff386
}
div.rc-header__wrap {
	background: #fff386
}
label.rc-message-box__container {
	background: #fff
} */
/* div.messages-container-wrapper {
	background: #ffffce94;
	background-size: cover
} */

/**
 * Container
 */

body {
	background-color: #242831;
}

#rocket-chat {
	align-self: center;
	margin: 15px 0;
	border-radius: 15px;
	width: 1200px;
	max-width: 100%;
}

.messages-container {
/* 	background-image: url('https://images.unsplash.com/photo-1640906152676-dace6710d24b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1332&q=80'); */
	background-blend-mode: overlay;
	background-color: #eee;
}

/**
 * Header
 */
.rc-header__wrap {
	background: transparent;
}

.rc-header {
	background: rgba(255,255,255, .6);
}

.rc-header .avatar {
	border-radius: 50%;
	position: relative;
}

.rc-header .rc-header__status {
/* 	z-index: 1000; */
}
.rc-header .rc-header__status-bullet {
	position: absolute;
	left: 100px;
	top: 45px;
	border: solid 2px white;
	width: 12px;
	height: 12px;
}
.rc-header .rc-header__visual-status {
/* 	visibility: hidden; */
}

.message .mention-link {
	display: inline-block;
	direction: ltr;
	background: transparent;
	color: #91a4dd;
	text-decoration: none;
}

.message .mention-link--me {
	background: rgb(236, 236, 236);
	color: #2e5de8;
}
.message .mention-link--me:hover {
	color: inherit;
}

/**
 * Messages
 */
.message .message-body-wrapper {
	display: table;
	text-align: right;
	width: fit-content;
	max-width: 70%;
	min-width: 80px;
	background: #fff;
	padding: 7px 10px;
	border-radius: 10px;
	position: relative;
	box-shadow: 0 2px 0 0 #bfbfbfba;
	font-size: 13px;
}

.message:not(.sequential) .message-body-wrapper {
	padding-bottom: 18px;
}
.message:not(.sequential):not(.own) .message-body-wrapper {
	border-top-left-radius: 0;
}

.message:not(.sequential).own .message-body-wrapper {
	border-top-right-radius: 0;
}
.message .message-body-wrapper .role-tag {
	background: none;
	border: none;
	font-size: 10px;
	color: rgba(0,0,0,.3);
}

.message.own .message-body-wrapper .role-tag {
	color: rgba(255,255,255,.3);
}

.message .edited {
	position: absolute;
	bottom: 0px;
	right: 10px;
	font-size: 10px;
	opacity: .5;
}
.message .edited .icon-pencil::before {
	display: none;
}
.message .edited .icon-pencil::after {
	content: "edited";
	white-space: nowrap;
}
/* .message:not(.sequential) .message-body-wrapper::after {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	border: 10px solid;
	border-color: transparent #fff transparent transparent;
	left: -18px;
	top: 10px; 
} */
.message .message-body-wrapper .user {
	font-size: 12px;
	display: none;
}

.message:not(.own) .thumb::before {
	content: attr(data-username);
	font-size: 10px;
	position: absolute;
	bottom: 100%;
	left: 0;
	margin-bottom: 5px;
	background-color: rgba(0, 0, 0, .6);
	border-radius: 200px;
	opacity: 0;
	line-height: 20px;
	max-width: 20px;
	white-space: nowrap;
	overflow: hidden;
	padding: 0 5px;
	color: rgba(0, 0, 0, 0);
	/* 	transform: translateY(10px); */
	transition: .3s ease transform, .3s .5s ease opacity, .3s ease color, .3s .3s ease max-width;
	
}

.message:not(.own) .thumb:hover::before {
	transform: translateY(0);
	max-width: 150px;
	opacity: 1;
	color: white;
	transition: .3s ease transform, .3s ease opacity, .3s .3s ease color, .3s ease max-width;
}

.message .avatar {
	border-radius: 50%;
}
.message div.title.border-component-color.color-info-font-color {
	direction: rtl;
	color: #000
}
li .message-body-wrapper .time {
	position: absolute;
	left: 10px;
	bottom: 0px;
	font-size: 8px;
	opacity: .5;
}
.rc-old .cozy .message.own {
	padding: 4px 70px 4px 20px;
}
li.own {
	direction: rtl
}
li.own > button.thumb {
	left: unset;
	right: 24px
}
li.own > .message-actions {
	right: unset;
	left: 10px
}
li.own > .read-receipt {
	right: unset;
	left: 10px
}
li.own div.title.border-component-color.color-info-font-color button {
	color: #fff
}
li.own div.title.border-component-color.color-info-font-color {
	direction: rtl;
	color: #fff
}
li.own div.title.border-component-color.color-info-font-color > .user.user-card-message.color-primary-font-color {
	margin-left: 10px
}
li.own div.body.color-primary-font-color {
	color: #fff;
}
li.own div.body.color-primary-font-color a {
	text-decoration: underline;
	color: #0ff
}
li.own .message-body-wrapper {
	background: #208ffd;
	box-shadow: 0 2px 0 0 #1872ca; 
}

li.own div.attachment {
	border-right: 2px solid #208ffd
}

.message.own .reactions {
	text-align: right;
}

.message.own .reactions li {
	direction: ltr;
}

/**
 * Reply
 */
.message.collapsed {
	max-height: unset;
	font-size: inherit;
}

.message.collapsed .thread-replied {
	direction: rtl;
	display: table;
	text-align: right;
	width: fit-content;
	max-width: 70%;
	min-width: 80px;
	background: #fff;
	padding: 7px 10px;
	border-radius: 10px;
	position: relative;
	box-shadow: 0 2px 0 0 #bfbfbfba;
	font-size: 13px;
}

.message .thread-reply-preview {
	white-space: normal;
}

.message.collapsed > .thread-replied > .thumb {
	position: absolute;
	left: -25px;
	top: 0;
	margin: 0;
}

/**
 * Date indicator
 */
.message.new-day::before {
	color: #aea7a7;
	background-color: #ededed;
	border: solid 1px #e1dede;
	border-radius: 100px;
	font-size: 10px;
	font-weight: 200;
}
.message.new-day::after {
	border-color: transparent;
}

/**
 * Unread Indicator
 */
.message.first-unread .body::before {
	position: absolute;
	left: 100%;
	top: 0;
	width: 7px;
	height: 7px;
	font-size: 0;
	display: block;
	padding: 0;
	margin: 5px 0 0 5px;
	border-radius: 50%;
	background: var(--rc-color-error);
}
.message.first-unread .body::after {
	visibility: hidden;
}

/**
 * Message box
 */
.messages-container .footer {
	margin: 20px 20px 30px;
	background: rgba(255, 255, 255, 1);
	border-radius: 10px;
	box-shadow: 0 2px 0 0 #bfbfbfba;
}

.messages-container .rc-message-box {
	padding: 10px;
}

.messages-container .rc-message-box__toolbar-formatting {
	bottom: -25px;
}

.messages-container .rc-message-box__typing {
	bottom: 100%;
	top: auto;
	margin-left: 15px;
	margin-bottom: 5px;
	width: 100%;
	text-align: left;
	
}

/**
 * Contact list (Aside)
 */
.sidebar {
	max-width: 22%;
	width: 22%;
}
.sidebar__footer {
	display: none;
}

.rooms-list__list .sidebar-item {
	margin: 0 7px 2px;
	border-radius: 5px;
}
.sidebar-item__user-status {
	position: absolute;
	left: 15px;
	bottom: 2px;
}
.sidebar-item .avatar {
	border-radius: 50%;
}
.sidebar-item__name {
	margin-left: 5px;
}
/**
 * Contenxiual bar
 */
.contextual-bar__content.threads {
	background-color: #f5f5f5;
}

@media only screen and (max-width: 800px) {
	li .message-body-wrapper {
		max-width: 100vw
	}
	
	#rocket-chat {
		margin: 0 0;
		border-radius: 0;
	}
}
}

Reviews

No reviews yet.