From f0070fe4a6a0e436e67062cf414cfbcec19f22d3 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 18 Dec 2024 18:03:01 +0800 Subject: [PATCH] feat: tweak styling --- packages/client/internals/ClicksSlider.vue | 2 +- packages/client/internals/ContextMenu.vue | 2 +- packages/client/internals/DragControl.vue | 2 +- packages/client/internals/DrawingControls.vue | 2 +- packages/client/internals/FormCheckbox.vue | 2 +- packages/client/internals/MenuButton.vue | 2 +- packages/client/internals/Modal.vue | 2 +- packages/client/internals/NavControls.vue | 2 +- packages/client/internals/QuickOverview.vue | 4 ++-- packages/client/internals/SideEditor.vue | 2 +- packages/client/internals/WebCamera.vue | 4 ++-- packages/client/pages/export.vue | 2 +- packages/client/pages/overview.vue | 2 +- packages/client/styles/index.css | 2 +- packages/client/uno.config.ts | 11 +++++++++++ packages/slidev/node/cli.ts | 2 ++ 16 files changed, 29 insertions(+), 16 deletions(-) diff --git a/packages/client/internals/ClicksSlider.vue b/packages/client/internals/ClicksSlider.vue index 84cf7fe2d7..54c9bf4f0a 100644 --- a/packages/client/internals/ClicksSlider.vue +++ b/packages/client/internals/ClicksSlider.vue @@ -87,7 +87,7 @@ function onMousedown() { v-model="current" class="range" type="range" :min="start" :max="total" :step="1" - absolute inset-0 z-10 op0 + absolute inset-0 z-label op0 :class="readonly ? 'pointer-events-none' : ''" :style="{ '--thumb-width': `${1 / (length + 1) * 100}%` }" @mousedown="onMousedown" diff --git a/packages/client/internals/ContextMenu.vue b/packages/client/internals/ContextMenu.vue index 9f4404d718..59eeb12940 100644 --- a/packages/client/internals/ContextMenu.vue +++ b/packages/client/internals/ContextMenu.vue @@ -61,7 +61,7 @@ const top = computed(() => { v-if="currentContextMenu" ref="container" :style="`left:${left}px;top:${top}px`" - class="fixed z-100 w-60 flex flex-wrap justify-items-start p-1 animate-fade-in animate-duration-100 backdrop-blur bg-main bg-opacity-75! border border-main rounded-md shadow overflow-hidden select-none" + class="slidev-glass-effect fixed z-context-menu w-60 flex flex-wrap justify-items-start p-1 animate-fade-in animate-duration-100 rounded-md shadow overflow-hidden select-none" @contextmenu.prevent="" @click="closeContextMenu" > diff --git a/packages/client/internals/DragControl.vue b/packages/client/internals/DragControl.vue index a9087d31f1..818d486b2f 100644 --- a/packages/client/internals/DragControl.vue +++ b/packages/client/internals/DragControl.vue @@ -375,7 +375,7 @@ watchEffect(() => { @pointermove="onPointermove" @pointerup="onPointerup" > -
+