• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed search-box at this page needs "focus active"

Chris D

XenForo developer
Staff member
#4
That's likely not going to be possible. It's a bit of a special case here. It's not a normal text input. We'll have a look at it but it's likely expected.
 

batpool52!

Well-known member
#5
Adding this
PHP:
            $textInput.on('focus', function(event)
            {
                $(this).closest('div.taggingInput.textCtrl').addClass('activeTagInput');
            });

            $textInput.on('blur', function(event)
            {
                $(this).closest('div.taggingInput.textCtrl').removeClass('activeTagInput');
            });
to js/xenforo/full/tag.js after
PHP:
$textInput.closest('form').on('submit AutoValidationBeforeSubmit', function()
            {
                var val = $textInput.val();
                if (val.length)
                {
                    $input.addTag(val, {unique: true});
                    $textInput.val('');
                }
            });
and then adding this
PHP:
div.taggingInput.textCtrl.activeTagInput
{
    @property "textCtrlFocus";
    background: rgb(255,255,240) url('@imagePath/xenforo/gradients/form-element-focus-25.png') repeat-x;
    border-top-color: rgb(150,150,150);
    border-bottom-color: rgb(230,230,230);
    @property "/textCtrlFocus";
}
to EXTRA.css or somewhere in xenforo.css gives the real input field like effect for boards with debug mode on :p