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 -- 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 | |
Simon Hunt | bb0f267 | 2017-03-28 18:52:59 -0700 | [diff] [blame] | 80 | /* ========== DARK Theme ========== */ |
Steven Burrows | f83c3e9 | 2016-09-28 14:38:37 -0700 | [diff] [blame] | 81 | |
Simon Hunt | bb0f267 | 2017-03-28 18:52:59 -0700 | [diff] [blame] | 82 | /* Selected toggle / radio button */ |
Steven Burrows | f83c3e9 | 2016-09-28 14:38:37 -0700 | [diff] [blame] | 83 | .dark .toggleButton.selected svg.embeddedIcon .icon rect, |
| 84 | .dark .radioButton.selected svg.embeddedIcon .icon rect { |
Simon Hunt | bb0f267 | 2017-03-28 18:52:59 -0700 | [diff] [blame] | 85 | fill: #353e45; |
| 86 | } |
| 87 | |
| 88 | /* Selected:hover (normal) button */ |
| 89 | .dark .button:hover svg.embeddedIcon .icon rect { |
| 90 | stroke: white; |
| 91 | stroke-width: 1px; |
| 92 | } |
| 93 | |
| 94 | /* Selected:hover toggle-button */ |
| 95 | .dark .toggleButton.selected:hover svg.embeddedIcon .icon rect { |
| 96 | fill: #444d54; |
| 97 | stroke: white; |
| 98 | stroke-width: 1px; |
| 99 | } |
| 100 | |
| 101 | /* Selected toggle/radio button and normal button glyph color */ |
| 102 | .dark .button svg.embeddedIcon .glyph, |
| 103 | .dark .toggleButton.selected svg.embeddedIcon .glyph, |
| 104 | .dark .radioButton.selected svg.embeddedIcon .glyph { |
| 105 | fill: #5b99d2; |
| 106 | } |
| 107 | |
| 108 | |
| 109 | /* === UNSELECTED BUTTONS === */ |
| 110 | |
| 111 | /* Unselected toggle / radio button */ |
| 112 | .dark .toggleButton svg.embeddedIcon .icon rect, |
| 113 | .dark .radioButton svg.embeddedIcon .icon rect { |
| 114 | /* no fill */ |
| 115 | } |
| 116 | |
| 117 | /* Unselected:hover toggle / radio button */ |
| 118 | .dark .toggleButton:hover svg.embeddedIcon .icon rect, |
| 119 | .dark .radioButton:hover:not(.selected) svg.embeddedIcon .icon rect { |
| 120 | fill: #353e45; |
| 121 | stroke: white; |
| 122 | stroke-width: 1px; |
| 123 | } |
| 124 | |
| 125 | /* Unselected toggle / radio button */ |
| 126 | .dark .toggleButton svg.embeddedIcon .glyph, |
| 127 | .dark .radioButton svg.embeddedIcon .glyph { |
| 128 | fill: #bbb; |
| 129 | } |
| 130 | |
| 131 | /* Unselected:hover toggle / radio button */ |
| 132 | .dark .toggleButton:hover:not(.selected) svg.embeddedIcon .glyph, |
| 133 | .dark .radioButton:hover:not(.selected) svg.embeddedIcon .glyph { |
| 134 | fill: #5b99d2; |
Steven Burrows | f83c3e9 | 2016-09-28 14:38:37 -0700 | [diff] [blame] | 135 | } |