Fix settings button state and opacity

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-09-28 16:23:28 +02:00
parent 9ff07bd280
commit 13aed0b58d
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
2 changed files with 5 additions and 0 deletions

View File

@ -610,6 +610,7 @@ kbd {
border-right: 1px solid $color-border;
width: 250px;
box-sizing: border-box;
background-color: $color-main-background;
}
.settings-button {

View File

@ -78,11 +78,15 @@
area.slideUp(OC.menuSpeed*4, function() {
area.trigger(new $.Event('hide'));
});
area.removeClass('opened');
$(button).removeClass('opened');
}
function showArea() {
area.slideDown(OC.menuSpeed*4, function() {
area.trigger(new $.Event('show'));
});
area.addClass('opened');
$(button).addClass('opened');
var input = $(areaSelector + ' [autofocus]');
if (input.length === 1) {
input.focus();