From 33bba9762c7f96a754351f3422f74364c5bdecac Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 10 Aug 2019 17:05:14 -0700 Subject: Convert subscription manager to flask framework --- youtube/templates/subscription_manager.html | 141 ++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 youtube/templates/subscription_manager.html (limited to 'youtube/templates/subscription_manager.html') diff --git a/youtube/templates/subscription_manager.html b/youtube/templates/subscription_manager.html new file mode 100644 index 0000000..838f4af --- /dev/null +++ b/youtube/templates/subscription_manager.html @@ -0,0 +1,141 @@ +{% set page_title = 'Subscription Manager' %} +{% extends "base.html" %} +{% block style %} + .import-export{ + display: flex; + flex-direction: row; + } + .subscriptions-import-form{ + background-color: #dadada; + display: flex; + flex-direction: column; + align-items: flex-start; + max-width: 300px; + padding:10px; + } + .subscriptions-import-form h2{ + font-size: 20px; + margin-bottom: 10px; + } + + .import-submit-button{ + margin-top:15px; + align-self: flex-end; + } + + + .subscriptions-export-links{ + margin: 0px 0px 0px 20px; + background-color: #dadada; + list-style: none; + max-width: 300px; + padding:10px; + } + + .sub-list-controls{ + background-color: #dadada; + padding:10px; + } + + + .tag-group-list{ + list-style: none; + margin-left: 10px; + margin-right: 10px; + padding: 0px; + } + .tag-group{ + border-style: solid; + margin-bottom: 10px; + } + + .sub-list{ + list-style: none; + padding:10px; + column-width: 300px; + column-gap: 40px; + } + .sub-list-item{ + display:flex; + margin-bottom: 10px; + background-color: #dadada; + } + .tag-list{ + margin-left:15px; + font-weight:bold; + } + .sub-list-item-name{ + margin-left:15px; + } + .sub-list-checkbox{ + height: 1.5em; + width: 1.5em; + } + .muted{ + background-color: #888888; + } +{% endblock style %} + + +{% macro subscription_list(sub_list) %} + {% for subscription in sub_list %} +
  • + + {{ subscription['channel_name'] }} + {{ ', '.join(subscription['tags']) }} +
  • + {% endfor %} +{% endmacro %} + + + +{% block main %} +
    +
    +

    Import subscriptions

    + + +
    + + +
    + +
    + +
    + {% if group_by_tags %} + Don't group + {% else %} + Group by tags + {% endif %} + + + + + + + +
    + + + {% if group_by_tags %} + + {% else %} +
      + {{ subscription_list(sub_list) }} +
    + {% endif %} + +{% endblock main %} -- cgit v1.2.3 From da8243085b30ff44b226dd177ab8bca755e1c48b Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 12 Aug 2019 15:18:56 -0700 Subject: subscription_manager: fix bug where checkbox size decreases when there's too many tags --- youtube/templates/subscription_manager.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/templates/subscription_manager.html') diff --git a/youtube/templates/subscription_manager.html b/youtube/templates/subscription_manager.html index 838f4af..eb52eef 100644 --- a/youtube/templates/subscription_manager.html +++ b/youtube/templates/subscription_manager.html @@ -69,7 +69,7 @@ } .sub-list-checkbox{ height: 1.5em; - width: 1.5em; + min-width: 1.5em; // need min-width otherwise browser doesn't respect the width and squishes the checkbox down when there's too many tags } .muted{ background-color: #888888; -- cgit v1.2.3 From 38792081d45d99377f5d472a31133e90a0f5d631 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 12 Aug 2019 15:34:55 -0700 Subject: subscription-manager: fix items being cut off at the bottom and top of the columns in chrome --- youtube/templates/subscription_manager.html | 1 + 1 file changed, 1 insertion(+) (limited to 'youtube/templates/subscription_manager.html') diff --git a/youtube/templates/subscription_manager.html b/youtube/templates/subscription_manager.html index eb52eef..3145f54 100644 --- a/youtube/templates/subscription_manager.html +++ b/youtube/templates/subscription_manager.html @@ -58,6 +58,7 @@ .sub-list-item{ display:flex; margin-bottom: 10px; + break-inside:avoid; background-color: #dadada; } .tag-list{ -- cgit v1.2.3