Skip to content

Commit

Permalink
chore: Misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kiosion committed Oct 3, 2023
1 parent a4875cc commit a1aa8f8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 63 deletions.
12 changes: 0 additions & 12 deletions svelte-app/cypress/support/component-index.html

This file was deleted.

39 changes: 0 additions & 39 deletions svelte-app/cypress/support/component.ts

This file was deleted.

13 changes: 2 additions & 11 deletions svelte-app/src/components/code-block.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -118,24 +118,15 @@
</svelte:head>

<div
class="relative -mx-1 my-7 overflow-hidden rounded-sm border border-dark/40 duration-75 dark:border-light/40 {hovered
? 'border-dark/60 dark:border-light/60'
: ''} transition-none"
class="relative -mx-1 my-7 overflow-hidden rounded-sm border border-dark/40 transition-none hover:border-dark/60 focus-visible:border-dark/60 dark:border-light/40 hover:dark:border-light/60 focus-visible:dark:border-light/60"
role="group"
aria-label={$t('Code block')}
aria-labelledby={filename ? `${id}-filename` : undefined}
bind:this={container}
on:mouseenter={() => (hovered = true)}
on:mouseleave={() => (hovered = false)}
on:focusin={() => (hovered = true)}
on:focusout={() => (hovered = false)}
on:blur={() => (hovered = false)}
>
{#if filename}
<div
class="border-b border-dark/40 bg-dark/5 py-[13px] pl-5 font-mono text-base duration-75 dark:border-light/40 dark:bg-dark/40 {hovered
? 'border-dark/60 dark:border-light/60'
: ''}"
class="border-b border-dark/30 bg-dark/5 py-[13px] pl-5 font-mono text-base transition-[background-color] dark:border-light/30 dark:bg-dark/40"
id="{id}-filename"
>
{filename}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<style lang="scss">
a {
@apply relative block w-fit rounded-sm font-extrabold;
@apply relative block w-full rounded-sm font-extrabold;
&.h1 {
@apply mb-6 mt-14;
Expand Down

0 comments on commit a1aa8f8

Please sign in to comment.