monitoring: Improve default CSS
[src/app-framework-binder.git] / test / monitoring / monitor-iot.css
diff --git a/test/monitoring/monitor-iot.css b/test/monitoring/monitor-iot.css
new file mode 100644 (file)
index 0000000..bb81373
--- /dev/null
@@ -0,0 +1,339 @@
+/*
+ * Copyright (C) 2017, 2018 "IoT.bzh"
+ * Author: José Bollo <jose.bollo@iot.bzh>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/*******************************************************************/
+/* top */
+html {
+       margin: 2px;
+       background: white url(triskel_iot_bzh.svg) right bottom fixed no-repeat;
+       color: black;
+       font-family: "Lucida Console", Monaco, monospace;
+       min-height: 100%;
+}
+
+/*******************************************************************/
+/* head */
+
+#logo {
+       background: url(iot-bzh-logo-small.png) center/100% no-repeat;
+       height: 60px;
+       width: 250px;
+       float: right;
+}
+
+#title {
+       font-weight: bolder;
+       font-size: 40px;
+       padding: 10px;
+       margin: auto;
+       float: left;
+}
+
+#connected {
+       margin: 5px;
+       padding: 10px;
+       border: solid 4px;
+       border-radius: 7px;
+       float: right;
+}
+
+#connected.ok { color: #06e306; }
+#connected.error { color: #f44; }
+
+/*******************************************************************/
+/* connection area */
+
+
+#params {
+       border: dashed 4px #ff2626;
+       padding: 30px;
+       margin: 10px;
+       border-radius: 0px 50px;
+}
+
+/*******************************************************************/
+/* main area */
+
+#global {
+       background: #ff5;
+}
+
+.expert {
+       text-align: center;
+       font-weight: bolder;
+       font-size: larger;
+       text-decoration: underline;
+}
+
+#trace-events {
+       margin-left: 10px;
+       margin-right: 10px;
+}
+
+/*******************************************************************/
+/* setting for apis */
+
+#controls .api {
+       margin: 2px;
+       padding: 5px;
+       color: black;
+       border: solid 2px;
+       border-radius: 7px;
+       background: #ff5
+}
+#controls .api .opclo { background-color: #ff5; }
+
+#controls #apis .api { color: black; }
+#controls #apis .api .opclo { background-color: #fa5; }
+
+#controls .api .name {
+       text-align: center;
+       font-weight: bolder;
+       font-size: larger;
+       text-decoration: underline;
+}
+
+#controls .api .desc {
+       text-align: center;
+}
+
+#controls .api .verb {
+       margin-left: 5px;
+}
+
+/*******************************************************************/
+/* setting of verbs */
+.verb .name {
+       font-weight: bolder;
+       text-decoration: underline;
+}
+
+.verb .desc {
+       font-size: smaller;
+}
+
+.verb .perm {
+       font-size: 8px;
+       text-align: right;
+       color: blue;
+}
+
+/*******************************************************************/
+/* setting for traces */
+
+.trace-box {
+       margin: 1px;
+       padding: 1px 1px 1px 10px;
+       border: solid 1px;
+       border-radius: 10px 0px;
+       font-size: smaller;
+}
+
+.trace-title {
+       font-weight: bolder;
+}
+.trace-item {
+       margin-left: 10px;
+}
+
+/*******************************************************************/
+/* tiny button */
+.x-button {
+       font-size: larger;
+       text-align: center;
+       margin: 5px;
+       padding: 10px;
+       border: dashed 2px #888;
+       border-radius: 0px 10px;
+       font-weight: bolder;
+}
+
+.x-button:hover {
+       border: solid 2px #888;
+}
+
+.x-button:active {
+       border: solid 4px #888;
+       padding: 8px;
+}
+
+/*******************************************************************/
+/* display of logmsg */
+.logmsg {
+       margin-right: 2px;
+       margin-bottom: 3px;
+       padding: 2px;
+       font-size: smaller;
+       min-height: 20px;
+       border-radius: 3px;
+       border: solid 1px #f44; /* red by default */
+       background: #eee;
+}
+
+.logmsg.call { border-color: #ee3; } 
+.logmsg.retok { border-color: #8e8; } 
+.logmsg.event { border-color: #d6f; } 
+.logmsg.error { border-color: #f66; }
+.logmsg.trace { border-color: #aaa; }
+
+.logmsg .tag { text-align: center; color: black; font-weight: bolder; margin: -2px -2px 1px -2px; }
+.logmsg.call .tag { background: #ee3; } 
+.logmsg.retok .tag { background: #8e8; } 
+.logmsg.event .tag { background: #d6f; } 
+.logmsg.error .tag { background: #f66; }
+.logmsg.trace .tag { background: #aaa; }
+
+/*******************************************************************/
+/* close box */
+.close {
+       width: 10;
+       height: 10;
+       background-image: url(cross.png);
+       background-size: contain;
+       background-repeat: no-repeat;
+       background-position: center;
+}
+
+/*******************************************************************/
+/* open / close */
+
+.opclo {
+       width: 10px;
+       height: 10px;
+       background-size: contain;
+       background-color: lightsteelblue;
+       border-radius: 3px;
+       padding: 2px;
+}
+
+.closed > .opclo { background-image: url(down.png); } 
+.opened > .opclo { background-image: url(up.png); }
+
+/*******************************************************************/
+/* setting for traceevents */
+
+.traceevent {
+       margin: 1px;
+       padding: 2px;
+       min-height: 14px;
+       border: solid 1px;
+       border-radius: 0px 5px 5px 5px;
+}
+
+.separator {
+       margin: 25px 100px;
+       padding: 0px;
+       height: 2px;
+       background-color: #838;
+}
+
+.traceevent.opened {
+       background-color: rgba(0,0,0,0.6);
+}
+
+.traceevent.request, .trace-box.request {
+       color: black;
+       background: #ffd
+ }
+.traceevent.daemon, .trace-box.daemon {
+       color: black;
+       background: #fdf;
+ }
+.traceevent.service, .trace-box.service {
+       color: black;
+       background: #ddf;
+ }
+.traceevent.event, .trace-box.event {
+       color: black;
+       background: #dfd;
+ }
+.traceevent.global, .trace-box.global {
+       color: black;
+       background: #eee ;
+ }
+
+.traceevent.closed {
+       max-height: 16px;
+}
+
+.traceevent .close {
+       height: 16px;
+       margin: -1px 0px 0px 0px;
+       padding: 1px;
+       background-color: grey;
+}
+
+.traceevent .time {
+       height: 16px;
+       margin: -1px 0px 0px 8px;
+       padding: 1px 3px;
+       background-color: grey;
+       color: black;
+}
+
+.traceevent .tag {
+       margin-left: 10px;
+       font-weight: bolder;
+}
+
+.traceevent.closed:hover {
+       cursor: pointer;
+}
+
+.traceevent.closed:hover .content {
+       margin: 5px;
+       padding: 5px;
+       border: solid 4px;
+       border-radius: 0px 20px 20px 20px;
+       box-shadow: 10px 10px #dd8;
+       background-color: rgba(0,0,0,0.6);
+}
+
+.traceevent table.object tr td:nth-child(1) {
+       text-align: right;
+       font-weight: bolder;
+       text-decoration: underline;
+}
+
+.traceevent table.object tr td:nth-child(2) {
+       background-color: rgba(93, 92, 92, 0.51);
+       padding: 0px 4px;
+       overflow: auto;
+}
+
+.traceevent table {
+       color: black;
+}
+
+/*******************************************************************/
+/* aesthetic clue */
+.select {
+       padding: 0px;
+}
+
+a:link { color: blue; }
+a:link:hover, a:active { color: white; }
+a:visited { color: lightgrey; }
+
+/*******************************************************************/
+/* json format */
+
+.json.string { color: #fff; } 
+.json.number { color: #ec0; } 
+.json.boolean { color: #0f0; } 
+.json.null { color: #0f0; } 
+.json.key { color: #99f; }
+