Polished existing features, added items to sidebar navigation
This commit is contained in:
58
client/src/App/Toast/Styles.js
Normal file
58
client/src/App/Toast/Styles.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { color, font, mixin, zIndexValues } from 'shared/utils/styles';
|
||||
|
||||
export const Container = styled.div`
|
||||
z-index: ${zIndexValues.modal + 1};
|
||||
position: fixed;
|
||||
right: 30px;
|
||||
top: 50px;
|
||||
`;
|
||||
|
||||
export const StyledToast = styled.div`
|
||||
position: relative;
|
||||
margin-bottom: 5px;
|
||||
width: 300px;
|
||||
padding: 15px 20px;
|
||||
border-radius: 3px;
|
||||
color: #fff;
|
||||
background: ${props => color[props.type]};
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
${mixin.clearfix}
|
||||
${mixin.hardwareAccelerate}
|
||||
|
||||
&.jira-toast-enter,
|
||||
&.jira-toast-exit.jira-toast-exit-active {
|
||||
opacity: 0;
|
||||
right: -10px;
|
||||
}
|
||||
|
||||
&.jira-toast-exit,
|
||||
&.jira-toast-enter.jira-toast-enter-active {
|
||||
opacity: 1;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
i {
|
||||
position: absolute;
|
||||
top: 13px;
|
||||
right: 14px;
|
||||
font-size: 22px;
|
||||
cursor: pointer;
|
||||
color: #fff;
|
||||
}
|
||||
`;
|
||||
|
||||
export const Title = styled.div`
|
||||
padding-right: 22px;
|
||||
${font.size(16)}
|
||||
${font.medium}
|
||||
`;
|
||||
|
||||
export const Message = styled.div`
|
||||
padding: 8px 10px 0 0;
|
||||
white-space: pre-wrap;
|
||||
${font.size(14)}
|
||||
${font.medium}
|
||||
`;
|
||||
Reference in New Issue
Block a user