aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-07-08 16:27:08 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-07-08 18:37:36 -0700
commitf4024573dcbd4a19e7138814bbc54ac0a653f3d3 (patch)
tree5a308fc0bafb66ca3434eb23984b91640506a03c /youtube
parent26620cbac85f1fa5057e54fa8d91c35d907c0e0f (diff)
downloadyt-local-f4024573dcbd4a19e7138814bbc54ac0a653f3d3.tar.lz
yt-local-f4024573dcbd4a19e7138814bbc54ac0a653f3d3.tar.xz
yt-local-f4024573dcbd4a19e7138814bbc54ac0a653f3d3.zip
add checkbox to medium items
Diffstat (limited to 'youtube')
-rw-r--r--youtube/common.py77
-rw-r--r--youtube/shared.css9
2 files changed, 51 insertions, 35 deletions
diff --git a/youtube/common.py b/youtube/common.py
index f0d6694..d3e3c0d 100644
--- a/youtube/common.py
+++ b/youtube/common.py
@@ -51,32 +51,37 @@ page_button_template = Template('''<a class="page-button" href="$href">$page</a>
current_page_button_template = Template('''<div class="current-page-button">$page</a>''')
medium_playlist_item_template = Template('''
- <div class="medium-item">
- <a class="playlist-thumbnail-box" href="$url" title="$title">
- <img class="playlist-thumbnail-img" src="$thumbnail">
- <div class="playlist-thumbnail-info">
- <span>$size</span>
- </div>
- </a>
-
- <a class="title" href="$url" title="$title">$title</a>
-
- <div class="stats">$stats</div>
+ <div class="medium-item-box">
+ <div class="medium-item">
+ <a class="playlist-thumbnail-box" href="$url" title="$title">
+ <img class="playlist-thumbnail-img" src="$thumbnail">
+ <div class="playlist-thumbnail-info">
+ <span>$size</span>
+ </div>
+ </a>
+
+ <a class="title" href="$url" title="$title">$title</a>
+
+ <div class="stats">$stats</div>
+ </div>
</div>
''')
medium_video_item_template = Template('''
- <div class="medium-item">
- <a class="video-thumbnail-box" href="$url" title="$title">
- <img class="video-thumbnail-img" src="$thumbnail">
- <span class="video-duration">$duration</span>
- </a>
-
- <a class="title" href="$url">$title</a>
-
- <div class="stats">$stats</div>
-
- <span class="description">$description</span>
- <span class="badges">$badges</span>
+ <div class="medium-item-box">
+ <div class="medium-item">
+ <a class="video-thumbnail-box" href="$url" title="$title">
+ <img class="video-thumbnail-img" src="$thumbnail">
+ <span class="video-duration">$duration</span>
+ </a>
+
+ <a class="title" href="$url">$title</a>
+
+ <div class="stats">$stats</div>
+
+ <span class="description">$description</span>
+ <span class="badges">$badges</span>
+ </div>
+ <input class="item-checkbox" type="checkbox" name="video_info_list" value="$video_info" form="playlist-add">
</div>
''')
@@ -114,18 +119,20 @@ small_playlist_item_template = Template('''
''')
medium_channel_item_template = Template('''
- <div class="medium-item">
- <a class="video-thumbnail-box" href="$url" title="$title">
- <img class="video-thumbnail-img" src="$thumbnail">
- <span class="video-duration">$duration</span>
- </a>
-
- <a class="title" href="$url">$title</a>
-
- <span>$subscriber_count</span>
- <span>$size</span>
-
- <span class="description">$description</span>
+ <div class="medium-item-box">
+ <div class="medium-item">
+ <a class="video-thumbnail-box" href="$url" title="$title">
+ <img class="video-thumbnail-img" src="$thumbnail">
+ <span class="video-duration">$duration</span>
+ </a>
+
+ <a class="title" href="$url">$title</a>
+
+ <span>$subscriber_count</span>
+ <span>$size</span>
+
+ <span class="description">$description</span>
+ </div>
</div>
''')
diff --git a/youtube/shared.css b/youtube/shared.css
index 340e164..12c1bb6 100644
--- a/youtube/shared.css
+++ b/youtube/shared.css
@@ -169,6 +169,11 @@ address{
grid-row: 5;
}
+.medium-item-box{
+
+ display:grid;
+ grid-template-columns: 1fr 0fr;
+}
.medium-item{
background-color:#bcbcbc;
text-decoration:none;
@@ -291,6 +296,8 @@ address{
/* ---Thumbnails for videos---- */
.video-thumbnail-box{
+ max-height:100%;
+
grid-column:1;
grid-row:1 / span 6;
@@ -313,6 +320,8 @@ address{
/* ---Thumbnails for playlists---- */
.playlist-thumbnail-box{
+ max-height:100%;
+
grid-column:1;
grid-row:1 / span 6;