commit: dc2c1362205ea90dae75872b316dc1d693c9a750
parent 47d1caed61a00a3ef83ca1c121162e4f6638a4d5
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date: Sat, 27 Sep 2014 15:46:57 +0200
oscar template: little style improvements
Diffstat:
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git 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
@@ -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
@@ -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>