blob: 37738a98ad1f35d6f5e12206078e6a811e11e419 [file] [log] [blame]
Bhavesh72ead492018-07-19 16:29:18 +05301/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 ONOS GUI -- Flow View (theme) -- CSS file
19 */
20
21
22/* a "logical" row is made up of 3 "physical" rows -- color as such */
23 #ov-flow tr:nth-child(6n + 1),
24 #ov-flow tr:nth-child(6n + 2),
25 #ov-flow tr:nth-child(6n + 3) {
26 background-color: #fbfbfb;
27}
28 #ov-flow tr:nth-child(6n + 4),
29 #ov-flow tr:nth-child(6n + 5),
30 #ov-flow tr:nth-child(6n) {
31 background-color: #f4f4f4;
32}
33
34/* highlighted color */
35 #ov-flow tr:nth-child(6n + 1).data-change,
36 #ov-flow tr:nth-child(6n + 2).data-change,
37 #ov-flow tr:nth-child(6n + 3).data-change,
38 #ov-flow tr:nth-child(6n + 4).data-change,
39 #ov-flow tr:nth-child(6n + 5).data-change,
40 #ov-flow tr:nth-child(6n).data-change {
41 background-color: #FDFFDC;
42}
43
44#ov-flow td.selector,
45#ov-flow td.treatment {
46 opacity: 0.65;
47}
48
49/* ========== DARK Theme ========== */
50
51.dark #ov-flow tr:nth-child(6n + 1),
52.dark #ov-flow tr:nth-child(6n + 2),
53.dark #ov-flow tr:nth-child(6n + 3) {
54 background-color: #333333;
55}
56.dark #ov-flow tr:nth-child(6n + 4),
57.dark #ov-flow tr:nth-child(6n + 5),
58.dark #ov-flow tr:nth-child(6n) {
59 background-color: #3a3a3a;
60}
61
62.dark #ov-flow tr:nth-child(6n + 1).data-change,
63.dark #ov-flow tr:nth-child(6n + 2).data-change,
64.dark #ov-flow tr:nth-child(6n + 3).data-change,
65.dark #ov-flow tr:nth-child(6n + 4).data-change,
66.dark #ov-flow tr:nth-child(6n + 5).data-change,
67.dark #ov-flow tr:nth-child(6n).data-change {
68 background-color: #423708;
69}
70
71.light #flow-details-panel .bottom th {
72 background-color: #e5e5e6;
73}
74
75.light #flow-details-panel .bottom tr:nth-child(odd) {
76 background-color: #fbfbfb;
77}
78.light #flow-details-panel .bottom tr:nth-child(even) {
79 background-color: #f4f4f4;
80}