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 -- Button Service (theme) -- CSS file |
| 19 | */ |
| 20 | |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 21 | /* TODO: dark theme */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 22 | |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 23 | |
| 24 | /* === SELECTED BUTTONS === */ |
| 25 | |
| 26 | /* Selected toggle / radio button */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 27 | .light .toggleButton.selected svg.embeddedIcon .icon rect, |
| 28 | .light .radioButton.selected svg.embeddedIcon .icon rect { |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 29 | fill: #e4f0f6; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 30 | } |
| 31 | |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 32 | /* Selected:hover (normal) button */ |
| 33 | .light .button:hover svg.embeddedIcon .icon rect { |
| 34 | stroke: black; |
| 35 | stroke-width: 1px; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 36 | } |
| 37 | |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 38 | /* Selected:hover toggle-button */ |
| 39 | .light .toggleButton.selected:hover svg.embeddedIcon .icon rect { |
| 40 | fill: #c0d8f0; |
| 41 | stroke: black; |
| 42 | stroke-width: 1px; |
| 43 | } |
| 44 | |
| 45 | /* Selected toggle/radio button and normal button glyph color */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 46 | .light .button svg.embeddedIcon .glyph, |
| 47 | .light .toggleButton.selected svg.embeddedIcon .glyph, |
| 48 | .light .radioButton.selected svg.embeddedIcon .glyph { |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 49 | fill: #5b99d2; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 50 | } |
| 51 | |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 52 | |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 53 | /* === UNSELECTED BUTTONS === */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 54 | |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 55 | /* Unselected toggle / radio button */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 56 | .light .toggleButton svg.embeddedIcon .icon rect, |
| 57 | .light .radioButton svg.embeddedIcon .icon rect { |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 58 | /* no fill */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 59 | } |
| 60 | |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 61 | /* Unselected:hover toggle / radio button */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 62 | .light .toggleButton:hover svg.embeddedIcon .icon rect, |
| 63 | .light .radioButton:hover:not(.selected) svg.embeddedIcon .icon rect { |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 64 | fill: #e4f0f6; |
| 65 | stroke: black; |
| 66 | stroke-width: 1px; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 67 | } |
| 68 | |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 69 | /* Unselected toggle / radio button */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 70 | .light .toggleButton svg.embeddedIcon .glyph, |
| 71 | .light .radioButton svg.embeddedIcon .glyph { |
| 72 | fill: #bbb; |
| 73 | } |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 74 | |
| 75 | /* Unselected:hover toggle / radio button */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 76 | .light .toggleButton:hover:not(.selected) svg.embeddedIcon .glyph, |
| 77 | .light .radioButton:hover:not(.selected) svg.embeddedIcon .glyph { |
Simon Hunt | c217cb9 | 2016-08-30 16:17:51 -0700 | [diff] [blame^] | 78 | fill: #5b99d2; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 79 | } |