From 8d10880b359119bd5b0db48b3a47a1e175e54f98 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 31 Oct 2024 14:39:08 +0800 Subject: [PATCH] :sparkles: Feat: menu link support empty url Close #531 --- assets/css/_core/_header.scss | 4 ++ layouts/partials/header.html | 95 ++++++++++++++++---------------- layouts/partials/init/index.html | 2 +- 3 files changed, 51 insertions(+), 50 deletions(-) diff --git a/assets/css/_core/_header.scss b/assets/css/_core/_header.scss index a71c2b5f..b684e3ea 100644 --- a/assets/css/_core/_header.scss +++ b/assets/css/_core/_header.scss @@ -98,6 +98,10 @@ header { } } + .menu-link[href="javascript:void(0);"] { + color: inherit; + } + .menu-link i { @include transform(perspective(1rem)); @include transition(transform 0.4s ease); diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1170f7d5..7abafef8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -38,17 +38,19 @@