*,*:before,*:after,html[mode='nightmode'] *
{
color: #61615f !important;
border-color: #212a32 !important;
-webkit-border-image: none !important;
border-image: none !important;
background: none !important;
background-image: none !important;
box-shadow: none !important;
text-shadow: none !important;
}
html[mode='nightmode'] body
{
background-color: #0e1114 !important;
}
html[mode='nightmode'] a,html[mode='nightmode'] a *
{
text-decoration: none !important; color: #2c4261 !important;
}
html[mode='nightmode'] a:hover,html[mode='nightmode'] a:hover *
{
color: #2c4261 !important;
background: #1b1e23 !important;
}
html[mode='nightmode'] a:visited,html[mode='nightmode'] a:visited *,html[mode='nightmode'] a:active,html[mode='nightmode'] a:active *
{
color: #551b59 !important;
}
html[mode='nightmode'] select,html[mode='nightmode'] option,html[mode='nightmode'] textarea,html[mode='nightmode'] button
{
color: #aaa !important;
border: 1px solid #212a32 !important;
border-style: solid;
border-color: #212a32 !important;
background: #0e1114 !important;
}
html[mode='nightmode'] select:hover,html[mode='nightmode'] option:hover,html[mode='nightmode'] button:hover,html[mode='nightmode'] textarea:hover,html[mode='nightmode'] select:focus,html[mode='nightmode'] option:focus,html[mode='nightmode'] button:focus,html[mode='nightmode'] textarea:focus
{
color: #bbb !important;
border-color: #777 #999 #999 #777 !important;
background: #0e1114 !important;
}
html[mode='nightmode'] input,html[mode='nightmode'] input[type=text],html[mode='nightmode'] input[type=search],html[mode='nightmode'] input[type=password]
{
color: #61615f !important;
border-style: solid !important;
border-color: #1a1c27 !important;
background-color: #0e1114 !important;
box-shadow: 1px 0 4px rgba(16,18,23,.75) inset,0 1px 4px rgba(16,18,23,.75) inset !important;
}
html[mode='nightmode'] input:focus,html[mode='nightmode'] input[type=text]:focus,html[mode='nightmode'] input[type=search]:focus,html[mode='nightmode'] input[type=password]:focus
{
color: #bbb !important;
border-color: #1a3973;
outline: none !important;
background: #0e1114 !important;
}
html[mode='nightmode'] input:hover,html[mode='nightmode'] select:hover,html[mode='nightmode'] option:hover,html[mode='nightmode'] button:hover,html[mode='nightmode'] textarea:hover,html[mode='nightmode'] input:focus,html[mode='nightmode'] select:focus,html[mode='nightmode'] option:focus,html[mode='nightmode'] button:focus,html[mode='nightmode'] textarea:focus
{
color: #bbb !important;
border-color: #777 #999 #999 #777 !important;
background: #093681 !important;
opacity: 0.4!important;
}
html[mode='nightmode'] input[type=button],html[mode='nightmode'] input[type=submit],html[mode='nightmode'] input[type=reset],html[mode='nightmode'] input[type=image]
{
color: #61615f !important;
border-color: #888 #666 #666 #888 !important;
}
html[mode='nightmode'] input[type=button],html[mode='nightmode'] input[type=submit],html[mode='nightmode'] input[type=reset]
{
border: 1px solid #212a32 !important;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #262939), color-stop(1, #181a23)) !important;
}
html[mode='nightmode'] input[type=button]:hover,html[mode='nightmode'] input[type=submit]:hover,html[mode='nightmode'] input[type=reset]:hover,html[mode='nightmode'] input[type=image]:hover
{
border-color: #777 #999 #999 #777 !important;
}
html[mode='nightmode'] input[type=button]:hover,html[mode='nightmode'] input[type=submit]:hover,html[mode='nightmode'] input[type=reset]:hover
{
border: 1px solid #666 !important;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #181a23), color-stop(1, #262939)) !important;
}
html[mode='nightmode'] img,html[mode='nightmode'] svg
{
opacity: .5 !important;
border-color: #111 !important;
}
html[mode='nightmode'] ::-webkit-input-placeholder
{
color: #61615f !important;
}

