Skip to content

Commit e69c805

Browse files
committed
fix navigation active transparent bug
1 parent 77a43c3 commit e69c805

3 files changed

Lines changed: 3 additions & 51 deletions

File tree

docs/.vitepress/theme/components/CustomHome.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
:animate="{ opacity: 1, scale: 1 }"
116116
:transition="{ ...heroTransition, delay: 0.35 }"
117117
>
118-
<div class="VDndHome__logo-glow" />
119118
<img
120119
:src="secondLogoUrl"
121120
alt="Vue DnD Kit"

docs/.vitepress/theme/styles/home.css

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,6 @@
3838
@apply relative shrink-0 flex items-center justify-center md:justify-end;
3939
}
4040

41-
.VDndHome__logo-glow {
42-
position: absolute;
43-
inset: -20%;
44-
border-radius: 50%;
45-
background: linear-gradient(
46-
90deg,
47-
var(--glow-card-1) 0%,
48-
var(--glow-card-2) 25%,
49-
var(--glow-card-3) 50%,
50-
var(--glow-card-4) 75%,
51-
var(--glow-card-1) 100%
52-
);
53-
background-size: 200% 100%;
54-
animation: nav-shimmer 6s linear infinite;
55-
filter: blur(50px);
56-
opacity: 0.2;
57-
z-index: 0;
58-
pointer-events: none;
59-
}
60-
6141
.VDndHome__logo-img {
6242
position: relative;
6343
z-index: 1;

docs/.vitepress/theme/styles/vitepress.css

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -113,36 +113,9 @@
113113
@apply text-(--vp-c-brand-1);
114114
}
115115

116-
.VPLink.active {
117-
background: linear-gradient(
118-
90deg,
119-
var(--glow-card-1) 0%,
120-
var(--glow-card-2) 25%,
121-
var(--glow-card-3) 50%,
122-
var(--glow-card-4) 75%,
123-
var(--glow-card-1) 100%
124-
);
125-
background-size: 200% 100%;
126-
-webkit-background-clip: text;
127-
background-clip: text;
128-
-webkit-text-fill-color: transparent;
129-
animation: nav-shimmer 4s linear infinite;
130-
}
131-
132-
.VPSidebarItem.is-active {
133-
background: linear-gradient(
134-
90deg,
135-
var(--glow-card-1) 0%,
136-
var(--glow-card-2) 25%,
137-
var(--glow-card-3) 50%,
138-
var(--glow-card-4) 75%,
139-
var(--glow-card-1) 100%
140-
);
141-
background-size: 200% 100%;
142-
-webkit-background-clip: text;
143-
background-clip: text;
144-
-webkit-text-fill-color: transparent;
145-
animation: nav-shimmer 4s linear infinite;
116+
.VPLink.active,
117+
.VPSidebarItem.is-active .VPLink {
118+
@apply rainbow-text;
146119
}
147120

148121
#local-search {

0 commit comments

Comments
 (0)