From 5b9fc602b951cf8e234683d8ee9d9b981a81cc39 Mon Sep 17 00:00:00 2001 From: Frost-ZX <30585462+Frost-ZX@users.noreply.github.com> Date: Fri, 18 Mar 2022 11:12:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/global.less | 8 ++++++-- src/views/ToolsDetail.vue | 18 ++++++++++-------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/assets/css/global.less b/src/assets/css/global.less index 1a0878f..95fa709 100644 --- a/src/assets/css/global.less +++ b/src/assets/css/global.less @@ -7,8 +7,8 @@ height: 0.5rem; } -::-webkit-scrollbar-track { - background-color: transparent; +::-webkit-scrollbar-corner { + display: none; } ::-webkit-scrollbar-thumb { @@ -20,6 +20,10 @@ } } +::-webkit-scrollbar-track { + background-color: transparent; +} + // 选中文本 ::selection { diff --git a/src/views/ToolsDetail.vue b/src/views/ToolsDetail.vue index 43219e2..4d21b7a 100644 --- a/src/views/ToolsDetail.vue +++ b/src/views/ToolsDetail.vue @@ -70,23 +70,25 @@ export default { > .title { position: relative; margin: 1.5rem 0; - font-size: 1rem; - color: @textPrimary; + color: @colorPrimary; + font-size: 1.125rem; } > .title::before { content: ""; position: absolute; - top: 0; - left: -0.5rem; - width: 0.2rem; - height: 100%; + top: 50%; + left: -0.5em; + width: 0.25em; + height: calc(100% - 0.25em); + transform: translateY(-50%); background-color: @colorPrimary; } > .content { - line-height: 1.6em; - font-size: 0.9rem; + color: @textPrimary; + font-size: 1rem; + line-height: 1.5em; } } }