[chore] *: fix typos detected by typos-cli

This commit is contained in:
Bnyro 2024-10-09 11:59:31 +02:00
parent 0253c10b52
commit f31a3a2053
40 changed files with 73 additions and 73 deletions

View file

@ -13,8 +13,8 @@
};
// update the css
var hmtlElement = d.getElementsByTagName("html")[0];
hmtlElement.classList.remove('no-js');
hmtlElement.classList.add('js');
var htmlElement = d.getElementsByTagName("html")[0];
htmlElement.classList.remove('no-js');
htmlElement.classList.add('js');
})(window, document);

View file

@ -8,7 +8,7 @@ window.searxng = (function (w, d) {
'use strict';
// not invented here tookit with bugs fixed elsewhere
// not invented here toolkit with bugs fixed elsewhere
// purposes : be just good enough and as small as possible
// from https://plainjs.com/javascript/events/live-binding-event-handlers-14/

View file

@ -441,7 +441,7 @@ searxng.ready(function () {
var body = document.getElementsByTagName('body')[0];
body.appendChild(helpPanel);
} else {
// togggle hidden
// toggle hidden
helpPanel.classList.toggle('invisible');
return;
}

View file

@ -67,7 +67,7 @@
} */
});
// this event occour only once per element
// this event occur only once per element
event.preventDefault();
});
});

View file

@ -13,8 +13,8 @@ iframe[src^="https://www.mixcloud.com"] {
// issue with an image URL that is blocked since it is an a Cross-Origin
// request. The alternative text (<img alt='Mixcloud Logo'> then cause an
// scrollbar in the inner of the iframe we can't avoid. Another quirk comes
// when pressing the play button, somtimes the shown player has an height of
// 200px, somtimes 250px.
// when pressing the play button, sometimes the shown player has an height of
// 200px, sometimes 250px.
height: 250px;
}

View file

@ -4,31 +4,31 @@ see the CSS rules for #results in style.less ( grid-template-columns and gap).
In this file, the --center-page-width values comes from the Oscar theme (Bootstrap 3).
All rules starts with ".center-aligment-yes #main_results" to be enabled only
All rules starts with ".center-alignment-yes #main_results" to be enabled only
on the /search URL and when the "center alignment" preference is enabled.
*/
@media screen and (min-width: @phone) {
.center-aligment-yes #main_results {
.center-alignment-yes #main_results {
--center-page-width: 48rem;
}
}
@media screen and (min-width: 62rem) {
.center-aligment-yes #main_results {
.center-alignment-yes #main_results {
--center-page-width: 60rem;
}
}
@media screen and (min-width: @tablet) {
.center-aligment-yes #main_results {
.center-alignment-yes #main_results {
--center-page-width: 73rem;
}
}
@media screen and (min-width: @phone) and (max-width: @tablet) {
// any change must be reset in @media screen and (min-width: @tablet) { ... }
.center-aligment-yes #main_results {
.center-alignment-yes #main_results {
#results {
grid-template-columns: 60% calc(40% - @results-gap);
margin-left: 0;
@ -50,7 +50,7 @@ on the /search URL and when the "center alignment" preference is enabled.
}
@media screen and (min-width: @tablet) {
.center-aligment-yes #main_results {
.center-alignment-yes #main_results {
display: flex;
flex-direction: column;
align-items: center;

View file

@ -297,7 +297,7 @@ article[data-vim-selected].category-social {
padding-top: 0.6rem;
.ltr-padding-right(1rem);
width: 7rem;
height: unset; // remove heigth value that was needed for lazy loading
height: unset; // remove height value that was needed for lazy loading
}
.break {
@ -399,7 +399,7 @@ article[data-vim-selected].category-social {
padding-top: 0.6rem;
.ltr-padding-right(1rem);
width: 20rem;
height: unset; // remove heigth value that was needed for lazy loading
height: unset; // remove height value that was needed for lazy loading
}
}
@ -639,12 +639,12 @@ summary.title {
padding-top: 1em;
}
.sidebar-collapsable {
.sidebar-collapsible {
border-top: 1px solid var(--color-sidebar-border);
padding-bottom: 0.5em;
}
#sidebar-end-collapsable {
#sidebar-end-collapsible {
border-bottom: 1px solid var(--color-sidebar-border);
width: 100%;
}
@ -1007,10 +1007,10 @@ summary.title {
}
@media screen and (min-width: @phone) and (max-width: @tablet) {
// when .center-aligment-yes, see style-center.less
// when .center-alignment-yes, see style-center.less
// the media query includes "min-width: @phone"
// because the phone layout includes the tablet layout unconditionally.
.center-aligment-no {
.center-alignment-no {
.results-tablet();
}
}