* Add support for Lingva translations in results Searches that contain the word "translate" and are normal search queries (i.e. not news/images/video/etc) now create an iframe to a Lingva url to translate the user's search using their configured search language. The Lingva url can be configured using the WHOOGLE_ALT_TL env var, or will fall back to the official Lingva instance url (lingva.ml). For more info, visit https://github.com/TheDavidDelta/lingva-translate * Add basic test for lingva results * Allow user specified lingva instances through csp frame-src * Fix pep8 issue
34 lines
524 B
CSS
34 lines
524 B
CSS
.autocomplete {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 100%;
|
|
}
|
|
|
|
.autocomplete-items {
|
|
position: absolute;
|
|
border-bottom: none;
|
|
border-top: none;
|
|
z-index: 99;
|
|
|
|
/*position the autocomplete items to be the same width as the container:*/
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.autocomplete-items div {
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
details summary {
|
|
padding: 10px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#lingva-iframe {
|
|
width: 100%;
|
|
height: 650px;
|
|
border: 0;
|
|
}
|