Giter Club home page Giter Club logo

Comments (5)

xaoxuu avatar xaoxuu commented on September 13, 2024

因为写法不统一造成部分内容用了深色的方案?

from hexo-theme-stellar.

L33Z22L11 avatar L33Z22L11 commented on September 13, 2024

是「什么方案都没用」

from hexo-theme-stellar.

L33Z22L11 avatar L33Z22L11 commented on September 13, 2024

一部分浏览器根本不认 prefers-color-scheme 媒体特性,例如这段代码对于夸克APP根本不生效:

@media (prefers-color-scheme: no-preference) {
  * {
    background: red;
  }
}

@media (prefers-color-scheme: light) {
  * {
    background: green;
  }
}

@media (prefers-color-scheme: dark) {
  * {
    background: blue;
  }
}

再比如一些注重隐私的浏览器为了防止跟踪,也不会报告自己的 prefers-color-scheme

因此我建议将明亮模式作为不支持媒体特性的默认值,深色模式再单独处理。

from hexo-theme-stellar.

xaoxuu avatar xaoxuu commented on September 13, 2024

我是要将明亮模式作为不支持媒体特性的默认值的,应该怎样改呢

from hexo-theme-stellar.

L33Z22L11 avatar L33Z22L11 commented on September 13, 2024

#478 ,这是成本最低且兼容性最好的修复方式,经简单检测不会影响主题目前和未来的样式。我观察到其他博客/网站也使用的这种方案。

from hexo-theme-stellar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.