home.scss
2.46 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
.c_canvas {
width: 100%;
height: 100px;
}
.static_list_box {
display: flex;
align-items: center;
.cell_box {
flex: 1;
margin: 0 10px 0 0;
border: 1px solid #d8d8d8;
border-radius: 4px;
background: rgba($color: #d8d8d8, $alpha: 0.1);
.head {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
font-size: 14px;
color: #666;
font-weight: bold;
}
.head:after {
display: block;
content: "";
height: 1px;
background: #d8d8d8;
position: absolute;
left: 0;
right: 0;
bottom: 0;
transform: scaleY(0.5);
}
.info_box {
padding: 10px;
.title {
font-size: 30px;
color: #666;
}
.footer {
padding: 10px 0;
border-top: 2px solid #eee;
font-size: 13px;
}
}
}
.cell_box:last-child {
margin: 0;
}
}
// 常规报警
.alarm_box {
margin: 20px 0;
background: #fff;
.head {
position: relative;
padding: 10px;
font-size: 14px;
color: #666;
font-weight: bold;
border: 1px solid #d8d8d8;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
display: flex;
align-items: center;
justify-content: space-between;
}
.alarm_list {
display: flex;
align-items: center;
padding: 10px 0;
.cell {
flex: 1;
margin: 0 20px 0 0;
border: 1px solid #d8d8d8;
border-radius: 4px;
background: rgba($color: #d8d8d8, $alpha: 0.1);
cursor: pointer;
.title {
display: flex;
align-items: center;
padding: 10px;
font-size: 12px;
font-weight: bold;
color: #666;
img {
width: 20px;
height: 20px;
margin-right: 10px;
}
}
.num {
font-size: 30px;
color: #666;
padding: 10px;
}
}
.cell:hover {
background: rgba($color: #2196f3, $alpha: 0.1);
border: 1px solid #2196f3;
}
.cell:last-child {
margin: 0;
}
}
}
// 设备激活趋势
.device_box {
border: 1px solid #d8d8d8;
border-radius: 4px;
.head {
border: 0;
}
.head:after {
display: block;
content: "";
height: 1px;
background: #d8d8d8;
position: absolute;
left: 0;
right: 0;
bottom: 0;
}
.chart_box {
padding: 20px 0;
.chart_wrapper {
width: 100%;
height: 300px;
}
}
}