【文件属性】:
文件名称:css-media-interface-style-test:使用颜色方案测试媒体规则
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-15 06:50:21
JavaScript
测试媒体颜色方案
test-media-color-scheme允许您测试@media (color-scheme) :
:root {
--link : #0000d6 ;
--background-color : #fff ;
--color : #000 ;
}
@media ( color-scheme : dark) {
:root {
--link : #00c0ff ;
--background-color : #000 ;
--color : #fff ;
}
}
测验
git clone git@github.com:jonathantneal/test-media-color-scheme.git
cd test-media-color-scheme
npm install
npm start
【文件预览】:
css-media-interface-style-test-master
----public()
--------index.html(2KB)
--------script.js(940B)
----server.mjs(943B)
----socket.mjs(677B)
----README.md(435B)
----.editorconfig(226B)
----.gitignore(104B)
----package.json(361B)