diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-08-24 11:35:58 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-08-24 11:35:58 -0700 |
commit | 400d17e61314e09efc89fbfb770b045550cf6e09 (patch) | |
tree | 29bd6b13cf47b780b04e2b241769719fcb9265c9 /youtube/templates/comments_page.html | |
parent | d9517a33223d44f2c52f03a48cf79822ecd433a4 (diff) | |
download | yt-local-400d17e61314e09efc89fbfb770b045550cf6e09.tar.lz yt-local-400d17e61314e09efc89fbfb770b045550cf6e09.tar.xz yt-local-400d17e61314e09efc89fbfb770b045550cf6e09.zip |
Layout: simplify CSS layout on most pages
Diffstat (limited to 'youtube/templates/comments_page.html')
-rw-r--r-- | youtube/templates/comments_page.html | 83 |
1 files changed, 33 insertions, 50 deletions
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 %} - <div id="left"> - <section class="comments-area"> - {% if not comments_info['is_replies'] %} - <section class="video-metadata"> - <a class="video-metadata-thumbnail-box" href="{{ comments_info['video_url'] }}" title="{{ comments_info['video_title'] }}"> - <img class="video-metadata-thumbnail-img" src="{{ comments_info['video_thumbnail'] }}" height="180px" width="320px"> - </a> - <a class="title" href="{{ comments_info['video_url'] }}" title="{{ comments_info['video_title'] }}">{{ comments_info['video_title'] }}</a> - - <h2>Comments page {{ comments_info['page_number'] }}</h2> - <span>Sorted by {{ comments_info['sort_text'] }}</span> - </section> - {% endif %} - - {{ comments.comment_posting_box(comment_posting_box_info) }} - - {% if not comments_info['is_replies'] %} - <div class="comment-links"> - {% for link_text, link_url in comments_info['comment_links'] %} - <a class="sort-button" href="{{ link_url }}">{{ link_text }}</a> - {% endfor %} - </div> - {% endif %} - - <div class="comments"> - {% for comment in comments_info['comments'] %} - {{ comments.render_comment(comment, comments_info['include_avatars']) }} + <section class="comments-area"> + {% if not comments_info['is_replies'] %} + <section class="video-metadata"> + <a class="video-metadata-thumbnail-box" href="{{ comments_info['video_url'] }}" title="{{ comments_info['video_title'] }}"> + <img class="video-metadata-thumbnail-img" src="{{ comments_info['video_thumbnail'] }}" height="180px" width="320px"> + </a> + <a class="title" href="{{ comments_info['video_url'] }}" title="{{ comments_info['video_title'] }}">{{ comments_info['video_title'] }}</a> + + <h2>Comments page {{ comments_info['page_number'] }}</h2> + <span>Sorted by {{ comments_info['sort_text'] }}</span> + </section> + {% endif %} + + {{ comments.comment_posting_box(comment_posting_box_info) }} + + {% if not comments_info['is_replies'] %} + <div class="comment-links"> + {% for link_text, link_url in comments_info['comment_links'] %} + <a class="sort-button" href="{{ link_url }}">{{ link_text }}</a> {% endfor %} </div> - {% if 'more_comments_url' is in comments_info %} - <a class="page-button more-comments" href="{{ comments_info['more_comments_url'] }}">More comments</a> - {% endif %} - </section> - </div> + {% endif %} + + <div class="comments"> + {% for comment in comments_info['comments'] %} + {{ comments.render_comment(comment, comments_info['include_avatars']) }} + {% endfor %} + </div> + {% if 'more_comments_url' is in comments_info %} + <a class="page-button more-comments" href="{{ comments_info['more_comments_url'] }}">More comments</a> + {% endif %} + </section> {% endblock main %} |