Files
meanTorrent/modules/core/client/less/comment.less
2018-04-28 16:55:43 +08:00

217 lines
6.4 KiB
Plaintext

@import (reference) "mt-var.less";
.comment-list {
background-color: @comment-background-default;
}
.comment-new {
border-top: 2px solid darken(@comment-background-default, 20%);
}
.panel-comment {
.panel-body {
background-color: @comment-background-default;
}
.pagination {
padding-left: 75px;
margin: 0;
}
}
.tabnav-extra {
display: table-cell;
vertical-align: middle;
padding-top: 10px;
font-size: 12px;
svg {
vertical-align: bottom !important;
path {
fill: #18a404;
}
}
}
.timeline-comment-wrapper {
padding-left: 60px;
margin: 15px 15px;
.timeline-comment {
position: relative;
background-color: #fff;
border: 1px solid #d1d5da;
border-radius: 3px;
&::before {
position: absolute;
top: 11px;
right: 100%;
left: -16px;
display: block;
width: 0;
height: 0;
pointer-events: none;
content: " ";
border-color: transparent;
border-style: solid solid outset;
border-width: 8px;
border-right-color: #d1d5da;
}
&::after {
position: absolute;
top: 11px;
right: 100%;
left: -16px;
display: block;
width: 0;
height: 0;
pointer-events: none;
content: " ";
border-color: transparent;
border-style: solid solid outset;
margin-top: 1px;
margin-left: 2px;
border-width: 7px;
border-right-color: lighten(@comment-background-default, 2%);
}
.timeline-comment-header {
padding-right: 15px;
padding-left: 15px;
color: #586069;
background-color: lighten(@comment-background-default, 2%);
border-bottom: 1px dashed #d1d5da;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
min-height: 42px;
.timeline-comment-header-text {
max-width: 70%;
padding-top: 10px;
padding-bottom: 10px;
.user-ud-text {
font-size: 12px;
color: lighten(@gray-base, 60%);
}
}
.timeline-comment-header-time-text {
font-size: 12px;
color: lighten(@gray-base, 60%);
position: absolute;
right: 15px;
top: 15px;
}
}
.timeline-comment-body {
padding-right: 15px;
padding-left: 15px;
min-height: 42px;
.timeline-comment-body-text {
padding-top: 10px;
p {
img {
max-width: 100%;
}
}
}
.timeline-comment-body-edited-text {
font-size: 12px;
color: lighten(@gray-base, 60%);
margin-right: 15px;
}
.timeline-comment-sub-list {
border-top: 1px solid #d1d5da;
//padding-top: 5px;
.timeline-comment-sub-item:last-child {
padding-bottom: 8px;
}
.timeline-comment-sub-item {
padding-top: 8px;
&:not(:last-child) {
border-bottom: 1px dashed #d1d5da;
}
.timeline-comment-sub-body {
p {
margin: 0 0 5px;
img {
max-width: 100%;
}
}
.reply-by {
margin-left: 35px;
margin-top: -5px;
}
.edit-button {
font-size: 12px;
margin-left: 10px;
cursor: pointer;
color: @brand-primary;
&:hover {
color: @brand-danger;
}
}
.delete-button {
font-size: 12px;
margin-left: 3px;
cursor: pointer;
color: @brand-primary;
&:hover {
color: @brand-danger;
}
}
}
.timeline-comment-sub-avatar {
img {
cursor: pointer;
float: left;
margin-right: 10px;
margin-top: -2px;
border-radius: 3px;
height: 24px;
width: 24px;
}
}
}
}
}
.timeline-comment-footer {
padding-right: 15px;
padding-left: 15px;
color: #586069;
background-color: lighten(@comment-background-default, 2%);
border-top: 1px dashed #d1d5da;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
min-height: 32px;
.timeline-comment-footer-button {
padding-top: 5px;
padding-bottom: 5px;
button {
min-width: 70px;
}
}
}
}
.timeline-new-comment {
.timeline-comment-header {
background-color: lighten(@comment-background-default, 2%);
}
.timeline-comment-body {
padding: 8px 8px;
textarea {
resize: vertical;
width: 100%;
min-height: 200px;
max-height: 500px;
}
}
}
.timeline-comment-avatar {
img {
cursor: pointer;
float: left;
margin-left: -60px;
border-radius: 3px;
height: 44px;
width: 44px;
}
}
}