mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
14 lines
479 B
TypeScript
14 lines
479 B
TypeScript
import styled from 'styled-components';
|
|
|
|
const StyledMessage = styled.div`
|
|
border-radius: 3px;
|
|
background-color: ${props => props.type === 'error' ? props.theme.warningBackgroundColor : 'transparent'};
|
|
font-size: ${props => props.theme.fontSize}px;
|
|
color: ${props => props.theme.color};
|
|
font-family: ${props => props.theme.fontFamily};
|
|
padding: ${props => props.type === 'error' ? props.theme.mainPadding : '0'}px;
|
|
word-break: break-all;
|
|
`;
|
|
|
|
export default StyledMessage;
|