适配暗黑模式

This commit is contained in:
fofolee 2020-06-28 23:40:18 +08:00
parent 4c264bafc5
commit 25f5f18c6c
5 changed files with 64 additions and 10 deletions

View File

@ -107,7 +107,7 @@
bindEvent: function() { bindEvent: function() {
var _this = this; var _this = this;
$('#manual').scroll(function () { $('#manual').scroll(function () {
_this.$element.find('input').prop('value', '') _this.$element.find('input').val('')
_this.$element.find('li').show() _this.$element.find('li').show()
_this.setActive() _this.setActive()
// scroll // scroll
@ -133,7 +133,7 @@
}) })
// 目录搜索 // 目录搜索
_this.$element.on('input', 'input', function () { _this.$element.on('input', 'input', function () {
var keyword = $(this).prop('value') var keyword = $(this).val()
_this.$element.find('li').each(function(){ _this.$element.find('li').each(function(){
if ($(this).find('a').text().toUpperCase().includes(keyword.toUpperCase())) { if ($(this).find('a').text().toUpperCase().includes(keyword.toUpperCase())) {
$(this).show() $(this).show()

View File

@ -0,0 +1,53 @@
#options * {
background: #303133;
color: white;
}
#options .keyword {
background: #505050;
color: #f1f2f3;
border: 1px solid #ffffff1f;
}
#options .foot {
background: #292b2d;
box-shadow: 0px 0px 9px 0px #000000ab;
}
#options #customize {
background: #303133;
}
#options #customize input {
border-bottom: 1px solid #696666;
}
#mainlist .info {
background: #303133;
color: #f1f2f3;
}
#manual,
#manualBody {
background: #e6e6e6;
}
#mainlist .info.select {
background: #585958;
}
#manual #manualNavi ul {
/* background: #585958; */
background: #e6e6e6;
box-shadow: 0 0 10px #000;
}
#manual #manualNavi ul input {
/* background: #585958; */
background: #e6e6e6;
/* color: white; */
}
.nicescroll-cursors {
border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

View File

@ -52,7 +52,7 @@ a:focus {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 15px; right: 15px;
z-index: 1; z-index: 999;
text-align: left; text-align: left;
} }

View File

@ -3,7 +3,7 @@
font-size: 15px; font-size: 15px;
color: #595959; color: #595959;
font-family: consolas, monaco,"微软雅黑"; font-family: consolas, monaco,"微软雅黑";
padding-bottom: 30px padding: 10px 10px 30px 10px;
} }
#options *{ #options *{
@ -139,12 +139,9 @@
/* word-break: break-all; */ /* word-break: break-all; */
} }
#options table tr:nth-child(odd) {
background-color: #fff !important;
}
#options table tr:nth-child(even) { #options table tr:nth-child(even) {
background-color: #f8f8f8 !important; background: #fff;
filter: contrast(0.9);
} }
#options .keyword { #options .keyword {
@ -155,7 +152,7 @@
border-radius: 12px; border-radius: 12px;
height: 24px; height: 24px;
line-height: 22px; line-height: 22px;
padding: 0 10px; padding: 3px 10px;
background-color: #f3f3f3; background-color: #f3f3f3;
margin-right: 5px; margin-right: 5px;
} }

View File

@ -1,3 +1,7 @@
body {
margin: 0;
}
#mainlist { #mainlist {
position: absolute; position: absolute;
left: 0; left: 0;