doc: update home style.

This commit is contained in:
jaywcjlove
2022-09-29 09:43:25 +08:00
parent 9865014655
commit bd2697f3ee
2 changed files with 39 additions and 0 deletions

View File

@ -36,7 +36,17 @@ Quick Reference
[Quick Reference](./docs/quickreference.md)<!--rehype:style=background: rgb(16 185 129/var(\-\-bg\-opacity));-->
<!--rehype:class=home-card-->
## 看到缺少什么了吗?
<!--rehype:wrap-style=text-align: center;max-width: 650px;margin: 0 auto;padding-top:4rem;&class=home-title-reset-->
上面的列表没有看到你想要的? 您是否正在寻找一些备忘清单或参考资料,或者您有一些片段备忘清单要分享,这是一个最好的机会!
[请求添加备忘单](https://github.com/jaywcjlove/reference/issues/new?title=备忘清单+请求%3A+&labels=request&template=cheatsheet-request.md&assignee=jaywcjlove)<!--rehype:class=home-button&style=margin-top:2rem-->
[我有一张备忘单](https://github.com/jaywcjlove/reference/blob/main/CONTRIBUTING.md)<!--rehype:class=home-button text-grey-->
<!--rehype:style=margin-top:3rem-->
<!--rehype:ignore:start-->
## License
MIT © [Kenny Wong](https://github.com/jaywcjlove)
<!--rehype:ignore:end-->

View File

@ -187,6 +187,35 @@ body.home .h1wrap p {
--bg-opacity: 1;
}
.home-title-reset {
padding-right: 0 !important;
}
.home-title-reset::after {
width: initial !important;
}
a.home-button {
padding-left: 1.5rem;
padding-right: 1.5rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
border-radius: 9999px;
line-height: 1.75rem;
margin-left: 1rem;
margin-right: 1rem;
--bg-opacity: 1;
background-color: rgb(10 147 102/var(--bg-opacity));
--text-opacity: 1;
color: rgb(203 213 225/var(--text-opacity));
}
a.home-button:hover {
--bg-opacity: 0.5;
}
a.text-grey {
--bg-opacity: 1;
background-color: rgb(56 76 109/var(--bg-opacity));
}
.header-nav .max-container {
padding-top: 1.8rem;
}