*,*: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. 文档onload处理程序

    //第一种方式是注册onload事件处理代码, //onload事件会在页面或图像加载完成后立即发生.这意味着onload事件的执行时间是在 //document对象和document对象所关联的所有 ...

  2. win7(32 bit) 环境下点击打印预览报错解决办法

      如题,报错截图如下   :     解决办法如下: 1.关闭系统数据执行保护.具体操作: 在win7 系统命令行中执行如下命令: bcdedit.exe /set {current} nx Alw ...

  3. iOS开发之C语言函数库

    在iOS开发中不可避免的需要使用数学函数进行计算,我们可以使用C标准库头文件中定义的数学常量宏及数学函数来进行基本的数学计算操作,这些C函数都可以在微软的MSDNAPI库中找到.(https://ms ...

  4. poj1006---中国剩余定理

    #include<iostream> using namespace std; int main(){ ; &&e!=-&&i!=-&&d! ...

  5. R与数据分析旧笔记(⑦)回归诊断

    回归诊断 回归诊断 1.样本是否符合正态分布假设? 2.是否存在离群值导致模型发生较大误差? 3.线性模型是否合理? 4.误差是否满足独立性.等方差.正态分布等假设条件? 5.是否存在多重共线性 正态 ...

  6. spoj 10606 Balanced Numbers 数位dp

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

  7. MySQL 关闭子表的外键约束检察

    准备: 定义一个教师表.一个学生表:在学生表中引用教师表ID create table teachers(teacherID int not null auto_increment primary k ...

  8. SQL Server 通配符为目标字符的查找

    create table t(x int identity(1,1) primary key,v nvarchar(32));go insert into t(v) values('this is % ...

  9. JAVA并发,锁与方法

    引自:<thinking in java> synchronized void f(){/* ... */}; synchronized void g(){/* ... */}; 所有对象 ...

  10. 安装AppManager

    http://www.searchvirtual.com.cn/showcontent_66884.htm