Layout: simplify CSS layout on most pages
This commit is contained in:
parent
d9517a3322
commit
400d17e613
@ -267,7 +267,10 @@ body{
|
|||||||
|
|
||||||
|
|
||||||
.page-button-row{
|
.page-button-row{
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
justify-self:center;
|
justify-self:center;
|
||||||
|
justify-content: center;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-auto-columns: 40px;
|
grid-auto-columns: 40px;
|
||||||
grid-auto-flow: column;
|
grid-auto-flow: column;
|
||||||
|
@ -3,30 +3,14 @@
|
|||||||
{% import "comments.html" as comments %}
|
{% import "comments.html" as comments %}
|
||||||
|
|
||||||
{% block style %}
|
{% block style %}
|
||||||
main{
|
|
||||||
display:grid;
|
|
||||||
grid-template-columns: 3fr 2fr;
|
|
||||||
}
|
|
||||||
#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{
|
.comments-area{
|
||||||
grid-column:2;
|
margin: auto;
|
||||||
}
|
|
||||||
.comment{
|
|
||||||
width:640px;
|
width:640px;
|
||||||
}
|
}
|
||||||
{% endblock style %}
|
{% endblock style %}
|
||||||
|
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div id="left">
|
|
||||||
<section class="comments-area">
|
<section class="comments-area">
|
||||||
{% if not comments_info['is_replies'] %}
|
{% if not comments_info['is_replies'] %}
|
||||||
<section class="video-metadata">
|
<section class="video-metadata">
|
||||||
@ -59,7 +43,6 @@
|
|||||||
<a class="page-button more-comments" href="{{ comments_info['more_comments_url'] }}">More comments</a>
|
<a class="page-button more-comments" href="{{ comments_info['more_comments_url'] }}">More comments</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
|
||||||
{% endblock main %}
|
{% endblock main %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,14 +2,10 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block style %}
|
{% block style %}
|
||||||
main{
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(0px, 3fr) 640px 40px 500px minmax(0px,2fr);
|
|
||||||
align-content: start;
|
|
||||||
}
|
|
||||||
main > div, main > form{
|
main > div, main > form{
|
||||||
|
margin: auto;
|
||||||
margin-top:20px;
|
margin-top:20px;
|
||||||
grid-column:2;
|
width: 640px;
|
||||||
}
|
}
|
||||||
{% endblock style %}
|
{% endblock style %}
|
||||||
|
|
||||||
|
@ -2,52 +2,35 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import "common_elements.html" as common_elements %}
|
{% import "common_elements.html" as common_elements %}
|
||||||
{% block style %}
|
{% block style %}
|
||||||
main{
|
main > *{
|
||||||
display:grid;
|
width: 800px;
|
||||||
grid-template-columns: 3fr 1fr;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.playlist-metadata{
|
||||||
|
display: flex;
|
||||||
#left{
|
flex-direction: row;
|
||||||
grid-column: 1;
|
justify-content: space-between;
|
||||||
grid-row: 1;
|
|
||||||
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr 800px auto;
|
|
||||||
grid-template-rows: 0fr 1fr 0fr;
|
|
||||||
}
|
}
|
||||||
.playlist-title{
|
.playlist-title{
|
||||||
grid-column:2;
|
|
||||||
}
|
}
|
||||||
#playlist-remove-button{
|
#playlist-remove-button{
|
||||||
grid-column:3;
|
|
||||||
align-self: center;
|
align-self: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
#results{
|
#results{
|
||||||
|
|
||||||
grid-row: 2;
|
|
||||||
grid-column: 2 / span 2;
|
|
||||||
|
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-auto-rows: 0fr;
|
grid-auto-rows: 0fr;
|
||||||
grid-row-gap: 10px;
|
grid-row-gap: 10px;
|
||||||
|
|
||||||
}
|
|
||||||
.page-button-row{
|
|
||||||
grid-row: 3;
|
|
||||||
grid-column: 2;
|
|
||||||
justify-self: center;
|
|
||||||
}
|
}
|
||||||
{% endblock style %}
|
{% endblock style %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div id="left">
|
<div class="playlist-metadata">
|
||||||
<h2 class="playlist-title">{{ playlist_name }}</h2>
|
<h2 class="playlist-title">{{ playlist_name }}</h2>
|
||||||
<input type="hidden" name="playlist_page" value="{{ playlist_name }}" form="playlist-edit">
|
<input type="hidden" name="playlist_page" value="{{ playlist_name }}" form="playlist-edit">
|
||||||
<button type="submit" id="playlist-remove-button" name="action" value="remove" form="playlist-edit" formaction="">Remove from playlist</button>
|
<button type="submit" id="playlist-remove-button" name="action" value="remove" form="playlist-edit" formaction="">Remove from playlist</button>
|
||||||
|
</div>
|
||||||
<div id="results">
|
<div id="results">
|
||||||
{% for video_info in videos %}
|
{% for video_info in videos %}
|
||||||
{{ common_elements.item(video_info) }}
|
{{ common_elements.item(video_info) }}
|
||||||
@ -56,5 +39,4 @@
|
|||||||
<nav class="page-button-row">
|
<nav class="page-button-row">
|
||||||
{{ common_elements.page_buttons(num_pages, '/https://www.youtube.com/playlists/' + playlist_name, parameters_dictionary) }}
|
{{ common_elements.page_buttons(num_pages, '/https://www.youtube.com/playlists/' + playlist_name, parameters_dictionary) }}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
|
||||||
{% endblock main %}
|
{% endblock main %}
|
||||||
|
@ -2,16 +2,12 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block style %}
|
{% block style %}
|
||||||
main{
|
main > * {
|
||||||
display: grid;
|
width: 640px;
|
||||||
grid-template-columns: minmax(0px, 3fr) 640px 40px 500px minmax(0px,2fr);
|
margin: auto;
|
||||||
align-content: start;
|
|
||||||
grid-row-gap: 40px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main form{
|
main form{
|
||||||
margin-top:20px;
|
margin-top:20px;
|
||||||
grid-column:2;
|
|
||||||
display:grid;
|
display:grid;
|
||||||
justify-items: start;
|
justify-items: start;
|
||||||
align-content: start;
|
align-content: start;
|
||||||
@ -26,10 +22,9 @@
|
|||||||
margin-top:20px;
|
margin-top:20px;
|
||||||
}
|
}
|
||||||
#tor-note{
|
#tor-note{
|
||||||
grid-row:2;
|
|
||||||
grid-column:2;
|
|
||||||
background-color: #dddddd;
|
background-color: #dddddd;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
margin-top: 40px;
|
||||||
}
|
}
|
||||||
{% endblock style %}
|
{% endblock style %}
|
||||||
|
|
||||||
|
@ -2,25 +2,12 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import "common_elements.html" as common_elements %}
|
{% import "common_elements.html" as common_elements %}
|
||||||
{% block style %}
|
{% block style %}
|
||||||
main{
|
main > * {
|
||||||
display:grid;
|
width: 800px;
|
||||||
grid-template-columns: 3fr 1fr;
|
margin:auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#left{
|
|
||||||
grid-column: 1;
|
|
||||||
grid-row: 1;
|
|
||||||
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr 800px;
|
|
||||||
grid-template-rows: 0fr 1fr 0fr;
|
|
||||||
}
|
|
||||||
.playlist-metadata{
|
.playlist-metadata{
|
||||||
grid-column:2;
|
|
||||||
grid-row:1;
|
|
||||||
|
|
||||||
display:grid;
|
display:grid;
|
||||||
grid-template-columns: 0fr 1fr;
|
grid-template-columns: 0fr 1fr;
|
||||||
}
|
}
|
||||||
@ -50,22 +37,8 @@
|
|||||||
min-width:0px;
|
min-width:0px;
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
}
|
}
|
||||||
.page-button-row{
|
|
||||||
grid-row: 3;
|
|
||||||
grid-column: 2;
|
|
||||||
justify-self: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#right{
|
|
||||||
grid-column: 2;
|
|
||||||
grid-row: 1;
|
|
||||||
|
|
||||||
}
|
|
||||||
#results{
|
#results{
|
||||||
|
|
||||||
grid-row: 2;
|
|
||||||
grid-column: 2;
|
|
||||||
margin-top:10px;
|
margin-top:10px;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
@ -76,7 +49,6 @@
|
|||||||
{% endblock style %}
|
{% endblock style %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div id="left">
|
|
||||||
<div class="playlist-metadata">
|
<div class="playlist-metadata">
|
||||||
<img class="playlist-thumbnail" src="{{ thumbnail }}">
|
<img class="playlist-thumbnail" src="{{ thumbnail }}">
|
||||||
<h2 class="playlist-title">{{ title }}</h2>
|
<h2 class="playlist-title">{{ title }}</h2>
|
||||||
@ -96,7 +68,6 @@
|
|||||||
<nav class="page-button-row">
|
<nav class="page-button-row">
|
||||||
{{ common_elements.page_buttons(num_pages, '/https://www.youtube.com/playlist', parameters_dictionary) }}
|
{{ common_elements.page_buttons(num_pages, '/https://www.youtube.com/playlist', parameters_dictionary) }}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
|
||||||
{% endblock main %}
|
{% endblock main %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,27 +3,18 @@
|
|||||||
{% import "comments.html" as comments %}
|
{% import "comments.html" as comments %}
|
||||||
|
|
||||||
{% block style %}
|
{% block style %}
|
||||||
main{
|
.comment-form{
|
||||||
display: grid;
|
width: 640px;
|
||||||
grid-template-columns: 3fr 2fr;
|
margin: auto;
|
||||||
}
|
justify-content:start;
|
||||||
.left{
|
|
||||||
display:grid;
|
|
||||||
grid-template-columns: 1fr 640px;
|
|
||||||
}
|
}
|
||||||
textarea{
|
textarea{
|
||||||
width: 460px;
|
width: 460px;
|
||||||
height: 85px;
|
height: 85px;
|
||||||
}
|
}
|
||||||
.comment-form{
|
|
||||||
grid-column:2;
|
|
||||||
justify-content:start;
|
|
||||||
}
|
|
||||||
{% endblock style %}
|
{% endblock style %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div class="left">
|
|
||||||
{{ comments.comment_posting_box(comment_posting_box_info) }}
|
{{ comments.comment_posting_box(comment_posting_box_info) }}
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -3,30 +3,18 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import "common_elements.html" as common_elements %}
|
{% import "common_elements.html" as common_elements %}
|
||||||
{% block style %}
|
{% block style %}
|
||||||
main{
|
main > * {
|
||||||
display:grid;
|
max-width: 800px;
|
||||||
grid-template-columns: minmax(0px, 1fr) 800px minmax(0px,2fr);
|
margin: auto;
|
||||||
max-width:100vw;
|
}
|
||||||
|
#result-info{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#number-of-results{
|
#number-of-results{
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
}
|
}
|
||||||
#result-info{
|
|
||||||
grid-row: 1;
|
|
||||||
grid-column:2;
|
|
||||||
align-self:center;
|
|
||||||
}
|
|
||||||
.page-button-row{
|
|
||||||
grid-column: 2;
|
|
||||||
justify-self: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.item-list{
|
.item-list{
|
||||||
grid-row: 2;
|
padding-left: 10px;
|
||||||
grid-column: 2;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
.badge{
|
.badge{
|
||||||
background-color:#cccccc;
|
background-color:#cccccc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user