Skip to content

Commit 677bf66

Browse files
committed
improve playground link styling
1 parent b378e33 commit 677bf66

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.vitepress/theme/styles/inline-demo.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
.vt-doc a[href^="https://sfc.vuejs.org"]:before {
2+
content: "▶";
3+
width: 20px;
4+
height: 20px;
5+
display: inline-block;
6+
border-radius: 10px;
7+
vertical-align: middle;
8+
position: relative;
9+
top: -2px;
10+
color: var(--vt-c-green);
11+
border: 2px solid var(--vt-c-green);
12+
margin-right: 8px;
13+
margin-left: 4px;
14+
line-height: 16px;
15+
padding-left: 4px;
16+
font-size: 11px;
17+
}
18+
119
.demo {
220
transition: border-color 0.5s;
321
padding: 22px 24px;

.vitepress/theme/styles/pages.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* always show anchors on /api/ and /style-guide/ pages */
12
.vt-doc.api h2 .header-anchor,
23
.vt-doc.style-guide h2 .header-anchor {
34
opacity: 1;

0 commit comments

Comments
 (0)