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

101 lines
1.9 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
2018-10-22 21:20:28 +08:00
&-inner {
padding: @comment-padding-base;
}
2018-10-24 21:17:37 +08:00
&-header {
2018-10-22 21:20:28 +08:00
margin-bottom: @comment-header-margin;
padding-bottom: @comment-header-padding;
2018-10-24 21:17:37 +08:00
&-avatar {
2018-10-22 21:20:28 +08:00
position: relative;
float: left;
margin-right: 12px;
cursor: pointer;
2018-10-24 21:17:37 +08:00
img {
2018-10-22 21:20:28 +08:00
width: 32px;
height: 32px;
border-radius: 16px;
}
}
2018-10-24 21:17:37 +08:00
&-author {
2018-10-22 21:20:28 +08:00
padding-left: 12px;
flex: auto;
font-size: 14px;
2018-10-24 21:17:37 +08:00
& > a,
2018-10-22 21:20:28 +08:00
& > span {
display: inline-block;
height: 18px;
font-size: 12px;
line-height: 18px;
padding-right: 8px;
cursor: pointer;
}
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
2018-10-22 22:28:58 +08:00
&-tooltip {
cursor: pointer;
&:hover {
text-decoration: underline;
}
2018-10-22 21:20:28 +08:00
}
}
}
}
2018-10-24 21:17:37 +08:00
&-content {
2018-10-22 21:20:28 +08:00
position: relative;
2018-10-24 21:17:37 +08:00
padding-left: @comment-indent;
2018-10-22 21:20:28 +08:00
font-size: 14px;
}
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
& > li {
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
2018-10-22 22:28:58 +08:00
&-nested {
2018-10-24 21:17:37 +08:00
margin-left: @comment-indent;
2018-10-22 22:28:58 +08:00
}
2018-10-22 21:20:28 +08:00
}