Merge pull request 'Minor UI Improvements' (#82) from Korbs/poke:main into main

Reviewed-on: https://codeberg.org/ashley/poke/pulls/82
This commit is contained in:
Ashley //// 2024-05-02 01:53:27 +00:00
commit 3e5ba0da0b
4 changed files with 116 additions and 106 deletions

View file

@ -783,6 +783,23 @@ a.new-button:hover {
display: none; display: none;
} }
.pwp {
display: flex;
align-items: center;
justify-content: end;
gap: 6px;
padding: 16px 0px;
}
.pwp a, .fnt {
background: #452f37;
border-radius: 6px;
display: flex;
align-items: center;
gap: 12px;
padding: 6px 12px;
color: white;
}
.hj:checked ~ .flying_cmnt { .hj:checked ~ .flying_cmnt {
display: grid; display: grid;
position: absolute; position: absolute;
@ -814,7 +831,7 @@ marquee {
} }
#video:target { #video:target {
object-fit:none; object-fit:contain;
} }
#secret-theme:target{ #secret-theme:target{

View file

@ -1035,3 +1035,10 @@ a.icon-button > img {
width: 500px; width: 500px;
padding: 8px; padding: 8px;
} }
.search-options {
display: flex;
justify-content: space-evenly;
width: 100%;
max-width: 855px;
margin: auto;
}

View file

