From 7a765dc664d20f966e4e52abac1f5372045e166c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 14 Dec 2020 23:44:29 -0500 Subject: Change general design theme --- youtube/templates/search.html | 61 +++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 37 deletions(-) (limited to 'youtube/templates/search.html') diff --git a/youtube/templates/search.html b/youtube/templates/search.html index 8b803e7..e742099 100644 --- a/youtube/templates/search.html +++ b/youtube/templates/search.html @@ -3,44 +3,31 @@ {% extends "base.html" %} {% import "common_elements.html" as common_elements %} {% block style %} - main > * { - max-width: 800px; - margin: auto; - } - #result-info{ - margin-top: 10px; - margin-bottom: 10px; - padding-left: 10px; - padding-right: 10px; - } - #number-of-results{ - font-weight:bold; - } - .item-list{ - padding-left: 10px; - padding-right: 10px; - } - .badge{ - background-color:#cccccc; - } + {% endblock style %} {% block main %} -
-
Approximately {{ '{:,}'.format(estimated_results) }} results ({{ '{:,}'.format(estimated_pages) }} pages)
-{% if corrections['type'] == 'showing_results_for' %} -
Showing results for {{ common_elements.text_runs(corrections['corrected_query_text']) }}
-
Search instead for {{ corrections['original_query_text'] }}
-{% elif corrections['type'] == 'did_you_mean' %} -
Did you mean {{ common_elements.text_runs(corrections['corrected_query_text']) }}
-{% endif %} -
-
- {% for info in results %} - {{ common_elements.item(info, description=true) }} - {% endfor %} -
- +
+
Approximately {{ '{:,}'.format(estimated_results) }} results ({{ '{:,}'.format(estimated_pages) }} pages)
+ {% if corrections['type'] == 'showing_results_for' %} +
Showing results for {{ common_elements.text_runs(corrections['corrected_query_text']) }}
+
Search instead for {{ corrections['original_query_text'] }}
+ {% elif corrections['type'] == 'did_you_mean' %} +
Did you mean {{ common_elements.text_runs(corrections['corrected_query_text']) }}
+ {% endif %} +
+ + +
+ {% for info in results %} + {{ common_elements.item(info, description=true) }} + {% endfor %} +
+
+ + {% endblock main %} -- cgit v1.2.3