2022-05-20 11:43:23 +05:30
|
|
|
import { Layout, Tag, Typography } from 'antd';
|
2022-03-24 12:06:57 +05:30
|
|
|
import { StyledCSS } from 'container/GantChart/Trace/styles';
|
2022-02-12 15:17:40 +05:30
|
|
|
import styled, { css } from 'styled-components';
|
2022-03-22 12:10:31 +05:30
|
|
|
|
2021-09-28 18:50:10 +05:30
|
|
|
const { Sider: SiderComponent } = Layout;
|
2021-08-27 12:13:32 +05:30
|
|
|
|
|
|
|
|
interface LogoProps {
|
|
|
|
|
collapsed: boolean;
|
2022-04-05 18:21:25 +05:30
|
|
|
index: number;
|
2021-08-27 12:13:32 +05:30
|
|
|
}
|
2021-09-28 18:50:10 +05:30
|
|
|
|
|
|
|
|
export const Sider = styled(SiderComponent)`
|
2022-03-03 19:04:23 +05:30
|
|
|
z-index: 999;
|
2021-09-28 18:50:10 +05:30
|
|
|
.ant-typography {
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
2022-02-22 22:52:12 +05:30
|
|
|
.ant-layout-sider-trigger {
|
|
|
|
|
background-color: #1f1f1f;
|
|
|
|
|
}
|
2021-09-28 18:50:10 +05:30
|
|
|
`;
|
2022-01-26 21:55:11 +05:30
|
|
|
|
2022-02-12 15:01:38 +05:30
|
|
|
export const SlackButton = styled(Typography)`
|
|
|
|
|
&&& {
|
|
|
|
|
margin-left: 1rem;
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2022-02-12 15:17:40 +05:30
|
|
|
export const SlackMenuItemContainer = styled.div<LogoProps>`
|
2022-03-03 19:04:23 +05:30
|
|
|
position: fixed;
|
2022-04-05 18:21:25 +05:30
|
|
|
bottom: ${({ index }): string => `${index * 48 + (index + 16)}px`};
|
2022-03-03 19:04:23 +05:30
|
|
|
background: #262626;
|
2022-03-24 12:06:57 +05:30
|
|
|
width: ${({ collapsed }): string => (!collapsed ? '200px' : '80px')};
|
2022-04-05 18:21:25 +05:30
|
|
|
transition: inherit;
|
2022-03-03 19:04:23 +05:30
|
|
|
|
2022-02-12 15:17:40 +05:30
|
|
|
&&& {
|
|
|
|
|
li {
|
2022-03-24 12:06:57 +05:30
|
|
|
${({ collapsed }): StyledCSS =>
|
2022-02-12 15:17:40 +05:30
|
|
|
collapsed &&
|
|
|
|
|
css`
|
|
|
|
|
padding-left: 24px;
|
2022-04-05 18:21:25 +05:30
|
|
|
padding-top: 6px;
|
2022-02-12 15:17:40 +05:30
|
|
|
`}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
svg {
|
2022-03-24 12:06:57 +05:30
|
|
|
margin-left: ${({ collapsed }): string => (collapsed ? '0' : '24px')};
|
2022-04-05 18:21:25 +05:30
|
|
|
width: 28px;
|
|
|
|
|
height: 28px;
|
2022-02-12 15:17:40 +05:30
|
|
|
|
2022-03-24 12:06:57 +05:30
|
|
|
${({ collapsed }): StyledCSS =>
|
2022-02-12 15:17:40 +05:30
|
|
|
collapsed &&
|
|
|
|
|
css`
|
|
|
|
|
height: 100%;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
`}
|
|
|
|
|
}
|
2022-04-05 18:21:25 +05:30
|
|
|
.ant-menu-title-content {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const RedDot = styled.div`
|
|
|
|
|
width: 12px;
|
|
|
|
|
height: 12px;
|
|
|
|
|
background: #d32029;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
2022-06-08 23:15:48 +05:30
|
|
|
margin-left: 0.5rem;
|
2022-04-05 18:21:25 +05:30
|
|
|
margin-top: 0.5rem;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const VersionContainer = styled.div`
|
|
|
|
|
&&& {
|
|
|
|
|
display: flex;
|
2022-02-12 15:17:40 +05:30
|
|
|
}
|
|
|
|
|
`;
|
2022-05-20 11:43:23 +05:30
|
|
|
|
|
|
|
|
export const Tags = styled(Tag)`
|
|
|
|
|
&&& {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
`;
|
2022-06-28 16:18:16 +05:30
|
|
|
|
|
|
|
|
export const Name = styled(Typography.Paragraph)`
|
|
|
|
|
&&& {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
`;
|