Fix highlighting of filename field when selected.

This commit is contained in:
ccd0 2015-03-01 17:51:28 -08:00
parent 5ec3f789ab
commit a6c3df1bc8
8 changed files with 15 additions and 7 deletions

View File

@ -3,7 +3,8 @@
background-color: #D6DAF0;
border-color: #B7C5D9;
}
:root.burichan .field:focus {
:root.burichan .field:focus,
:root.burichan .field.focus {
border-color: #98E;
}

View File

@ -3,7 +3,8 @@
background-color: #F0E0D6;
border-color: #D9BFB7;
}
:root.futaba .field:focus {
:root.futaba .field:focus,
:root.futaba .field.focus {
border-color: #EA8;
}

View File

@ -3,7 +3,8 @@
background-color: #DDD;
border-color: #CCC;
}
:root.photon .field:focus {
:root.photon .field:focus,
:root.photon .field.focus {
border-color: #EA8;
}

View File

@ -32,7 +32,7 @@
.field:hover {
border-color: #999;
}
.field:hover, .field:focus {
.field:hover, .field:focus, .field.focus {
color: #000;
}
.field[disabled] {

View File

@ -92,7 +92,8 @@
color: rgb(197,200,198);
border-color: rgb(40, 41, 42);
}
:root.tomorrow #qr .field:focus {
:root.tomorrow #qr .field:focus,
:root.tomorrow #qr .field.focus {
border-color: rgb(129, 162, 190) !important;
background-color: rgb(30,32,36);
}

View File

@ -3,7 +3,8 @@
background-color: #D6DAF0;
border-color: #B7C5D9;
}
:root.yotsuba-b .field:focus {
:root.yotsuba-b .field:focus,
:root.yotsuba-b .field.focus {
border-color: #98E;
}

View File

@ -3,7 +3,8 @@
background-color: #F0E0D6;
border-color: #D9BFB7;
}
:root.yotsuba .field:focus {
:root.yotsuba .field:focus,
:root.yotsuba .field.focus {
border-color: #EA8;
}

View File

@ -475,6 +475,8 @@ QR =
$.on nodes.fileButton, 'click', QR.openFileInput
$.on nodes.noFile, 'click', QR.openFileInput
$.on nodes.filename, 'focus', -> $.addClass @parentNode, 'focus'
$.on nodes.filename, 'blur', -> $.rmClass @parentNode, 'focus'
$.on nodes.autohide, 'change', QR.toggleHide
$.on nodes.close, 'click', QR.close
$.on nodes.dumpButton, 'click', -> nodes.el.classList.toggle 'dump'