vben
2020-11-17 0b6110a8fc92a11df6501346e093246a5abe2b0e
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
@import './transition/index.less';
@import 'var/index.less';
@import 'public.less';
@import 'mixins.less';
@import 'ant/index.less';
@import './global.less';
 
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
 
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
}
 
:-webkit-autofill {
  transition: background-color 5000s ease-in-out 0s !important;
}
 
// Background color setting in full screen state in each browser
::backdrop,
html,
*:fullscreen,
*:-webkit-full-screen,
*:-moz-full-screen {
  z-index: 1;
  background-color: #fff !important;
}
 
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
 
  &.color-weak {
    filter: invert(80%);
  }
 
  &.gray-mode {
    filter: grayscale(100%);
    filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
  }
}
 
// remove the clear button of a text input control in IE10+
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
 
body {
  // font-family: 'Microsoft YaHei,微软雅黑,Arial,sans-serif,Helvetica Neue,Helvetica,Pingfang SC,Hiragino Sans GB';
  font-family: '-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol,noto color emoji';
  font-style: normal;
  font-weight: normal;
  line-height: 1.428571429; // 20/14
  letter-spacing: normal;
  word-spacing: normal;
  text-align: left; // Fallback for where `start` is not supported
  text-align: start;
  text-decoration: none;
  text-size-adjust: 100%;
  text-shadow: none;
  text-transform: none;
  word-break: normal;
  word-wrap: normal;
  white-space: normal;
  line-break: auto;
}
 
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
  color: @heading-color;
}
 
ul,
ol {
  list-style: none;
}
 
li {
  list-style-type: none;
}
 
img {
  vertical-align: top;
  border: 0;
}
 
table {
  border-collapse: collapse;
  border-spacing: 0;
}
 
a:focus,
a:active {
  outline: none;
}
 
i,
em {
  font-style: normal;
}
 
button,
div:focus {
  outline: none !important;
}
 
a {
  color: @link-color;
  text-decoration: none;
  cursor: pointer;
  background-color: transparent; // remove the gray background on active links in IE 10.
  outline: none;
  transition: color 0.3s;
  -webkit-text-decoration-skip: objects; // remove gaps in links underline in iOS 8+ and Safari 8+.
 
  &:hover {
    color: @link-hover-color;
  }
 
  &:active {
    color: @link-active-color;
  }
 
  &:active,
  &:hover {
    text-decoration: none;
    outline: 0;
  }
 
  &[disabled] {
    color: @disabled-color;
    pointer-events: none;
    cursor: not-allowed;
  }
}
 
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  vertical-align: baseline !important;
}
 
#app,
#app > div,
.ant-layout {
  width: 100%;
  height: 100%;
}
 
.ant-layout {
  background: #f0f2f5;
 
  &-content {
    position: relative;
    overflow: hidden;
  }
}