Skip to content

Commit 0e89b3d

Browse files
committed
docs: Add CSS for example classes in syntax demos
1 parent 4bdc231 commit 0e89b3d

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

docs/.vitepress/components/OutputTabs.vue

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,29 @@ const slots = useSlots()
194194
padding: 0.1em 0.3em;
195195
border-radius: 3px;
196196
}
197+
198+
.tab-content.result :deep(.note) {
199+
background: var(--vp-c-tip-soft);
200+
border-left: 3px solid var(--vp-c-tip-1);
201+
padding: 0.5rem 1rem;
202+
border-radius: 0 4px 4px 0;
203+
}
204+
205+
.tab-content.result :deep(.external)::after {
206+
content: '';
207+
font-size: 0.8em;
208+
}
209+
210+
.tab-content.result :deep(.button) {
211+
display: inline-block;
212+
padding: 0.4em 0.8em;
213+
background: var(--vp-c-brand-1);
214+
color: white !important;
215+
border-radius: 4px;
216+
text-decoration: none;
217+
}
218+
219+
.tab-content.result :deep(.button):hover {
220+
background: var(--vp-c-brand-2);
221+
}
197222
</style>

0 commit comments

Comments
 (0)