Skip to content

Commit

Permalink
Change appearance of custom container tip
Browse files Browse the repository at this point in the history
  • Loading branch information
William-Shi233 committed Aug 26, 2023
1 parent 6cbaf77 commit bd02b33
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
/* 容器段落间距增大 */
padding-top: 6px;
padding-bottom: 6px;
margin-top: 0px;
/* 容器段落向右侧缩进,确保标志图片在所有文字左侧 */
/* 图片向右缩进 12px,图片宽度 24px,再缩进 12px,总共 48px */
padding-left: 48px;
Expand Down Expand Up @@ -145,15 +146,6 @@
padding-left: 12px;
}

.custom-block.info {
/* Info 外貌设为蓝色 */
background-color: rgb(239, 246, 251);
border-bottom-color: rgb(11, 135, 218);
border-left-color: rgb(11, 135, 218);
border-right-color: rgb(11, 135, 218);
border-top-color: rgb(11, 135, 218);
}

.custom-block.danger {
/* Danger 外貌设为红色 */
background-color: rgb(251, 239, 243);
Expand All @@ -168,4 +160,22 @@
padding-left: 48px;
padding-top: 14px;
font-size: 16px;
}

.custom-block.info {
/* Info 外貌设为蓝色 */
background-color: rgb(239, 246, 251);
border-bottom-color: rgb(11, 135, 218);
border-left-color: rgb(11, 135, 218);
border-right-color: rgb(11, 135, 218);
border-top-color: rgb(11, 135, 218);
}

.custom-block.tip {
/* Tip 外貌设为绿色 */
background-color: rgb(239, 246, 251);
border-bottom-color: rgb(5, 126, 61);
border-left-color: rgb(5, 126, 61);
border-right-color: rgb(5, 126, 61);
border-top-color: rgb(5, 126, 61);
}
3 changes: 3 additions & 0 deletions docs/Volume0/HomePage_Original.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

欢迎阅读本教程,本教程旨在介绍基于 Bukkit API 的 Minecraft 服务端插件开发方法。

::: tip <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1028 1024' transform='scale(0.6)' fill='%23fff'%3E%3Cpath d='M1018.319924 112.117535q4.093748 9.210934 6.652341 21.492179t2.558593 25.585928-5.117186 26.609365-16.374994 25.585928q-12.281245 12.281245-22.003898 21.492179t-16.886712 16.374994q-8.187497 8.187497-15.351557 14.32812l-191.382739-191.382739q12.281245-11.257808 29.167958-27.121083t28.144521-25.074209q14.32812-11.257808 29.679676-15.863275t30.191395-4.093748 28.656239 4.605467 24.050772 9.210934q21.492179 11.257808 47.589826 39.402329t40.425766 58.847634zM221.062416 611.554845q6.140623-6.140623 28.656239-29.167958t56.289041-56.80076l74.710909-74.710909 82.898406-82.898406 220.038979-220.038979 191.382739 192.406177-220.038979 220.038979-81.874969 82.898406q-40.937484 39.914047-73.687472 73.175753t-54.242167 54.753885-25.585928 24.562491q-10.234371 9.210934-23.539054 19.445305t-27.632802 16.374994q-14.32812 7.16406-41.960921 17.398431t-57.824197 19.957024-57.312478 16.886712-40.425766 9.210934q-27.632802 3.070311-36.843736-8.187497t-5.117186-37.867173q2.046874-14.32812 9.722653-41.449203t16.374994-56.289041 16.886712-53.730448 13.304682-33.773425q6.140623-14.32812 13.816401-26.097646t22.003898-26.097646z'/%3E%3C/svg%3E" style="background-color:#057E3D; clip-path: circle();" width="24px" height="24px"> **编者注**
:::

---

## 编写本教程的目的
Expand Down

0 comments on commit bd02b33

Please sign in to comment.