mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-05-12 14:12:08 +08:00
revert: restore px-based calc utilities
This commit is contained in:
@@ -347,7 +347,7 @@ onUnmounted(() => {
|
|||||||
:is="FieldComponent"
|
:is="FieldComponent"
|
||||||
ref="fieldComponentRef"
|
ref="fieldComponentRef"
|
||||||
:class="{
|
:class="{
|
||||||
'border-destructive hover:border-destructive/80 focus:border-destructive focus:shadow-[0_0_0_calc(var(--spacing)*0.5)_rgba(255,38,5,0.06)]':
|
'border-destructive hover:border-destructive/80 focus:border-destructive focus:shadow-[0_0_0_2px_rgba(255,38,5,0.06)]':
|
||||||
isInValid,
|
isInValid,
|
||||||
}"
|
}"
|
||||||
v-bind="createComponentProps(slotProps)"
|
v-bind="createComponentProps(slotProps)"
|
||||||
|
|||||||
@@ -548,8 +548,7 @@ const idMainContent = ELEMENT_ID_MAIN_CONTENT;
|
|||||||
<div
|
<div
|
||||||
:class="[
|
:class="[
|
||||||
{
|
{
|
||||||
'shadow-[0_calc(var(--spacing)*4)_calc(var(--spacing)*6)_hsl(var(--background))]':
|
'shadow-[0_16px_24px_hsl(var(--background))]': scrollY > 20,
|
||||||
scrollY > 20,
|
|
||||||
},
|
},
|
||||||
SCROLL_FIXED_CLASS,
|
SCROLL_FIXED_CLASS,
|
||||||
]"
|
]"
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ onBeforeUnmount(() => {
|
|||||||
is(rootMenu.theme, true),
|
is(rootMenu.theme, true),
|
||||||
opened ? '' : 'hidden',
|
opened ? '' : 'hidden',
|
||||||
'overflow-auto',
|
'overflow-auto',
|
||||||
'max-h-[calc(var(--reka-hover-card-content-available-height)-calc(var(--spacing)*5))]',
|
'max-h-[calc(var(--reka-hover-card-content-available-height)-20px)]',
|
||||||
mode === 'horizontal' ? 'is-horizontal' : '',
|
mode === 'horizontal' ? 'is-horizontal' : '',
|
||||||
]"
|
]"
|
||||||
:content-props="contentProps"
|
:content-props="contentProps"
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ function onMouseDown(e: MouseEvent, tab: TabConfig) {
|
|||||||
></div>
|
></div>
|
||||||
<!-- background -->
|
<!-- background -->
|
||||||
<div
|
<div
|
||||||
class="tabs-chrome__background absolute z-[-1] size-full px-[calc(var(--gap)-calc(var(--spacing)*0.25))] py-0 transition-opacity duration-150"
|
class="tabs-chrome__background absolute z-[-1] size-full px-[calc(var(--gap)-1px)] py-0 transition-opacity duration-150"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="tabs-chrome__background-content h-full rounded-tl-(--gap) rounded-tr-(--gap) duration-150 group-[.is-active]:bg-primary/15 group-[.is-active]:dark:bg-accent"
|
class="tabs-chrome__background-content h-full rounded-tl-(--gap) rounded-tr-(--gap) duration-150 group-[.is-active]:bg-primary/15 group-[.is-active]:dark:bg-accent"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const typeWithClass = computed(() => {
|
|||||||
},
|
},
|
||||||
card: {
|
card: {
|
||||||
content:
|
content:
|
||||||
'h-[calc(100%-calc(var(--spacing)*1.5))] rounded-md ml-2 border border-border transition-all',
|
'h-[calc(100%-6px)] rounded-md ml-2 border border-border transition-all',
|
||||||
},
|
},
|
||||||
plain: {
|
plain: {
|
||||||
content:
|
content:
|
||||||
|
|||||||
Reference in New Issue
Block a user