From 3c96c229f7fcf89de9d8eebb1facb083819166b2 Mon Sep 17 00:00:00 2001 From: OnlyF0uR Date: Mon, 26 Sep 2022 13:45:19 +0200 Subject: [PATCH] UI/UX --- lib/contents/details.svelte | 10 ++++++---- lib/contents/target.svelte | 15 ++++----------- lib/exception.svelte | 3 ++- src/routes/+layout.svelte | 11 +++++++++-- 4 files changed, 21 insertions(+), 18 deletions(-) diff --git a/lib/contents/details.svelte b/lib/contents/details.svelte index 5d6af3d..8fe7429 100644 --- a/lib/contents/details.svelte +++ b/lib/contents/details.svelte @@ -14,6 +14,9 @@

Case details

+ + Information +

Name: {caseData.name}

Description: {caseData.desc ?? 'N/A'}

@@ -47,6 +50,8 @@ .row { display: flex; gap: var(--content-spacing); + min-height: var(--row1-height); + max-height: var(--row1-height); } .row div { @@ -57,14 +62,11 @@ background-color: var(--blue-colour); width: var(--row1-spacing); - min-height: var(--row1-height); - max-height: var(--row1-height); + padding: var(--box-item-padding); } .row > .stats { width: calc(100% - var(--content-spacing) - var(--row1-spacing)); - min-height: var(--row1-height); - max-height: var(--row1-height); display: flex; flex-wrap: wrap; diff --git a/lib/contents/target.svelte b/lib/contents/target.svelte index 8694c79..7ddf99f 100644 --- a/lib/contents/target.svelte +++ b/lib/contents/target.svelte @@ -77,7 +77,7 @@ {#each data.primary as entity}
- {entity.title} + {entity.title}

Relations:

    @@ -102,7 +102,7 @@ {#each data.secondary as entity}
    - {entity.title} + {entity.title}

    Relations:

      @@ -127,7 +127,7 @@ {#each data.tertiary as entity}
      - {entity.title} + {entity.title}

      Relations:

        @@ -188,14 +188,7 @@ } .target-content { - padding: 12px; - } - - .target-content > .title { - color: var(--light-grey-text-colour); - letter-spacing: 0.05em; - font-size: 16px; - cursor: pointer; + padding: var(--box-item-padding); } .target-content > .relations { diff --git a/lib/exception.svelte b/lib/exception.svelte index 9c8f592..b216843 100644 --- a/lib/exception.svelte +++ b/lib/exception.svelte @@ -8,9 +8,10 @@ \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index f65b4e9..30c5bf4 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -18,17 +18,24 @@ --green-colour: #0cb403; --dark-grey-colour: darkslategray; - /* Highlights */ - --light-highlight-colour: #fff9cc; + /* Highlight */ --dark-highlight-colour: rgb(240, 184, 45); --content-spacing: 24px; + --box-item-padding: 12px; } :global(div.content-container) { padding: var(--content-spacing); } + :global(span.box-content-title) { + color: var(--light-grey-text-colour); + letter-spacing: 0.05em; + font-size: 16px; + cursor: pointer; + } + :global(h4.content-title) { text-transform: uppercase; margin-bottom: 18px;