2017-02-12 14:06:01 +00:00
|
|
|
/*
|
2021-10-01 14:33:31 +00:00
|
|
|
* SearXNG, A privacy-respecting, hackable metasearch engine
|
2017-02-12 14:06:01 +00:00
|
|
|
*/
|
|
|
|
|
2021-06-22 11:50:06 +00:00
|
|
|
#search {
|
2021-11-21 20:38:00 +00:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search_header {
|
2022-01-13 20:36:08 +00:00
|
|
|
padding-top: 1.5em;
|
|
|
|
.ltr-padding-right(2em);
|
|
|
|
.ltr-padding-left(@results-offset - 3rem);
|
2017-02-12 14:06:01 +00:00
|
|
|
margin: 0;
|
2021-10-08 14:06:48 +00:00
|
|
|
background: var(--color-header-background);
|
|
|
|
border-bottom: 1px solid var(--color-header-border);
|
2021-10-26 21:11:51 +00:00
|
|
|
display: grid;
|
2021-10-29 16:57:36 +00:00
|
|
|
column-gap: 1.2rem;
|
2021-10-28 14:14:34 +00:00
|
|
|
row-gap: 1rem;
|
2021-10-26 21:11:51 +00:00
|
|
|
grid-template-columns: 3rem 1fr;
|
|
|
|
grid-template-areas:
|
|
|
|
"logo search"
|
|
|
|
"spacer categories";
|
|
|
|
}
|
|
|
|
|
2021-11-13 09:42:07 +00:00
|
|
|
.category {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2022-01-13 20:36:08 +00:00
|
|
|
.ltr-margin-right(1rem);
|
2021-11-13 09:42:07 +00:00
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
input {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
svg {
|
|
|
|
padding-right: 0.2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 0.2rem 0;
|
|
|
|
display: inline-flex;
|
|
|
|
text-transform: capitalize;
|
|
|
|
font-size: 0.9em;
|
|
|
|
border-bottom: 2px solid transparent;
|
|
|
|
.disable-user-select;
|
|
|
|
|
|
|
|
div.category_name {
|
|
|
|
margin: auto 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"]:checked + label {
|
|
|
|
color: var(--color-categories-item-selected-font);
|
|
|
|
border-bottom: 2px solid var(--color-categories-item-border-selected);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-26 21:11:51 +00:00
|
|
|
#search_logo {
|
|
|
|
grid-area: logo;
|
2021-11-08 10:05:02 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-10-26 21:11:51 +00:00
|
|
|
|
2021-11-08 10:05:02 +00:00
|
|
|
svg {
|
|
|
|
flex: 1;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
margin: 0.5rem 0 auto 0;
|
|
|
|
}
|
2021-10-26 21:11:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search_categories {
|
|
|
|
grid-area: categories;
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
|
|
|
|
2021-11-21 20:38:00 +00:00
|
|
|
.search_box {
|
|
|
|
margin: 0;
|
2021-10-26 21:11:51 +00:00
|
|
|
padding: 0;
|
|
|
|
grid-area: search;
|
2017-02-12 14:06:01 +00:00
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2018-08-09 14:13:50 +00:00
|
|
|
#clear_search {
|
|
|
|
display: block;
|
|
|
|
border-collapse: separate;
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 1.8em;
|
|
|
|
margin: 0;
|
2021-10-06 18:12:51 +00:00
|
|
|
padding: 8px 2px;
|
2021-09-28 20:41:56 +00: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 14:13:50 +00:00
|
|
|
border-right: none;
|
|
|
|
border-left: none;
|
2021-06-22 11:50:06 +00:00
|
|
|
border-radius: 0;
|
2018-08-09 14:13:50 +00:00
|
|
|
outline: none;
|
2021-09-28 20:41:56 +00:00
|
|
|
color: var(--color-search-font);
|
2018-08-09 14:13:50 +00:00
|
|
|
font-size: 16px;
|
|
|
|
z-index: 10000;
|
|
|
|
|
|
|
|
&:hover {
|
2021-10-06 18:12:51 +00:00
|
|
|
color: var(--color-search-background-hover);
|
2018-08-09 14:13:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.empty * {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-22 11:50:06 +00:00
|
|
|
#q,
|
|
|
|
#send_search {
|
2017-02-12 14:06:01 +00:00
|
|
|
display: block !important;
|
|
|
|
border-collapse: separate;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0;
|
2021-11-13 09:42:07 +00:00
|
|
|
padding: 10px;
|
2021-09-28 20:41:56 +00:00
|
|
|
background: none repeat scroll 0 0 var(--color-search-background);
|
|
|
|
border: 1px solid var(--color-search-border);
|
2021-06-22 11:50:06 +00:00
|
|
|
border-radius: 0;
|
2017-02-12 14:06:01 +00:00
|
|
|
outline: none;
|
2021-09-28 20:41:56 +00:00
|
|
|
color: var(--color-search-font);
|
2017-02-12 14:06:01 +00:00
|
|
|
font-size: 16px;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
#q {
|
|
|
|
outline: medium none;
|
2022-01-13 20:36:08 +00:00
|
|
|
.ltr-padding-left(12px);
|
|
|
|
.ltr-padding-right(0) !important;
|
|
|
|
.ltr-border-right(none);
|
2017-02-12 14:06:01 +00:00
|
|
|
width: @search-width;
|
2022-01-17 21:35:02 +00:00
|
|
|
.ltr-rounded-left-corners(10px);
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
|
|
|
|
2021-06-22 12:15:47 +00:00
|
|
|
#q::-ms-clear,
|
|
|
|
#q::-webkit-search-cancel-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2017-02-12 14:06:01 +00:00
|
|
|
#send_search {
|
2022-01-13 20:36:08 +00:00
|
|
|
.ltr-border-left(none);
|
2022-01-17 21:35:02 +00:00
|
|
|
.ltr-rounded-right-corners(10px);
|
2017-02-12 14:06:01 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
2021-10-06 18:12:51 +00:00
|
|
|
background-color: var(--color-search-background-hover);
|
|
|
|
color: var(--color-search-background);
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-21 20:38:00 +00:00
|
|
|
.no-js #clear_search,
|
2017-02-12 14:06:01 +00:00
|
|
|
.no-js #send_search {
|
|
|
|
width: auto !important;
|
2022-01-13 20:36:08 +00:00
|
|
|
.ltr-border-left(1px solid var(--color-search-border));
|
2021-11-21 20:38:00 +00:00
|
|
|
padding: 10px;
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search_filters {
|
2022-01-13 20:36:08 +00:00
|
|
|
margin-top: 0.6rem;
|
|
|
|
.ltr-margin-right(0);
|
|
|
|
margin-bottom: 0;
|
|
|
|
.ltr-margin-left(@results-offset + 0.6rem);
|
2022-02-23 18:26:07 +00:00
|
|
|
display: flex;
|
|
|
|
overflow-x: auto;
|
|
|
|
overscroll-behavior-inline: contain;
|
2021-11-21 20:38:00 +00:00
|
|
|
|
|
|
|
select {
|
|
|
|
background-color: inherit;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: var(--color-base-font);
|
|
|
|
}
|
|
|
|
}
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
|
|
|
|
2021-10-18 19:57:32 +00:00
|
|
|
@media screen and (max-width: @tablet) {
|
2021-11-21 20:38:00 +00:00
|
|
|
#search_header {
|
2021-10-26 21:11:51 +00:00
|
|
|
padding: 1.5em @results-tablet-offset 0 @results-tablet-offset;
|
|
|
|
column-gap: @results-tablet-offset;
|
2021-09-25 13:59:10 +00:00
|
|
|
}
|
|
|
|
|
2021-11-21 20:38:00 +00:00
|
|
|
.search_filters {
|
2022-01-13 20:36:08 +00:00
|
|
|
margin-top: 0.6rem;
|
|
|
|
.ltr-margin-right(0);
|
|
|
|
margin-bottom: 0;
|
|
|
|
.ltr-margin-left(@results-tablet-offset + 3rem);
|
2021-11-21 20:38:00 +00:00
|
|
|
}
|
|
|
|
|
2017-02-12 14:06:01 +00:00
|
|
|
#categories {
|
|
|
|
font-size: 90%;
|
|
|
|
clear: both;
|
|
|
|
|
|
|
|
.checkbox_container {
|
|
|
|
margin: auto;
|
2021-06-22 12:15:47 +00:00
|
|
|
margin-top: 2px;
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
html.touch {
|
2021-06-22 11:50:06 +00:00
|
|
|
#main_index,
|
|
|
|
#main_results {
|
2017-02-12 14:06:01 +00:00
|
|
|
#categories_container {
|
|
|
|
width: max-content;
|
|
|
|
|
|
|
|
.category {
|
|
|
|
display: inline-block;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#categories {
|
|
|
|
width: 100%;
|
2022-01-13 20:36:08 +00:00
|
|
|
.ltr-text-align-left();
|
2017-02-12 14:06:01 +00:00
|
|
|
overflow-x: scroll;
|
|
|
|
overflow-y: hidden;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-18 19:57:32 +00:00
|
|
|
@media screen and (max-width: @phone) {
|
2021-11-21 20:38:00 +00:00
|
|
|
#search_header {
|
2017-02-12 14:06:01 +00:00
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
2021-11-21 20:38:00 +00:00
|
|
|
padding: 0.1rem 0 0 0;
|
2021-10-26 21:11:51 +00:00
|
|
|
column-gap: 0;
|
|
|
|
row-gap: 0;
|
|
|
|
grid-template-areas:
|
|
|
|
"logo search"
|
|
|
|
"categories categories";
|
|
|
|
}
|
|
|
|
|
|
|
|
.search_logo {
|
|
|
|
padding: 0;
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search_box {
|
2021-11-13 09:42:07 +00:00
|
|
|
// hack, should be 100% ?
|
2017-02-12 14:06:01 +00:00
|
|
|
width: 99%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
|
|
|
#q {
|
2021-11-11 21:26:26 +00:00
|
|
|
width: 100%;
|
2017-02-12 14:06:01 +00:00
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
2021-11-06 17:04:17 +00:00
|
|
|
#main_results #q:placeholder-shown ~ #send_search {
|
|
|
|
margin-right: 2.6rem;
|
2022-01-13 20:36:08 +00:00
|
|
|
transition: margin-right 0.1s; // FIX RTL
|
2021-11-06 17:04:17 +00:00
|
|
|
}
|
|
|
|
|
2017-02-12 14:06:01 +00:00
|
|
|
.search_filters {
|
2021-11-21 20:38:00 +00:00
|
|
|
margin: 0;
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.category {
|
|
|
|
display: block;
|
2021-06-25 09:31:14 +00:00
|
|
|
width: 100%;
|
2021-11-13 09:42:07 +00:00
|
|
|
margin: 0;
|
2017-02-12 14:06:01 +00:00
|
|
|
|
|
|
|
label {
|
2021-11-13 09:42:07 +00:00
|
|
|
padding: 0.8rem !important;
|
|
|
|
margin: 0 !important;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-11 21:26:26 +00:00
|
|
|
@media screen and (max-width: @ultra-small-phone) {
|
2021-11-21 20:38:00 +00:00
|
|
|
#search_header {
|
2021-11-11 21:26:26 +00:00
|
|
|
grid-template-areas:
|
|
|
|
"search search"
|
|
|
|
"categories categories";
|
|
|
|
}
|
|
|
|
|
|
|
|
#search_logo {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-12 14:06:01 +00:00
|
|
|
#categories {
|
|
|
|
.disable-user-select;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#categories_container {
|
|
|
|
position: relative;
|
|
|
|
}
|