Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

侧边栏锚点位置异常 #799

Closed
3 tasks done
AlliotTech opened this issue May 9, 2024 · 2 comments
Closed
3 tasks done

侧边栏锚点位置异常 #799

AlliotTech opened this issue May 9, 2024 · 2 comments
Labels
Bug Something isn't working Solved
Milestone

Comments

@AlliotTech
Copy link
Contributor

AlliotTech commented May 9, 2024

Issue Checklist

Expected behavior

image

Actual behavior

锚点位置到了页面右侧空白处

Steps to reproduce the behavior

博客地址: https://www.iots.vip 首页可复现

Node.js and NPM Information

nodejs 20.13.0

Package dependencies Information

"hexo": {
    "version": "7.2.0"
  },

Hexo Configuration

无其他自定义

NexT Configuration

自定义了 `custom_file_path`
 
  variable: source/_data/variables.styl

  style: source/_data/styles.styl

styles.styl:

// 近期文章
.links-of-recent-posts
  font-size: 0.8125em
  margin-top: 10px

.links-of-recent-posts-title
  font-size: 1.03em
  font-weight: 600
  margin-top: 0

.links-of-recent-posts-list
  list-style: none
  margin: 0
  padding: 0

// 侧边栏RSS button
.feed-link {
  margin-top: 0px;

  a {
    display: inline-block;
    padding: 0 15px;
    color: rgb(252, 100, 35);
    border: 1px solid rgb(252, 100, 35);
    border-radius: 4px;

    i {
      color: rgb(252, 100, 35);
      font-size: 14px;
    }

    &:hover {
      color:white;
      background: rgb(252, 100, 35);

      i { color: white; }
    }
  }
}

// 修改文章字体大小,强制保持 1em
div.post-body {
  font-size: 1em;
}

// 修改 code block 中的字体,需要写入以下样式
code[class*=language-] {
  font-size: 14px;
}

variables.styl:

// 文章宽度  
$content-desktop-large   = 65em
$content-desktop-largest = 60%



### Other Information

_No response_
@AlliotTech AlliotTech added the Bug Something isn't working label May 9, 2024
Copy link

welcome bot commented May 9, 2024

Thanks for opening this issue, maintainers will get back to you as soon as possible!

@stevenjoezhang stevenjoezhang added this to the 8.20.1 milestone May 9, 2024
@stevenjoezhang
Copy link
Member

Fixed in 07acb27
Thanks for your feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Solved
Projects
None yet
Development

No branches or pull requests

2 participants