diff --git a/src/App.vue b/src/App.vue index a2e3e93e..2a6708a9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -186,13 +186,12 @@ function fullScreenListener(e: KeyboardEvent) { .main { height: 100%; width: 100%; - font-size: 1.4rem; overflow: hidden; &-header { padding: 1.6rem 0 .8rem; text-align: center; - height: 8.4rem; + height: unset; line-height: unset; &.in-tool { @@ -200,8 +199,8 @@ function fullScreenListener(e: KeyboardEvent) { height: 5.8rem; .header { - font-size: 2rem; - line-height: 2.8rem; + font-size: var(--el-font-size-large); + line-height: 1.5; } .desc { @@ -210,9 +209,9 @@ function fullScreenListener(e: KeyboardEvent) { } .header { - line-height: 3.2rem; - font-size: 2.4rem; - font-weight: 600; + line-height: 1.7; + font-size: var(--el-font-size-extra-large); + font-weight: 700; a { color: var(--el-text-color-primary) !important; @@ -220,10 +219,8 @@ function fullScreenListener(e: KeyboardEvent) { } .desc { - height: 2.2rem; - font-size: 1.4rem; - line-height: 2.2rem; - margin-top: .8rem; + font-size: var(--el-font-size-base); + line-height: 1.3; color: var(--el-text-color-secondary); display: flex; justify-content: center; @@ -239,7 +236,7 @@ function fullScreenListener(e: KeyboardEvent) { &-content { width: 100%; margin: 0 auto; - padding: 0 1.6rem 1.6rem; + padding: 0 1.6rem 0; overflow-y: auto; flex: 1; @@ -249,8 +246,8 @@ function fullScreenListener(e: KeyboardEvent) { } &-footer { - font-size: 1.4rem; - line-height: 2.2rem; + font-size: var(--el-font-size-base); + line-height: 1.5; padding: 0.8rem 0; height: 6rem; diff --git a/src/components/container.vue b/src/components/container.vue index 4300ad6c..f9077533 100644 --- a/src/components/container.vue +++ b/src/components/container.vue @@ -62,9 +62,8 @@ function fullScreen() { display: inline-flex; align-items: center; - font-size: 1.6rem; - font-weight: 700; - line-height: 2.4rem; + font-size: var(--el-font-size-base); + line-height: 1.5; color: var(--el-color-white); background-color: var(--el-color-primary); diff --git a/src/pages/Home.vue b/src/pages/Home.vue index 86688207..095be9dc 100644 --- a/src/pages/Home.vue +++ b/src/pages/Home.vue @@ -71,31 +71,25 @@ onMounted(() => { :target="(settings.openInNewTab || isExternalLink(tool.link)) ? '_blank' : ''" :to="isExternalLink(tool.link) ? (`/redirect?url=${tool.link}`) : (tool.link || '')" > - -
{{ tool.name }} + + - {{ tool.name }} - - - - - -
-
+ + + + @@ -106,9 +100,10 @@ onMounted(() => { diff --git a/uno.config.ts b/uno.config.ts index a3618370..a4faeae8 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -31,29 +31,6 @@ export default defineConfig({ return axios.get(url).then(res => res.data) }, fonts: { - main: [ - { - name: 'Lora', - weights: ['400', '700'], - italic: true, - }, - { - name: 'Noto Serif SC', - weights: ['300', '400', '700'], - }, - { - name: 'PingFang SC', - provider: 'none', - }, - { - name: 'Microsoft YaHei', - provider: 'none', - }, - { - name: 'sans-serif', - provider: 'none', - }, - ], mono: 'JetBrains Mono:300,400,700', inter: 'Inter:500,700', },