diff --git a/packages/panel/src/components/Panel.svelte b/packages/panel/src/components/Panel.svelte index b42c6ea3d7..fff855d1e9 100644 --- a/packages/panel/src/components/Panel.svelte +++ b/packages/panel/src/components/Panel.svelte @@ -121,7 +121,7 @@ .header { flex-shrink: 0; - padding: 0 2rem 0 2.5rem; + padding: 0 2.5rem 0 2.5rem; min-height: 0; height: 4rem; color: var(--theme-content-accent-color); diff --git a/packages/theme/styles/_colors.scss b/packages/theme/styles/_colors.scss index 1f100a6aa6..941b6e898c 100644 --- a/packages/theme/styles/_colors.scss +++ b/packages/theme/styles/_colors.scss @@ -46,6 +46,8 @@ --primary-color-pink: #FA8DA1; --highlight-red: #F96E50; + --highlight-red-hover: #ff967e; + --highlight-red-press: #f96f50bd; } /* Dark Theme */ diff --git a/packages/theme/styles/common.scss b/packages/theme/styles/common.scss index 23d8412979..f04f268a7a 100644 --- a/packages/theme/styles/common.scss +++ b/packages/theme/styles/common.scss @@ -52,6 +52,61 @@ padding: 0 1.75rem; height: 4rem; } +.antiNav-element { + flex-shrink: 0; + display: flex; + align-items: center; + margin: 0 1rem; + height: 2.25rem; + border-radius: .5rem; + user-select: none; + cursor: pointer; + + .an-element__icon { + min-width: 1rem; + color: var(--theme-content-trans-color); + margin: 0 1.125rem 0 .625rem; + &.sub { margin: 0 .5rem 0 2.75rem } + } + .an-element__label { + flex-grow: 1; + margin-right: .75rem; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + user-select: none; + font-weight: 400; + color: var(--theme-content-color); + &.title { + font-weight: 500; + color: var(--theme-caption-color); + } + } + .an-element__tool { + margin-right: .75rem; + visibility: hidden; + } + .an-element__counter { + margin-right: .75rem; + font-weight: 600; + font-size: .75rem; + color: var(--theme-caption-color); + } + + &:hover, &.hovered { + background-color: var(--theme-button-bg-enabled); + .an-element__tool { visibility: visible; } + } + &.selected { + background-color: var(--theme-menu-selection); + &:hover { background-color: var(--theme-button-bg-enabled); } + } + + &__dropbox { + height: auto; + margin-bottom: .5rem; + } +} .antiNav-divider { flex-shrink: 0; margin: 1.5rem 0; diff --git a/packages/theme/styles/popups.scss b/packages/theme/styles/popups.scss index 0d86720593..91f3d13b97 100644 --- a/packages/theme/styles/popups.scss +++ b/packages/theme/styles/popups.scss @@ -78,6 +78,13 @@ background-color: var(--theme-button-bg-pressed); z-index: 1; } + + &.redlight { + color: var(--highlight-red); + &:hover { color: var(--highlight-red-hover); } + &:active { color: var(--highlight-red-press); } + &:focus { color: var(--highlight-red-press); } + } } .ap-check { margin-left: 1rem; diff --git a/plugins/inventory-assets/assets/icons.svg b/plugins/inventory-assets/assets/icons.svg index 9e77c4644e..b944f924c2 100644 --- a/plugins/inventory-assets/assets/icons.svg +++ b/plugins/inventory-assets/assets/icons.svg @@ -9,6 +9,10 @@ - + + + + + diff --git a/plugins/inventory-resources/src/components/CreateCategory.svelte b/plugins/inventory-resources/src/components/CreateCategory.svelte index 33731a4153..5cf6c7a510 100644 --- a/plugins/inventory-resources/src/components/CreateCategory.svelte +++ b/plugins/inventory-resources/src/components/CreateCategory.svelte @@ -68,6 +68,7 @@ {#if value} -
+
{value.name}
{/if} diff --git a/plugins/setting-resources/src/components/CategoryElement.svelte b/plugins/setting-resources/src/components/CategoryElement.svelte index 01a8fb3b74..0a6c4b7475 100644 --- a/plugins/setting-resources/src/components/CategoryElement.svelte +++ b/plugins/setting-resources/src/components/CategoryElement.svelte @@ -19,53 +19,24 @@ export let icon: Asset | undefined = undefined export let label: IntlString | undefined = undefined + export let selected: boolean = false const dispatch = createEventDispatcher()
{ dispatch('click') }} > -
+
{#if icon} {/if}
- + {#if label}
- - diff --git a/plugins/setting-resources/src/components/Settings.svelte b/plugins/setting-resources/src/components/Settings.svelte index c4bfd9d1a8..599fc6f423 100644 --- a/plugins/setting-resources/src/components/Settings.svelte +++ b/plugins/setting-resources/src/components/Settings.svelte @@ -41,44 +41,34 @@ } -
-
- - {#each categories as category} - { selectCategory(category.name) }}/> - {/each} -
- -
-
+
+
+
+ + +
+ {#each categories as category} + { selectCategory(category.name) }}/> + {/each} +
+ +
+
-
- {#if category} - - {/if} -
+
+ {#if category} + + {/if} +
diff --git a/plugins/task-resources/src/components/state/StatesPopup.svelte b/plugins/task-resources/src/components/state/StatesPopup.svelte index aa50b22eb1..14c61850db 100644 --- a/plugins/task-resources/src/components/state/StatesPopup.svelte +++ b/plugins/task-resources/src/components/state/StatesPopup.svelte @@ -38,46 +38,27 @@ ) -
+
+
{#each states as state} -
{ dispatch('close', state) }} >
{state.title} -
+ {/each} +
diff --git a/plugins/task-resources/src/components/state/StatusesPopup.svelte b/plugins/task-resources/src/components/state/StatusesPopup.svelte index 718082e6aa..97fcd3506b 100644 --- a/plugins/task-resources/src/components/state/StatusesPopup.svelte +++ b/plugins/task-resources/src/components/state/StatusesPopup.svelte @@ -23,16 +23,18 @@ const dispatch = createEventDispatcher() -