Skip to content

Commit 3f9b1fd

Browse files
committed
add css class: docs-edit-tip
1 parent bf5d311 commit 3f9b1fd

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

assets/scss/common/_dark.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,3 +570,7 @@ $navbar-dark-active-color: $link-color-dark;
570570
[data-dark-mode] details summary::before {
571571
content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28222, 226, 230, 0.75%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
572572
}
573+
574+
[data-dark-mode] body .docs-edit-tip {
575+
color: $navbar-dark-hover-color;
576+
}

assets/scss/layouts/_pages.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,8 @@ p.meta {
6262
.page-link:hover {
6363
text-decoration: none;
6464
}
65+
66+
.docs-edit-tip {
67+
margin-top: 3rem;
68+
color: $link-color;
69+
}

layouts/docs/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1>{{ .Title }}</h1>
3333
{{ end -}}
3434
{{ .Content }}
3535
{{ if eq .Site.Params.languageISO "ZH" }}
36-
<div style="margin-top: 48px; color: #5d2f86;">
36+
<div class="docs-edit-tip">
3737
由于读者水平参差不齐,重口难调,社区小伙伴一直在持续更新优化文档内容,如果您觉得本页文档内容有误或不够完善,欢迎您参与到文档的编写中来,点击下方的 Edit this page on GitHub 即可编辑 👇
3838
</div>
3939
{{ end }}

0 commit comments

Comments
 (0)