import styled, { css } from 'styled-components' export const Container = styled.div` position: fixed; display: flex; flex-direction: column; z-index: 99; box-shadow: 0 1rem 3rem rgb(0 0 0 / 18%); border-radius: 0.25rem; padding: 0.5rem 0; min-width: 10rem; background-color: #fff; color: #343434; ${(props) => { return ( props.position && css` top: ${props.position.y}px; left: ${props.position.x}px; ` ) }} width: auto; ` export const ContextTitle = styled.span` font-size: var(--font-size-base); font-weight: 500; text-align: left; padding: 6px; ` export const DropdownItem = styled.a` display: block; width: 100%; padding: 0.35rem 1.5rem; clear: both; font-weight: 400; font-size: 0.8125rem; color: #212529; text-align: inherit; white-space: nowrap; background-color: transparent; border: 0; cursor: pointer; &&:hover { color: #1e2125; text-decoration: none; background-color: #f8f9fa; } `