From a6c3df1bc86eec7bee93e1ac23063cd838336db5 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 1 Mar 2015 17:51:28 -0800 Subject: [PATCH] Fix highlighting of filename field when selected. --- src/General/css/burichan.css | 3 ++- src/General/css/futaba.css | 3 ++- src/General/css/photon.css | 3 ++- src/General/css/style.css | 2 +- src/General/css/tomorrow.css | 3 ++- src/General/css/yotsuba-b.css | 3 ++- src/General/css/yotsuba.css | 3 ++- src/Posting/QR.coffee | 2 ++ 8 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/General/css/burichan.css b/src/General/css/burichan.css index c5268bf78..e114a9c7c 100755 --- a/src/General/css/burichan.css +++ b/src/General/css/burichan.css @@ -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; } diff --git a/src/General/css/futaba.css b/src/General/css/futaba.css index c30be7557..f37b2ec49 100755 --- a/src/General/css/futaba.css +++ b/src/General/css/futaba.css @@ -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; } diff --git a/src/General/css/photon.css b/src/General/css/photon.css index 1e7fbf9bd..1e9e894b8 100755 --- a/src/General/css/photon.css +++ b/src/General/css/photon.css @@ -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; } diff --git a/src/General/css/style.css b/src/General/css/style.css index e8a825094..d97d23e09 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -32,7 +32,7 @@ .field:hover { border-color: #999; } -.field:hover, .field:focus { +.field:hover, .field:focus, .field.focus { color: #000; } .field[disabled] { diff --git a/src/General/css/tomorrow.css b/src/General/css/tomorrow.css index 2d9368671..6c22ec219 100755 --- a/src/General/css/tomorrow.css +++ b/src/General/css/tomorrow.css @@ -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); } diff --git a/src/General/css/yotsuba-b.css b/src/General/css/yotsuba-b.css index 81bf0cd71..55565beab 100755 --- a/src/General/css/yotsuba-b.css +++ b/src/General/css/yotsuba-b.css @@ -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; } diff --git a/src/General/css/yotsuba.css b/src/General/css/yotsuba.css index 5631fc011..4ea00c959 100755 --- a/src/General/css/yotsuba.css +++ b/src/General/css/yotsuba.css @@ -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; } diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index d842cad80..d1f3ec8b3 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -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'