Skip to content

Commit

Permalink
chore: Added custom classes to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Oct 21, 2024
1 parent 31e80e5 commit cfb0b56
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 29 deletions.
22 changes: 20 additions & 2 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,24 @@
--vp-c-brand-1: #ff7400;
--vp-c-brand-2: #ff7400;
--vp-c-brand-3: #ff7400;

--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #ff4d00 30%, #ff9a00);

--vp-home-hero-image-background-image: linear-gradient(-45deg, rgba(255, 77, 0, .2) 40%, rgba(255, 154, 0, .2) 40%);
--vp-home-hero-image-filter: blur(44px);
}

@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(56px);
}
}

.logo {
width: 120px;
@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(68px);
}
}

.hidden {
Expand All @@ -15,4 +29,8 @@
.iframe {
width: 100%;
border: none;
}

.VPHomeHero .VPImage {
max-width: 160px;
}
28 changes: 1 addition & 27 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,4 @@ features:
details: Manipulate and craft HLS playlists on the fly, supports HLS interstitials.
- title: Player
details: A unified <a href="https://github.com/video-dev/hls.js">HLS.js</a> API and React components that integrate seamlessly.
---

<style>
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #ff4d00 30%, #ff9a00);

--vp-home-hero-image-background-image: linear-gradient(-45deg, rgba(255, 77, 0, .2) 40%, rgba(255, 154, 0, .2) 40%);
--vp-home-hero-image-filter: blur(44px);
}

@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(56px);
}
}

@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(68px);
}
}

.VPHomeHero .VPImage {
max-width: 160px;
}
</style>
---

0 comments on commit cfb0b56

Please sign in to comment.