Subtle styling adjustments to dropdown menus
This commit is contained in:
@ -5,6 +5,7 @@ import { observable } from "mobx";
|
|||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { PortalWithState } from "react-portal";
|
import { PortalWithState } from "react-portal";
|
||||||
import { MoreIcon } from "outline-icons";
|
import { MoreIcon } from "outline-icons";
|
||||||
|
import { rgba } from "polished";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import Flex from "shared/components/Flex";
|
import Flex from "shared/components/Flex";
|
||||||
import { fadeAndScaleIn } from "shared/styles/animations";
|
import { fadeAndScaleIn } from "shared/styles/animations";
|
||||||
@ -252,11 +253,10 @@ const Position = styled.div`
|
|||||||
const Menu = styled.div`
|
const Menu = styled.div`
|
||||||
animation: ${fadeAndScaleIn} 200ms ease;
|
animation: ${fadeAndScaleIn} 200ms ease;
|
||||||
transform-origin: ${props => (props.left !== undefined ? "25%" : "75%")} 0;
|
transform-origin: ${props => (props.left !== undefined ? "25%" : "75%")} 0;
|
||||||
background: ${props => props.theme.menuBackground};
|
backdrop-filter: blur(10px);
|
||||||
${props =>
|
background: ${props => rgba(props.theme.menuBackground, 0.8)};
|
||||||
props.theme.menuBorder
|
border: ${props =>
|
||||||
? `border: 1px solid ${props.theme.menuBorder}`
|
props.theme.menuBorder ? `1px solid ${props.theme.menuBorder}` : "none"};
|
||||||
: ""};
|
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
padding: 0.5em 0;
|
padding: 0.5em 0;
|
||||||
min-width: 180px;
|
min-width: 180px;
|
||||||
|
@ -75,6 +75,12 @@ const MenuItem = styled.a`
|
|||||||
fill: ${props.theme.white};
|
fill: ${props.theme.white};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
color: ${props.theme.white};
|
||||||
|
background: ${props.theme.primary};
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
`};
|
`};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user