@ -1001,96 +1001,72 @@ Privacy
<div id="<%=sha384(inv_vid.videoId)%>" class="video-player-container"> <div id="<%=sha384(inv_vid.videoId)%>" class="video-player-container">
<video class="player video-ambient-container" id="video" style="border-radius: 16px; box-sizing: border-box; min-width: 100%; display: block;" autoplay controls>
<video class="player video-ambient-container" id="video" style="border-radius: 16px;
box-sizing: border-box;
min-width: 100%;
display: block; !important;" autoplay controls>
<% if (isvidious) { %> <% if (isvidious) { %>
<% if (!qua) { %> <% if (!qua) { %>
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=22&local=true" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="hd720" selected="true"> <source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=22&local=true" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="hd720" selected="true">
<% } %> <% } %>
<% if (qua === "medium") { %> <% if (qua === "medium") { %>
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=18&local=true" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="sd360" selected="true"> <source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=18&local=true" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="sd360" selected="true">
<% } %>
<% } %>
<% } %>
<% } %>
<% if (!isSchoolProxy) { %> <% if (!isSchoolProxy) { %>
<% if (!isvidious) { %> <% if (!isvidious) { %>
<% if (!qua) { %> <% if (!qua) { %>
<source src="https://tube.kuylar.dev/proxy/media/<%=inv_vid.videoId%>/22" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="hd720" selected="true"> <source src="https://tube.kuylar.dev/proxy/media/<%=inv_vid.videoId%>/22" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="hd720" selected="true">
<% } %> <% } %>
<% if (qua === "medium") { %> <% if (qua === "medium") { %>
<source src="https://tube.kuylar.dev/proxy/media/<%=inv_vid.videoId%>/18" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="sd360" selected="true"> <source src="https://tube.kuylar.dev/proxy/media/<%=inv_vid.videoId%>/18" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="sd360" selected="true">
<% } %> <% } %>
<% } %> <% } %>
<% } %> <% } %>
<% if (isSchoolProxy) { %> <% if (isSchoolProxy) { %>
<% if (!qua) { %> <% if (!qua) { %>
<source src="https://tube-proxy.ashley0143.xyz/proxy/media/<%=inv_vid.videoId%>/22" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="hd720" selected="true"> <source src="https://tube-proxy.ashley0143.xyz/proxy/media/<%=inv_vid.videoId%>/22" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="hd720" selected="true">
<% } %> <% } %>
<% if (qua === "medium") { %> <% if (qua === "medium") { %>
<source src="https://tube-proxy.ashley0143.xyz/proxy/media/<%=inv_vid.videoId%>/18" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="sd360" selected="true"> <source src="https://tube-proxy.ashley0143.xyz/proxy/media/<%=inv_vid.videoId%>/18" type="video/mp4; codecs=&quot;avc1.64001F, mp4a.40.2&quot;" label="sd360" selected="true">
<% } %> <% } %>
<% } %> <% } %>
<% if (Array.isArray( inv_vid.captions)) { %> <% if (Array.isArray( inv_vid.captions)) { %>
<% inv_vid.captions?.forEach(x => { %> <% inv_vid.captions?.forEach(x => { %>
<track src="/api/subtitles?v=<%=inv_vid.videoId%>&h=<%= x.label %>" label="<%= x.label.replace("United States","Simplified - USA") %>" kind="subtitles"> <track src="/api/subtitles?v=<%=inv_vid.videoId%>&h=<%= x.label %>" label="<%= x.label.replace("United States","Simplified - USA") %>" kind="subtitles">
<% }) %> <% }) %>
<% } %> <% } %>
<% if (!Array.isArray( inv_vid.captions)) { %> <% if (!Array.isArray( inv_vid.captions)) { %>
<track src="/api/subtitles?v=<%=inv_vid.videoId%>&h=<%= %>" label="<%= video.Subtitles.Subtitle.language.replace("United States","Simplified - USA") %>" kind="subtitles"> <track src="/api/subtitles?v=<%=inv_vid.videoId%>&h=<%= %>" label="<%= video.Subtitles.Subtitle.language.replace("United States","Simplified - USA") %>" kind="subtitles">
<% } %> <% } %>
</video> </video>
<% if (!a) { %>
<% if (!a) { %>
<canvas width="12" height="6" class="ambient-canvas" id="ambient-canvas-1"></canvas> <canvas width="12" height="6" class="ambient-canvas" id="ambient-canvas-1"></canvas>
<canvas width="12" height="6" class="ambient-canvas" id="ambient-canvas-2"></canvas> <canvas width="12" height="6" class="ambient-canvas" id="ambient-canvas-2"></canvas>
<% } %> <% } %>
<div class="pwp" style="display: flex;justify-content: center;align-items: center;flex-direction: row; column-gap: 3px;margin-top: 2px;max-height: 16px;" align="center"> <div class="pwp">
<% if (!qua) { %> <% if (!qua) { %>
<a><i style="display: block;" title="High Definition [Current]" class="fa-solid fa-high-definition"></i> High Definition </a>
<i style="display: block;" title="High Definition [Current]" class="fa-solid fa-high-definition"></i> <a href="/watch?v=<%=inv_vid.videoId%>&quality=medium"><i style="display: block;" title="Standard Definition" class="fa-light fa-standard-definition"></i></a> <a href="/watch?v=<%=inv_vid.videoId%>&quality=medium"><i style="display: block;" title="Standard Definition" class="fa-light fa-standard-definition"></i> Standard Definition</a>
<% } %> <% } %>
<% if (qua) { %> <% if (qua) { %>
<a href="/watch?v=<%=inv_vid.videoId%>"> <i style="display: block;" title="High Definition" class="fa-light fa-high-definition"></i> </a> <i style="display: block;" title="Standard Definition [Current]" class="fa-solid fa-standard-definition"></i> <a href="/watch?v=<%=inv_vid.videoId%>"> <i style="display: block;" title="High Definition" class="fa-light fa-high-definition"></i> High Definition </a>
<a><i style="display: block;" title="Standard Definition [Current]" class="fa-solid fa-standard-definition"></i> Standard Definition</a>
<% } %> <% } %>
<input type="checkbox" class="v" id="box" style="display:none"> <input type="checkbox" class="v" id="box" style="display:none">
<label class="h" for="box"> <label class="h" for="box">
<div class="fnt"> <div class="fnt">
<i title="Stats for nerdys" class="fa-light fa-bug"></i> Stats
<i title="Stats for nerdys" class="fa-light fa-bug" style="margin-left: 0.9em;display:block;"></i>
</div> </div>
</label> </label>
<a onclick="if(document.querySelector('.watch-page').style.display === 'grid') {document.querySelector('.watch-page').style.display = 'flex'} else {document.querySelector('.watch-page').style.display = 'grid'}"><i class="fa-sharp fa-light fa-up-right-and-down-left-from-center"></i> Theater</a>
<% if (inv.comments) { %> <% if (inv.comments) { %>
<input type="checkbox" class="hj" id="j" style="display:none"> <input type="checkbox" class="hj" id="j" style="display:none">
<label class="hj" for="j"> <label class="hj" for="j">
@ -1101,7 +1077,7 @@ display: block; !important;" autoplay controls>
</label> </label>
<% } %> <% } %>
<a href="#video" class="maxi" id="maximize"> <i style="display: block;" title="Maximise!" class="fa-light fa-maximize"></i> </a>
<!-- Stats for nerds --> <!-- Stats for nerds -->
@ -1142,7 +1118,6 @@ display: block; !important;" autoplay controls>
</div> </div>
</div> </div>
<br>
<div class="video-info" > <div class="video-info" >
<div class="video-info-panel gradient"> <div class="video-info-panel gradient">
<% if (k.Video.Channel.Name == "7clouds") { %> <% if (k.Video.Channel.Name == "7clouds") { %>
@ -3214,10 +3189,11 @@ video.addEventListener('ended', () => {
window.addEventListener('load', () => { window.addEventListener('load', () => {
resumeProgress(); resumeProgress();
}); });
</script> </script>
<noscript> <noscript>
<style> <style>
.auto-play{ .auto-play{

View file

@ -66,30 +66,27 @@ summary:hover{
<style> <style>
.tags.rec { .search-options {
font-weight: 600;
font-stretch: expanded;
overflow:hidden;
width: auto;
max-width: fit-content;
margin-right: auto;
padding-left: 1.5em;
margin-top: 7px;
display: flex; display: flex;
gap: 3px; justify-content: space-between;
margin-inline: auto; width: 100%;
margin-left: 8em; max-width: 855px;
} margin: auto;
padding: 24px 0px 12px 0px;
}
.tags.rec:hover{ .tags.rec:hover{
overflow-x:auto; overflow-x:auto;
} }
.tags.rec {
display: flex;
gap: 12px;
height: max-content;
}
.tags.rec > .tag { .tags.rec > .tag {
border-radius: 8px; border-radius: 8px;
background:var(--chip-background-hover); background: var(--chip-background-hover);
padding: 8px 16px;
} }
.tag { .tag {
@ -100,6 +97,19 @@ summary:hover{
font-family: ubuntu, sans-serif; font-family: ubuntu, sans-serif;
} }
#filters-collapse summary {
color: white;
font-weight: bold;
font-size: 20px;
}
.filter-options div {
padding: 6px 12px;
}
.filter-name.underlined {
padding: 12px 0px 12px 23px;
font-weight: bold;
}
.container { .container {
max-width: 800px; max-width: 800px;
margin: 0 auto; margin: 0 auto;