mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
Add blur effects
This commit is contained in:
parent
26a7f2dee5
commit
fc70140718
|
@ -57,7 +57,8 @@ function Modal({
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className={clsx('z-navigation', 'fixed top-0 left-0', 'w-full h-full', 'clr-modal-backdrop')} />
|
||||
<div className={clsx('z-navigation', 'fixed top-0 left-0', 'w-full h-full', 'cc-modal-blur')} />
|
||||
<div className={clsx('z-navigation', 'fixed top-0 left-0', 'w-full h-full', 'cc-modal-backdrop')} />
|
||||
<motion.div
|
||||
ref={ref}
|
||||
className={clsx(
|
||||
|
|
|
@ -53,7 +53,7 @@ function GraphToolbar({
|
|||
return (
|
||||
<Overlay
|
||||
position='top-0 pt-1 right-1/2 translate-x-1/2'
|
||||
className='flex flex-col items-center bg-opacity-10 clr-app'
|
||||
className='flex flex-col items-center rounded-b-2xl cc-blur'
|
||||
>
|
||||
<div className='cc-icons'>
|
||||
<MiniButton
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
}
|
||||
|
||||
@layer components {
|
||||
.clr-modal-backdrop {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
:is(
|
||||
.clr-border,
|
||||
.border,
|
||||
|
@ -57,7 +53,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
:is(.clr-app, .clr-footer, .clr-modal-backdrop, .clr-btn-nav, .clr-input:disabled) {
|
||||
:is(.clr-app, .clr-footer, .cc-modal-backdrop, .clr-btn-nav, .clr-input:disabled) {
|
||||
background-color: var(--cl-bg-100);
|
||||
.dark & {
|
||||
background-color: var(--cd-bg-100);
|
||||
|
@ -199,6 +195,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
.cc-modal-blur {
|
||||
opacity: 0.3;
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.cc-modal-backdrop {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.cc-label {
|
||||
@apply text-sm font-medium cursor-default select-text whitespace-nowrap;
|
||||
}
|
||||
|
@ -210,4 +215,8 @@
|
|||
.cc-icons {
|
||||
@apply flex gap-1;
|
||||
}
|
||||
|
||||
.cc-blur {
|
||||
backdrop-filter: blur(3px);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user