mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[mod] Move static preference URLs back to General in Preferences and apply CSS
This commit is contained in:
parent
3dea7e609b
commit
b3651b72ac
5 changed files with 40 additions and 25 deletions
|
@ -94,6 +94,7 @@
|
||||||
--color-toolkit-kbd-background: #000;
|
--color-toolkit-kbd-background: #000;
|
||||||
--color-toolkit-dialog-border: #ddd;
|
--color-toolkit-dialog-border: #ddd;
|
||||||
--color-toolkit-dialog-background: #fff;
|
--color-toolkit-dialog-background: #fff;
|
||||||
|
--color-toolkit-card-background: #f4f4f4;
|
||||||
--color-toolkit-tabs-label-border: #fff;
|
--color-toolkit-tabs-label-border: #fff;
|
||||||
--color-toolkit-tabs-section-border: #ddd;
|
--color-toolkit-tabs-section-border: #ddd;
|
||||||
--color-toolkit-select-background: #e1e1e1;
|
--color-toolkit-select-background: #e1e1e1;
|
||||||
|
@ -206,6 +207,7 @@
|
||||||
--color-toolkit-kbd-background: #fff;
|
--color-toolkit-kbd-background: #fff;
|
||||||
--color-toolkit-dialog-border: #555;
|
--color-toolkit-dialog-border: #555;
|
||||||
--color-toolkit-dialog-background: #1e1e22;
|
--color-toolkit-dialog-background: #1e1e22;
|
||||||
|
--color-toolkit-card-background: #17181a;
|
||||||
--color-toolkit-tabs-label-border: #222;
|
--color-toolkit-tabs-label-border: #222;
|
||||||
--color-toolkit-tabs-section-border: #555;
|
--color-toolkit-tabs-section-border: #555;
|
||||||
--color-toolkit-select-background: #313338;
|
--color-toolkit-select-background: #313338;
|
||||||
|
|
|
@ -190,6 +190,16 @@ table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.saved_prefs_url_card {
|
||||||
|
background-color: var(--color-toolkit-card-background);
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 10px;
|
||||||
|
|
||||||
|
h4:nth-of-type(1) {
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: @tablet) {
|
@media screen and (max-width: @tablet) {
|
||||||
|
|
|
@ -181,6 +181,7 @@
|
||||||
{%- include 'simple/preferences/doi_resolver.html' -%}
|
{%- include 'simple/preferences/doi_resolver.html' -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- include 'simple/preferences/tokens.html' -%}
|
{%- include 'simple/preferences/tokens.html' -%}
|
||||||
|
{%- include 'simple/preferences/url_card.html' -%}
|
||||||
{{- tab_footer() -}}
|
{{- tab_footer() -}}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,28 +18,4 @@
|
||||||
</table>
|
</table>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{% include 'simple/messages/no_cookies.html' %}
|
{% include 'simple/messages/no_cookies.html' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<h4>
|
|
||||||
{{- _('Search URL of the currently saved preferences') -}}:{{- '' -}}
|
|
||||||
</h4>{{- '' -}}
|
|
||||||
<div class="selectable_url">{{- '' -}}
|
|
||||||
<pre>
|
|
||||||
{{- url_for('index', _external=True) -}}?preferences={{- preferences_url_params|e -}}
|
|
||||||
{%- raw -%}&q=%s{%- endraw -%}
|
|
||||||
</pre>{{- '' -}}
|
|
||||||
</div>{{- '' -}}
|
|
||||||
<p class="small_font">
|
|
||||||
{{- _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') -}}
|
|
||||||
</p>
|
|
||||||
<h4>
|
|
||||||
{{- _('URL to restore your preferences in another browser') -}}:{{- '' -}}
|
|
||||||
</h4>{{- '' -}}
|
|
||||||
<div class="selectable_url">{{- '' -}}
|
|
||||||
<pre>
|
|
||||||
{{- url_for('preferences', _external=True) -}}?preferences={{- preferences_url_params|e -}}
|
|
||||||
&save=1{{- '' -}}
|
|
||||||
</pre>{{- '' -}}
|
|
||||||
</div>{{- '' -}}
|
|
||||||
<p class="small_font">
|
|
||||||
{{- _('Specifying custom settings in the preferences URL can be used to sync preferences across devices.') -}}
|
|
||||||
</p>
|
|
26
searx/templates/simple/preferences/url_card.html
Normal file
26
searx/templates/simple/preferences/url_card.html
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<div class="saved_prefs_url_card">
|
||||||
|
<h4>
|
||||||
|
{{- _('Search URL of the currently saved preferences') -}}:{{- '' -}}
|
||||||
|
</h4>{{- '' -}}
|
||||||
|
<div class="selectable_url">{{- '' -}}
|
||||||
|
<pre>
|
||||||
|
{{- url_for('index', _external=True) -}}?preferences={{- preferences_url_params|e -}}
|
||||||
|
{%- raw -%}&q=%s{%- endraw -%}
|
||||||
|
</pre>{{- '' -}}
|
||||||
|
</div>{{- '' -}}
|
||||||
|
<p class="small_font">
|
||||||
|
{{- _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') -}}
|
||||||
|
</p>
|
||||||
|
<h4>
|
||||||
|
{{- _('URL to restore your preferences in another browser') -}}:{{- '' -}}
|
||||||
|
</h4>{{- '' -}}
|
||||||
|
<div class="selectable_url">{{- '' -}}
|
||||||
|
<pre>
|
||||||
|
{{- url_for('preferences', _external=True) -}}?preferences={{- preferences_url_params|e -}}
|
||||||
|
&save=1{{- '' -}}
|
||||||
|
</pre>{{- '' -}}
|
||||||
|
</div>{{- '' -}}
|
||||||
|
<p class="small_font">
|
||||||
|
{{- _('Specifying custom settings in the preferences URL can be used to sync preferences across devices.') -}}
|
||||||
|
</p>
|
||||||
|
</div>
|
Loading…
Add table
Reference in a new issue