123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import space from 'sentry/styles/space';
- /**
- * Note this is an object for `react-mentions` component and
- * not a styled component/emotion style
- */
- export default function mentionStyle({theme, minHeight}) {
- return {
- control: {
- backgroundColor: `${theme.background}`,
- fontSize: 15,
- fontWeight: 'normal',
- },
- input: {
- margin: 0,
- },
- '&singleLine': {
- control: {
- display: 'inline-block',
- width: 130,
- },
- highlighter: {
- padding: 1,
- border: '2px inset transparent',
- },
- input: {
- padding: 1,
- border: '2px inset',
- },
- },
- '&multiLine': {
- control: {
- fontFamily: 'Rubik, Avenir Next, Helvetica Neue, sans-serif',
- minHeight,
- },
- highlighter: {
- padding: 20,
- minHeight,
- },
- input: {
- padding: `${space(1.5)} ${space(2)} 0`,
- minHeight,
- overflow: 'auto',
- outline: 0,
- border: 0,
- },
- },
- suggestions: {
- list: {
- maxHeight: 150,
- overflow: 'auto',
- backgroundColor: `${theme.background}`,
- border: '1px solid rgba(0,0,0,0.15)',
- fontSize: 12,
- },
- item: {
- padding: '5px 15px',
- borderBottom: '1px solid rgba(0,0,0,0.15)',
- '&focused': {
- backgroundColor: `${theme.backgroundSecondary}`,
- },
- },
- },
- };
- }
|