feat: minor ui improvements to power search
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
hover:bg-primaryLight
|
hover:bg-primaryLight
|
||||||
focus:outline-none
|
focus:outline-none
|
||||||
focus-visible:bg-primaryLight
|
focus-visible:bg-primaryLight
|
||||||
|
search-entry
|
||||||
"
|
"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
@click="$emit('action', shortcut.action)"
|
@click="$emit('action', shortcut.action)"
|
||||||
@@ -19,10 +20,10 @@
|
|||||||
<SmartIcon
|
<SmartIcon
|
||||||
class="
|
class="
|
||||||
mr-4
|
mr-4
|
||||||
opacity-75
|
opacity-50
|
||||||
transition
|
transition
|
||||||
svg-icons
|
svg-icons
|
||||||
group-hover:opacity-100
|
group-hover:text-secondaryDark group-hover:opacity-100
|
||||||
group-focus:opacity-100
|
group-focus:opacity-100
|
||||||
"
|
"
|
||||||
:name="shortcut.icon"
|
:name="shortcut.icon"
|
||||||
@@ -55,6 +56,28 @@ defineProps<{
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.search-entry {
|
||||||
|
@apply relative;
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
@apply absolute;
|
||||||
|
@apply top-0;
|
||||||
|
@apply left-0;
|
||||||
|
@apply bottom-0;
|
||||||
|
@apply bg-transparent;
|
||||||
|
@apply z-2;
|
||||||
|
@apply w-0.5;
|
||||||
|
@apply transition;
|
||||||
|
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover::after,
|
||||||
|
&:focus::after {
|
||||||
|
@apply bg-accentLight;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.shortcut-key {
|
.shortcut-key {
|
||||||
@apply bg-dividerLight;
|
@apply bg-dividerLight;
|
||||||
@apply rounded;
|
@apply rounded;
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&.active {
|
&.active {
|
||||||
@apply bg-accent;
|
@apply bg-accentDark;
|
||||||
@apply text-accentContrast;
|
@apply text-accentContrast;
|
||||||
@apply cursor-pointer;
|
@apply cursor-pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user