Merge pull request #17041 from SamKirkland/comment-component-font-size

style: less variables for comment component font-size
This commit is contained in:
偏右 2019-06-11 13:32:18 +08:00 committed by GitHub
commit 2818ddec41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -27,25 +27,25 @@
position: relative;
flex: 1 1 auto;
min-width: 1px;
font-size: 14px;
font-size: @comment-font-size-base;
word-wrap: break-word;
&-author {
display: flex;
justify-content: flex-start;
margin-bottom: 4px;
font-size: 14px;
font-size: @comment-font-size-base;
& > a,
& > span {
height: 18px;
padding-right: 8px;
font-size: 12px;
font-size: @comment-font-size-sm;
line-height: 18px;
}
&-name {
color: @comment-author-name-color;
font-size: 14px;
font-size: @comment-font-size-base;
transition: color 0.3s;
> * {
color: @comment-author-name-color;
@ -76,7 +76,7 @@
> span {
padding-right: 10px;
color: @comment-action-color;
font-size: 12px;
font-size: @comment-font-size-sm;
cursor: pointer;
transition: color 0.3s;
user-select: none;

View File

@ -452,6 +452,8 @@
// ---
@comment-padding-base: 16px 0;
@comment-nest-indent: 44px;
@comment-font-size-base: @font-size-base;
@comment-font-size-sm: @font-size-sm;
@comment-author-name-color: @text-color-secondary;
@comment-author-time-color: #ccc;
@comment-action-color: @text-color-secondary;