feat: 主页渐变色 帅
This commit is contained in:
@@ -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: '';
|
||||
}
|
||||
Reference in New Issue
Block a user