Simon Hunt | 1002cd8 | 2015-04-23 14:44:03 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Open Networking Laboratory |
| 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 -- CSS file |
| 19 | */ |
| 20 | |
Bri Prebilic Cole | 3d4d01c | 2015-04-30 13:48:36 -0700 | [diff] [blame] | 21 | #ov-flow h2 { |
| 22 | display: inline-block; |
| 23 | } |
| 24 | |
| 25 | #ov-flow div.ctrl-btns { |
Bri Prebilic Cole | 9b1fb9a | 2015-07-01 13:57:11 -0700 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | .light #ov-flow .current-view use { |
| 29 | fill: white; |
| 30 | } |
| 31 | .dark #ov-flow .current-view use { |
| 32 | fill: #304860; |
| 33 | } |
| 34 | |
| 35 | .light #ov-flow .current-view rect { |
| 36 | fill: deepskyblue; |
| 37 | } |
| 38 | .dark #ov-flow .current-view rect { |
| 39 | fill: #eee; |
Bri Prebilic Cole | 3d4d01c | 2015-04-30 13:48:36 -0700 | [diff] [blame] | 40 | } |
| 41 | |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 42 | .light #ov-flow tr:nth-child(6n + 1), |
Bri Prebilic Cole | cdc188d | 2015-04-24 16:40:11 -0700 | [diff] [blame] | 43 | .light #ov-flow tr:nth-child(6n + 2), |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 44 | .light #ov-flow tr:nth-child(6n + 3) { |
Bri Prebilic Cole | cdc188d | 2015-04-24 16:40:11 -0700 | [diff] [blame] | 45 | background-color: #eee; |
| 46 | } |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 47 | .light #ov-flow tr:nth-child(6n + 4), |
Bri Prebilic Cole | cdc188d | 2015-04-24 16:40:11 -0700 | [diff] [blame] | 48 | .light #ov-flow tr:nth-child(6n + 5), |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 49 | .light #ov-flow tr:nth-child(6n) { |
Bri Prebilic Cole | cdc188d | 2015-04-24 16:40:11 -0700 | [diff] [blame] | 50 | background-color: #ddd; |
| 51 | } |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 52 | .dark #ov-flow tr:nth-child(6n + 1), |
Bri Prebilic Cole | cdc188d | 2015-04-24 16:40:11 -0700 | [diff] [blame] | 53 | .dark #ov-flow tr:nth-child(6n + 2), |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 54 | .dark #ov-flow tr:nth-child(6n + 3) { |
Bri Prebilic Cole | cdc188d | 2015-04-24 16:40:11 -0700 | [diff] [blame] | 55 | background-color: #444; |
| 56 | } |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 57 | .dark #ov-flow tr:nth-child(6n + 4), |
Bri Prebilic Cole | cdc188d | 2015-04-24 16:40:11 -0700 | [diff] [blame] | 58 | .dark #ov-flow tr:nth-child(6n + 5), |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 59 | .dark #ov-flow tr:nth-child(6n) { |
Bri Prebilic Cole | cdc188d | 2015-04-24 16:40:11 -0700 | [diff] [blame] | 60 | background-color: #333; |
| 61 | } |
| 62 | |
Bri Prebilic Cole | 0bc4de2 | 2015-07-20 17:07:55 -0700 | [diff] [blame] | 63 | /* highlighted color */ |
| 64 | .light #ov-flow tr:nth-child(6n + 1).data-change, |
| 65 | .light #ov-flow tr:nth-child(6n + 2).data-change, |
| 66 | .light #ov-flow tr:nth-child(6n + 3).data-change, |
| 67 | .light #ov-flow tr:nth-child(6n + 4).data-change, |
| 68 | .light #ov-flow tr:nth-child(6n + 5).data-change, |
| 69 | .light #ov-flow tr:nth-child(6n).data-change { |
| 70 | background-color: #FDFFDC; |
| 71 | } |
| 72 | .dark #ov-flow tr:nth-child(6n + 1).data-change, |
| 73 | .dark #ov-flow tr:nth-child(6n + 2).data-change, |
| 74 | .dark #ov-flow tr:nth-child(6n + 3).data-change, |
| 75 | .dark #ov-flow tr:nth-child(6n + 4).data-change, |
| 76 | .dark #ov-flow tr:nth-child(6n + 5).data-change, |
| 77 | .dark #ov-flow tr:nth-child(6n).data-change { |
| 78 | background-color: #5A5600; |
| 79 | } |
| 80 | |
Bri Prebilic Cole | cdc188d | 2015-04-24 16:40:11 -0700 | [diff] [blame] | 81 | #ov-flow td.selector, |
| 82 | #ov-flow td.treatment { |
| 83 | padding-left: 36px; |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 84 | opacity: 0.65; |
Simon Hunt | 1002cd8 | 2015-04-23 14:44:03 -0700 | [diff] [blame] | 85 | } |