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 {
2018-10-22 21:20:28 +08:00
padding: @comment-padding-base;
display: flex;
2018-10-22 21:20:28 +08:00
}
2018-10-24 21:17:37 +08:00
&-avatar {
flex-shrink: 0;
position: relative;
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;
font-size: 14px;
flex: 1 1 auto;
min-width: 1px;
word-wrap: break-word;
2018-10-24 21:17:37 +08:00
&-author {
margin-bottom: 4px;
2018-10-22 21:20:28 +08:00
font-size: 14px;
display: flex;
2018-10-30 06:45:46 +08:00
justify-content: flex-start;
2018-10-24 21:17:37 +08:00
& > a,
2018-10-22 21:20:28 +08:00
& > span {
height: 18px;
font-size: 12px;
line-height: 18px;
padding-right: 8px;
}
2018-10-24 21:17:37 +08:00
&-name {
2018-12-07 16:17:45 +08:00
transition: color 0.3s;
2018-10-22 21:20:28 +08:00
font-size: 14px;
color: @comment-author-name-color;
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 22:28:58 +08:00
cursor: auto;
2018-10-22 21:20:28 +08:00
color: @comment-author-time-color;
white-space: nowrap;
}
}
&-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;
2018-12-07 16:17:45 +08:00
transition: color 0.3s;
2018-10-22 21:20:28 +08:00
font-size: 12px;
color: @comment-action-color;
cursor: pointer;
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
}