From 054fe6ddee1ecbbf336c1ec9fbce08ebd0a54ebd Mon Sep 17 00:00:00 2001
From: mat <github@matdoes.dev>
Date: Thu, 15 Dec 2022 18:22:09 -0600
Subject: fix mayor skin + move sections dir

---
 src/lib/sections/StatList.svelte | 48 ----------------------------------------
 1 file changed, 48 deletions(-)
 delete mode 100644 src/lib/sections/StatList.svelte

(limited to 'src/lib/sections/StatList.svelte')

diff --git a/src/lib/sections/StatList.svelte b/src/lib/sections/StatList.svelte
deleted file mode 100644
index 38604d7..0000000
--- a/src/lib/sections/StatList.svelte
+++ /dev/null
@@ -1,48 +0,0 @@
-<!-- 
-	@component
-
-	A sorted list of a user's stats, with the total sometimes being at the top.
--->
-<script lang="ts">
-	import { cleanId, millisecondsToTime } from '$lib/utils'
-	import type { StatItem } from '$lib/APITypes'
-
-	export let stats: StatItem[]
-</script>
-
-<ul>
-	{#each stats.sort((a, b) => b.value - a.value) as stat}
-		<li class:total-stat={stat.categorizedName === 'total'}>
-			<span class="stat-name">{cleanId(stat.categorizedName)}:</span>
-			<span class="stat-value">
-				{#if stat.unit === 'time'}
-					{millisecondsToTime(stat.value)}
-				{:else}
-					{stat.value.toLocaleString()}
-				{/if}
-			</span>
-		</li>
-	{/each}
-</ul>
-
-<style>
-	.total-stat .stat-name {
-		color: var(--theme-darker-text);
-	}
-	.total-stat .stat-value {
-		font-weight: bold;
-	}
-
-	.total-stat {
-		list-style-type: none;
-		padding: 0 0 0.5em 0;
-		right: 1em;
-	}
-	li {
-		position: relative;
-	}
-	ul {
-		margin-top: 0.5em;
-		padding-left: 1em;
-	}
-</style>
-- 
cgit 

