-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
185 lines (152 loc) · 3.37 KB
/
index.css
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
178
179
180
181
182
183
184
185
:root {
--primaryColor: rgba(48, 167, 215, 1);
--secondaryColor: rgba(48, 167, 215, 0.9);
--tertiaryColor: rgba(48, 167, 215, 0.8);
--inputBorder: 1px solid rgba(0, 0, 0, 0.3);
}
* {
box-sizing:border-box;
transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out;
font-family: "Hiragino Sans GB", "Microsoft YaHei", 宋体, sans-serif, Arial;
font-size: 16px;
line-height: 1.42857143;
-webkit-tap-highlight-color: transparent;
outline: none;
}
body {
background: #f7f7f7;
display: flex;
flex-direction: column;
padding: 0 1vw 20px 1vw;
}
h1 {
text-align: center;
font-size: 22px;
}
h3 {
font-size: 18px;
margin: 10px 0 10px 3px;
}
.panelInput, .panelTable, .panelEcharts{
background: #fff;
border: 0px;
border-radius: 5px;
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
padding: 10px;
display: flex;
flex-direction: column;
}
.panelInput:hover, .panelTable:hover, .panelEcharts:hover {
box-shadow: 0 1px 4px 0.5px rgba(0, 0, 0, 0.4);
}
.panelInput:active, .panelTable:active, .panelEcharts:active {
box-shadow: 0 3px 8px 1px rgba(0, 0, 0, 0.45);
}
.panelInput > * {
margin: 5px;
}
.panelInput > span {
display: flex;
justify-content: space-between;
}
.panelInput > span > * {
width: 49%;
}
.panelTable {
overflow-x: auto;
overflow-y: hidden;
}
input {
border-width: 0 0 1px 0;
border-bottom: var(--inputBorder);
}
input:focus {
border-color: var(--primaryColor);
}
button {
background-color: var(--primaryColor);
border: 0;
border-radius: 5px;
color: #fff;
padding: 5px;
min-width: 32px;
}
button:hover {
background-color: var(--secondaryColor);
box-shadow: 0 1px 6px 0 rgba(0,0,0,.12), 0 1px 6px 0 rgba(0,0,0,.12);
}
button:active {
background-color: var(--tertiaryColor);
box-shadow: 0 5px 11px 0 rgba(0,0,0,.18), 0 4px 15px 0 rgba(0,0,0,.15);
}
select {
background: url("down-arrow.png") no-repeat scroll right center transparent;
background-size: 18px;
background-position: calc(100% - 10px);
border: var(--inputBorder);
appearance:none;
-moz-appearance:none;
-webkit-appearance:none;
}
select:focus {
border-color: var(--primaryColor);
}
table {
border-radius: 3px;
border-collapse: collapse;
margin: auto;
padding:5px;
width: 100%;
text-align: center;
}
th {
color: #fff;
background: var(--tertiaryColor);
border-right: 1px solid #f9f9f9;
padding: 5px;
}
th:first-child {
border-top-left-radius:5px;
}
th:last-child {
border-top-right-radius:5px;
}
tr:nth-child(odd) {
background: rgba(0, 0, 0, 0.05)
}
tr:hover {
background: rgba(0, 0, 0, 0.07)
}
td:hover {
background: rgba(0, 0, 0, 0.08)
}
tr:last-child {
background: transparent;
}
tr:last-child:hover td{
background: transparent;
}
.echarts {
width: 100%;
height: 360px;
}
body > div {
visibility:hidden;
animation: fade-in 2s ease-in-out forwards;
-webkit-animation:fade-in 2s ease-in-out forwards;
}
body > div:nth-child(2) {
animation-delay:0.2s;
}
body > div:nth-child(3) {
animation-delay:0.4s;
}
body > div:nth-child(4) {
animation-delay:0.6s;
}
@keyframes fade-in {
0% {opacity: 0;transform: translate3D(0, 100%, 0)}
100% {opacity: 1;visibility: visible;}
}