Comments (3)
Sorry for the late response. Got inspired by your version and pushed a new commit to solve this issue. Thanks!
from hugo-theme-nostyleplease.
:root {
--bg-color: white;
--text-color: black;
}
@media (prefers-color-scheme: light) {
:root {
--bg-color: white;
--text-color: black;
}
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: black;
--text-color: white;
}
a {
color: yellow;
}
}
// bg color is also needed in html in order to
// block body's background propagation
// see: https://stackoverflow.com/a/61265706
html,
body {
background: var(--bg-color);
}
body {
color: var(--text-color);
font-family: monospace;
font-size: 16px;
line-height: 1.4;
margin: 0;
min-height: 100%;
overflow-wrap: break-word;
}
......
here is my new version without invert
from hugo-theme-nostyleplease.
It can also solve the problem of YouTube videos being invented
from hugo-theme-nostyleplease.
Related Issues (16)
- changing the font HOT 1
- Installation instruction HOT 3
- Error with "hugo server": unclosed action HOT 1
- PRE overflowing parent without scrollbar and awful black background of code blocks HOT 2
- [Help]: Button to toggle dark mode HOT 1
- [Help] How to reference an html file WITHOUT making it go straight to content HOT 1
- Syntax Highlighting HOT 3
- 这个主题如何增加标签、分类这些功能?Tags, categories, etc. HOT 2
- highlight 默认类型 HOT 1
- corrected Table of Contents instructions HOT 1
- support divide post list by year ? HOT 3
- nostyleplease list of suggestions
- Italics
- 直接克隆本主题,主页菜单不能正常显示。
- Please add demo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-nostyleplease.