bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

commit d1648fde06bd3a62dd10ca7d0f2ffba489e0ba0f
parent 39beb0c36928c448cb18621e6ade86986b65cbae
Author: Amit Dutta <mail@amit.is-a.dev>
Date:   Mon, 24 Aug 2026 10:41:57 +0530

Merge pull request #64 from notamitgamer/edit-20260824-104112

updated the label
Diffstat:
Mdocs/.vitepress/theme/components/Labels.vue | 77+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 65 insertions(+), 12 deletions(-)

diff --git a/docs/.vitepress/theme/components/Labels.vue b/docs/.vitepress/theme/components/Labels.vue @@ -23,7 +23,9 @@ function humanize(tag) { class="bsc-tag" :href="`/tags#${tag}`" :title="`Browse pages tagged ${humanize(tag)}`" - >{{ humanize(tag) }}</a> + > + {{ humanize(tag) }} + </a> </div> </template> @@ -37,41 +39,91 @@ function humanize(tag) { .bsc-tag { position: relative; + z-index: 1; + display: inline-flex; align-items: center; - height: 26px; + + height: 28px; padding: 0 12px 0 20px; + font-size: 12.5px; font-weight: 500; - line-height: 1; text-decoration: none; white-space: nowrap; + color: var(--vp-c-brand-1); background: var(--vp-c-bg-soft); + border: 1px solid var(--vp-c-divider); - border-left: none; - clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); - transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease; + border-radius: 0 5px 5px 0; + + margin-left: 9px; + + transition: + color 0.15s ease, + background 0.15s ease, + border-color 0.15s ease, + transform 0.15s ease; } +/* Pointed left side */ +.bsc-tag::after { + content: ''; + + position: absolute; + z-index: -1; + + left: -9px; + top: 0; + + width: 18px; + height: 26px; + + background: var(--vp-c-bg-soft); + + border-left: 1px solid var(--vp-c-divider); + border-bottom: 1px solid var(--vp-c-divider); + + transform: skewX(-25deg); + transform-origin: right center; +} + +/* Tag hole */ .bsc-tag::before { content: ''; + position: absolute; - left: 6px; + z-index: 2; + + left: 7px; top: 50%; - transform: translateY(-50%); + width: 4px; height: 4px; + + transform: translateY(-50%); + border-radius: 50%; - background: var(--vp-c-text-3); + + background: var(--vp-c-brand-1); } +/* Hover */ .bsc-tag:hover { - color: #ffffff; + color: #fff; + background: var(--vp-c-brand-1); + border-color: var(--vp-c-brand-1); + + transform: translateY(-1px); +} + +.bsc-tag:hover::after { background: var(--vp-c-brand-1); + border-color: var(--vp-c-brand-1); } .bsc-tag:hover::before { - background: #ffffff; + background: #fff; } -</style> +</style>+ \ No newline at end of file
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror