From b1e56c181e10126f0c0a63e857c77200394834b5 Mon Sep 17 00:00:00 2001 From: XPoet Date: Mon, 25 Jan 2021 11:26:47 +0800 Subject: [PATCH] style: optimize Gitalk comment plugin style --- source/css/layout/_partial/comment/gitalk.styl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/source/css/layout/_partial/comment/gitalk.styl b/source/css/layout/_partial/comment/gitalk.styl index 4a329f5..48f0a12 100644 --- a/source/css/layout/_partial/comment/gitalk.styl +++ b/source/css/layout/_partial/comment/gitalk.styl @@ -4,11 +4,9 @@ $gt-color-sub := #a1a1a1 $gt-color-loader := #999999 $gt-color-error := #ff3860 $gt-color-hr := #E9E9E9 -$gt-color-input-border := rgba(0,0,0,0.1) $gt-color-comment-txt := #333333 $gt-color-link-active := #333333 $gt-color-btn := #ffffff -$gt-color-popbg := #ffffff $gt-size-base := 16px // default font-size $gt-size-border-radius := 5px $gt-breakpoint-mobile := 479px @@ -219,6 +217,7 @@ $gt-size-avatar-mobi := em(32px) .gt-counts margin: 0 em(10px) 0 0 + color: var(--default-text-color) .gt-user float: right @@ -232,10 +231,13 @@ $gt-size-avatar-mobi := em(32px) &-inner display: inline-block cursor: pointer + .gt-user-name + color: var(--default-text-color) + .gt-ico margin: 0 0 0 em(5px) svg - fill: inherit + fill: var(--default-text-color) .is--poping .gt-ico svg @@ -247,7 +249,7 @@ $gt-size-avatar-mobi := em(32px) .gt-copyright margin: 0 em(15px) em(8px) - border-top: 1px solid $gt-color-hr + border-top: 1px solid var(--border-color) padding-top: em(8px) /* popup */ @@ -255,9 +257,9 @@ $gt-size-avatar-mobi := em(32px) position: absolute right: 0 top: em(38px) - background: $gt-color-popbg + background: var(--background-color) display: inline-block - border: 1px solid $gt-color-hr + border: 1px solid var(--border-color) padding: em(10px) 0 font-size: em(14px) letter-spacing: .5px