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