forked from zaclys/searxng
[mod] simple theme: build design for details (collapsables)
* set border top and bottom on sidebar collasables * inrease peading on summary so its easier to click on mobile * remove margins and add flex wrapper to normalize elements in sidebar
This commit is contained in:
parent
b7e315563d
commit
f087959b02
|
@ -529,6 +529,10 @@ article[data-vim-selected].category-social {
|
||||||
grid-area: urls;
|
grid-area: urls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#apis .wrapper {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
#suggestions {
|
#suggestions {
|
||||||
.wrapper {
|
.wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -598,6 +602,21 @@ article[data-vim-selected].category-social {
|
||||||
color: var(--color-base-font);
|
color: var(--color-base-font);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
summary.title {
|
||||||
|
cursor: pointer;
|
||||||
|
padding-top: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-collapsable {
|
||||||
|
border-top: 1px solid var(--color-sidebar-border);
|
||||||
|
padding-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar-end-collapsable {
|
||||||
|
border-bottom: 1px solid var(--color-sidebar-border);
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#answers {
|
#answers {
|
||||||
grid-area: answers;
|
grid-area: answers;
|
||||||
background: var(--color-answer-background);
|
background: var(--color-answer-background);
|
||||||
|
@ -695,8 +714,6 @@ article[data-vim-selected].category-social {
|
||||||
}
|
}
|
||||||
|
|
||||||
#search_url {
|
#search_url {
|
||||||
margin-top: 8px;
|
|
||||||
|
|
||||||
div.selectable_url {
|
div.selectable_url {
|
||||||
pre {
|
pre {
|
||||||
width: 200em;
|
width: 200em;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<div id="apis" role="complementary" aria-labelledby="apis-title">
|
<div id="apis" role="complementary" aria-labelledby="apis-title">
|
||||||
<details>
|
<details class="sidebar-collapsable">
|
||||||
<summary class="title" id="apis-title">{{ _('Download results') }}</summary>
|
<summary class="title" id="apis-title">{{ _('Download results') }}</summary>
|
||||||
|
<div class="wrapper">
|
||||||
{%- for output_type in search_formats -%}
|
{%- for output_type in search_formats -%}
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<form method="{{ method or 'POST' }}" action="{{ url_for('search') }}">
|
<form method="{{ method or 'POST' }}" action="{{ url_for('search') }}">
|
||||||
|
@ -20,5 +21,6 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
</div>
|
||||||
</details>
|
</details>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div id="engines_msg">
|
<div id="engines_msg">
|
||||||
<details>
|
<details class="sidebar-collapsable">
|
||||||
<summary class="title" id="engines_msg-title">{{ _('Messages from the search engines') }}</summary>
|
<summary class="title" id="engines_msg-title">{{ _('Messages from the search engines') }}</summary>
|
||||||
<div class="dialog-error" role="alert">
|
<div class="dialog-error" role="alert">
|
||||||
{{ icon_big('warning') }}
|
{{ icon_big('warning') }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div id="search_url" role="complementary" aria-labelledby="search_url-title">
|
<div id="search_url" role="complementary" aria-labelledby="search_url-title">
|
||||||
<details>
|
<details class="sidebar-collapsable">
|
||||||
<summary class="title" id="search_url-title">{{ _('Search URL') }}</summary>
|
<summary class="title" id="search_url-title">{{ _('Search URL') }}</summary>
|
||||||
<div class="selectable_url">
|
<div class="selectable_url">
|
||||||
<pre>{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&language={{ current_language }}&time_range={{ time_range }}&safesearch={{ safesearch }}
|
<pre>{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&language={{ current_language }}&time_range={{ time_range }}&safesearch={{ safesearch }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div id="suggestions" role="complementary" aria-labelledby="suggestions-title">
|
<div id="suggestions" role="complementary" aria-labelledby="suggestions-title">
|
||||||
<details>
|
<details class="sidebar-collapsable">
|
||||||
<summary class="title" id="suggestions-title">{{ _('Suggestions') }}</summary>
|
<summary class="title" id="suggestions-title">{{ _('Suggestions') }}</summary>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
{%- for suggestion in suggestions -%}
|
{%- for suggestion in suggestions -%}
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
{%- if infoboxes -%}
|
{%- if infoboxes -%}
|
||||||
<div id="infoboxes">
|
<div id="infoboxes">
|
||||||
<details open>
|
<details open class="sidebar-collapsable">
|
||||||
<summary class="title">{{ _('Info') }}</summary>
|
<summary class="title">{{ _('Info') }}</summary>
|
||||||
{%- for infobox in infoboxes -%}
|
{%- for infobox in infoboxes -%}
|
||||||
{%- include 'simple/elements/infobox.html' -%}
|
{%- include 'simple/elements/infobox.html' -%}
|
||||||
|
@ -66,6 +66,7 @@
|
||||||
{%- include 'simple/elements/apis.html' -%}
|
{%- include 'simple/elements/apis.html' -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
<div id="sidebar-end-collapsable"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if corrections %}
|
{% if corrections %}
|
||||||
|
|
Loading…
Reference in New Issue