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