-
Notifications
You must be signed in to change notification settings - Fork 67
/
Layout.styled.ts
58 lines (47 loc) 路 1.24 KB
/
Layout.styled.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import {Layout as LayoutAntd} from 'antd';
import styled, {css} from 'styled-components';
export const Content = styled(LayoutAntd.Content)<{$hasMenu: boolean}>`
display: flex;
flex-direction: column;
padding-bottom: 40px;
${({$hasMenu}) =>
$hasMenu &&
css`
height: 100%;
overflow-y: scroll;
`}
`;
export const Layout = styled(LayoutAntd)`
min-height: 100%;
background: ${({theme}) => theme.color.background};
`;
export const LogoContainer = styled.div`
background: #2c1a54;
padding: 7px 55px;
`;
export const MenuContainer = styled.div`
.ant-menu.ant-menu-dark {
background: transparent;
}
.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {
background: rgba(255, 255, 255, 0.05);
border-radius: 4px;
}
padding: 24px 20px;
`;
export const Sider = styled(LayoutAntd.Sider)`
.ant-layout-sider-children {
display: flex;
flex-direction: column;
}
.ant-layout-sider-trigger {
background: #2c1a54;
}
background: linear-gradient(180deg, #2f1e61 0%, #8b2c53 111.31%, rgba(49, 38, 132, 0) 180.18%, #df4f80 180.18%);
`;
export const SiderContent = styled.div`
display: flex;
flex: 1;
flex-direction: column;
justify-content: space-between;
`;