Add glass dropdown styles

This commit is contained in:
jeffvli
2022-12-13 15:06:21 -08:00
parent 8de8aab23e
commit acf873f0d6
2 changed files with 7 additions and 7 deletions
@@ -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"