diff options
author | alyx <alyx@aleteoryx.me> | 2023-11-22 19:49:27 -0500 |
---|---|---|
committer | alyx <alyx@aleteoryx.me> | 2023-11-22 19:49:27 -0500 |
commit | 41a5fa81b5c12feb8aab0ad82d42c135e93065f7 (patch) | |
tree | bfc1f1e7ba3d35acff28df0c3e369a32d163dcfa /src/themes | |
parent | be166d93b7aabb5b260e21c10b1b247704858193 (diff) | |
download | lfm_embed-41a5fa81b5c12feb8aab0ad82d42c135e93065f7.tar.gz lfm_embed-41a5fa81b5c12feb8aab0ad82d42c135e93065f7.tar.bz2 lfm_embed-41a5fa81b5c12feb8aab0ad82d42c135e93065f7.zip |
Add custom font support.
Diffstat (limited to 'src/themes')
-rw-r--r-- | src/themes/plain.hbs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/themes/plain.hbs b/src/themes/plain.hbs index fe33d28..bbd0589 100644 --- a/src/themes/plain.hbs +++ b/src/themes/plain.hbs @@ -1,5 +1,5 @@ <!doctype html> -<html lang="en" style="font-size: 0.5cm; margin: 0.5rem; overflow: hidden;"> +<html lang="en" style="margin: 20px; overflow: hidden;"> <head> <meta charset="UTF-8"/> <title>{{#if error}}Error!{{else}}@{{user.name}}'s Last.fm Stats{{/if}}</title> @@ -11,6 +11,13 @@ a:visited { color: pink } a { color: cyan; } {{/if}} + * { font-size: {{#if font}}17px{{else}}20px{{/if}}; } + {{#if font.css}} + {{{font.css}}} + {{/if}} + {{#if (or font.name font.css)}} + * { font-family: '{{#if font.name}}{{font.name}}{{/if}}{{#if font.url}}included_font{{/if}}' } + {{/if}} p { margin: 0px; padding: 0px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } </style> </head> @@ -18,7 +25,7 @@ {{#if error}} <p style="white-space: unset;">{{error}}</p> {{else}} - <a style="float: left;" target="_blank" href="{{scrobble.url}}"><img src="{{scrobble.image_url}}" style="height: 4.0rem; border: solid var(--b) 0.2rem; margin: 0.1rem;" /></a> + <a style="float: left;" target="_blank" href="{{scrobble.url}}"><img src="{{scrobble.image_url}}" style="height: 80px; border: solid var(--b) 4px; margin: 2px;" /></a> <p><a target="_blank" href="{{user.url}}">@{{user.name}}</a>{{#if scrobble.now_playing}} is scrobbling{{else}}'s last scrobble was {{/if}} |