From a6ef13bb8ae6924a2f8a7301f1a38f36c19b4417 Mon Sep 17 00:00:00 2001 From: girst Date: Sun, 3 Apr 2022 17:46:36 +0200 Subject: [PATCH] move inline styles to blueprint sheet --- app/browse/static/style.css | 26 ++++++++++++++++++++++++++ app/browse/templates/channel.html.j2 | 18 ++++++++++++------ 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/app/browse/static/style.css b/app/browse/static/style.css index 376eef0..0650871 100644 --- a/app/browse/static/style.css +++ b/app/browse/static/style.css @@ -1,3 +1,4 @@ +/* search */ #search { width:60em; max-width:100%; @@ -34,3 +35,28 @@ #search #filters select { flex: 1; } + +/* channel */ +#subpages { + display: flex; + margin: 1em; +} +#subpages .subpages { + flex: 1; +} +#subpages .subpages form { + display: inline; +} +#subpages .subpages .search-channel { + background:0; + color:#eee; + border:0; +} +#subpages .subpages .search-channel:hover, +#subpages .subpages .search-channel:active { + outline: 1px solid grey; +} +#subpages .sort-order { + flex: 1; + text-align: right; +} diff --git a/app/browse/templates/channel.html.j2 b/app/browse/templates/channel.html.j2 index 25e0c5b..11531dd 100644 --- a/app/browse/templates/channel.html.j2 +++ b/app/browse/templates/channel.html.j2 @@ -1,5 +1,11 @@ {% extends "base.html.j2" %} {% import 'macros.imp.j2' as macros %} + +{% block favicon %} +{{ super() }} + +{% endblock %} + {% block title %}{{ title | e }}{% endblock %} {% block content %} @@ -9,17 +15,17 @@

{{ title | e }} {{ macros.emoji_button("subscribe", channel_id, is_subscribed) if channel_id }}

About

{{ channel_desc }}

-
-
+
+
videos | playlists | -
- + +
{% if subpage != "search" %} -
+
{% if subpage == "videos" %} newest first | oldest first | @@ -28,7 +34,7 @@ last created | last modified {% endif %} - +
{% endif %}
-- 2.39.3