humhub/static/less/comment.less
buddh4 b40fef1caa - Implementation of StreamEntryOptions for differentiating the appearance
- Migrated Activity widget to new StreamEntryWidget logic
- Aligned comment section to new StreamEntryWidget
2020-09-23 17:47:36 +02:00

208 lines
3.5 KiB
Plaintext

//
// Comments
// --------------------------------------------------
@commentLeftMargin:35px;
.comment-container {
margin-top: 10px;
.wall-entry-controls {
margin-left: @commentLeftMargin;
}
}
.comment {
.media {
position: relative !important;
margin-top: 0;
.nav-pills.preferences {
display: none;
right: -3px;
}
}
/*-- Since v1.2 overflow: visible */
.media-body {
overflow:visible;
}
.jp-progress {
background-color: #dbdcdd !important;
}
.jp-play-bar {
background: #cacaca;
}
.content {
a {
color: darken(@info, 20%);
}
}
.post-file-list {
background-color: @background-color-page;
}
}
.comment.guest-mode {
.media:last-child {
.wall-entry-controls {
margin-bottom: 0;
margin-left: @commentLeftMargin;
}
hr {
display: none;
}
}
}
// fileupload button
.comment_create,
.content_edit {
position: relative;
.comment-buttons {
position: absolute;
bottom: 2px;
right: 5px;
z-index:300;
button {
background-color: @link;
color: @text-color-contrast !important;
}
}
.has-error + .comment-buttons {
bottom: 24px !important;
}
.btn-comment-submit {
margin-top: 3px;
}
.fileinput-button {
float: left;
padding: 6px 10px;
background: transparent !important;
i {
color: @link;;
}
}
.fileinput-button:hover .fa {
background: transparent !important;
color: @background4;
}
.fileinput-button:active {
box-shadow: none !important;
}
}
.post-richtext-input-group {
position:relative;
.comment-buttons {
bottom:7px !important;
}
}
.comment-container .content_edit {
margin-left: 50px;
}
.comment-container {
.media {
overflow: visible;
}
}
.comment_edit_content {
margin-left: @commentLeftMargin;
margin-top: 0;
}
.comment-message {
overflow:hidden;
.text-break();
}
.comment-create-input-group {
position:relative;
.ProsemirrorEditor {
.ProseMirror {
padding-right: 72px;
}
}
}
.comment-create-input-group.scrollActive {
.comment-buttons {
right: 22px;
}
}
.comment .media .media-body h4.media-heading a {
font-size: 13px;
color: @link;
margin-bottom: 3px;
font-weight: 500;
}
// Hide seperator of last comment. Seperator is included in optional comment form
div.comment > div.media:first-of-type {
hr.comment-separator {
display: none;
}
.nav-pills.preferences {
display: none;
top: -3px;
}
}
hr.comments-start-separator {
margin-top: 10px;
}
div.nested-comments-root {
margin-left: 28px;
.ProseMirror-menubar-wrapper {
z-index: 210;
}
hr.comment-separator {
display: inherit !important;
}
hr.comments-start-separator {
display:none;
}
a.show-all-link {
margin-top:10px;
}
div.comment {
.media {
position: relative !important;
margin-top: 0;
.nav-pills.preferences {
display: none;
top: 8px;
right: 0;
}
}
}
div.comment-container {
margin-top:0;
padding-bottom:0;
padding-top:0;
}
}