var res = '<form action="#" id="searchForm" method="post">';
res += '<input id="q" name="q" type="search" value="" aria-label="' + this.fluidbook.l10n.__('search keywords or reference') + '" placeholder="' + this.fluidbook.l10n.__('search keywords or reference') + '" autocorrect="off" autocomplete="off" autocapitalize="off" />';
res += '<a href="#" id="submitSearch" class="icon-submitSearch" role="button" tabindex="-1" aria-label="' + this.fluidbook.l10n.__('submit search') + '"><svg viewBox="0 0 512 512" class="nav-search nav-icon svg-icon" aria-hidden="true"><use xlink:href="#nav-search"></use></svg></a>';
- res += '<div id="menuSearchClose" role="button" aria-label="' + this.fluidbook.l10n.__('close') + '" aria-keyshortcuts="Escape">';
+ res += '<div id="menuSearchClose" role="button" aria-label="' + this.fluidbook.l10n.__('close') + '" aria-keyshortcuts="Escape" tabindex="0">';
res += getSpriteIcon('interface-close');
res += '</div>';
res += '</form>';
if (this.fluidbook.search.isResultNavOpened()) {
this.tabNavigation('#searchResultsNav', dir);
return true;
+ } else if (this.fluidbook.floatmode) {
+ this.tabNavigation('#menuSearch', dir);
+ return true;
} else if (this.fluidbook.nav.burger.isOpened) {
this.tabNavigation('#menu', dir);
return true;
.no-results {
font-size: 13px;
- opacity: .5;
+ opacity: .4;
padding: 5px 0 5px 12px;
}
}
color: @search-float-text;
height: 46px;
font-size: 14px;
- padding: 0 1em 0 .30em;
+ padding: 0 1em 0 3.4em;
width: 100%;
order: 2;
}
border-radius: 3px;
transition: background-color 250ms;
color: @search-float-text;
- position: initial;
- transform: none;
order: 1;
+ top: 50%;
+ transform: translateY(-50%);
&:hover {
background-color: if((@search-float-background = @menu-field-background), @menu-button-background, rgba(255, 255, 255, .12));
}
padding: 0;
&:has(.hint) {
- padding: 10px 0;
- margin: 0 10px;
- border-top: 1px solid darken(#fff, 70%);
+ padding: 10px 8px;
+ margin: 0 2px;
+
+ &:before {
+ content: "";
+ width: 98%;
+ height: 1px;
+ background-color: darken(#fff, 70%);
+ position: absolute;
+ top: 0;
+ left: 50%;
+ transform: translateX(-50%);
+ }
}
.hint {
margin: 0 !important;
transition: background-color 250ms;
- &:hover {
+ &:hover,&:focus {
background-color: if((@search-float-background = @menu-field-background), @menu-button-background, rgba(255, 255, 255, .12));
}