Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Sep 4, 2024
1 parent f29e8a4 commit ab0e939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
10 changes: 0 additions & 10 deletions templates/default/fulldoc/html/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -388,16 +388,6 @@ ul.fullTree li:last-child { padding-bottom: 0; }
text-align: center;
}

.visually-hidden {
position: absolute;
top: auto;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
width: 1px;
height: 1px;
white-space: nowrap;
}

#menu { font-size: 1.3em; color: #bbb; }
#menu .title, #menu a { font-size: 0.7em; }
#menu .title a { font-size: 1em; }
Expand Down
6 changes: 3 additions & 3 deletions templates/default/fulldoc/html/js/full_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function enableSearch() {
}
});

$('#full_list').after("<div id='noresults' role='status' class='visually-hidden'></div>");
$('#full_list').after("<div id='noresults' role='status' style='display: none'></div>");
}

function ignoredKeyPress(event) {
Expand Down Expand Up @@ -136,7 +136,7 @@ function clearSearch() {
function performSearch(searchString) {
clearSearchTimeout();
$('#full_list, #content').addClass('insearch');
$('#noresults').text('').addClass('visually-hidden');
$('#noresults').text('').hide();
partialSearch(searchString, 0);
}

Expand Down Expand Up @@ -178,7 +178,7 @@ function searchDone() {
// This is read out to screen readers
$('#noresults').text('There are ' + found + ' results.');
}
$('#noresults').removeClass('visually-hidden');
$('#noresults').show();
$('#content').removeClass('insearch');
}

Expand Down

0 comments on commit ab0e939

Please sign in to comment.