From 400d17e61314e09efc89fbfb770b045550cf6e09 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 24 Aug 2019 11:35:58 -0700 Subject: Layout: simplify CSS layout on most pages --- youtube/templates/comments_page.html | 83 ++++++++++++++---------------------- 1 file changed, 33 insertions(+), 50 deletions(-) (limited to 'youtube/templates/comments_page.html') diff --git a/youtube/templates/comments_page.html b/youtube/templates/comments_page.html index 68c8537..047404a 100644 --- a/youtube/templates/comments_page.html +++ b/youtube/templates/comments_page.html @@ -3,63 +3,46 @@ {% import "comments.html" as comments %} {% block style %} - main{ - display:grid; - grid-template-columns: 3fr 2fr; + .comments-area{ + margin: auto; + width:640px; } - #left{ - background-color:#bcbcbc; - - display: grid; - grid-column: 1; - grid-row: 1; - grid-template-columns: 1fr 640px; - grid-template-rows: 0fr 0fr 0fr; - } - .comments-area{ - grid-column:2; - } - .comment{ - width:640px; - } {% endblock style %} {% block main %} -
-
- {% if not comments_info['is_replies'] %} - - {% endif %} - - {{ comments.comment_posting_box(comment_posting_box_info) }} - - {% if not comments_info['is_replies'] %} - - {% endif %} - -
- {% for comment in comments_info['comments'] %} - {{ comments.render_comment(comment, comments_info['include_avatars']) }} +
+ {% if not comments_info['is_replies'] %} + + {% endif %} + + {{ comments.comment_posting_box(comment_posting_box_info) }} + + {% if not comments_info['is_replies'] %} + - {% if 'more_comments_url' is in comments_info %} - More comments - {% endif %} -
-
+ {% endif %} + +
+ {% for comment in comments_info['comments'] %} + {{ comments.render_comment(comment, comments_info['include_avatars']) }} + {% endfor %} +
+ {% if 'more_comments_url' is in comments_info %} + More comments + {% endif %} +
{% endblock main %} -- cgit v1.2.3