diff options
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> |