ant-design-blazor/components/comment/style/index.less
2020-03-08 15:12:21 +08:00

124 lines
2.3 KiB
Plaintext

@import '../../style/themes/index';
@import '../../style/mixins/index';
@comment-prefix-cls: ~'@{ant-prefix}-comment';
.@{comment-prefix-cls} {
position: relative;
background-color: @comment-bg;
&-rtl {
direction: rtl;
}
&-inner {
display: flex;
padding: @comment-padding-base;
}
&-avatar {
position: relative;
flex-shrink: 0;
margin-right: 12px;
cursor: pointer;
.@{comment-prefix-cls}-rtl & {
margin-right: 0;
margin-left: 12px;
}
img {
width: 32px;
height: 32px;
border-radius: 50%;
}
}
&-content {
position: relative;
flex: 1 1 auto;
min-width: 1px;
font-size: @comment-font-size-base;
word-wrap: break-word;
&-author {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
margin-bottom: 4px;
font-size: @comment-font-size-base;
& > a,
& > span {
padding-right: 8px;
font-size: @comment-font-size-sm;
line-height: 18px;
.@{comment-prefix-cls}-rtl & {
padding-right: 0;
padding-left: 8px;
}
}
&-name {
color: @comment-author-name-color;
font-size: @comment-font-size-base;
transition: color 0.3s;
> * {
color: @comment-author-name-color;
&:hover {
color: @comment-author-name-color;
}
}
}
&-time {
color: @comment-author-time-color;
white-space: nowrap;
cursor: auto;
}
}
&-detail p {
white-space: pre-wrap;
}
}
&-actions {
margin-top: 12px;
padding-left: 0;
.@{comment-prefix-cls}-rtl & {
padding-right: 0;
}
> li {
display: inline-block;
color: @comment-action-color;
> span {
padding-right: 10px;
color: @comment-action-color;
font-size: @comment-font-size-sm;
cursor: pointer;
transition: color 0.3s;
user-select: none;
.@{comment-prefix-cls}-rtl & {
padding-right: 0;
padding-left: 10px;
}
&:hover {
color: @comment-action-hover-color;
}
}
}
}
&-nested {
margin-left: @comment-nest-indent;
.@{comment-prefix-cls}-rtl & {
margin-right: @comment-nest-indent;
margin-left: 0;
}
}
}