Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 1 | /* |
| 2 | ONOS CSS file |
| 3 | |
| 4 | @author Simon Hunt |
| 5 | */ |
| 6 | |
| 7 | body, html { |
| 8 | height: 100%; |
| 9 | } |
| 10 | |
| 11 | /* |
| 12 | * Classes |
| 13 | */ |
| 14 | |
| 15 | span.title { |
| 16 | color: red; |
| 17 | font-size: 16pt; |
| 18 | font-style: italic; |
| 19 | } |
| 20 | |
| 21 | span.radio { |
| 22 | color: darkslateblue; |
| 23 | } |
| 24 | |
| 25 | span.right { |
| 26 | float: right; |
| 27 | } |
| 28 | |
| 29 | /* |
| 30 | * === DEBUGGING ====== |
| 31 | */ |
| 32 | svg { |
| 33 | border: 1px dashed red; |
| 34 | } |
| 35 | |
| 36 | |
| 37 | /* |
| 38 | * Network Graph elements ====================================== |
| 39 | */ |
| 40 | |
| 41 | .link { |
| 42 | fill: none; |
| 43 | stroke: #666; |
| 44 | stroke-width: 1.5px; |
| 45 | opacity: .7; |
| 46 | /*marker-end: url(#end);*/ |
| 47 | |
| 48 | transition: opacity 250ms; |
| 49 | -webkit-transition: opacity 250ms; |
| 50 | -moz-transition: opacity 250ms; |
| 51 | } |
| 52 | |
| 53 | marker#end { |
| 54 | fill: #666; |
| 55 | stroke: #666; |
| 56 | stroke-width: 1.5px; |
| 57 | } |
| 58 | |
| 59 | .node rect { |
| 60 | stroke-width: 1.5px; |
| 61 | |
| 62 | transition: opacity 250ms; |
| 63 | -webkit-transition: opacity 250ms; |
| 64 | -moz-transition: opacity 250ms; |
| 65 | } |
| 66 | |
| 67 | .node text { |
| 68 | fill: #000; |
| 69 | font: 10px sans-serif; |
| 70 | pointer-events: none; |
| 71 | } |
| 72 | |
| 73 | .node.selected rect { |
| 74 | filter: url(#blue-glow); |
| 75 | } |
| 76 | |
| 77 | .link.inactive, |
| 78 | .node.inactive rect, |
| 79 | .node.inactive text { |
| 80 | opacity: .2; |
| 81 | } |
| 82 | |
| 83 | .node.inactive.selected rect, |
| 84 | .node.inactive.selected text { |
| 85 | opacity: .6; |
| 86 | } |
| 87 | |
| 88 | .legend { |
| 89 | position: fixed; |
| 90 | } |
| 91 | |
| 92 | .legend .category rect { |
| 93 | stroke-width: 1px; |
| 94 | } |
| 95 | |
| 96 | .legend .category text { |
| 97 | fill: #000; |
| 98 | font: 10px sans-serif; |
| 99 | pointer-events: none; |
| 100 | } |
| 101 | |
| 102 | /* |
| 103 | * ============================================================= |
| 104 | */ |
| 105 | |
| 106 | /* |
| 107 | * Specific structural elements |
| 108 | */ |
| 109 | |
| 110 | #frame { |
| 111 | width: 100%; |
| 112 | height: 100%; |
| 113 | background-color: #ffd; |
| 114 | } |
| 115 | |
| 116 | #mast { |
| 117 | height: 32px; |
| 118 | background-color: #dda; |
| 119 | vertical-align: baseline; |
| 120 | } |
| 121 | |
| 122 | #main { |
| 123 | background-color: #99b; |
| 124 | } |