Skip to content

Commit

Permalink
Remove safari_rainbow
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Mar 10, 2020
1 parent f179627 commit d66217c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
3 changes: 0 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,6 @@ mobile_layout_economy: false
# Android Chrome header panel color ($brand-bg / $headband-bg => $black-deep).
android_chrome_color: "#222"

# Hide sticky headers and color the menu bar on Safari (iOS / macOS).
safari_rainbow: false

# Custom Logo (Do not support scheme Mist)
custom_logo: #/uploads/custom-logo.jpg

Expand Down
2 changes: 0 additions & 2 deletions source/css/_common/components/components.styl
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ if (hexo-config('back2top.enable')) {
@import 'post';
@import 'pages';
@import 'third-party';

@import 'rainbow' if (hexo-config('safari_rainbow'));
30 changes: 0 additions & 30 deletions source/css/_common/components/rainbow.styl

This file was deleted.

2 comments on commit d66217c

@AemonCao
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么要移除这个设置?

@stevenjoezhang
Copy link
Contributor Author

@stevenjoezhang stevenjoezhang commented on d66217c Mar 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

它带来的副作用已经超过了功能本身。为了隐藏 before 伪元素,需要使用 overscroll-behavior: none;,这会破坏 Chrome 等浏览器的滚动行为;并且这一属性在 Safari 13 中无效。见 #1020
原版的 https://github.com/koole/rainbowsafari 没有维护,因此在找到新的解决方案之前暂时将其移除。

Please sign in to comment.