From 2b4519585f9b9b2611533462d4b7c12049866f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E5=87=9B?= Date: Thu, 10 Feb 2022 14:24:22 +0800 Subject: [PATCH] style: perf --- CHANGELOG.md | 2 -- dist/index.js | 1 - src/issue/issue.ts | 1 - web/web.less | 46 +++++++++++++++++++++++++++------------------- 4 files changed, 27 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df140ae..a43de2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,8 +24,6 @@ - Remove title body default - `month-statistics` is removed, can use [issues-month-statistics](https://github.com/actions-cool/issues-month-statistics) - - ## v2.5.0 `2021.10.19` diff --git a/dist/index.js b/dist/index.js index 029188f..1a23761 100644 --- a/dist/index.js +++ b/dist/index.js @@ -15673,7 +15673,6 @@ class IssueCoreEngine { repo, issue_number: issueNumber, }); - console.log(issue); return issue.data; }); } diff --git a/src/issue/issue.ts b/src/issue/issue.ts index bfc572d..e295a2b 100644 --- a/src/issue/issue.ts +++ b/src/issue/issue.ts @@ -136,7 +136,6 @@ export class IssueCoreEngine implements IIssueCoreEngine { repo, issue_number: issueNumber, }); - console.log(issue) return issue.data as unknown as TIssueInfo; } diff --git a/web/web.less b/web/web.less index 85fac29..d4cf67c 100644 --- a/web/web.less +++ b/web/web.less @@ -8,10 +8,10 @@ html { .__dumi-default-code-block { background-color: rgba(0, 0, 0, 0.04) !important; border-radius: 4px; - box-shadow: inset 0 0 10px 2px rgba(0,0,0,.2); + box-shadow: inset 0 0 10px 2px rgba(0, 0, 0, .2); [data-prefers-color=dark] & { - box-shadow: inset 0 0 10px 2px rgba(0,0,0,.8); + box-shadow: inset 0 0 10px 2px rgba(0, 0, 0, .8); } } @@ -31,7 +31,7 @@ html { button { margin-right: 0 !important; - background: linear-gradient(45deg,#72a2de 30%,#5db8c7 90%) !important; + background: linear-gradient(45deg, #72a2de 30%, #5db8c7 90%) !important; border: none !important; border-radius: 8px !important; text-align: center; @@ -44,11 +44,9 @@ html { z-index: -1; display: inline-block; height: 10px; - background: radial-gradient( - ellipse at center, - rgba(0, 0, 0, 0.35) 0%, - rgba(0, 0, 0, 0) 80% - ); + background: radial-gradient(ellipse at center, + rgba(0, 0, 0, 0.35) 0%, + rgba(0, 0, 0, 0) 80%); opacity: 0; transition-duration: 0.3s; transition-property: transform, opacity; @@ -57,6 +55,7 @@ html { &:hover { transform: translateY(-5px); + &::before { transform: translateY(5px); opacity: 1; @@ -74,13 +73,15 @@ html { } .__dumi-default-locale-select { - background: linear-gradient(45deg,#72a2de 30%,#5db8c7 90%) !important; + background: linear-gradient(45deg, #72a2de 30%, #5db8c7 90%) !important; border-radius: 2px !important; border: none !important; + a { color: #fff !important; letter-spacing: 0.6px; } + &::before { position: absolute; top: 0; @@ -90,26 +91,33 @@ html { display: inline-block; width: 0; height: 0; - background: linear-gradient( - 225deg, - white 45%, - #aaa 50%, - #ccc 56%, - white 80% - ); + background: linear-gradient(225deg, + white 45%, + #aaa 50%, + #ccc 56%, + white 80%); box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.4); opacity: 1; transition-duration: 0.3s; transition-property: width, height; content: ''; + + [data-prefers-color=dark] & { + background: linear-gradient(225deg, + #141414 45%, + #aaa 50%, + #ccc 56%, + white 80%); + } } + &:hover::before { width: 14px; height: 14px; } } -.__dumi-default-menu + .__dumi-default-layout-content { +.__dumi-default-menu+.__dumi-default-layout-content { tbody tr:hover { background: #fafafa; @@ -120,7 +128,7 @@ html { } .__dumi-default-alert { - box-shadow: 0 6px 16px 2px rgba(0,0,0,.06) !important; + box-shadow: 0 6px 16px 2px rgba(0, 0, 0, .06) !important; border-radius: 2px !important; border: 1px solid #0000000f; } @@ -144,5 +152,5 @@ code { color: #ff7875 !important; background: rgba(0, 0, 0, 0.06) !important; box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1); - border: 1px solid rgba(0,0,0,0.1); + border: 1px solid rgba(0, 0, 0, 0.1); }