2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 16:17:45 +08:00
|
|
|
@import '../../style/mixins/index';
|
2018-10-22 21:20:28 +08:00
|
|
|
|
2018-12-07 16:17:45 +08:00
|
|
|
@comment-prefix-cls: ~'@{ant-prefix}-comment';
|
2018-10-22 21:20:28 +08:00
|
|
|
|
|
|
|
.@{comment-prefix-cls} {
|
|
|
|
position: relative;
|
2019-11-27 19:50:53 +08:00
|
|
|
background-color: @comment-bg;
|
2018-10-24 21:17:37 +08:00
|
|
|
|
2018-10-29 22:05:42 +08:00
|
|
|
&-inner {
|
|
|
|
display: flex;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding: @comment-padding-base;
|
2018-10-22 21:20:28 +08:00
|
|
|
}
|
2018-10-24 21:17:37 +08:00
|
|
|
|
2018-10-29 22:05:42 +08:00
|
|
|
&-avatar {
|
|
|
|
position: relative;
|
2019-02-15 10:48:07 +08:00
|
|
|
flex-shrink: 0;
|
2020-03-29 10:39:46 +08:00
|
|
|
margin-right: @margin-sm;
|
2018-10-29 22:05:42 +08:00
|
|
|
cursor: pointer;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2018-10-29 22:05:42 +08:00
|
|
|
img {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
2018-10-31 20:53:10 +08:00
|
|
|
border-radius: 50%;
|
2018-10-22 21:20:28 +08:00
|
|
|
}
|
2018-10-29 22:05:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
position: relative;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
min-width: 1px;
|
2019-06-11 12:57:27 +08:00
|
|
|
font-size: @comment-font-size-base;
|
2018-10-29 22:05:42 +08:00
|
|
|
word-wrap: break-word;
|
2018-10-24 21:17:37 +08:00
|
|
|
|
|
|
|
&-author {
|
2018-10-29 22:05:42 +08:00
|
|
|
display: flex;
|
2019-10-18 00:00:09 +08:00
|
|
|
flex-wrap: wrap;
|
2018-10-30 06:45:46 +08:00
|
|
|
justify-content: flex-start;
|
2020-03-29 10:39:46 +08:00
|
|
|
margin-bottom: @margin-xss;
|
2019-06-11 12:57:27 +08:00
|
|
|
font-size: @comment-font-size-base;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2018-10-24 21:17:37 +08:00
|
|
|
& > a,
|
2018-10-22 21:20:28 +08:00
|
|
|
& > span {
|
2020-03-29 10:39:46 +08:00
|
|
|
padding-right: @padding-xs;
|
2019-06-11 12:57:27 +08:00
|
|
|
font-size: @comment-font-size-sm;
|
2018-10-22 21:20:28 +08:00
|
|
|
line-height: 18px;
|
|
|
|
}
|
2018-10-24 21:17:37 +08:00
|
|
|
|
|
|
|
&-name {
|
2018-10-22 21:20:28 +08:00
|
|
|
color: @comment-author-name-color;
|
2019-06-11 12:57:27 +08:00
|
|
|
font-size: @comment-font-size-base;
|
2019-02-15 10:48:07 +08:00
|
|
|
transition: color 0.3s;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2018-10-24 21:17:37 +08:00
|
|
|
> * {
|
2018-10-22 21:20:28 +08:00
|
|
|
color: @comment-author-name-color;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2018-10-24 21:17:37 +08:00
|
|
|
&:hover {
|
2018-10-22 21:20:28 +08:00
|
|
|
color: @comment-author-name-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-10-24 21:17:37 +08:00
|
|
|
|
|
|
|
&-time {
|
2018-10-22 21:20:28 +08:00
|
|
|
color: @comment-author-time-color;
|
|
|
|
white-space: nowrap;
|
2019-02-15 10:48:07 +08:00
|
|
|
cursor: auto;
|
2018-10-22 21:20:28 +08:00
|
|
|
}
|
|
|
|
}
|
2018-12-04 17:05:20 +08:00
|
|
|
|
|
|
|
&-detail p {
|
2020-03-29 10:39:46 +08:00
|
|
|
margin-bottom: @comment-content-detail-p-margin-bottom;
|
2018-12-04 17:05:20 +08:00
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2018-10-22 21:20:28 +08:00
|
|
|
}
|
2018-10-24 21:17:37 +08:00
|
|
|
|
|
|
|
&-actions {
|
2020-03-29 10:39:46 +08:00
|
|
|
margin-top: @comment-actions-margin-top;
|
|
|
|
margin-bottom: @comment-actions-margin-bottom;
|
2018-12-19 17:02:09 +08:00
|
|
|
padding-left: 0;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2018-10-30 00:17:26 +08:00
|
|
|
> li {
|
2018-10-24 21:17:37 +08:00
|
|
|
display: inline-block;
|
2018-10-22 21:20:28 +08:00
|
|
|
color: @comment-action-color;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2018-10-24 21:17:37 +08:00
|
|
|
> span {
|
2020-06-10 12:44:19 +08:00
|
|
|
margin-right: 10px;
|
2018-10-22 21:20:28 +08:00
|
|
|
color: @comment-action-color;
|
2019-06-11 12:57:27 +08:00
|
|
|
font-size: @comment-font-size-sm;
|
2018-10-22 21:20:28 +08:00
|
|
|
cursor: pointer;
|
2019-02-15 10:48:07 +08:00
|
|
|
transition: color 0.3s;
|
2018-10-22 21:20:28 +08:00
|
|
|
user-select: none;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2018-10-24 21:17:37 +08:00
|
|
|
&:hover {
|
2018-10-22 21:20:28 +08:00
|
|
|
color: @comment-action-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-10-24 21:17:37 +08:00
|
|
|
|
2018-10-29 22:05:42 +08:00
|
|
|
&-nested {
|
2018-10-30 19:25:54 +08:00
|
|
|
margin-left: @comment-nest-indent;
|
2018-10-25 21:32:29 +08:00
|
|
|
}
|
2018-10-22 21:20:28 +08:00
|
|
|
}
|
2020-03-19 12:13:24 +08:00
|
|
|
|
|
|
|
@import './rtl';
|