mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 07:39:36 +08:00
dda45e4796
* feat: support narrow theme mode * chore: rename narrow to compact * chore: height part * chore: preview compact mode * chore: to make site corrected * chore: preview site * docs: 📖 document compact theme usage * docs: tweak theme doc * docs: 📖 Add description about double css bundle size * chore: preview * chore: for preview * chore: adjust pagination * chore: compact mode done! * chore: remove useless todo * chore: fix review bug * chore: fix review bug * chore: fix card margin * chore: fix review bug * chore: fix review bug * chore: improve i18n and transition * Update site/theme/static/common.less Co-Authored-By: 偏右 <afc163@gmail.com> * chore: fix button size and description padding * chore: update snapshots * chore: add compact css bundlesize limit * chore: compact dist support Co-authored-by: afc163 <afc163@gmail.com>
102 lines
2.0 KiB
Plaintext
102 lines
2.0 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;
|
|
|
|
&-inner {
|
|
display: flex;
|
|
padding: @comment-padding-base;
|
|
}
|
|
|
|
&-avatar {
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
margin-right: @margin-sm;
|
|
cursor: pointer;
|
|
|
|
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: @margin-xss;
|
|
font-size: @comment-font-size-base;
|
|
& > a,
|
|
& > span {
|
|
padding-right: @padding-xs;
|
|
font-size: @comment-font-size-sm;
|
|
line-height: 18px;
|
|
}
|
|
|
|
&-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 {
|
|
margin-bottom: @comment-content-detail-p-margin-bottom;
|
|
white-space: pre-wrap;
|
|
}
|
|
}
|
|
|
|
&-actions {
|
|
margin-top: @comment-actions-margin-top;
|
|
margin-bottom: @comment-actions-margin-bottom;
|
|
padding-left: 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;
|
|
|
|
&:hover {
|
|
color: @comment-action-hover-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&-nested {
|
|
margin-left: @comment-nest-indent;
|
|
}
|
|
}
|
|
|
|
@import './rtl';
|