mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
🆙 Upgrade to tailwind css 4.2.0
This commit is contained in:
@@ -161,7 +161,7 @@ const InfiniteGridItem = forwardRef<HTMLDivElement, {
|
||||
) }
|
||||
{ ...rest }>
|
||||
{ (itemCount > itemCountMinimum) &&
|
||||
<div className="absolute align-middle rounded bg-red-700 bg-opacity-80 text-white border-black border top-[2px] right-[2px] text-[9.5px] p-[2px] z-[1] leading-[8px]">{ itemCount }</div> }
|
||||
<div className="absolute align-middle rounded bg-red-700 bg-opacity-80 text-white border-black border top-[2px] right-[2px] text-[9.5px] p-[2px] z-1 leading-[8px]">{ itemCount }</div> }
|
||||
{ (itemUniqueNumber > 0) &&
|
||||
<>
|
||||
<div
|
||||
|
||||
@@ -80,7 +80,7 @@ const NitroCardTabs = forwardRef<HTMLDivElement, {
|
||||
<div
|
||||
ref={ ref }
|
||||
className={ classNames(
|
||||
'justify-center gap-0.5 flex bg-card-tabs min-h-card-tabs max-h-card-tabs pt-1 border-b border-card-border px-2 -mt-[1px]',
|
||||
'justify-center gap-0.5 flex bg-card-tabs min-h-card-tabs max-h-card-tabs pt-1 border-b border-card-border px-2 -mt-px',
|
||||
className)
|
||||
}
|
||||
{ ...rest } />
|
||||
@@ -100,8 +100,8 @@ const NitroCardTabItem = forwardRef<HTMLDivElement, {
|
||||
<div
|
||||
ref={ ref }
|
||||
className={ classNames(
|
||||
'overflow-hidden relative cursor-pointer rounded-t-md flex bg-card-tab-item px-3 py-1 z-[1] border-card-border border-t border-l border-r before:absolute before:w-[93%] before:h-[3px] before:rounded-md before:top-[1.5px] before:left-0 before:right-0 before:m-auto before:z-[1] before:bg-[#C2C9D1]',
|
||||
isActive && 'bg-card-tab-item-active -mb-[1px] before:bg-white',
|
||||
'overflow-hidden relative cursor-pointer rounded-t-md flex bg-card-tab-item px-3 py-1 z-1 border-card-border border-t border-l border-r before:absolute before:w-[93%] before:h-[3px] before:rounded-md before:top-[1.5px] before:left-0 before:right-0 before:m-auto before:z-1 before:bg-[#C2C9D1]',
|
||||
isActive && 'bg-card-tab-item-active -mb-px before:bg-white',
|
||||
className)
|
||||
}
|
||||
{ ...rest }>
|
||||
|
||||
@@ -2,7 +2,7 @@ import { DetailedHTMLProps, forwardRef, HTMLAttributes, PropsWithChildren } from
|
||||
import { classNames } from './classNames';
|
||||
|
||||
const classes = {
|
||||
base: 'text-[white] font-bold leading-none text-[9.5px] absolute right-0 top-0 py-0.5 px-[3px] z-[1] rounded border',
|
||||
base: 'text-[white] font-bold leading-none text-[9.5px] absolute right-0 top-0 py-0.5 px-[3px] z-1 rounded border',
|
||||
themes: {
|
||||
'primary': 'border-black bg-red-700'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user