mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-30 01:47:54 +01:00
mobile adjustments changed from JS to CSS to avoid jank on first load
This commit is contained in:
1 parent
6ac28aad2f
commit
febcaec9d2
6 files changed
+31
-29
No files matched your search
+26
-24
@@ -1,8 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-app dark>
|
<v-app dark>
|
||||||
<v-app-bar app flat class="topBar fly-in-from-top"
|
<v-app-bar app flat class="topBar fly-in-from-top my-4 mx-auto" >
|
||||||
:class="$vuetify.breakpoint.mobile ? 'ma-4' : 'my-4 mx-auto'"
|
|
||||||
>
|
|
||||||
<v-tabs centered center-active color="primary" router show-arrows>
|
<v-tabs centered center-active color="primary" router show-arrows>
|
||||||
<v-tab v-for="link in links" :key="link.path" :to="link.path">
|
<v-tab v-for="link in links" :key="link.path" :to="link.path">
|
||||||
{{ link.name }}
|
{{ link.name }}
|
||||||
@@ -16,11 +14,9 @@
|
|||||||
|
|
||||||
<section class="hidden-chrome-scrollbar" style="height: calc(100vh - 1rem); padding-top: 5rem; padding-bottom: 5rem; overflow-y: auto;">
|
<section class="hidden-chrome-scrollbar" style="height: calc(100vh - 1rem); padding-top: 5rem; padding-bottom: 5rem; overflow-y: auto;">
|
||||||
<center
|
<center
|
||||||
class="hidden-chrome-scrollbar mx-auto d-flex flex-column justify-center items-center"
|
class="mx-auto d-flex flex-column justify-center items-center"
|
||||||
style="width: 90vw; min-height: 100%; overflow-y: auto;">
|
style="width: 90vw; min-height: 100%;">
|
||||||
|
|
||||||
<nuxt />
|
<nuxt />
|
||||||
|
|
||||||
</center>
|
</center>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -33,6 +29,29 @@ html, body {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.title-text {
|
||||||
|
font-size: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topBar {
|
||||||
|
padding: 0 3rem;
|
||||||
|
width: fit-content !important;
|
||||||
|
background-color: #222 !important;
|
||||||
|
border-radius: 1rem !important;
|
||||||
|
border-radius: .75rem;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) { /* mobile */
|
||||||
|
.title-text {
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
.topBar {
|
||||||
|
width: calc(100vw - 2rem) !important; /* (2rem = mx-4) */
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mainAltButton {
|
.mainAltButton {
|
||||||
margin: 0.25em;
|
margin: 0.25em;
|
||||||
}
|
}
|
||||||
@@ -41,15 +60,6 @@ html, body {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topBar {
|
|
||||||
background-color: #222 !important;
|
|
||||||
border-radius: 12px;
|
|
||||||
width: fit-content !important;
|
|
||||||
padding: 0 50px;
|
|
||||||
border-radius: 1rem !important;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fly-in-from-top {
|
.fly-in-from-top {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: scale(0.8) translateY(-200%);
|
transform: scale(0.8) translateY(-200%);
|
||||||
@@ -66,14 +76,6 @@ html, body {
|
|||||||
transform: scale(1) translateY(0);
|
transform: scale(1) translateY(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
@media (min-width: 1234px) {
|
|
||||||
.topBar {
|
|
||||||
width: 95%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<h1 :style="$vuetify.breakpoint.xs ? 'font-size: 2rem;' : 'font-size: 3rem;'" >Donate</h1>
|
<h1 class="title-text" >Donate</h1>
|
||||||
<p style="color: #999; margin-top: .5rem; margin-bottom: 2rem;">You can support our efforts to keep the internet free with a donation!</p>
|
<p style="color: #999; margin-top: .5rem; margin-bottom: 2rem;">You can support our efforts to keep the internet free with a donation!</p>
|
||||||
<v-btn class="mainAltButton" :href="patreonLink" target="_blank">
|
<v-btn class="mainAltButton" :href="patreonLink" target="_blank">
|
||||||
<v-icon style="margin-right: 0.5em;">mdi-patreon</v-icon>
|
<v-icon style="margin-right: 0.5em;">mdi-patreon</v-icon>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
|
|
||||||
|
|
||||||
<h1 :style="$vuetify.breakpoint.xs ? 'font-size: 2rem;' : 'font-size: 3rem;'" >Frequently Asked Questions</h1>
|
<h1 class="title-text" >Frequently Asked Questions</h1>
|
||||||
<p style="color: #999; margin-top: .5rem; margin-bottom: 2rem;">Still have questions? Feel free to join our Discord!</p>
|
<p style="color: #999; margin-top: .5rem; margin-bottom: 2rem;">Still have questions? Feel free to join our Discord!</p>
|
||||||
|
|
||||||
<v-expansion-panels focusable>
|
<v-expansion-panels focusable>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<svg id="thumbslogo" width="150" height="150" viewBox="0 0 240 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path d="M139.113,65.266l-57.339,-0c-5.288,-0 -9.812,3.185 -11.723,7.772l-19.241,44.916c-0.573,1.466 -0.892,2.995 -0.892,4.651l0,12.742c0,7.009 5.734,12.743 12.742,12.743l40.202,-0l-6.053,29.115l-0.191,2.039c0,2.612 1.083,5.033 2.803,6.754l6.754,6.689l41.985,-41.985c2.294,-2.294 3.695,-5.479 3.695,-8.984l0,-63.71c0,-7.009 -5.734,-12.742 -12.742,-12.742Zm25.485,-0l-0,76.452l25.484,0l-0,-76.452l-25.484,-0Z" style="fill:url(#_Linear1);fill-rule:nonzero;"/><g id="Thumb-Down--m.io-" serif:id="Thumb Down (m.io)"></g><defs><linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(152.906,153.295,-153.295,152.906,43.6442,45.958)"><stop offset="0" style="stop-color:#ff4444;stop-opacity:1"/><stop offset="0.56" style="stop-color:#440000;stop-opacity:1"/><stop offset="1" style="stop-color:#000;stop-opacity:1"/></linearGradient></defs></svg>
|
<svg id="thumbslogo" width="150" height="150" viewBox="0 0 240 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path d="M139.113,65.266l-57.339,-0c-5.288,-0 -9.812,3.185 -11.723,7.772l-19.241,44.916c-0.573,1.466 -0.892,2.995 -0.892,4.651l0,12.742c0,7.009 5.734,12.743 12.742,12.743l40.202,-0l-6.053,29.115l-0.191,2.039c0,2.612 1.083,5.033 2.803,6.754l6.754,6.689l41.985,-41.985c2.294,-2.294 3.695,-5.479 3.695,-8.984l0,-63.71c0,-7.009 -5.734,-12.742 -12.742,-12.742Zm25.485,-0l-0,76.452l25.484,0l-0,-76.452l-25.484,-0Z" style="fill:url(#_Linear1);fill-rule:nonzero;"/><g id="Thumb-Down--m.io-" serif:id="Thumb Down (m.io)"></g><defs><linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(152.906,153.295,-153.295,152.906,43.6442,45.958)"><stop offset="0" style="stop-color:#ff4444;stop-opacity:1"/><stop offset="0.56" style="stop-color:#440000;stop-opacity:1"/><stop offset="1" style="stop-color:#000;stop-opacity:1"/></linearGradient></defs></svg>
|
||||||
|
|
||||||
<h1 style="font-size: 3rem;" >Return YouTube Dislike</h1>
|
<h1 class="title-text" >Return YouTube Dislike</h1>
|
||||||
<div class="mb-4" style="color: #999">
|
<div class="mb-4" style="color: #999">
|
||||||
<p style="margin-top: 0">Browser extension and an API that show you dislikes on youtube</p>
|
<p style="margin-top: 0">Browser extension and an API that show you dislikes on youtube</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<h1 :style="$vuetify.breakpoint.xs ? 'font-size: 2rem;' : 'font-size: 3rem;'" >Select Your Platform</h1>
|
<h1 class="title-text" >Select Your Platform</h1>
|
||||||
|
|
||||||
<div style="color: #999;">
|
<div style="color: #999;">
|
||||||
<p style=" margin-top: .5rem; margin-bottom: 0;"> This is an <b>ALPHA version!</b> It may be slow. It may be buggy.</p>
|
<p style=" margin-top: .5rem; margin-bottom: 0;"> This is an <b>ALPHA version!</b> It may be slow. It may be buggy.</p>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
|
|
||||||
<h1 :style="$vuetify.breakpoint.xs ? 'font-size: 2rem;' : 'font-size: 3rem;'" >Project Links</h1>
|
<h1 class="title-text" >Project Links</h1>
|
||||||
|
|
||||||
<div style="color: #999">
|
<div style="color: #999">
|
||||||
<p style="margin-top: .5rem; margin-bottom: .5em;">Links to the project and it's developers</p>
|
<p style="margin-top: .5rem; margin-bottom: .5em;">Links to the project and it's developers</p>
|
||||||
|
|||||||
Reference in new issue
Block a user