From ef78a6a3343e7d498ea4daae6bb6b609d6503e76 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 31 Aug 2025 23:46:02 +0530 Subject: [PATCH] feat(theme): support title-less custom containers --- docs/en/guide/what-is-vitepress.md | 6 ++---- .../theme-default/styles/components/custom-block.css | 9 +++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/en/guide/what-is-vitepress.md b/docs/en/guide/what-is-vitepress.md index 3407c76d..3c18e128 100644 --- a/docs/en/guide/what-is-vitepress.md +++ b/docs/en/guide/what-is-vitepress.md @@ -2,11 +2,9 @@ VitePress is a [Static Site Generator](https://en.wikipedia.org/wiki/Static_site_generator) (SSG) designed for building fast, content-centric websites. In a nutshell, VitePress takes your source content written in [Markdown](https://en.wikipedia.org/wiki/Markdown), applies a theme to it, and generates static HTML pages that can be easily deployed anywhere. -
- +::: tip {.no-title} Just want to try it out? Skip to the [Quickstart](./getting-started). - -
+::: ## Use Cases diff --git a/src/client/theme-default/styles/components/custom-block.css b/src/client/theme-default/styles/components/custom-block.css index a960381c..c0f266b1 100644 --- a/src/client/theme-default/styles/components/custom-block.css +++ b/src/client/theme-default/styles/components/custom-block.css @@ -206,3 +206,12 @@ font-size: var(--vp-custom-block-font-size); color: inherit; } + +.custom-block.no-title { + padding-top: 0px; + padding-bottom: 0px; +} + +.custom-block.no-title .custom-block-title { + display: none; +}