feat: 主页渐变色 帅

This commit is contained in:
camera-2018
2023-04-17 19:22:15 +08:00
parent 0b12f15c8b
commit 89759d2847
3 changed files with 187 additions and 7 deletions

View File

@@ -100,4 +100,49 @@
mjx-container {
display: inline-block;
margin: auto;
}
.VPHero .image-bg {
z-index: -1;
opacity: 0.6;
transition: opacity 1s ease;
}
.VPHero .image-container:hover .image-bg {
opacity: 1;
}
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(
120deg,
var(--vp-c-brand) 30%,
var(--vp-c-brand-next)
);
--vp-home-hero-image-background-image: linear-gradient(
-45deg,
var(--vp-c-brand) 30%,
var(--vp-c-brand-next)
);
--vp-home-hero-image-filter: blur(80px);
}
@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(120px);
}
}
@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(120px);
}
}
/* Safari has a very bad performance on gradient and filter */
.browser-safari, .browser-firefox {
--vp-home-hero-image-background-image: transparent;
--vp-home-hero-image-filter: '';
}