From f4024573dcbd4a19e7138814bbc54ac0a653f3d3 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 8 Jul 2018 16:27:08 -0700 Subject: add checkbox to medium items --- youtube/common.py | 77 +++++++++++++++++++++++++++++------------------------- youtube/shared.css | 9 +++++++ 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('''$page current_page_button_template = Template('''
$page''') medium_playlist_item_template = Template(''' -
- - -
- $size -
-
- - $title - -
$stats
+
+
+ + +
+ $size +
+
+ + $title + +
$stats
+
''') medium_video_item_template = Template(''' -
- - - $duration - - - $title - -
$stats
- - $description - $badges +
+
+ + + $duration + + + $title + +
$stats
+ + $description + $badges +
+
''') @@ -114,18 +119,20 @@ small_playlist_item_template = Template(''' ''') medium_channel_item_template = Template(''' -
- - - $duration - - - $title - - $subscriber_count - $size - - $description +
+
+ + + $duration + + + $title + + $subscriber_count + $size + + $description +
''') 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; -- cgit v1.2.3