*,*: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. win8.1 安装webaccess遇到的写访问权限错误

    大学的时候闲暇时间都用来玩游戏了,现在工作了,就把工作中遇到的问题和学习心得跟大家共享下,若有不对的地方欢迎指出,谢谢! 前几天突然想换用vs2013开发,就重装了win8.1系统,在新系统上安装we ...

  2. JavaScript之向文档中添加元素和内容的方法

    一.非DOM方法添加 1.document.write() <html xmlns="http://www.w3.org/1999/xhtml"> <head&g ...

  3. .net string format

    转自:http://www.cnblogs.com/jobs2/p/3948049.html 转自:http://jingyan.baidu.com/article/48206aeaf8c52f216 ...

  4. C++之继承和动态内存分配

    C++之继承和动态内存分配         如果基类使用动态内存分配,并重新定义赋值和复制构造函数,这将如何影响派生类的实现呢?这取决于派生类的属性,如果派生类也使用动态内存分配,这将如何实现呢?这种 ...

  5. 去掉iphone 的圆角样式

    每次面对iphone这种丑丑的样式,我简直不能再愉快的写代码~~而且每次记不住那烦人的属性~~~必须记录下来~~ -webkit-appearance:none 为了下次不用再百度,终于背下来~~~

  6. 《JavaScript+DOM编程艺术》的摘要(三)---图片库实例

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http ...

  7. 深刻理解一句js

    最近有点小懒,不想写东西,也不想看东西,看东西还老跑神,这是肿么了呢? 盯着显示器某一刻能把它看透,就是不想挪下眼睛 无意中看到了这行代码 [].forEach.call($$("*&quo ...

  8. Tensorflow tflearn 编写RCNN

    两周多的努力总算写出了RCNN的代码,这段代码非常有意思,并且还顺带复习了几个Tensorflow应用方面的知识点,故特此总结下,带大家分享下经验.理论方面,RCNN的理论教程颇多,这里我不在做详尽说 ...

  9. mysqldump 利用rr隔离实现一致性备份

    mysqldump -p -S /data/mysqldata1/sock/mysql.sock --single-transaction --master-data=2 --database db1 ...

  10. uber司机如何注册 uber司机详细注册流程

        注意:本文驾驶证行驶证图片为本人拍摄,请广大网友勿作它用 转载请修改! 详细的介绍注册优步uber司机端步骤; uber对司机的要求: 车辆为本地牌照 车龄在5年以内 裸车价格在10万以上 目 ...