mirror of
https://github.com/iv-org/invidious.git
synced 2025-01-10 03:20:35 +05:30
Use button instead of anchor for try reddit link
This commit is contained in:
parent
08adf93aac
commit
e0807139eb
@ -58,6 +58,11 @@ body {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
button.simulated_a {
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Channel page
|
||||
@ -516,7 +521,9 @@ span > select {
|
||||
.light-theme a:active,
|
||||
.light-theme summary:hover,
|
||||
.light-theme a:focus,
|
||||
.light-theme summary:focus {
|
||||
.light-theme summary:focus,
|
||||
.light-theme .simulated_a:hover,
|
||||
.light-theme .simulated_a:active {
|
||||
color: #075A9E !important;
|
||||
}
|
||||
|
||||
@ -534,7 +541,7 @@ span > select {
|
||||
background-color: #fff2;
|
||||
}
|
||||
|
||||
.light-theme a {
|
||||
.light-theme a, .light-theme .simulated_a {
|
||||
color: #335d7a;
|
||||
text-decoration: none;
|
||||
}
|
||||
@ -555,7 +562,9 @@ span > select {
|
||||
.no-theme a:active,
|
||||
.no-theme summary:hover,
|
||||
.no-theme a:focus,
|
||||
.no-theme summary:focus {
|
||||
.no-theme summary:focus,
|
||||
.no-theme .simulated_a:hover,
|
||||
.no-theme .simulated_a:active {
|
||||
color: #075A9E !important;
|
||||
}
|
||||
|
||||
@ -573,7 +582,7 @@ span > select {
|
||||
background-color: #fff2;
|
||||
}
|
||||
|
||||
.no-theme a {
|
||||
.no-theme a, .no-theme .simulated_a{
|
||||
color: #335d7a;
|
||||
text-decoration: none;
|
||||
}
|
||||
@ -607,7 +616,9 @@ span > select {
|
||||
.dark-theme a:active,
|
||||
.dark-theme summary:hover,
|
||||
.dark-theme a:focus,
|
||||
.dark-theme summary:focus {
|
||||
.dark-theme summary:focus,
|
||||
.dark-theme .simulated_a:hover,
|
||||
.dark-theme .simulated_a:active {
|
||||
color: rgb(0, 182, 240);
|
||||
}
|
||||
|
||||
@ -625,7 +636,7 @@ span > select {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.dark-theme a {
|
||||
.dark-theme a, .dark-theme .simulated_a {
|
||||
color: #adadad;
|
||||
text-decoration: none;
|
||||
}
|
||||
@ -661,7 +672,9 @@ body.dark-theme {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.no-theme a:hover,
|
||||
.no-theme a:active,
|
||||
.no-theme a:focus {
|
||||
.no-theme a:focus,
|
||||
.no-theme .simulated_a:hover,
|
||||
.no-theme .simulated_a:active {
|
||||
color: rgb(0, 182, 240);
|
||||
}
|
||||
|
||||
@ -679,7 +692,7 @@ body.dark-theme {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.no-theme a {
|
||||
.no-theme a, .no-theme .simulated_a{
|
||||
color: #adadad;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
@ -78,9 +78,9 @@ function get_youtube_comments() {
|
||||
<div id="comments-turned-off-on-video-message" class="h-box v-box">
|
||||
<p><b>${video_data.comments_youtube_disabled_text}</b></p>
|
||||
|
||||
<p><b><a href="javascript:void(0)" data-comments="reddit" id="try-reddit-comments-link">
|
||||
<p><b><button href="javascript:void(0)" data-comments="reddit" id="try-reddit-comments-link" class="simulated_a">
|
||||
${video_data.comments_youtube_disabled_try_reddit}
|
||||
</a></b></p>
|
||||
</button></b></p>
|
||||
</div>`;
|
||||
|
||||
document.getElementById("try-reddit-comments-link").onclick = swap_comments;
|
||||
|
@ -319,9 +319,9 @@ we're going to need to do it here in order to allow for translations.
|
||||
|
||||
<p>
|
||||
<b>
|
||||
<a href="javascript:void(0)" data-comments="reddit" id="try-reddit-comments-link">
|
||||
<button data-comments="reddit" id="try-reddit-comments-link" class="simulated_a">
|
||||
<%=HTML.escape(translate(locale, "comments_youtube_disabled_try_reddit"))%>
|
||||
</a>
|
||||
</button>
|
||||
</b>
|
||||
</p>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user