зеркало из https://github.com/nextcloud/spreed.git
270 строки
5.5 KiB
SCSS
270 строки
5.5 KiB
SCSS
/*
|
|
* Copyright (c) 2016
|
|
*
|
|
* This file is licensed under the Affero General Public License version 3
|
|
* or later.
|
|
*
|
|
* See the COPYING-README file.
|
|
*
|
|
*/
|
|
|
|
#commentsTabView .comments,
|
|
#commentsTabView .emptycontent {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
#commentsTabView .emptycontent {
|
|
margin-top: 0;
|
|
}
|
|
|
|
#commentsTabView .newCommentForm {
|
|
position: relative;
|
|
}
|
|
|
|
#commentsTabView .newCommentForm .message {
|
|
width: calc(100% - 32px);
|
|
margin-left: 36px;
|
|
padding-right: 30px;
|
|
display: block;
|
|
}
|
|
|
|
#commentsTabView .newCommentForm .submit,
|
|
#commentsTabView .newCommentForm .submitLoading {
|
|
position: absolute;
|
|
|
|
width: 44px;
|
|
height: 44px;
|
|
|
|
bottom: -4px;
|
|
right: -8px;
|
|
margin: 0;
|
|
}
|
|
|
|
#commentsTabView .newCommentForm .submit {
|
|
background-color: transparent;
|
|
border: none;
|
|
opacity: .3;
|
|
}
|
|
#commentsTabView .newCommentForm .submit:hover,
|
|
#commentsTabView .newCommentForm .submit:focus {
|
|
opacity: 1;
|
|
}
|
|
|
|
#commentsTabView .newCommentForm .cancel {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
#commentsTabView .newCommentForm div.message {
|
|
resize: none;
|
|
}
|
|
|
|
#commentsTabView .newCommentForm div.message:empty:before {
|
|
content: attr(data-placeholder);
|
|
color: grey;
|
|
}
|
|
|
|
#commentsTabView .comment {
|
|
position: relative;
|
|
margin-bottom: 30px;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
#commentsTabView .comment .avatar,
|
|
.atwho-view-ul * .avatar{
|
|
width: 32px;
|
|
height: 32px;
|
|
line-height: 32px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
#commentsTabView .comment .message .avatar,
|
|
.atwho-view-ul * .avatar
|
|
{
|
|
display: inline-block;
|
|
}
|
|
|
|
#activityTabView li.comment.collapsed .activitymessage,
|
|
#commentsTabView .comment.collapsed .message {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
#activityTabView li.comment.collapsed .activitymessage,
|
|
#commentsTabView .comment.collapsed .message {
|
|
max-height: 70px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#activityTabView li.comment .message-overlay,
|
|
#commentsTabView .comment .message-overlay {
|
|
display: none;
|
|
}
|
|
|
|
#activityTabView li.comment.collapsed .message-overlay,
|
|
#commentsTabView .comment.collapsed .message-overlay {
|
|
display: block;
|
|
position: absolute;
|
|
z-index: 2;
|
|
height: 50px;
|
|
pointer-events: none;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: -moz-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
|
|
background: -webkit-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
|
|
background: -o-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
|
|
background: -ms-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
|
|
background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
|
|
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#00FFFFFF', endColorstr='#FFFFFFFF');
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
#commentsTabView .authorRow>div {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#commentsTabView .authorRow>div.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
#commentsTabView .comments li .message .avatar-name-wrapper,
|
|
.atwho-view-ul * .avatar-name-wrapper,
|
|
#commentsTabView .comment .authorRow {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
body:not(#body-public) #commentsTabView .comment .authorRow:not(.currentUser):not(.guestUser) {
|
|
.avatar,
|
|
.avatar img,
|
|
.author {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.atwho-view-ul .avatar-name-wrapper,
|
|
.atwho-view-ul .avatar-name-wrapper .avatar,
|
|
.atwho-view-ul .avatar-name-wrapper .avatar img {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.atwho-view-ul * .avatar-name-wrapper {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#commentsTabView .comment .author,
|
|
#commentsTabView .comment .date {
|
|
opacity: .5;
|
|
}
|
|
#commentsTabView .comment .author {
|
|
margin-left: 5px;
|
|
}
|
|
#commentsTabView .comment .date {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 5px;
|
|
}
|
|
|
|
#commentsTabView .comments li .message {
|
|
padding-left: 40px;
|
|
}
|
|
|
|
#commentsTabView .comment .action {
|
|
opacity: 0;
|
|
vertical-align: middle;
|
|
display: inline-block;
|
|
}
|
|
|
|
#commentsTabView .comment:hover .action {
|
|
opacity: 0.3;
|
|
}
|
|
|
|
#commentsTabView .comment .action:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
#commentsTabView .comment .action.delete {
|
|
position: absolute;
|
|
right: 0;
|
|
}
|
|
|
|
#commentsTabView .comment.disabled {
|
|
opacity: 0.3;
|
|
}
|
|
|
|
#commentsTabView .comment.disabled .action {
|
|
visibility: hidden;
|
|
}
|
|
|
|
#commentsTabView .message.error {
|
|
color: #e9322d;
|
|
border-color: #e9322d;
|
|
box-shadow: 0 0 6px #f8b9b7;
|
|
}
|
|
|
|
.app-files .action-comment {
|
|
padding: 16px 14px;
|
|
}
|
|
|
|
#commentsTabView .comment.grouped .authorRow {
|
|
display: none;
|
|
}
|
|
|
|
#commentsTabView .comment.grouped {
|
|
margin-top: -20px;
|
|
}
|
|
|
|
#commentsTabView .comment.showDate {
|
|
margin-top: 40px;
|
|
border-top: 1px solid #dbdbdb;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
#commentsTabView .comment.showDate:before {
|
|
content: attr(data-date);
|
|
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
padding: 0 7px 0 7px;
|
|
|
|
text-align: center;
|
|
|
|
color: #878787;
|
|
background-color: #fff;
|
|
}
|
|
|
|
#commentsTabView .comment.showDate .authorRow {
|
|
display: inline-flex;
|
|
}
|
|
|
|
#commentsTabView .comment .message .mention-user {
|
|
/* Make the mention the positioning context of its child contacts menu */
|
|
position: relative;
|
|
|
|
font-weight: bold;
|
|
background-color: nc-lighten($color-main-text, 90%);
|
|
padding: 2px 5px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
#commentsTabView .comment .message .mention-user.current-user {
|
|
background-color: $color-primary;
|
|
color: $color-primary-text;
|
|
}
|
|
|
|
body:not(#body-public) #commentsTabView .comment:not(.newCommentRow) .message .mention-user:not(.current-user) {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#commentsTabView .comment .message .contactsmenu-popover {
|
|
/* Override default positioning of the contacts menu from server, as it is
|
|
* based on an avatar plus a text instead of only '@' plus a text. */
|
|
left: -12px;
|
|
top: 140%;
|
|
}
|