From 380d3a7d8900c20c658a0ebfe903daef7c84dc37 Mon Sep 17 00:00:00 2001 From: dvdrw Date: Sun, 12 Feb 2023 20:57:46 +0100 Subject: [PATCH] refactor: tighten up css created a bunch of utility classes and use those instead --- src/lib/About.svelte | 31 +------ src/lib/Avatar.svelte | 4 +- src/lib/ChatMessage.svelte | 144 +++++++++++-------------------- src/lib/ChatMessages.svelte | 168 +++++++++++++++++++----------------- src/lib/Header.svelte | 13 +-- src/lib/Input.svelte | 14 +-- src/lib/SignIn.svelte | 10 +-- src/lib/TopScreen.svelte | 20 ++--- src/lib/styles/utils.scss | 130 ++++++++++++++++++++++++++++ 9 files changed, 291 insertions(+), 243 deletions(-) diff --git a/src/lib/About.svelte b/src/lib/About.svelte index f96656d..5e32478 100644 --- a/src/lib/About.svelte +++ b/src/lib/About.svelte @@ -2,13 +2,13 @@ import { version } from '$app/environment'; -
-

litechatplus

+
+

litechatplus

A [fedwave] chat client.

-
+

Version: {version}

-

{__COMMIT__}

+

{__COMMIT__}

@@ -16,29 +16,6 @@ .about { height: var(--top-screen-cutout-height); width: var(--sidebar-width, 350px); - text-align: center; } - .litechat { - color: var(--base-300); - - margin-bottom: 0px; - - & .plus { - vertical-align: super; - color: var(--cyan); - } - } - - .build-info { - padding-left: 24px; - padding-right: 24px; - & > * { - user-select: text; - } - } - - .version { - color: var(--base-400); - } diff --git a/src/lib/Avatar.svelte b/src/lib/Avatar.svelte index 7e482e5..8b65131 100644 --- a/src/lib/Avatar.svelte +++ b/src/lib/Avatar.svelte @@ -5,9 +5,9 @@ export let size: string = 'var(--avatar-size)'; -
+
+ diff --git a/src/lib/ChatMessages.svelte b/src/lib/ChatMessages.svelte index 23fdc45..2537059 100644 --- a/src/lib/ChatMessages.svelte +++ b/src/lib/ChatMessages.svelte @@ -1,90 +1,101 @@ -
-