2017-02-12 15:06:01 +01:00
|
|
|
/*
|
2021-10-01 16:33:31 +02:00
|
|
|
* SearXNG, A privacy-respecting, hackable metasearch engine
|
2017-02-12 15:06:01 +01:00
|
|
|
*/
|
|
|
|
|
2021-06-22 13:50:06 +02:00
|
|
|
#search {
|
2021-09-25 15:59:10 +02:00
|
|
|
padding: 0 2em 0 @results-offset;
|
2017-02-12 15:06:01 +01:00
|
|
|
margin: 0;
|
2021-09-28 22:41:56 +02:00
|
|
|
background: var(--color-header-background);
|
|
|
|
border-bottom: 1px solid var(--color-header-border);
|
2017-02-12 15:06:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#search_wrapper {
|
|
|
|
padding: 10px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search_box {
|
|
|
|
margin: 0 12px 0 0;
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
white-space: nowrap;
|
2021-06-22 13:50:06 +02:00
|
|
|
|
2017-02-12 15:06:01 +01:00
|
|
|
/*
|
|
|
|
&:has(q:focus) {
|
|
|
|
box-shadow: 0px 0px 5px #CCC;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
2018-08-09 16:13:50 +02:00
|
|
|
#clear_search {
|
|
|
|
display: block;
|
|
|
|
border-collapse: separate;
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 1.8em;
|
|
|
|
margin: 0;
|
|
|
|
padding: 2px;
|
|
|
|
height: 2.2em;
|
2021-09-28 22:41:56 +02:00
|
|
|
background: none repeat scroll 0 0 var(--color-search-background);
|
|
|
|
border-top: 1px solid var(--color-search-border);
|
|
|
|
border-bottom: 1px solid var(--color-search-border);
|
2018-08-09 16:13:50 +02:00
|
|
|
border-right: none;
|
|
|
|
border-left: none;
|
2021-06-22 13:50:06 +02:00
|
|
|
border-radius: 0;
|
2018-08-09 16:13:50 +02:00
|
|
|
outline: none;
|
2021-09-28 22:41:56 +02:00
|
|
|
color: var(--color-search-font);
|
2018-08-09 16:13:50 +02:00
|
|
|
font-size: 16px;
|
|
|
|
z-index: 10000;
|
|
|
|
|
|
|
|
&:hover {
|
2021-09-28 22:41:56 +02:00
|
|
|
color: var(--color-search-border);
|
2018-08-09 16:13:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.empty * {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-22 13:50:06 +02:00
|
|
|
#q,
|
|
|
|
#send_search {
|
2017-02-12 15:06:01 +01:00
|
|
|
display: block !important;
|
|
|
|
border-collapse: separate;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0;
|
|
|
|
padding: 2px;
|
|
|
|
height: 2.2em;
|
2021-09-28 22:41:56 +02:00
|
|
|
background: none repeat scroll 0 0 var(--color-search-background);
|
|
|
|
border: 1px solid var(--color-search-border);
|
2021-06-22 13:50:06 +02:00
|
|
|
border-radius: 0;
|
2017-02-12 15:06:01 +01:00
|
|
|
outline: none;
|
2021-09-28 22:41:56 +02:00
|
|
|
color: var(--color-search-font);
|
2017-02-12 15:06:01 +01:00
|
|
|
font-size: 16px;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
#q {
|
|
|
|
outline: medium none;
|
|
|
|
padding-left: 8px;
|
2021-06-22 13:50:06 +02:00
|
|
|
padding-right: 0 !important;
|
2017-02-12 15:06:01 +01:00
|
|
|
border-right: none;
|
|
|
|
width: @search-width;
|
|
|
|
}
|
|
|
|
|
2021-06-22 14:15:47 +02:00
|
|
|
#q::-ms-clear,
|
|
|
|
#q::-webkit-search-cancel-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2017-02-12 15:06:01 +01:00
|
|
|
#send_search {
|
|
|
|
border-left: none;
|
|
|
|
width: 2.2em;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
2021-09-28 22:41:56 +02:00
|
|
|
background-color: var(--color-search-border);
|
|
|
|
color: var(--color-base-light);
|
2017-02-12 15:06:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.no-js #send_search {
|
|
|
|
width: auto !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search_filters {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2021-09-25 17:44:54 +02:00
|
|
|
@media screen and (max-width: 80em) {
|
2021-09-25 15:59:10 +02:00
|
|
|
#search {
|
|
|
|
padding: 0 @results-tablet-offset;
|
|
|
|
}
|
|
|
|
|
2017-02-12 15:06:01 +01:00
|
|
|
#categories {
|
|
|
|
font-size: 90%;
|
|
|
|
clear: both;
|
|
|
|
|
|
|
|
.checkbox_container {
|
|
|
|
margin: auto;
|
2021-06-22 14:15:47 +02:00
|
|
|
margin-top: 2px;
|
2017-02-12 15:06:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
html.touch {
|
2021-06-22 13:50:06 +02:00
|
|
|
#main_index,
|
|
|
|
#main_results {
|
2017-02-12 15:06:01 +01:00
|
|
|
#categories_container {
|
|
|
|
width: 1000px;
|
|
|
|
width: -moz-max-content;
|
|
|
|
width: -webkit-max-content;
|
|
|
|
width: max-content;
|
|
|
|
|
|
|
|
.category {
|
|
|
|
display: inline-block;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#categories {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
text-align: left;
|
|
|
|
overflow-x: scroll;
|
|
|
|
overflow-y: hidden;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-25 17:44:54 +02:00
|
|
|
@media screen and (max-width: 50em) {
|
2017-02-12 15:06:01 +01:00
|
|
|
#search {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0.1em 0 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search_wrapper {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0 0 0.7em 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search_box {
|
|
|
|
// hack, should bew 100% ?
|
|
|
|
width: 99%;
|
|
|
|
margin: 0.1em;
|
|
|
|
padding: 0 0.1em 0 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
|
|
|
#q {
|
|
|
|
width: auto !important;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search_filters {
|
|
|
|
display: block;
|
|
|
|
margin: 0.5em;
|
|
|
|
}
|
|
|
|
|
2021-06-22 13:50:06 +02:00
|
|
|
.language,
|
|
|
|
.time_range {
|
2017-02-12 15:06:01 +01:00
|
|
|
width: 45%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.category {
|
|
|
|
display: block;
|
2021-06-25 11:31:14 +02:00
|
|
|
width: 100%;
|
2017-02-12 15:06:01 +01:00
|
|
|
|
|
|
|
label {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#categories {
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
.disable-user-select;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.category {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
margin: 0 3px;
|
2021-06-22 13:50:06 +02:00
|
|
|
padding: 0;
|
2017-02-12 15:06:01 +01:00
|
|
|
|
|
|
|
input {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 4px 10px;
|
|
|
|
margin: 0;
|
|
|
|
display: block;
|
|
|
|
text-transform: capitalize;
|
|
|
|
font-size: 0.9em;
|
|
|
|
border-bottom: 2px solid transparent;
|
|
|
|
.disable-user-select;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"]:focus + label {
|
2021-06-22 13:50:06 +02:00
|
|
|
box-shadow: 0 0 8px #3498db;
|
2017-02-12 15:06:01 +01:00
|
|
|
}
|
|
|
|
|
2021-06-22 13:50:06 +02:00
|
|
|
/* label:hover {
|
2017-02-12 15:06:01 +01:00
|
|
|
border-bottom: 2px solid @color-categories-item-border-unselected-hover;
|
2021-06-22 13:50:06 +02:00
|
|
|
} */
|
2017-02-12 15:06:01 +01:00
|
|
|
|
|
|
|
input[type="checkbox"]:checked + label {
|
2021-09-28 22:41:56 +02:00
|
|
|
background: var(--color-categories-item-selected);
|
|
|
|
color: var(--color-categories-item-selected-font);
|
|
|
|
border-bottom: 2px solid var(--color-categories-item-border-selected);
|
2017-02-12 15:06:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#categories_container {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.help {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
bottom: -20px;
|
|
|
|
overflow: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 1s ease;
|
|
|
|
font-size: 0.8em;
|
2021-06-22 14:15:47 +02:00
|
|
|
text-align: center;
|
2017-02-12 15:06:01 +01:00
|
|
|
background: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover .help {
|
|
|
|
opacity: 0.8;
|
|
|
|
transition: opacity 1s ease;
|
|
|
|
}
|
|
|
|
}
|