Fix unused CSS selector issue in graphs introduced by updating Svelte

This commit is contained in:
Henrik Giesel 2021-05-06 23:49:59 +02:00
parent 15f306950d
commit f50d81f787
2 changed files with 76 additions and 76 deletions

View file

@ -61,87 +61,87 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<ClozeButton /> <ClozeButton />
</ButtonGroupItem> </ButtonGroupItem>
<WithDropdownMenu let:menuId let:createDropdown> <ButtonGroupItem>
<ButtonGroupItem> <WithDropdownMenu let:menuId let:createDropdown>
<IconButton on:mount={createDropdown}> <IconButton on:mount={createDropdown}>
{@html functionIcon} {@html functionIcon}
</IconButton> </IconButton>
</ButtonGroupItem>
<DropdownMenu id={menuId}> <DropdownMenu id={menuId}>
<WithShortcut <WithShortcut
shortcut="Control+KeyM, KeyM" shortcut="Control+KeyM, KeyM"
let:createShortcut let:createShortcut
let:shortcutLabel> let:shortcutLabel>
<DropdownItem <DropdownItem
on:click={() => wrap('\\(', '\\)')} on:click={() => wrap('\\(', '\\)')}
on:mount={createShortcut}> on:mount={createShortcut}>
{tr.editingMathjaxInline()} {tr.editingMathjaxInline()}
<span class="ps-1 float-end">{shortcutLabel}</span> <span class="ps-1 float-end">{shortcutLabel}</span>
</DropdownItem> </DropdownItem>
</WithShortcut> </WithShortcut>
<WithShortcut <WithShortcut
shortcut="Control+KeyM, KeyE" shortcut="Control+KeyM, KeyE"
let:createShortcut let:createShortcut
let:shortcutLabel> let:shortcutLabel>
<DropdownItem <DropdownItem
on:click={() => wrap('\\[', '\\]')} on:click={() => wrap('\\[', '\\]')}
on:mount={createShortcut}> on:mount={createShortcut}>
{tr.editingMathjaxBlock()} {tr.editingMathjaxBlock()}
<span class="ps-1 float-end">{shortcutLabel}</span> <span class="ps-1 float-end">{shortcutLabel}</span>
</DropdownItem> </DropdownItem>
</WithShortcut> </WithShortcut>
<WithShortcut <WithShortcut
shortcut="Control+KeyM, KeyC" shortcut="Control+KeyM, KeyC"
let:createShortcut let:createShortcut
let:shortcutLabel> let:shortcutLabel>
<DropdownItem <DropdownItem
on:click={() => wrap('\\(\\ce{', '}\\)')} on:click={() => wrap('\\(\\ce{', '}\\)')}
on:mount={createShortcut}> on:mount={createShortcut}>
{tr.editingMathjaxChemistry()} {tr.editingMathjaxChemistry()}
<span class="ps-1 float-end">{shortcutLabel}</span> <span class="ps-1 float-end">{shortcutLabel}</span>
</DropdownItem> </DropdownItem>
</WithShortcut> </WithShortcut>
<WithShortcut <WithShortcut
shortcut="Control+KeyT, KeyT" shortcut="Control+KeyT, KeyT"
let:createShortcut let:createShortcut
let:shortcutLabel> let:shortcutLabel>
<DropdownItem <DropdownItem
on:click={() => wrap('[latex]', '[/latex]')} on:click={() => wrap('[latex]', '[/latex]')}
on:mount={createShortcut}> on:mount={createShortcut}>
{tr.editingLatex()} {tr.editingLatex()}
<span class="ps-1 float-end">{shortcutLabel}</span> <span class="ps-1 float-end">{shortcutLabel}</span>
</DropdownItem> </DropdownItem>
</WithShortcut> </WithShortcut>
<WithShortcut <WithShortcut
shortcut="Control+KeyT, KeyE" shortcut="Control+KeyT, KeyE"
let:createShortcut let:createShortcut
let:shortcutLabel> let:shortcutLabel>
<DropdownItem <DropdownItem
on:click={() => wrap('[$]', '[/$]')} on:click={() => wrap('[$]', '[/$]')}
on:mount={createShortcut}> on:mount={createShortcut}>
{tr.editingLatexEquation()} {tr.editingLatexEquation()}
<span class="ps-1 float-end">{shortcutLabel}</span> <span class="ps-1 float-end">{shortcutLabel}</span>
</DropdownItem> </DropdownItem>
</WithShortcut> </WithShortcut>
<WithShortcut <WithShortcut
shortcut="Control+KeyT, KeyM" shortcut="Control+KeyT, KeyM"
let:createShortcut let:createShortcut
let:shortcutLabel> let:shortcutLabel>
<DropdownItem <DropdownItem
on:click={() => wrap('[$$]', '[/$$]')} on:click={() => wrap('[$$]', '[/$$]')}
on:mount={createShortcut}> on:mount={createShortcut}>
{tr.editingLatexMathEnv()} {tr.editingLatexMathEnv()}
<span class="ps-1 float-end">{shortcutLabel}</span> <span class="ps-1 float-end">{shortcutLabel}</span>
</DropdownItem> </DropdownItem>
</WithShortcut> </WithShortcut>
</DropdownMenu> </DropdownMenu>
</WithDropdownMenu> </WithDropdownMenu>
</ButtonGroupItem>
<ButtonGroupItem> <ButtonGroupItem>
<WithShortcut <WithShortcut

View file

@ -7,11 +7,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
:global(rect) { :global(rect) {
fill: none; fill: none;
pointer-events: all; pointer-events: all;
}
&:hover { :global(rect:hover) {
fill: grey; fill: grey;
opacity: 0.05; opacity: 0.05;
}
} }
} }
</style> </style>