halo-dev / theme-earth

Halo 2.0 的默认主题
https://demo.halo.run/?preview-theme=theme-earth
GNU General Public License v3.0
42 stars 54 forks source link

feat: add sticky supports for post toc #74

Closed L-fw closed 1 year ago

L-fw commented 1 year ago

What type of PR is this?

/kind feature

What this PR does / why we need it:

固定了文章目录。

image image

Which issue(s) this PR fixes:

Ref #49

Special notes for your reviewer:

1、粘性位置,距离顶部5rem,z层50 2、目录最大高度为10rem

Does this PR introduce a user-facing change?

固定了文章目录栏。
f2c-ci-robot[bot] commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ruibaby

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/halo-dev/theme-earth/blob/main/OWNERS)~~ [ruibaby] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment