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