diff --git a/src/styles/compendium-browser.less b/src/styles/compendium-browser.less index b986c6b..f7d4ab6 100644 --- a/src/styles/compendium-browser.less +++ b/src/styles/compendium-browser.less @@ -305,45 +305,74 @@ } } } - .npc-browser { - .npc { + .browser { + li:hover { + .line { + h4 { + text-shadow: 0 0 8px var(--color-shadow-primary); + } + } + } + + .image { + max-width: 32px; + height: 32px; + img { + width: 32px; + height: 32px; + border: none; + object-fit: contain; + } + } + + .line { + line-height: 25px; + margin: auto 0 auto 8px; + + .tags { + .bold { + font-weight: bold; + } + .details { + flex: 2; + } + } + + } + + .item { + cursor: default; + vertical-align: middle; + line-height: 16px; + margin: 2px 0; + height: 32px; + .feat-tags { + text-align: right; + margin-right: 3px; + margin-left: 3px; + text-transform: capitalize; + height: 32px; + } + .item-tags { + text-align: right; + margin-right: 3px; + margin-left: 3px; + text-transform: capitalize; + height: 32px; + } + } + + .actor { cursor: default; vertical-align: middle; line-height: 64px; margin: 4px 0; - .npc-image { + .image { max-width: 64px; height: 64px; img { width: 64px; height: 64px; - border: none; - object-fit: contain; - } - } - .npc-line { - line-height: 25px; - padding: 9px 0 5px 5px; - - .npc-name { - font-weight: bold; - font-size: 16px; - } - .npc-tags { - .bold { - font-weight: bold; - } - .details { - flex: 2; - } - } - } - - &:hover { - .npc-line { - .npc-name { - text-shadow: 0 0 8px var(--color-shadow-primary); - } } } } diff --git a/src/vue/CompendiumBrowser.vue b/src/vue/CompendiumBrowser.vue index 2f9c837..99fd0d9 100644 --- a/src/vue/CompendiumBrowser.vue +++ b/src/vue/CompendiumBrowser.vue @@ -21,8 +21,7 @@ - Items - + @@ -35,7 +34,7 @@ import Tabs from '@/components/parts/Tabs.vue'; import Tab from '@/components/parts/Tab.vue'; import CompendiumBrowserCreatures from '@/components/dialogs/compendium-browser/CompendiumBrowserCreatures.vue'; // import CompendiumBrowserPowers from '@/components/dialogs/compendium-browser/CompendiumBrowserPowers.vue'; -// import CompendiumBrowserItems from '@/components/dialogs/compendium-browser/CompendiumBrowserItems.vue'; +import CompendiumBrowserItems from '@/components/dialogs/compendium-browser/CompendiumBrowserItems.vue'; // Stub is an example component and should be removed once the others are all working. import Stub from '@/components/dialogs/compendium-browser/Stub.vue'; @@ -49,7 +48,7 @@ export default { Stub, CompendiumBrowserCreatures, // CompendiumBrowserPowers, - // CompendiumBrowserItems + CompendiumBrowserItems }, setup() { return { diff --git a/src/vue/components/dialogs/compendium-browser/CompendiumBrowserCreatures.vue b/src/vue/components/dialogs/compendium-browser/CompendiumBrowserCreatures.vue index 99b0131..a5dd1e5 100644 --- a/src/vue/components/dialogs/compendium-browser/CompendiumBrowserCreatures.vue +++ b/src/vue/components/dialogs/compendium-browser/CompendiumBrowserCreatures.vue @@ -9,14 +9,14 @@ -
-
{{ game.i18n.localize('Sort by:') }}
-
+
+ +
-
-
+ +
@@ -146,17 +146,17 @@