1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 00:34:41 -05:00

Add amoled mode in mobile~

This commit is contained in:
Ashley 2022-09-13 19:18:13 +02:00
parent f36d725346
commit 9f651ece4a

View file

@ -263,9 +263,8 @@ PokeTube Player v09.09.22c - Node <%=process.version%> - V8 v<%=process.versions
<span tabindex="0" draggable="false" class="v-chip v-chip--clickable v-chip--no-color theme--dark v-size--default"> <a style="color:#fff;text-decoration: none;" href="/watch?v=<%=video.id%>&f=t" class="v-chip__content">
From <%=video.Channel.Name%> </span></a><% } %>
</a>
</div>
<% } %>
<% if (f) { %>
@ -277,9 +276,8 @@ From <%=video.Channel.Name%> </span></a><% } %>
From <%=video.Channel.Name%> </span></a>
</a>
</div>
<% } %>
</div>
<% } %>
<% if (!f) { %>
<% k.Video.Recommendations.Video.forEach(x => { %>
@ -789,7 +787,7 @@ body {
--text-secondary: #fff;
--text-link: #3ea6ff;
--app-background: #111111;
--app-background: #000;
--context-menu-background: #333;
--border-color: #444;
--item-hover-background: #373737;
@ -846,13 +844,13 @@ a{
<style>body, html { margin: 0; padding: 0; } * { font-family: sans-serif; color:#fff } .player { background-color: #000 !important; display: grid; grid-template-columns: 1fr min-content; grid-template-rows: max-content 1fr max-content max-content max-content; gap: 0 0; width: 100%; /* height: 100%; */ aspect-ratio: 16 / 9; } .player * { color: #fff; } .player.embed, video.embed { position: fixed; top: 0; bottom: 0; left: 0; right: 0; } .player * { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .player > video { position: relative; width: 100%; height: 100%; z-index: 0; grid-area: 1 / 1 / 6 / 3; } .player.hide-controls > .player-title, .player.hide-controls > .player-controls, .player.hide-controls > .player-playback-bar-container, .player.hide-controls > .player-menu { display: none !important; } .player-controls { background-color: #0007; display: flex; justify-content: center; align-items: center; z-index: 1; grid-area: 1 / 1 / 6 / 3; } .player-button { width: 96px; height: 96px; font-size: 90px; text-align: center; line-height: 48px; } .player-tiny-button { width: 40px; font-size: 20px; text-align: center; } .player-tiny-button > i { color: #ddd; } .player-button, .player-button * { color: #dddddd !important; text-decoration: none; } .player-button > i { min-width: 48px; } .player-button:hover, .player-button:hover * { color: #fff !important; } .player-playback-bar { transition: width linear 100ms; } .player-playback-bar-container { grid-area: 4 / 1 / 5 / 3; display: flex; column-gap: 8px; justify-content: center; align-items: center; height: 8px; transition: height linear 100ms; width: 100%; z-index: 2; margin-bottom: 10px; } .player-playback-bar-bg { background-color: #fff3 !important; width: 100%; height: 100%; z-index: 2; display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; } .player-playback-bar-bg > * { grid-area: 1 / 1 / 2 / 2; } .player-playback-bar-buffer { background-color: #fffa !important; height: 100%; width: 0; z-index: 3; } .player-playback-bar-fg { background-color: #f00 !important; height: 100%; width: 0; z-index: 4; } .player-buffering { grid-area: 1 / 1 / 6 / 3; z-index: 1; display: flex; justify-content: center; align-items: center; } .player-buffering-spinner { width: 80px; height: 80px; }</style>
<body>
<div class="app" style="color:#fff;margin-top: 0;">
<nav>
<nav >
<div class=left><a class="class" href="/" style=font-family:Inter,sans-serif;color:#fff> <img style="width: 8.5em;display: block;margin-left: auto;margin-right: auto;" src="/css/logo-mobile.svg"> </a>
</div>
</nav>
<div class="mobile-page">
<div class="primary">
<div class="video-player-container" style="background-color:#111111">
<div class="video-player-container" style="background-color:#000">
<video class="player" autoplay style="border-radius: 6px;" controls src="<%=url%>" poster="https://i.ytimg.com/vi/<%=video.id%>/hqdefault.jpg?v=607ddcd4">
<% if (Array.isArray( video.Subtitles.Subtitle)) { %>
@ -883,7 +881,7 @@ a{
<div class="divider"></div>
<div class="divider"></div>
<%=engagement.viewCount.toLocaleString()%> Views - Uploaded at <%=date%> :3
<div class="video-info-buttons" style="font-family:'Inter';font-weight:900;white-space:yes;background-color: #333;border-radius: 15px;margin: 6px;align-self: center;align-items: center;">
<div class="video-info-buttons" style="font-family:'Inter';font-weight:900;white-space:yes;background-color: #241313;border-radius: 15px;margin: 6px;align-self: center;align-items: center;">
<div>
<i class="fa-light fa-thumbs-up" style="font-size:x-large" ></i>
<%=engagement.likes.toLocaleString()%>
@ -1179,3 +1177,4 @@ From <%=video.Channel.Name%> </span></a>
</html>
</body>
<% } %>