ant-design/components/comment/style/index.less

94 lines
1.7 KiB
Plaintext
Raw Normal View History

2018-12-07 16:17:45 +08:00
@import '../../style/themes/default';
@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;
2018-10-24 21:17:37 +08:00
&-inner {
display: flex;
padding: @comment-padding-base;
2018-10-22 21:20:28 +08:00
}
2018-10-24 21:17:37 +08:00
&-avatar {
position: relative;
flex-shrink: 0;
2018-10-30 06:45:46 +08:00
margin-right: 12px;
cursor: pointer;
img {
width: 32px;
height: 32px;
2018-10-31 20:53:10 +08:00
border-radius: 50%;
2018-10-22 21:20:28 +08:00
}
}
&-content {
position: relative;
flex: 1 1 auto;
min-width: 1px;
font-size: 14px;
word-wrap: break-word;
2018-10-24 21:17:37 +08:00
&-author {
display: flex;
2018-10-30 06:45:46 +08:00
justify-content: flex-start;
margin-bottom: 4px;
font-size: 14px;
2018-10-24 21:17:37 +08:00
& > a,
2018-10-22 21:20:28 +08:00
& > span {
height: 18px;
padding-right: 8px;
2018-10-22 21:20:28 +08:00
font-size: 12px;
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;
font-size: 14px;
transition: color 0.3s;
2018-10-24 21:17:37 +08:00
> * {
2018-10-22 21:20:28 +08:00
color: @comment-author-name-color;
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;
cursor: auto;
2018-10-22 21:20:28 +08:00
}
}
&-detail p {
white-space: pre-wrap;
}
2018-10-22 21:20:28 +08:00
}
2018-10-24 21:17:37 +08:00
&-actions {
2018-10-22 21:20:28 +08:00
margin-top: 12px;
2018-12-19 17:02:09 +08:00
padding-left: 0;
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;
2018-10-24 21:17:37 +08:00
> span {
2018-10-22 21:20:28 +08:00
padding-right: 10px;
color: @comment-action-color;
font-size: 12px;
2018-10-22 21:20:28 +08:00
cursor: pointer;
transition: color 0.3s;
2018-10-22 21:20:28 +08:00
user-select: none;
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
&-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
}