Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 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 -- Group View (theme) -- CSS file |
| 19 | */ |
| 20 | |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 21 | /* a "logical" row is made up of 2 "physical" rows -- color as such */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 22 | .light #ov-group tr:nth-child(4n + 1), |
| 23 | .light #ov-group tr:nth-child(4n + 2) { |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 24 | background-color: #fbfbfb; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 25 | } |
| 26 | .light #ov-group tr:nth-child(4n + 3), |
| 27 | .light #ov-group tr:nth-child(4n) { |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 28 | background-color: #f4f4f4; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 29 | } |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 30 | |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 31 | /* highlighted color */ |
| 32 | .light #ov-group tr:nth-child(4n + 1).data-change, |
| 33 | .light #ov-group tr:nth-child(4n + 2).data-change, |
| 34 | .light #ov-group tr:nth-child(4n + 3).data-change, |
| 35 | .light #ov-group tr:nth-child(4n).data-change { |
Simon Hunt | a42c4dc | 2016-06-06 11:56:59 -0700 | [diff] [blame] | 36 | background-color: #fdffdc; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 37 | } |
Simon Hunt | bb0f267 | 2017-03-28 18:52:59 -0700 | [diff] [blame] | 38 | |
| 39 | /* ========== DARK Theme ========== */ |
| 40 | |
| 41 | .dark #ov-group tr:nth-child(4n + 1), |
| 42 | .dark #ov-group tr:nth-child(4n + 2) { |
| 43 | background-color: #333333; |
| 44 | } |
| 45 | .dark #ov-group tr:nth-child(4n + 3), |
| 46 | .dark #ov-group tr:nth-child(4n) { |
| 47 | background-color: #3a3a3a; |
| 48 | } |
| 49 | |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 50 | .dark #ov-group tr:nth-child(4n + 1).data-change, |
| 51 | .dark #ov-group tr:nth-child(4n + 2).data-change, |
| 52 | .dark #ov-group tr:nth-child(4n + 3).data-change, |
| 53 | .dark #ov-group tr:nth-child(4n).data-change { |
Simon Hunt | bb0f267 | 2017-03-28 18:52:59 -0700 | [diff] [blame] | 54 | background-color: #423708; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 55 | } |