From 525ceb19f204b5f31607c001a9d70b618c4060e1 Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 6 Apr 2023 20:16:24 +0000 Subject: [PATCH] add colored tabs :3 --- html/channel.ejs | 65 +++++++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/html/channel.ejs b/html/channel.ejs index 07d3afd..5bcda53 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -216,8 +216,7 @@ padding-bottom: 32px; - - + @@ -324,16 +323,21 @@ text-transform:uppercase; max-inline-size: 164ch; justify-content: space-around; } + +.shr { +color:#ea9999 !important; +} + .s{ width: 23em; margin: auto; - margin-right: auto; - margin-left: auto; margin-left: -3.5em; +display: flex; +flex-direction: column-reverse; margin-right: -79px; } .shorts-title{ - font-family:PokeTube flex,sans-serif;font-weight: 1000;font-stretch: ultra-expanded;position: absolute;margin-top: -43px;background: #0009;white-space: -moz-pre-wrap !important;white-space: -pre-wrap;white-space: -o-pre-wrap;white-space: pre-wrap;word-wrap: break-word;white-space: -webkit-pre-wrap;word-break: break-all;white-space: normal;width: 12.87em;margin-left: 145px; + font-family:PokeTube flex,sans-serif;font-weight: 1000;font-stretch: ultra-expanded;position: absolute;margin-bottom: 0.3em;background: #0009;white-space: -moz-pre-wrap !important;white-space: -pre-wrap;white-space: -o-pre-wrap;white-space: pre-wrap;word-wrap: break-word;white-space: -webkit-pre-wrap;word-break: break-all;white-space: normal;width: 12.87em;margin-left: 145px; } .channel-page .video-grid { background-color: black; @@ -563,14 +567,14 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=<
<% if (!tab) { %> - Videos + Videos <% if (Array.isArray(shorts.videos)) { %> <% if (shorts.videos[0]) { %> <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> - Shorts + Shorts <% } %> <% } %> @@ -581,7 +585,7 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %> - Live + Live <% } %> <% } %> @@ -591,21 +595,21 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (c.comments.length != "0") { %> - Community + Community <% } %> <% } %> - About + About <% } %> <% if (tab === "about") { %> - Videos + Videos <% if (Array.isArray(shorts.videos)) { %> <% if (shorts.videos[0]) { %> <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> - Shorts + Shorts <% } %> <% } %> @@ -616,7 +620,7 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %> - Live + Live <% } %> <% } %> <% } %> @@ -625,21 +629,21 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (c.comments.length != "0") { %> - Community + Community <% } %> <% } %> - About + About <% } %> <% if (tab === "community") { %> - Videos + Videos <% if (Array.isArray(shorts.videos)) { %> <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> - Shorts + Shorts <% } %> <% } %> @@ -648,30 +652,29 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %> - Live + Live <% } %> <% } %> <% } %> - Community + Community - About + About <% } %> <% if (tab === "shorts") { %> - Videos + Videos <% if (Array.isArray(shorts.videos)) { %> - Shorts + Shorts <% } %> <% if (Array.isArray(stream.videos)) { %> <% if (stream.videos[0]) { %> - <% if (turntomins(stream.videos[0].lengthSeconds) != "aN:aN" ) { %> - Live + Live <% } %> <% } %> @@ -681,38 +684,38 @@ white-space: nowrap;text-decoration: none;" href="/feeds/videos.xml?channel_id=< <% if (c.comments.length != "0") { %> - Community + Community <% } %> <% } %> - About + About <% } %> <% if (tab === "live") { %> - Videos + Videos <% if (Array.isArray(shorts.videos)) { %> <% if (turntomins(shorts.videos[0].lengthSeconds) != "aN:aN" ) { %> - Shorts + Shorts <% } %> <% } %> <% if (Array.isArray(stream.videos)) { %> - Live + Live <% } %> <% if (Array.isArray(c.comments)) { %> <% if (c.comments.length != "0") { %> - Community + Community <% } %> <% } %> - About + About <% } %>