forked from btclock/webui
Remove woff(1) assets, show something when mining pool logo is shown
This commit is contained in:
parent
fd328d4f05
commit
551d714cce
4 changed files with 25 additions and 6 deletions
|
@ -1,9 +1,23 @@
|
|||
@use '@fontsource/ubuntu/scss/mixins' as Ubuntu;
|
||||
@use '@fontsource/antonio/scss/mixins' as Antonio;
|
||||
|
||||
@import '../node_modules/bootstrap/scss/functions';
|
||||
|
||||
//@import "@fontsource/antonio/latin-400.css";
|
||||
@import '@fontsource/ubuntu/latin-400.css';
|
||||
//@import '@fontsource/oswald/latin-400.css';
|
||||
@import '@fontsource/antonio/latin-400.css';
|
||||
|
||||
@include Ubuntu.faces(
|
||||
$subsets: latin,
|
||||
$weights: 400,
|
||||
$formats: 'woff2',
|
||||
$directory: '@fontsource/ubuntu/files'
|
||||
);
|
||||
|
||||
@include Antonio.faces(
|
||||
$subsets: latin,
|
||||
$weights: 400,
|
||||
$formats: 'woff2',
|
||||
$directory: '@fontsource/antonio/files'
|
||||
);
|
||||
|
||||
@import './satsymbol';
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
@font-face {
|
||||
font-family: 'Satoshi Symbol';
|
||||
src:
|
||||
url('/fonts/Satoshi_Symbol.woff2') format('woff2'),
|
||||
url('/fonts/Satoshi_Symbol.woff') format('woff');
|
||||
src: url('/fonts/Satoshi_Symbol.woff2') format('woff2');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
|
|
|
@ -72,6 +72,9 @@
|
|||
{#if char.endsWith('bitaxe')}
|
||||
<img src="/bitaxe.webp" class="bitaxelogo" alt="BitAxe logo" />
|
||||
{/if}
|
||||
{#if char.endsWith('miningpool')}
|
||||
<span class="pool-logo">Mining Pool Logo</span>
|
||||
{/if}
|
||||
</div>
|
||||
{:else if char === 'STS'}
|
||||
<div class="digit sats">S</div>
|
||||
|
@ -104,4 +107,8 @@
|
|||
.bitaxelogo {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.pool-logo {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
</style>
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue