Skip to content

Commit

Permalink
Styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
player259 committed Jan 20, 2024
1 parent 2b2e9db commit 0209018
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/components/AbcSheet/AbcSheet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
staffStyle,
layout,
detectRepeats,
stretch: false,
});
svgContent = AbcRenderer.render(abcSource);
Expand Down
19 changes: 13 additions & 6 deletions src/components/BarBlock/BarBlock.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@
'p-0 user-select-none text-nowrap',
'cell-' + line,
'cell-note',
'symbol',
['annot', isAnnotation],
['annot-long', isAnnotation && symbol !== undefined && symbol.length > 2],
'note-' + (note?.value ?? 'none'),
Expand All @@ -688,7 +689,7 @@
on:contextmenu={(e) => onContextMenuNote(e, line, tick.position, note)}
>
{#if isAnnotation && !!symbol}
<div class='d-inline-block' title={symbol}>
<div class='d-inline-block annot-symbol' title={symbol}>
{@html symbol}
</div>
{:else}
Expand Down Expand Up @@ -783,11 +784,11 @@
<div bind:this={noteOptionsFloating} class="floating d-none">
<ListGroup>
{#each noteOptions as option}
<ListGroupItem class="text-center" tag="button" action on:click={() => {
replaceNotes([[option.context.note, option.note]]);
<button class="text-center symbol list-group-item list-group-item-action" on:click={() => {
replaceNotes([[option.context.note, option.note]]);

dismissFloatings();
}}>{@html option.label}</ListGroupItem>
dismissFloatings();
}}>{@html option.label}</button>
{/each}
</ListGroup>
</div>
Expand Down Expand Up @@ -917,16 +918,22 @@

<style>
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');
th, td {
padding: 0;
vertical-align: middle;
}
.symbol {
font-family: 'Noto Sans Symbols 2', sans-serif;
}
.cell-note {
cursor: pointer;
font-size: 1.2em;
vertical-align: middle;
font-family: 'Noto Sans Symbols 2', sans-serif;
}
.annot-symbol {
font-family: 'Noto Sans', sans-serif;
}
.label-cell {
font-weight: normal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
</script>

<style>
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2&display=swap');
.arrow {
font-family: 'Noto Sans Symbols 2', sans-serif;
Expand All @@ -98,6 +98,8 @@
top: 50%;
border-radius: 50%;
transform: translateY(-50%);
line-height: 1.2em;
padding-top: 0.5em;
}
.arrow-left {
left: 0;
Expand Down
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@
</script>

<svelte:head>
<title>Test example</title>
<meta name="description" content="Test example" />
<title>Grooved</title>
<meta name="description" content="Grooved" />
</svelte:head>

<style>
Expand Down

0 comments on commit 0209018

Please sign in to comment.