use body instead of classname, fix styling of the banner on invidious

This commit is contained in:
Booteille 2019-02-17 20:26:49 +01:00
parent d57f95fba6
commit c9d01c17a0
No known key found for this signature in database
GPG Key ID: 7FC1ED300B74CD91
1 changed files with 2 additions and 1 deletions

View File

@ -80,6 +80,7 @@ if (isYouTube) {
const backgroundColor = isYouTube ? 'var(--yt-swatch-primary)' : '#fff'; const backgroundColor = isYouTube ? 'var(--yt-swatch-primary)' : '#fff';
const buttonColor = isYouTube ? 'var(--yt-swatch-text)' : '#000'; const buttonColor = isYouTube ? 'var(--yt-swatch-text)' : '#000';
const textColor = isYouTube ? 'var(--yt-primary-text-color)' : '#000'; const textColor = isYouTube ? 'var(--yt-primary-text-color)' : '#000';
const hostSize = isYouTube ? '1.4rem' : '0.9rem';
const videoLink = (url, video) => htmlToElement(` const videoLink = (url, video) => htmlToElement(`
<div id="${LINK_ID}" <div id="${LINK_ID}"
@ -131,7 +132,7 @@ const videoLink = (url, video) => htmlToElement(`
${video.name} ${video.name}
</p> </p>
<p style="font-size: 1.4rem; margin: 0;"> <p style="font-size: ${hostSize}; margin: 0;">
${video.account.host} ${video.account.host}
</p> </p>
</div> </div>