mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(compiler): improve skin transform dx
This commit is contained in:
@@ -2,6 +2,18 @@ import { cn } from '@videojs/utils/style';
|
||||
|
||||
export const error = {
|
||||
root: 'peer/error group/error hidden data-[open]:flex absolute inset-0 z-20 items-center justify-center outline-none',
|
||||
popup: cn(
|
||||
'peer/error group/error hidden data-[open]:flex absolute left-1/2 top-1/2 z-20 -translate-x-1/2 -translate-y-1/2 outline-none',
|
||||
'flex-col gap-3 max-w-72 p-5 rounded-[1.75rem] text-white',
|
||||
// Animation
|
||||
'transition-[opacity,scale,transform]',
|
||||
'duration-(--media-error-dialog-transition-duration)',
|
||||
'delay-(--media-error-dialog-transition-delay)',
|
||||
'ease-(--media-error-dialog-transition-timing-function)',
|
||||
'data-starting-style:opacity-0 data-starting-style:scale-50',
|
||||
'data-ending-style:opacity-0 data-ending-style:scale-50',
|
||||
'data-ending-style:delay-0'
|
||||
),
|
||||
dialog: cn(
|
||||
'flex flex-col gap-3 max-w-72 p-3 rounded-[1.75rem] text-white',
|
||||
// Animation
|
||||
@@ -17,4 +29,5 @@ export const error = {
|
||||
title: 'font-semibold leading-tight',
|
||||
description: 'opacity-70 wrap-anywhere',
|
||||
actions: 'flex gap-2 *:flex-1',
|
||||
close: 'w-full',
|
||||
};
|
||||
|
||||
@@ -187,6 +187,7 @@ export const bufferingIndicator = {
|
||||
|
||||
export const error = {
|
||||
...baseError,
|
||||
popup: cn(baseError.popup, surface, 'text-shadow-2xs text-shadow-black/25'),
|
||||
dialog: cn(baseError.dialog, surface, 'text-shadow-2xs text-shadow-black/25'),
|
||||
content: cn(baseError.content, 'text-shadow-inherit'),
|
||||
title: cn(baseError.title, 'text-base'),
|
||||
|
||||
Reference in New Issue
Block a user