summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-09-27 15:46:57 +0200
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-10-05 14:40:46 +0200
commitdc2c1362205ea90dae75872b316dc1d693c9a750 (patch)
tree34614638727e89a406f55aa3efaa72c808c602d0
parent47d1caed61a00a3ef83ca1c121162e4f6638a4d5 (diff)
oscar template: little style improvements
-rw-r--r--searx/static/oscar/css/oscar.css6
-rw-r--r--searx/static/oscar/js/scripts.js4
-rw-r--r--searx/templates/oscar/results.html2
3 files changed, 11 insertions, 1 deletions
diff --git a/searx/static/oscar/css/oscar.css b/searx/static/oscar/css/oscar.css
index b0c0c7344..7bd4478bf 100644
--- a/searx/static/oscar/css/oscar.css
+++ b/searx/static/oscar/css/oscar.css
@@ -28,6 +28,7 @@ input[type=checkbox]:not(:checked) ~ .label_hide_if_not_checked {
.search_categories {
margin:10px 0;
+ text-transform: capitalize;
}
.result-default {
@@ -62,4 +63,9 @@ input[type=checkbox]:not(:checked) ~ .label_hide_if_not_checked {
#pagination {
margin-top: 30px;
+ padding-bottom: 50px;
+}
+
+.cursor-text {
+ cursor: text !important;
}
diff --git a/searx/static/oscar/js/scripts.js b/searx/static/oscar/js/scripts.js
index 1254b1581..296cddd94 100644
--- a/searx/static/oscar/js/scripts.js
+++ b/searx/static/oscar/js/scripts.js
@@ -38,4 +38,8 @@ $(document).ready(function(){
$(this).html(html);
}
});
+
+ $(".select-all-on-click").click(function () {
+ $(this).select();
+ });
});
diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html
index f4364ed48..91070777b 100644
--- a/searx/templates/oscar/results.html
+++ b/searx/templates/oscar/results.html
@@ -68,7 +68,7 @@
<form role="form">
<div class="form-group">
<label for="search_url">{{ _('Search URL') }}</label>
- <input type="url" class="form-control" name="search_url" value="{{ base_url }}?q={{ q|urlencode }}&pageno={{ pageno }}{% if selected_categories %}&category_{{ selected_categories|join("&category_") }}{% endif %}">
+ <input type="url" class="form-control select-all-on-click cursor-text" name="search_url" value="{{ base_url }}?q={{ q|urlencode }}&pageno={{ pageno }}{% if selected_categories %}&category_{{ selected_categories|join("&category_") }}{% endif %}" readonly>
</div>
</form>