Skip to content

Commit

Permalink
fix: remove all legally mandated fun
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Apr 5, 2022
1 parent ad2f728 commit 4e811be
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 67 deletions.
8 changes: 0 additions & 8 deletions src/lib/components/general/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
export let drawerVariant: 'modal' | 'dismissible';
export let hideTopElements: boolean;
export let accessibility: boolean;
export let inAccessibility: boolean;
$: currentPath = $page.url.pathname;
$: isAdmin = !$user ? false : $user.roles.approveMods || $user.roles.approveVersions || $user.roles.editSMLVersions;
Expand Down Expand Up @@ -173,13 +172,6 @@
<span slot="label">Accessibility Font</span>
</FormField>
</Item>

<Item class="rainbow-bg">
<FormField align="end">
<Switch bind:checked={inAccessibility} aria-label="Accessibility Font" />
<span slot="label">In-Accessibility Font</span>
</FormField>
</Item>
</List>
</div>
</Content>
Expand Down
5 changes: 1 addition & 4 deletions src/routes/__layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@
let accessibility = false;
$: root && (accessibility ? root.classList.add('accessibility') : root.classList.remove('accessibility'));
let inAccessibility = false;
$: root && (inAccessibility ? root.classList.add('in-accessibility') : root.classList.remove('in-accessibility'));
setClient(client);
$: isAdmin = !$user ? false : $user.roles.approveMods || $user.roles.approveVersions || $user.roles.editSMLVersions;
Expand Down Expand Up @@ -203,7 +200,7 @@
</TopAppBar>

<div class="drawer-container">
<Sidebar bind:open bind:accessibility bind:inAccessibility bind:drawerVariant bind:hideTopElements />
<Sidebar bind:open bind:accessibility bind:drawerVariant bind:hideTopElements />

{#if drawerVariant === 'modal'}
<Scrim fixed={false} />
Expand Down
55 changes: 0 additions & 55 deletions src/routes/_global.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ body.accessibility {
font-family: 'Atkinson Hyperlegible', Helvetica Neue, sans-serif;
}

@font-face {
font-family: 'Dripicons';
src: url('https://cdn.jsdelivr.net/gh/amitjakhu/dripicons@master/webfont/fonts/dripicons-v2.woff');
}

html.in-accessibility,
body.in-accessibility {
font-family: 'Dripicons', Helvetica Neue, sans-serif;
}

.markdown-content {
@apply text-base;

Expand Down Expand Up @@ -237,48 +227,3 @@ body.in-accessibility {
grid-template-columns: minmax(0, 100%) fit-content(30%);
}
}

.rainbow-bg {
animation: rainbow-bg 2.5s linear !important;
animation-iteration-count: infinite !important;
}

@keyframes rainbow-bg {
100%,
0% {
background-color: rgb(255, 0, 0);
}
8% {
background-color: rgb(255, 127, 0);
}
16% {
background-color: rgb(255, 255, 0);
}
25% {
background-color: rgb(127, 255, 0);
}
33% {
background-color: rgb(0, 255, 0);
}
41% {
background-color: rgb(0, 255, 127);
}
50% {
background-color: rgb(0, 255, 255);
}
58% {
background-color: rgb(0, 127, 255);
}
66% {
background-color: rgb(0, 0, 255);
}
75% {
background-color: rgb(127, 0, 255);
}
83% {
background-color: rgb(255, 0, 255);
}
91% {
background-color: rgb(255, 0, 127);
}
}

0 comments on commit 4e811be

Please sign in to comment.