mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
Add glass dropdown styles
This commit is contained in:
@@ -28,7 +28,6 @@ const StyledMenuItem = styled(MantineMenu.Item)<MenuItemProps>`
|
|||||||
padding: 0.8rem;
|
padding: 0.8rem;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
font-family: var(--content-font-family);
|
font-family: var(--content-font-family);
|
||||||
background-color: var(--dropdown-menu-bg);
|
|
||||||
|
|
||||||
&:disabled {
|
&:disabled {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
@@ -72,7 +71,10 @@ export const DropdownMenu = ({ children, ...props }: MenuProps) => {
|
|||||||
withinPortal
|
withinPortal
|
||||||
radius="sm"
|
radius="sm"
|
||||||
styles={{
|
styles={{
|
||||||
dropdown: { filter: 'drop-shadow(0 0 5px rgb(0, 0, 0, 50%))' },
|
dropdown: {
|
||||||
|
backdropFilter: 'blur(8px)',
|
||||||
|
filter: 'drop-shadow(0 0 5px rgb(0, 0, 0, 50%))',
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
transition="scale"
|
transition="scale"
|
||||||
{...props}
|
{...props}
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ interface MultiSelectProps extends MantineMultiSelectProps {
|
|||||||
|
|
||||||
const StyledSelect = styled(MantineSelect)`
|
const StyledSelect = styled(MantineSelect)`
|
||||||
& [data-selected='true'] {
|
& [data-selected='true'] {
|
||||||
background: var(--input-select-bg);
|
background: var(--input-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
& .mantine-Select-disabled {
|
& .mantine-Select-disabled {
|
||||||
background: var(--input-select-bg);
|
background: var(--input-bg);
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38,6 +38,7 @@ export const Select = ({ width, maxWidth, ...props }: SelectProps) => {
|
|||||||
withinPortal
|
withinPortal
|
||||||
styles={{
|
styles={{
|
||||||
dropdown: {
|
dropdown: {
|
||||||
|
backdropFilter: 'blur(8px)',
|
||||||
background: 'var(--dropdown-menu-bg)',
|
background: 'var(--dropdown-menu-bg)',
|
||||||
filter: 'drop-shadow(0 0 5px rgb(0, 0, 0, 20%))',
|
filter: 'drop-shadow(0 0 5px rgb(0, 0, 0, 20%))',
|
||||||
},
|
},
|
||||||
@@ -62,9 +63,6 @@ export const Select = ({ width, maxWidth, ...props }: SelectProps) => {
|
|||||||
color: 'var(--dropdown-menu-fg)',
|
color: 'var(--dropdown-menu-fg)',
|
||||||
padding: '.3rem',
|
padding: '.3rem',
|
||||||
},
|
},
|
||||||
itemsWrapper: {
|
|
||||||
background: 'var(--dropdown-menu-bg)',
|
|
||||||
},
|
|
||||||
}}
|
}}
|
||||||
sx={{ maxWidth, width }}
|
sx={{ maxWidth, width }}
|
||||||
transition="pop"
|
transition="pop"
|
||||||
|
|||||||
Reference in New Issue
Block a user