fix: various style issues
This commit is contained in:
@@ -27,7 +27,6 @@ export const CSSReset = createGlobalStyle`
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
vertical-align: baseline;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -101,16 +101,18 @@ const PlainIcon: React.StatelessComponent<IconProps> = props => {
|
||||
};
|
||||
|
||||
export const Icon = withTheme(styled(PlainIcon)`
|
||||
display: inline-block;
|
||||
${props => (!_.isUndefined(props.onClick) ? 'cursor: pointer' : '')};
|
||||
transition: opacity 0.5s ease;
|
||||
padding: ${props => props.padding};
|
||||
opacity: ${props => (!_.isUndefined(props.onClick) ? 0.7 : 1)};
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
&:active {
|
||||
opacity: 1;
|
||||
&& {
|
||||
display: inline-block;
|
||||
${props => (!_.isUndefined(props.onClick) ? 'cursor: pointer' : '')};
|
||||
transition: opacity 0.5s ease;
|
||||
padding: ${props => props.padding};
|
||||
opacity: ${props => (!_.isUndefined(props.onClick) ? 0.7 : 1)};
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
&:active {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
`);
|
||||
|
||||
|
||||
@@ -12,13 +12,15 @@ export const Overlay =
|
||||
styled.div <
|
||||
OverlayProps >
|
||||
`
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: ${props => props.zIndex}
|
||||
background-color: ${props => props.backgroundColor};
|
||||
&& {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: ${props => props.zIndex}
|
||||
background-color: ${props => props.backgroundColor};
|
||||
}
|
||||
`;
|
||||
|
||||
Overlay.defaultProps = {
|
||||
|
||||
Reference in New Issue
Block a user