-
Notifications
You must be signed in to change notification settings - Fork 4
/
opc_client.css
87 lines (72 loc) · 1.5 KB
/
opc_client.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
/* This is an example client that can be used to test the OPC. You can customize this to adjust the UI to your needs. */
#opc-control-panel {
position: absolute;
top: 0px;
right: 10px;
padding: 1em;
background-color: #ffffff;
color: #333;
border: 1px solid #000000;
border-radius: 10px;
z-index: 9999;
width: 300px;
display: flex;
font-family: Montserrat, Helvetica, Arial, sans-serif;
font-size: 13px;
box-shadow: 0 2px 4px #333;
flex-direction: column;
}
#opc-control-panel .opc-control-wrapper {
display: flex;
flex-direction: column;
margin-bottom: 1em;
}
#opc-control-panel .opc-control-wrapper:last-child {
margin-bottom: 0;
}
#opc-control-panel .opc-control {
display: flex;
align-items: center;
flex-direction: row;
padding: 0 0.5em;
min-height: 2em;
}
#opc-control-panel .opc-control label {
flex: 0 0 40%;
}
#opc-control-panel .opc-description {
color: #666;
margin-bottom: 0.3em;
font-size: 0.9em;
}
#opc-control-panel input {
display: block;
margin-left: auto;
}
#opc-control-panel input[type=number] {
width: 3em;
padding: 5px;
margin-right: 3px;
}
#opc-control-panel input[type=checkbox] {
transform: scale(1.2);
}
#opc-control-panel input[type=text] {
flex: 1;
}
#opc-control-panel input[type=button] {
flex: 1;
}
#opc-control-panel .opc-palette-container {
flex: 1;
}
#opc-control-panel .opc-palette {
display: none;
min-height: 1.5em;
}
#opc-control-panel .opc-palette.active {
display: flex;
}
#opc-control-panel .opc-palette .opc-palette-color {
flex: 1;
}