mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-22 15:33:13 +01:00
feat: use visibility hidden for search button
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
// TODO: these should be removed from persona and core use bs5 grays instead
|
||||
$gray-base: #000;
|
||||
$gray-darker: lighten($gray-base, 13.5%); // #222
|
||||
$gray-dark: lighten($gray-base, 20%); // #333
|
||||
|
||||
@@ -25,6 +25,7 @@ define('categorySearch', ['alerts'], function (alerts) {
|
||||
|
||||
el.on('show.bs.dropdown', function () {
|
||||
if (toggleVisibility) {
|
||||
el.find('.dropdown-toggle').css({ visibility: 'hidden' });
|
||||
searchEl.removeClass('hidden');
|
||||
searchEl.css({
|
||||
'z-index': el.find('.dropdown-toggle').css('z-index') + 1,
|
||||
@@ -60,6 +61,7 @@ define('categorySearch', ['alerts'], function (alerts) {
|
||||
|
||||
el.on('hide.bs.dropdown', function () {
|
||||
if (toggleVisibility) {
|
||||
el.find('.dropdown-toggle').css({ visibility: 'visible' });
|
||||
searchEl.addClass('hidden');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user