Skip to content

Commit d39403c

Browse files
committed
Update @cssnr/vitepress-plugin-contributors and image CSS
1 parent 8155050 commit d39403c

File tree

4 files changed

+116
-104
lines changed

4 files changed

+116
-104
lines changed

.vitepress/theme/components/BrowserIcons.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ if (props.margin) iconStyle.margin = props.margin
5050
.browser-icons {
5151
min-height: 48px;
5252
}
53+
.browser-icons img {
54+
margin-right: 6px;
55+
}
5356
.browser-icons a {
5457
display: inline-block;
5558
vertical-align: middle;

.vitepress/theme/custom.css

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,21 @@ summary {
1414
cursor: pointer;
1515
}
1616

17-
.vp-doc img {
18-
display: inline-block;
19-
margin-right: 8px;
20-
}
21-
2217
.search-keywords {
2318
display: none;
2419
}
20+
21+
/* NOTE: This is a "fix" for the search modal content shift */
22+
@supports (scrollbar-gutter: stable) {
23+
@media (min-width: 769px) {
24+
html {
25+
scrollbar-gutter: stable;
26+
}
27+
}
28+
}
29+
30+
.vp-doc p > img,
31+
.vp-doc p > a > img {
32+
display: inline-block;
33+
margin-right: 8px;
34+
}

0 commit comments

Comments
 (0)