index.css
3.34 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-layout {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 1;
-ms-flex: auto;
flex: auto;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
/* fix firefox can't set height smaller than content on flex item */
min-height: 0;
background: #f0f2f5;
}
.ant-layout,
.ant-layout * {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.ant-layout.ant-layout-has-sider {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.ant-layout.ant-layout-has-sider > .ant-layout,
.ant-layout.ant-layout-has-sider > .ant-layout-content {
width: 0;
}
.ant-layout-header,
.ant-layout-footer {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
}
.ant-layout-header {
height: 64px;
padding: 0 50px;
color: rgba(0, 0, 0, 0.85);
line-height: 64px;
background: #001529;
}
.ant-layout-footer {
padding: 24px 50px;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
background: #f0f2f5;
}
.ant-layout-content {
-webkit-box-flex: 1;
-ms-flex: auto;
flex: auto;
/* fix firefox can't set height smaller than content on flex item */
min-height: 0;
}
.ant-layout-sider {
position: relative;
/* fix firefox can't set width smaller than content on flex item */
min-width: 0;
background: #001529;
-webkit-transition: all 0.2s;
transition: all 0.2s;
}
.ant-layout-sider-children {
height: 100%;
margin-top: -0.1px;
padding-top: 0.1px;
}
.ant-layout-sider-has-trigger {
padding-bottom: 48px;
}
.ant-layout-sider-right {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
}
.ant-layout-sider-trigger {
position: fixed;
bottom: 0;
z-index: 1;
height: 48px;
color: #fff;
line-height: 48px;
text-align: center;
background: #002140;
cursor: pointer;
-webkit-transition: all 0.2s;
transition: all 0.2s;
}
.ant-layout-sider-zero-width > * {
overflow: hidden;
}
.ant-layout-sider-zero-width-trigger {
position: absolute;
top: 64px;
right: -36px;
z-index: 1;
width: 36px;
height: 42px;
color: #fff;
font-size: 18px;
line-height: 42px;
text-align: center;
background: #001529;
border-radius: 0 2px 2px 0;
cursor: pointer;
-webkit-transition: background 0.3s ease;
transition: background 0.3s ease;
}
.ant-layout-sider-zero-width-trigger::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
-webkit-transition: all 0.3s;
transition: all 0.3s;
content: '';
}
.ant-layout-sider-zero-width-trigger:hover::after {
background: rgba(255, 255, 255, 0.1);
}
.ant-layout-sider-zero-width-trigger-right {
left: -36px;
border-radius: 2px 0 0 2px;
}
.ant-layout-sider-light {
background: #fff;
}
.ant-layout-sider-light .ant-layout-sider-trigger {
color: rgba(0, 0, 0, 0.85);
background: #fff;
}
.ant-layout-sider-light .ant-layout-sider-zero-width-trigger {
color: rgba(0, 0, 0, 0.85);
background: #fff;
}
.ant-layout-rtl {
direction: rtl;
}