server/apps/comments/css/comments.css

188 lines
3.8 KiB
CSS
Raw Normal View History

2016-02-01 15:37:33 +00:00
/*
* Copyright (c) 2016
*
* This file is licensed under the Affero General Public License version 3
* or later.
*
* See the COPYING-README file.
*
*/
2016-08-03 11:18:09 +00:00
#commentsTabView .emptycontent {
margin-top: 0;
}
2016-02-01 15:37:33 +00:00
#commentsTabView .newCommentForm {
2016-08-03 11:18:09 +00:00
position: relative;
2016-02-01 15:37:33 +00:00
margin-bottom: 20px;
}
#commentsTabView .newCommentForm .message {
width: calc(100% - 81px); /* 36 (left margin) + 30 (right padding) + 15 (right padding of surrounding box) */
margin-left: 36px;
2016-08-03 11:18:09 +00:00
padding-right: 30px;
2016-10-11 10:31:17 +00:00
display: block;
2016-08-03 11:18:09 +00:00
}
#commentsTabView .newCommentForm .submit {
position: absolute;
2016-10-11 10:31:17 +00:00
bottom: 0px;
right: 8px;
2016-08-03 11:18:09 +00:00
width: 30px;
margin: 0;
2016-10-11 10:31:17 +00:00
padding: 7px 9px;
2016-08-03 11:18:09 +00:00
background-color: transparent;
border: none;
opacity: .3;
}
#commentsTabView .newCommentForm .submit:not(:disabled):hover,
#commentsTabView .newCommentForm .submit:not(:disabled):focus {
2016-08-03 11:18:09 +00:00
opacity: 1;
2016-02-01 15:37:33 +00:00
}
2016-02-02 11:06:12 +00:00
#commentsTabView .newCommentForm .submitLoading {
background-position: left;
2016-02-01 15:37:33 +00:00
}
#commentsTabView .newCommentForm .cancel {
margin-right: 6px;
}
#commentsTabView .newCommentForm div.message {
resize: none;
}
#commentsTabView .newCommentForm div.message:empty:before {
content: attr(data-placeholder);
color: grey;
}
2016-02-01 15:37:33 +00:00
#commentsTabView .comment {
2016-08-03 11:18:09 +00:00
position: relative;
2016-02-01 15:37:33 +00:00
margin-bottom: 30px;
word-wrap: break-word;
overflow-wrap: break-word;
2016-02-01 15:37:33 +00:00
}
#commentsTabView .comment .avatar,
.atwho-view-ul * .avatar{
2016-08-03 11:18:09 +00:00
width: 32px;
height: 32px;
line-height: 32px;
}
#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;
}
2016-02-01 15:37:33 +00:00
#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,
2016-02-01 15:37:33 +00:00
#commentsTabView .comment .authorRow {
position: relative;
cursor: pointer;
2016-02-01 15:37:33 +00:00
}
.atwho-view-ul * .avatar-name-wrapper {
white-space: nowrap;
}
2016-08-03 11:18:09 +00:00
#commentsTabView .comment .author,
#commentsTabView .comment .date {
opacity: .5;
}
2016-02-01 15:37:33 +00:00
#commentsTabView .comment .author {
2016-08-03 11:18:09 +00:00
margin-left: 5px;
2016-02-01 15:37:33 +00:00
}
#commentsTabView .comment .date {
2016-02-03 17:44:14 +00:00
position: absolute;
right: 0;
2016-08-03 11:18:09 +00:00
top: 5px;
}
2016-08-17 09:35:18 +00:00
#commentsTabView .comments li .message {
2016-08-03 11:18:09 +00:00
padding-left: 40px;
2016-02-03 17:44:14 +00:00
}
#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 {
2016-02-01 15:37:33 +00:00
position: absolute;
right: 0;
}
2016-02-03 17:44:14 +00:00
#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;
}