From 594555087fc26d7f152f9cdb57d3ae47b0445605 Mon Sep 17 00:00:00 2001 From: Sam Kirkland Date: Mon, 10 Jun 2019 23:57:27 -0500 Subject: [PATCH 1/2] Update index.less --- components/comment/style/index.less | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/comment/style/index.less b/components/comment/style/index.less index 78548a27ab..b83a734477 100644 --- a/components/comment/style/index.less +++ b/components/comment/style/index.less @@ -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; From 7b3f0554bcb363a9823326a822c8c9f3183b88e5 Mon Sep 17 00:00:00 2001 From: Sam Kirkland Date: Mon, 10 Jun 2019 23:58:42 -0500 Subject: [PATCH 2/2] Update default.less --- components/style/themes/default.less | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 39af315aad..22663a0f7a 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -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;