From 9faaf849db46999be2a90a5794abc6d1a3790cd4 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 27 Jul 2022 00:02:33 +0530 Subject: [PATCH] feat(gui-v2): add menu item styling Signed-off-by: Pranav C --- packages/nc-gui-v2/assets/style-v2.scss | 5 + .../smartsheet-toolbar/LockMenu.vue | 59 +-------- .../smartsheet-toolbar/MoreActions.vue | 120 +++++------------- .../smartsheet-toolbar/SearchData.vue | 6 +- 4 files changed, 42 insertions(+), 148 deletions(-) diff --git a/packages/nc-gui-v2/assets/style-v2.scss b/packages/nc-gui-v2/assets/style-v2.scss index 21336be98a..410781cf29 100644 --- a/packages/nc-gui-v2/assets/style-v2.scss +++ b/packages/nc-gui-v2/assets/style-v2.scss @@ -64,3 +64,8 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { html { overflow-y: auto !important; } + + +.nc-menu-item { + @apply cursor-pointer text-xs flex align-center gap-2 p-4 relative after:(content-[''] absolute top-0 left-0 w-full h-full right 0 bg-current opacity-0 transition transition-opactity duration-100) hover:(after:(opacity-5)); +} diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/LockMenu.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/LockMenu.vue index 1a627b96e5..beca67d159 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/LockMenu.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/LockMenu.vue @@ -63,7 +63,7 @@ export default { - diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/SearchData.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/SearchData.vue index 01986f736f..513c2d44ee 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/SearchData.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/SearchData.vue @@ -27,11 +27,11 @@ const columns = computed(() =>