diff --git a/site/.vitepress/theme/custom.css b/site/.vitepress/theme/custom.css index 2865c253..20c87435 100644 --- a/site/.vitepress/theme/custom.css +++ b/site/.vitepress/theme/custom.css @@ -673,12 +673,19 @@ footer img { .excerpt-gradient-top { background: var(--docsearch-searchbox-background) !important; + opacity: 0.5; clip-path: polygon(0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%, 30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%, 60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%, 90% 0%, 95% 100%, 100% 0%); transform: translateY(-7px) rotateZ(180deg); } .excerpt-gradient-bottom { background: var(--docsearch-searchbox-background) !important; + opacity: 0.5; clip-path: polygon(0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%, 30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%, 60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%, 90% 0%, 95% 100%, 100% 0%); transform: translateY(7px); } + +.selected .excerpt-gradient-top, +.selected .excerpt-gradient-bottom { + opacity: 1; +}