diff options
author | alyx <alyx@aleteoryx.me> | 2024-01-12 01:28:22 -0500 |
---|---|---|
committer | alyx <alyx@aleteoryx.me> | 2024-01-12 01:28:22 -0500 |
commit | 7e4da5f0de16c35ce304620bd37b08d57ff46858 (patch) | |
tree | 849787161f7ad0d8c4ff40c5531896b93e9c8578 /src/themes | |
parent | b53cb296fc5a0e2c77c6074e6cc5cde45a290cdd (diff) | |
download | lfm_embed-7e4da5f0de16c35ce304620bd37b08d57ff46858.tar.gz lfm_embed-7e4da5f0de16c35ce304620bd37b08d57ff46858.tar.bz2 lfm_embed-7e4da5f0de16c35ce304620bd37b08d57ff46858.zip |
Custom font support complete
Diffstat (limited to 'src/themes')
-rw-r--r-- | src/themes/plain.hbs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/themes/plain.hbs b/src/themes/plain.hbs index bbd0589..975d6c5 100644 --- a/src/themes/plain.hbs +++ b/src/themes/plain.hbs @@ -3,6 +3,7 @@ <head> <meta charset="UTF-8"/> <title>{{#if error}}Error!{{else}}@{{user.name}}'s Last.fm Stats{{/if}}</title> + <style>{{#if font.css}}{{{font.css}}}{{/if}}</style> <style> {{#if (eq query.dark null)}} :root { --b: black; color: black; background-color: white; } @@ -11,12 +12,9 @@ a:visited { color: pink } a { color: cyan; } {{/if}} - * { font-size: {{#if font}}17px{{else}}20px{{/if}}; } - {{#if font.css}} - {{{font.css}}} - {{/if}} + * { font-size: {{#if font}}17px{{else}}{{#if font.scale}}calc(20px * {{font.scale}}){{else}}20px{{/if}}{{/if}}; } {{#if (or font.name font.css)}} - * { font-family: '{{#if font.name}}{{font.name}}{{/if}}{{#if font.url}}included_font{{/if}}' } + * { font-family: '{{#if font.name}}{{font.name}}{{/if}}' } {{/if}} p { margin: 0px; padding: 0px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } </style> |