From 5e10bb8da90d41f3ae2f0ca3b908c78ba9477a42 Mon Sep 17 00:00:00 2001 From: Denis Mishankov Date: Thu, 22 Feb 2024 11:26:04 +0300 Subject: [PATCH] switch styles --- src/app.css | 33 ++----------------- src/components/TextArea.svelte | 6 ++-- src/manipulations/components/Append.svelte | 9 +---- src/manipulations/components/Compose.svelte | 9 +---- .../components/Manipulation.svelte | 21 +++++++----- src/manipulations/components/Prepend.svelte | 8 +---- src/manipulations/components/Replace.svelte | 9 +---- src/manipulations/components/Slice.svelte | 10 +----- .../components/SplitCompose.svelte | 9 +---- .../components/SplitGetFromIndex.svelte | 9 +---- src/manipulations/components/SplitJoin.svelte | 3 -- 11 files changed, 26 insertions(+), 100 deletions(-) diff --git a/src/app.css b/src/app.css index c2a87e5..4dc8eae 100644 --- a/src/app.css +++ b/src/app.css @@ -1,37 +1,10 @@ html { - --bg-color-90: hsl(290, 9%, 10%); - --bg-color-100: hsl(290, 9%, 13%); - --bg-color-110: hsl(290, 9%, 16%); - --bg-color-120: hsl(290, 9%, 18%); - --text-color: hsl(30, 100%, 99%); + --bg-color-100: hsl(157, 100%, 90%); + --border-color-100: hsl(157, 100%, 10%); - - --replace-bg-color: hsl(10, 52%, 53%); - --replace-border-color: hsl(10, 62%, 53%); - - --prepend-bg-color: hsl(40, 52%, 53%); - --prepend-border-color: hsl(40, 52%, 53%); - - --append-bg-color: hsl(70, 52%, 53%); - --append-border-color: hsl(70, 62%, 53%); - - --splitGetFromIndex-bg-color: hsl(100, 52%, 53%); - --splitGetFromIndex-border-color: hsl(100, 62%, 53%); - - --compose-bg-color: hsl(160, 52%, 53%); - --compose-border-color: hsl(160, 62%, 53%); - - --slice-bg-color: hsl(190, 52%, 53%); - --slice-border-color: hsl(190, 62%, 53%); - - --splitCompose-bg-color: hsl(220, 52%, 53%); - --splitCompose-border-color: hsl(220, 62%, 53%); - - --splitJoin-bg-color: hsl(250, 52%, 53%); - --splitJoin-border-color: hsl(250, 62%, 53%); + --text-color: #000 } body { background-color: var(--bg-color-100); - color: var(--text-color); } diff --git a/src/components/TextArea.svelte b/src/components/TextArea.svelte index 7b57120..764c503 100644 --- a/src/components/TextArea.svelte +++ b/src/components/TextArea.svelte @@ -15,15 +15,15 @@ textarea { height: 500px; width: 300px; - background-color: var(--bg-color-110); + /* background-color: #FFF; */ color: var(--text-color); border-radius: 10px; - border: 1px solid var(--bg-color-90); + border: 1px solid var(--border-color-100); padding: 10px; } textarea:focus { outline: none; - background-color: var(--bg-color-120); + /* background-color: var(--bg-color-120); */ } diff --git a/src/manipulations/components/Append.svelte b/src/manipulations/components/Append.svelte index f50aab8..3777c31 100644 --- a/src/manipulations/components/Append.svelte +++ b/src/manipulations/components/Append.svelte @@ -11,13 +11,6 @@ export let { suffix }: AppendManipulation = { suffix: "", type: "append"} -
+
Suffix
- - diff --git a/src/manipulations/components/Compose.svelte b/src/manipulations/components/Compose.svelte index 2ab3db5..b9c9db1 100644 --- a/src/manipulations/components/Compose.svelte +++ b/src/manipulations/components/Compose.svelte @@ -12,13 +12,6 @@ export let { pattern, placeholder }: ComposeManipulation = { pattern: "", placeholder: "{}", type: "compose"} -
+
Replace placeholder in pattern