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

90 lines
1.6 KiB
Plaintext
Raw Normal View History

2018-10-22 21:20:28 +08:00
@import "../../style/themes/default";
@import "../../style/mixins/index";
@comment-prefix-cls: ~"@{ant-prefix}-comment";
.@{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;
border-radius: 16px;
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-10-22 21:20:28 +08:00
transition: color 0.3s ease;
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;
}
}
}
2018-10-24 21:17:37 +08:00
&-actions {
2018-10-22 21:20:28 +08:00
margin-top: 12px;
2018-10-24 21:17:37 +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;
2018-10-24 21:17:37 +08:00
> span {
2018-10-22 21:20:28 +08:00
padding-right: 10px;
transition: color 0.3s ease;
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 {
margin-left: @comment-indent;
2018-10-25 21:32:29 +08:00
}
2018-10-22 21:20:28 +08:00
}