From 420c2be348fd64355c839eaa53f61fde9649862c Mon Sep 17 00:00:00 2001 From: syeopite Date: Mon, 24 May 2021 09:39:49 -0700 Subject: [PATCH] Minor CSS cleanup --- assets/css/channel.css | 59 +++++++++++++++++-- assets/css/default.css | 26 ++++++-- .../views/channel/featured_channels.ecr | 6 +- src/invidious/views/channel/home.ecr | 8 +-- 4 files changed, 83 insertions(+), 16 deletions(-) diff --git a/assets/css/channel.css b/assets/css/channel.css index c4f031343..43227c27e 100644 --- a/assets/css/channel.css +++ b/assets/css/channel.css @@ -70,7 +70,7 @@ display: inline; } -.section-contents .channel-profile { +.category-contents .channel-profile { text-align: center; } @@ -120,13 +120,16 @@ only show up when the screen is wide enough */ .trailer-metadata { margin-left: 15px; font-size: 12px; - color: rgb(232, 230, 227); +} + + +.trailer-title { + font-size: 15px; } .trailer-metadata .read-more { line-height: 20px; text-transform: uppercase; - color: gray; font-size: 13px; } @@ -135,4 +138,52 @@ only show up when the screen is wide enough */ max-height: 150px; line-height: 20px; margin-top: 20px; -} \ No newline at end of file +} + + +@media (prefers-color-scheme: dark) { + .no-theme .trailer-metadata { + color: rgb(232, 230, 227); + } + + .no-theme .trailer-title { + color:rgb(209, 209, 209) + } + + .no-theme .trailer-metadata .read-more, .no-theme .trailer-timestamp { + color: gray; + } +} + +.no-theme .trailer-metadata { + color: rgb(232, 230, 227); +} + +.dark-theme .trailer-title { + color:rgb(209, 209, 209) +} + +.dark-theme .trailer-metadata .read-more, .no-theme .trailer-timestamp { + color: gray; +} + + + +@media (prefers-color-scheme: light) { + .no-theme .trailer-metadata, .no-theme .trailer-title { + color: black; + } + + .no-theme .trailer-metadata .read-more, .no-theme .trailer-timestamp { + color: rgb(127, 127, 127); + } +} + +.light-theme .trailer-metadata, .light-theme .trailer-title { + color: black; +} + + +.light-theme .trailer-metadata .read-more, .no-theme .trailer-timestamp { + color: rgb(127, 127, 127); +} diff --git a/assets/css/default.css b/assets/css/default.css index 51edba787..e3bf092e1 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -606,8 +606,8 @@ hr { margin-top: 1em; } -.category .heading > p { - display: inline-block; +.category-heading { + margin-bottom: 7px; } /* Split into .badge and #.featured */ @@ -621,7 +621,23 @@ hr { display: inline; } - /* Temp */ -.category-description { +@media (prefers-color-scheme: dark) { + .no-theme .category-description { + color: #A8A095; + } +} + +.dark-theme .category-description { color: #A8A095; -} \ No newline at end of file +} + +@media (prefers-color-scheme: light) { + .no-theme .category-description { + color: #000000; + } +} + +.light-theme .category-description { + color: #000000; +} + diff --git a/src/invidious/views/channel/featured_channels.ecr b/src/invidious/views/channel/featured_channels.ecr index bddac5dfc..8c0c145f0 100644 --- a/src/invidious/views/channel/featured_channels.ecr +++ b/src/invidious/views/channel/featured_channels.ecr @@ -11,8 +11,8 @@ <% if !featured_channel_categories.empty? %> <% featured_channel_categories.each do | category | %>
-
- +
+ <% if category.url %> @@ -24,7 +24,7 @@ <% contents = category.contents%> -