Skip to content

Commit 2b219a3

Browse files
committed
📘 doc: round
1 parent 7c46f5b commit 2b219a3

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

docs/tailwind.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ pre.vp-code > code,
109109

110110
--twoslash-border-color: theme(--color-slate-200);
111111
--vp-c-bg-elv: theme(--color-slate-100);
112+
113+
--vp-code-copy-code-bg: theme(--color-slate-50);
114+
--vp-code-copy-code-hover-bg: #fff;
115+
--vp-code-copy-code-border-color: theme(--color-slate-200);
112116
}
113117

114118
.dark {
@@ -136,6 +140,10 @@ pre.vp-code > code,
136140
--twoslash-border-color: var(--color-slate-800);
137141
--vp-c-bg-elv: theme(--color-slate-800);
138142
--vp-c-neutral-inverse: theme(--color-slate-800);
143+
144+
--vp-code-copy-code-bg: theme(--color-slate-800);
145+
--vp-code-copy-code-hover-bg: theme(--color-slate-700);
146+
--vp-code-copy-code-border-color: theme(--color-slate-600);
139147
}
140148

141149
html,
@@ -850,3 +858,32 @@ button.copy::after {
850858
background-color: inherit;
851859
}
852860
}
861+
862+
@utility clicky {
863+
@apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98] !transition-all;
864+
}
865+
866+
#local-search > .DocSearch-Button {
867+
@apply rounded-xl backdrop-blur-sm clicky;
868+
background-color: color-mix(in srgb, var(--vp-c-bg-soft) 80%, transparent);
869+
border: 1px solid color-mix(in srgb, var(--vp-c-bg-soft) 80%, black 1%);
870+
}
871+
872+
button[title="Copy Code"].copy,
873+
button[title="Copy Code"].copy::before {
874+
@apply !rounded-xl clicky;
875+
}
876+
877+
button[title="Copy Code"].copy::before {
878+
@apply -translate-x-1;
879+
border: 1px solid var(--vp-code-copy-code-border-color) !important;
880+
}
881+
882+
div[class*="language-"] {
883+
@apply !rounded-2xl;
884+
}
885+
886+
.VPSidebarItem.is-link:not(.collapsible),
887+
.VPSidebarItem.is-link.collapsible > .item {
888+
@apply active:scale-[0.98] !transition-all;
889+
}

0 commit comments

Comments
 (0)