Skip to content

Commit ab0e939

Browse files
committedSep 4, 2024
Fix styling
1 parent f29e8a4 commit ab0e939

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed
 

‎templates/default/fulldoc/html/css/style.css

-10
Original file line numberDiff line numberDiff line change
@@ -388,16 +388,6 @@ ul.fullTree li:last-child { padding-bottom: 0; }
388388
text-align: center;
389389
}
390390

391-
.visually-hidden {
392-
position: absolute;
393-
top: auto;
394-
overflow: hidden;
395-
clip: rect(1px, 1px, 1px, 1px);
396-
width: 1px;
397-
height: 1px;
398-
white-space: nowrap;
399-
}
400-
401391
#menu { font-size: 1.3em; color: #bbb; }
402392
#menu .title, #menu a { font-size: 0.7em; }
403393
#menu .title a { font-size: 1em; }

‎templates/default/fulldoc/html/js/full_list.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function enableSearch() {
108108
}
109109
});
110110

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

114114
function ignoredKeyPress(event) {
@@ -136,7 +136,7 @@ function clearSearch() {
136136
function performSearch(searchString) {
137137
clearSearchTimeout();
138138
$('#full_list, #content').addClass('insearch');
139-
$('#noresults').text('').addClass('visually-hidden');
139+
$('#noresults').text('').hide();
140140
partialSearch(searchString, 0);
141141
}
142142

@@ -178,7 +178,7 @@ function searchDone() {
178178
// This is read out to screen readers
179179
$('#noresults').text('There are ' + found + ' results.');
180180
}
181-
$('#noresults').removeClass('visually-hidden');
181+
$('#noresults').show();
182182
$('#content').removeClass('insearch');
183183
}
184184

0 commit comments

Comments
 (0)