From a98452000a388b1c1e9b615a2e1ffaa73d058b98 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 23 Nov 2021 16:58:17 +0800 Subject: [PATCH] refactor: use ` @@ -53,28 +53,28 @@ a, } } -#nav { +nav { width: 100%; font-size: 12px; text-align: center; margin-top: 2rem; } -#nav a.router-link-exact-active { +nav a.router-link-exact-active { color: var(--color-text); } -#nav a.router-link-exact-active:hover { +nav a.router-link-exact-active:hover { background-color: transparent; } -#nav a { +nav a { display: inline-block; padding: 0 1rem; border-left: 1px solid var(--color-border); } -#nav a:first-of-type { +nav a:first-of-type { border: 0; } @@ -106,7 +106,7 @@ a, margin: 0 2rem 0 0; } - #nav { + nav { text-align: left; margin-left: -1rem; font-size: 1rem; diff --git a/template/code/typescript-router/src/App.vue b/template/code/typescript-router/src/App.vue index 36ae7808..8a1e9b19 100644 --- a/template/code/typescript-router/src/App.vue +++ b/template/code/typescript-router/src/App.vue @@ -9,10 +9,10 @@ import HelloWorld from '@/components/HelloWorld.vue'
- +
@@ -53,28 +53,28 @@ a, } } -#nav { +nav { width: 100%; font-size: 12px; text-align: center; margin-top: 2rem; } -#nav a.router-link-exact-active { +nav a.router-link-exact-active { color: var(--color-text); } -#nav a.router-link-exact-active:hover { +nav a.router-link-exact-active:hover { background-color: transparent; } -#nav a { +nav a { display: inline-block; padding: 0 1rem; border-left: 1px solid var(--color-border); } -#nav a:first-of-type { +nav a:first-of-type { border: 0; } @@ -106,7 +106,7 @@ a, margin: 0 2rem 0 0; } - #nav { + nav { text-align: left; margin-left: -1rem; font-size: 1rem; -- 2.39.5