Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-present 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 (theme) -- CSS file |
| 19 | */ |
| 20 | |
| 21 | |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 22 | /* a "logical" row is made up of 3 "physical" rows -- color as such */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 23 | .light #ov-flow tr:nth-child(6n + 1), |
| 24 | .light #ov-flow tr:nth-child(6n + 2), |
| 25 | .light #ov-flow tr:nth-child(6n + 3) { |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 26 | background-color: #fbfbfb; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 27 | } |
| 28 | .light #ov-flow tr:nth-child(6n + 4), |
| 29 | .light #ov-flow tr:nth-child(6n + 5), |
| 30 | .light #ov-flow tr:nth-child(6n) { |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 31 | background-color: #f4f4f4; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 32 | } |
| 33 | .dark #ov-flow tr:nth-child(6n + 1), |
| 34 | .dark #ov-flow tr:nth-child(6n + 2), |
| 35 | .dark #ov-flow tr:nth-child(6n + 3) { |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 36 | /* TODO: dark theme */ |
| 37 | background-color: #fbfbfb; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 38 | } |
| 39 | .dark #ov-flow tr:nth-child(6n + 4), |
| 40 | .dark #ov-flow tr:nth-child(6n + 5), |
| 41 | .dark #ov-flow tr:nth-child(6n) { |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 42 | /* TODO: dark theme */ |
| 43 | background-color: #f4f4f4; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 44 | } |
| 45 | |
| 46 | /* highlighted color */ |
| 47 | .light #ov-flow tr:nth-child(6n + 1).data-change, |
| 48 | .light #ov-flow tr:nth-child(6n + 2).data-change, |
| 49 | .light #ov-flow tr:nth-child(6n + 3).data-change, |
| 50 | .light #ov-flow tr:nth-child(6n + 4).data-change, |
| 51 | .light #ov-flow tr:nth-child(6n + 5).data-change, |
| 52 | .light #ov-flow tr:nth-child(6n).data-change { |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 53 | /* TODO: theme */ |
| 54 | background-color: #fdffdc; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 55 | } |
| 56 | .dark #ov-flow tr:nth-child(6n + 1).data-change, |
| 57 | .dark #ov-flow tr:nth-child(6n + 2).data-change, |
| 58 | .dark #ov-flow tr:nth-child(6n + 3).data-change, |
| 59 | .dark #ov-flow tr:nth-child(6n + 4).data-change, |
| 60 | .dark #ov-flow tr:nth-child(6n + 5).data-change, |
| 61 | .dark #ov-flow tr:nth-child(6n).data-change { |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 62 | /* TODO: dark theme */ |
| 63 | background-color: #fdffdc; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | #ov-flow td.selector, |
| 67 | #ov-flow td.treatment { |
| 68 | opacity: 0.65; |
| 69 | } |