Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2014-present Open Networking Laboratory |
Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [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 -- core -- CSS file |
Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | html { |
| 22 | font-family: sans-serif; |
| 23 | -webkit-text-size-adjust: 100%; |
| 24 | -ms-text-size-adjust: 100%; |
| 25 | height: 100%; |
| 26 | } |
| 27 | |
| 28 | /* |
| 29 | overflow hidden is to ensure that the body does not expand to account |
| 30 | for any flyout panes, that are positioned "off screen". |
| 31 | */ |
| 32 | body { |
| 33 | height: 100%; |
| 34 | margin: 0; |
| 35 | overflow: hidden; |
| 36 | } |
Simon Hunt | ef31fb2 | 2014-12-19 13:16:44 -0800 | [diff] [blame] | 37 | |
Simon Hunt | 5ee36e0 | 2015-01-15 10:33:20 -0800 | [diff] [blame] | 38 | body.light { |
| 39 | background-color: white; |
| 40 | } |
| 41 | body.dark { |
| 42 | background-color: #2b2b2b; |
| 43 | } |
| 44 | |
Simon Hunt | ef31fb2 | 2014-12-19 13:16:44 -0800 | [diff] [blame] | 45 | #view { |
| 46 | padding: 6px; |
Simon Hunt | 426bd86 | 2015-01-14 16:48:41 -0800 | [diff] [blame] | 47 | width: 100%; |
| 48 | height: 100%; |
Simon Hunt | ef31fb2 | 2014-12-19 13:16:44 -0800 | [diff] [blame] | 49 | } |
| 50 | |
Thomas Vachuska | 95aadff | 2015-03-26 11:45:41 -0700 | [diff] [blame] | 51 | #view h2 { |
| 52 | padding-left: 12px; |
| 53 | } |
| 54 | |
Bri Prebilic Cole | 4fab8af | 2015-01-15 16:40:47 -0800 | [diff] [blame] | 55 | .light #view h2 { |
Simon Hunt | ef31fb2 | 2014-12-19 13:16:44 -0800 | [diff] [blame] | 56 | color: #800; |
| 57 | } |
Bri Prebilic Cole | 4fab8af | 2015-01-15 16:40:47 -0800 | [diff] [blame] | 58 | .dark #view h2 { |
Bri Prebilic Cole | 1598301 | 2015-01-28 15:17:18 -0800 | [diff] [blame] | 59 | color: #CE5650; |
Bri Prebilic Cole | 4fab8af | 2015-01-15 16:40:47 -0800 | [diff] [blame] | 60 | } |
Thomas Vachuska | fe1f01a | 2015-12-10 23:56:02 -0800 | [diff] [blame] | 61 | |
Simon Hunt | f4ef6dd | 2016-02-03 17:05:14 -0800 | [diff] [blame] | 62 | .centered { |
Thomas Vachuska | fe1f01a | 2015-12-10 23:56:02 -0800 | [diff] [blame] | 63 | position: fixed; |
| 64 | top: 50%; |
| 65 | left: 50%; |
| 66 | -webkit-transform: translate(-50%, -50%); |
| 67 | transform: translate(-50%, -50%); |
| 68 | box-shadow: 2px 2px 24px 5px #888; |
| 69 | background-color: #eee; |
Simon Hunt | 9f5e97d | 2015-12-11 10:32:09 -0800 | [diff] [blame] | 70 | margin: 0; |
Thomas Vachuska | fe1f01a | 2015-12-10 23:56:02 -0800 | [diff] [blame] | 71 | padding: 10px; |
| 72 | } |