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; } } }