Skip to content

Commit

Permalink
doc: update home style.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 29, 2022
1 parent 9865014 commit bd2697f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-->
29 changes: 29 additions & 0 deletions scripts/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bd2697f

Please sign in to comment.