night Mode 夜间模式css的更多相关文章

  1. ReactJS React+Redux+Router+antDesign通用高效率开发模板,夜间模式为例

    工作比较忙,一直没有时间总结下最近学习的一些东西,为了方便前端开发,我使用React+Redux+Router+antDesign总结了一个通用的模板,这个技术栈在前端开发者中是非常常见的. 总的来说 ...

  2. 【android】夜间模式简单实现

    完整代码,请参考我的博客园客户端,git地址:http://git.oschina.net/yso/CNBlogs 关于阅读类的app,有个夜间模式真是太重要了. 那么有两种方式可以实现夜间模式 1: ...

  3. android夜间模式实现

    一.概述 android夜间模式实现分为两大类 重启activity的实现 不重启activity的实现 二.正文 1.重启activity实现夜间模式[在界面文件中的实现部分] 1.1在attrs. ...

  4. DKNightVersion 的实现 --- 如何为 iOS 应用添加夜间模式

    在很多重阅读或者需要在夜间观看的软件其实都会把夜间模式当做一个 App 所需要具备的特性. 而如何在不改变原有的架构, 甚至不改变原有的代码的基础上, 就能为应用优雅地添加夜间模式就成为一个在很多应用 ...

  5. WPF窗口阴影和夜间模式的实现

    窗口阴影 实现 因项目需要给用户一定提示,设计师建议在鼠标进入时显示窗口阴影,离开时取消窗口阴影. 很自然,都会想到直接在窗口的内容或者自定义窗口的最外层元素上加效果.示例如下: <Grid&g ...

  6. WP8版微信5.4发布 新增夜间模式 暂没小视频

    经过近一个月的内测,WP8版的微信终于更新了v 5.4版本.新增聊天中的照片墙.识别图片二维码.夜间模式等功能,还对资源占用情况进行了优化,让程序可以更流畅的在低配置设备上运行. 不过,WP8版微信5 ...

  7. android简单的夜间模式

    现在android项目values下打 attrs.xml <?xml version="1.0" encoding="utf-8"?> <r ...

  8. Android白天/夜间模式Day/Night Mode标准原生SDK实现

     Android白天/夜间模式Day/Night Mode标准原生SDK实现 章节A:Android实现白天/夜间模式主要控制器在于UiModeManager,UiModeManager是Andr ...

  9. Android 之夜间模式(多主题)的实现

    引言 夜间模式其实属于多主题切换的一种,不过是最麻烦的一种.因为在夜间模式下不仅要切换主色调,次要色调等等,还要覆盖一些特殊的颜色,因为在夜间模式下总不能什么都是黑的把,那不得丑死-.-,所以当你夜间 ...

随机推荐

  1. NPOI 辅助类

    using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using NPOI.XSSF.UserModel; using System; using S ...

  2. c# webConfig中的session超时详细设置

    webConfig中的session超时详细设置 我们在webConfig中设置Session超时的时候,如果最后发行的地址是远程服务器,我们很多不是必须的属性并不用设置,如果设之后,倒不能让 ses ...

  3. Hive操作之HQL语句

    HQL操作1.Distribute by    distribute by col按照col列把数据分散到不同的reduce    sort    sort by col 按照col列把数据排序    ...

  4. Android 利用摄像头指尖测试心率

    过摄像头来获得心率,搜了一下这个技术真不是噱头,据说在iPhone早有实现,主要原理是:当打开软件时,手机的闪光灯也会被自动打开,用户将手指放在摄像头上时,指尖皮下血管由于有血液被压入,被光源照射的手 ...

  5. spoj 10606 Balanced Numbers 数位dp

    题目链接 一个数称为平衡数, 满足他各个数位里面的数, 奇数出现偶数次, 偶数出现奇数次, 求一个范围内的平衡数个数. 用三进制压缩, 一个数没有出现用0表示, 出现奇数次用1表示, 出现偶数次用2表 ...

  6. CSS background-repeat 属性

    ###起因 >今天遇到一个问题,就是在给一个元素设置width 属性为100% 之后, 鼠标放上去之后,仍然只有部分是阴影状态,如下图所示: --- 经过一番思索,这TM 不就是,hover 上 ...

  7. C语言2

    函数是C语言的基本单位,类是java,c#,c++的基本单位 int abs(int x); double fabs(double x);   按变量的存储方式:静态变量.自动变量.寄存器变量 指针就 ...

  8. 深入浅出Mybatis系列(八)---mapper映射文件配置之select、resultMap good

    上篇<深入浅出Mybatis系列(七)---mapper映射文件配置之insert.update.delete>介绍了insert.update.delete的用法,本篇将介绍select ...

  9. 【基础】常用的机器学习&数据挖掘知识点

    Basis(基础): MSE(Mean Square Error 均方误差),LMS(LeastMean Square 最小均方),LSM(Least Square Methods 最小二乘法),ML ...

  10. HDU 5145 NPY and girls(莫队算法+乘法逆元)

    [题目链接] http://acm.hdu.edu.cn/showproblem.php?pid=5145 [题目大意] 给出一个数列,每次求一个区间数字的非重排列数量.答案对1e9+7取模. [题解 ...