e2f65006f941e0b6f2630b82b5d629ed1d59fe91
[src/app-framework-binder.git] / test / monitoring / monitor-demo.css
1 /*
2  * Copyright (C) 2017-2019 "IoT.bzh"
3  * Author: José Bollo <jose.bollo@iot.bzh>
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *   http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 /*******************************************************************/
18 /* top */
19 html {
20         margin: 2px;
21         background: darkslategray url(background-iot.bzh.jpeg) center/cover;
22         color: lightsteelblue;
23         font-family: "Lucida Console", Monaco, monospace;
24         min-height: 100%;
25 }
26
27 /*******************************************************************/
28 /* head */
29
30 #logo {
31         background: url(iot-bzh-logo-small.png) center/50% no-repeat;
32         height: 60px;
33         width: 200px;
34 }
35
36 #title {
37         text-align: center;
38         font-weight: bolder;
39         font-size: 40px;
40         padding: 10px;
41         margin: auto;
42 }
43
44 #connected {
45         margin: 5px;
46         padding: 10px;
47         border: solid 4px;
48         border-radius: 7px;
49 }
50
51 #connected.ok { color: #8f8; }
52 #connected.error { color: #f44; }
53
54 /*******************************************************************/
55 /* connection area */
56
57
58 #params {
59         border: dashed 4px #8f8;
60         padding: 30px;
61         margin: 10px;
62         border-radius: 0px 50px;
63 }
64
65 /*******************************************************************/
66 /* main area */
67
68 #global {
69         background: #ff5;
70 }
71
72 .expert {
73         text-align: center;
74         font-weight: bolder;
75         font-size: larger;
76         text-decoration: underline;
77 }
78
79 #trace-events {
80         margin-left: 10px;
81         margin-right: 10px;
82 }
83
84 /*******************************************************************/
85 /* setting for apis */
86
87 #controls .api {
88         margin: 2px;
89         padding: 5px;
90         color: #ff5;
91         border: solid 2px;
92         border-radius: 7px;
93 }
94 #controls .api .opclo { background-color: #ff5; }
95
96 #controls #apis .api { color: #fa5; }
97 #controls #apis .api .opclo { background-color: #fa5; }
98
99 #controls .api .name {
100         text-align: center;
101         font-weight: bolder;
102         font-size: larger;
103         text-decoration: underline;
104 }
105
106 #controls .api .desc {
107         text-align: center;
108 }
109
110 #controls .api .verb {
111         margin-left: 5px;
112 }
113
114 /*******************************************************************/
115 /* setting of verbs */
116 .verb .name {
117         font-weight: bolder;
118         text-decoration: underline;
119 }
120
121 .verb .desc {
122         font-size: smaller;
123 }
124
125 .verb .perm {
126         font-size: 8px;
127         text-align: right;
128         color: blue;
129 }
130
131 /*******************************************************************/
132 /* setting for traces */
133
134 .trace-box {
135         margin: 1px;
136         padding: 1px 1px 1px 10px;
137         border: solid 1px;
138         border-radius: 10px 0px;
139         font-size: smaller;
140 }
141
142 .trace-title {
143         font-weight: bolder;
144 }
145 .trace-item {
146         margin-left: 10px;
147 }
148
149 /*******************************************************************/
150 /* tiny button */
151 .x-button {
152         font-size: larger;
153         text-align: center;
154         margin: 5px;
155         padding: 10px;
156         border: dashed 2px #888;
157         border-radius: 0px 10px;
158         font-weight: bolder;
159 }
160
161 .x-button:hover {
162         border: solid 2px #aaa;
163 }
164
165 .x-button:active {
166         border: solid 4px cyan;
167         padding: 8px;
168 }
169
170 /*******************************************************************/
171 /* display of logmsg */
172 .logmsg {
173         margin-right: 2px;
174         margin-bottom: 3px;
175         padding: 2px;
176         font-size: smaller;
177         min-height: 20px;
178         border-radius: 3px;
179         border: solid 1px #f44; /* red by default */
180 }
181
182 .logmsg.call { border-color: #ee3; } 
183 .logmsg.retok { border-color: #8e8; } 
184 .logmsg.event { border-color: #d6f; } 
185 .logmsg.error { border-color: #f66; }
186 .logmsg.trace { border-color: #aaa; }
187
188 .logmsg .tag { text-align: center; color: black; font-weight: bolder; margin: -2px -2px 1px -2px; }
189 .logmsg.call .tag { background: #ee3; } 
190 .logmsg.retok .tag { background: #8e8; } 
191 .logmsg.event .tag { background: #d6f; } 
192 .logmsg.error .tag { background: #f66; }
193 .logmsg.trace .tag { background: #aaa; }
194
195 /*******************************************************************/
196 /* close box */
197 .close {
198         width: 10;
199         height: 10;
200         background-image: url(cross.png);
201         background-size: contain;
202         background-repeat: no-repeat;
203         background-position: center;
204 }
205
206 /*******************************************************************/
207 /* open / close */
208
209 .opclo {
210         width: 10px;
211         height: 10px;
212         background-size: contain;
213         background-color: lightsteelblue;
214         border-radius: 3px;
215         padding: 2px;
216 }
217
218 .closed > .opclo { background-image: url(down.png); } 
219 .opened > .opclo { background-image: url(up.png); }
220
221 /*******************************************************************/
222 /* setting for traceevents */
223
224 .traceevent {
225         margin: 1px;
226         padding: 2px;
227         min-height: 14px;
228         border: solid 1px;
229         border-radius: 0px 5px 5px 5px;
230 }
231
232 .separator {
233         margin: 25px 100px;
234         padding: 0px;
235         height: 2px;
236         background-color: #ee3;
237 }
238
239 .traceevent.opened {
240         background-color: rgba(0,0,0,0.6);
241 }
242
243 .traceevent.request, .trace-box.request { color: lightsteelblue; }
244 .traceevent.daemon, .trace-box.daemon { color: #5af; }
245 .traceevent.service, .trace-box.service { color: #0f0; }
246 .traceevent.event, .trace-box.event { color: #f52; }
247 .traceevent.global, .trace-box.global { color: white; }
248
249 .traceevent.closed {
250         max-height: 16px;
251 }
252
253 .traceevent .close {
254         height: 16px;
255         margin: -1px 0px 0px 0px;
256         padding: 1px;
257         background-color: grey;
258 }
259
260 .traceevent .time {
261         height: 16px;
262         margin: -1px 0px 0px 8px;
263         padding: 1px 3px;
264         background-color: grey;
265         color: black;
266 }
267
268 .traceevent .tag {
269         margin-left: 10px;
270         font-weight: bolder;
271 }
272
273 .traceevent.closed:hover {
274         cursor: pointer;
275 }
276
277 .traceevent.closed:hover .content {
278         margin: 5px;
279         padding: 5px;
280         border: solid 4px;
281         border-radius: 0px 20px 20px 20px;
282         box-shadow: 10px 10px #dd8;
283         background-color: rgba(0,0,0,0.6);
284 }
285
286 .traceevent table.object tr td:nth-child(1) {
287         text-align: right;
288         font-weight: bolder;
289         text-decoration: underline;
290 }
291
292 .traceevent table.object tr td:nth-child(2) {
293         background-color: rgba(0,0,0,0.4);
294         padding: 0px 4px;
295         overflow: auto;
296 }
297
298 .traceevent table {
299         color: cyan;
300 }
301
302 /*******************************************************************/
303 /* aesthetic clue */
304 .select {
305         padding: 0px;
306 }
307
308 a:link { color: cyan; }
309 a:link:hover, a:active { color: white; }
310 a:visited { color: lightgrey; }
311
312 /*******************************************************************/
313 /* json format */
314
315 .json.string { color: #fff; } 
316 .json.number { color: #ec0; } 
317 .json.boolean { color: #0f0; } 
318 .json.null { color: #0f0; } 
319 .json.key { color: #99f; }
320