Commit 43382aea authored by Arnau Vàzquez's avatar Arnau Vàzquez
Browse files

Merge branch '65-fix-layout-break' into 'master'

Fix broken layout

Closes e/backlog#1542 and #65

See merge request e/cloud/my-spot!69
parents b6a4da74 f17accee
......@@ -754,17 +754,18 @@ input:checked + .slider:before {
#search_form #categories {
text-transform: capitalize;
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
align-items: center;
position: relative;
flex: 100%;
gap: 16px;
height: 80%;
}
#search_form .search_categories label,
#search_form #categories label {
flex-basis: auto;
font-size: 14px;
font-weight: normal;
margin-right: 16px;
cursor: pointer;
}
#search_form .search_categories input[type="checkbox"]:checked + label,
......@@ -835,7 +836,6 @@ input:checked + .slider:before {
}
#search_form #search_params #time_and_lang {
display: flex;
margin-left: 32px;
}
#search_form #search_params #time_and_lang > * {
width: auto;
......@@ -978,6 +978,7 @@ input:checked + .slider:before {
.result .external-link {
font-size: 14px;
color: var(--color-success);
word-break: break-word;
}
.result .extra-info {
color: var(--text-muted-normal-alpha);
......
......@@ -113,6 +113,7 @@
.external-link {
font-size: @fontsize_small;
color: var(--color-success);
word-break: break-word;
}
.extra-info {
......
......@@ -115,7 +115,7 @@
justify-content: space-between;
font-size: @fontsize_small;
padding-bottom: @spacing_large;
padding-top: @spacing_large;
padding-top: @spacing_x-large;
padding-left: @spacing_x-large;
padding-right: @spacing_x-large;
......@@ -133,20 +133,20 @@
}
.search_categories, #categories {
text-transform: capitalize;
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
align-items: center;
position: relative;
flex: 100%;
gap: @spacing_large;
height: 80%;
label {
flex-basis: auto;
font-size: @fontsize_small;
font-weight: normal;
margin-right: @spacing_large;
cursor: pointer;
}
......@@ -208,7 +208,6 @@
#time_and_lang {
display: flex;
margin-left: @spacing_xx-large;
> * { width: auto; }
}
}
......
/*! searx | 21-10-2021 | https://github.com/searx/searx */
/*! searx | 26-10-2021 | https://github.com/searx/searx */
/*
* searx, A privacy-respecting, hackable metasearch engine
*
......
/*! searx | 21-10-2021 | https://github.com/searx/searx */
/*! searx | 26-10-2021 | https://github.com/searx/searx */
/*
* searx, A privacy-respecting, hackable metasearch engine
*
......
......@@ -4,8 +4,8 @@
{%- endmacro -%}
{% set main_categories = ["general", "images", "videos", "news"] %}
<div id="categories" {% if rtl %} class="rtl" {% endif %}>
<div class="categories-wrap">
<div id="categories" {% if rtl %} class="rtl" {% endif %}>
{% for category in categories %}
{% if category in main_categories + selected_categories %}
{{ category_widget(category) }}
......@@ -26,4 +26,12 @@
{% endfor %}
</div>
</div>
<span id="time_and_lang">
{% set flat_lang_selector = True %}
{% include 'etheme/components/languages.html' %}
{% include 'etheme/components/time-range.html' %}
</span>
</div>
</div>
\ No newline at end of file
......@@ -3,10 +3,5 @@
{% call search_bar(q, true, rtl) %}
<div id="search_params">
{% include 'etheme/components/categories.html' %}
<span id="time_and_lang">
{% set flat_lang_selector = True %}
{% include 'etheme/components/languages.html' %}
{% include 'etheme/components/time-range.html' %}
</span>
</div>
{% endcall %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment