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

好看,放我的博客上了 #19

Open
YL2209 opened this issue Jan 31, 2024 · 7 comments
Open

好看,放我的博客上了 #19

YL2209 opened this issue Jan 31, 2024 · 7 comments

Comments

@YL2209
Copy link
Contributor

YL2209 commented Jan 31, 2024

修改后的版本:https://codepen.io/yl2023/pen/eYXVKbX

我的博客:https://www.naokuo.top

发现问题:iOS端星星黑色的

@Xiumuzaidiao
Copy link
Owner

太棒了!

@YL2209
Copy link
Contributor Author

YL2209 commented Feb 4, 2024

@YL2209
Copy link
Contributor Author

YL2209 commented Feb 5, 2024

太棒了!

解决iOS端Safari浏览器星星为黑色的问题

  • 原CSS
.container .star-son {
  width: var(--size);
  height: var(--size);
  background-image: -webkit-radial-gradient(circle var(--size) at var(--pos),transparent var(--size),#fff);
  background-image: -moz-radial-gradient(circle var(--size) at var(--pos),transparent var(--size),#fff);
  background-image: -o-radial-gradient(circle var(--size) at var(--pos),transparent var(--size),#fff);
  background-image: -ms-radial-gradient(circle var(--size) at var(--pos),transparent var(--size),#fff);
  background-image: radial-gradient(circle var(--size) at var(--pos),transparent var(--size),#fff);
}
  • 修改后
.container .star-son {
  width: var(--size);
  height: var(--size);
  background-image: -webkit-radial-gradient(circle var(--size) at var(--pos),transparent calc(95% - 1px),#fff 95%);
  background-image: -moz-radial-gradient(circle var(--size) at var(--pos),transparent calc(95% - 1px),#fff 95%);
  background-image: -o-radial-gradient(circle var(--size) at var(--pos),transparent calc(95% - 1px),#fff 95%);
  background-image: -ms-radial-gradient(circle var(--size) at var(--pos),transparent calc(95% - 1px),#fff 95%);
  background-image: radial-gradient(circle var(--size) at var(--pos),transparent calc(95% - 1px),#fff 95%)
}

@Xiumuzaidiao
Copy link
Owner

十分感谢!

@Phillweston
Copy link

修改后的版本:https://codepen.io/yl2023/pen/eYXVKbX

我的博客:https://www.naokuo.top

发现问题:iOS端星星黑色的

请问一下你这个是用NotionNext做的吗?我自己的博客也是NotionNext,也打算弄个这样的,方便分享一下你加在代码哪里了吗?

@LingPT
Copy link

LingPT commented Jul 4, 2024

这怎么改大小啊

@Xiumuzaidiao
Copy link
Owner

这怎么改变大小
加入按钮之后,有一个
<div class="container" style="font-size: 1.00px">
这里的font-size: 1.00px可以改大小

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants