Matteo Scandolo | be9b13d | 2016-01-21 11:21:03 -0800 | [diff] [blame] | 1 | service-canvas { |
| 2 | height: 100%; |
| 3 | width: 100%; |
| 4 | display: block; |
| 5 | } |
| 6 | |
Matteo Scandolo | 65d6fc4 | 2016-01-25 16:24:42 -0800 | [diff] [blame] | 7 | service-canvas .subscriber-select{ |
Matteo Scandolo | 39f4947 | 2016-01-25 13:55:09 -0800 | [diff] [blame] | 8 | z-index: 1000; |
| 9 | position: absolute; |
| 10 | width: 200px; |
| 11 | top: 10px; |
| 12 | left: 10px; |
| 13 | } |
| 14 | |
Matteo Scandolo | 4889f5a | 2016-01-25 12:00:42 -0800 | [diff] [blame] | 15 | service-canvas svg { |
| 16 | position: absolute; |
| 17 | top: 0; |
| 18 | } |
| 19 | |
Matteo Scandolo | 65d6fc4 | 2016-01-25 16:24:42 -0800 | [diff] [blame] | 20 | /* LEGEND */ |
| 21 | |
| 22 | .legend { |
| 23 | fill: #fff; |
| 24 | stroke: #ccc; |
| 25 | stroke-width: 1px; |
| 26 | position: relative; |
| 27 | } |
| 28 | |
| 29 | .legend text { |
| 30 | stroke: #000; |
| 31 | } |
| 32 | |
Matteo Scandolo | be9b13d | 2016-01-21 11:21:03 -0800 | [diff] [blame] | 33 | .node { |
| 34 | cursor: pointer; |
| 35 | } |
| 36 | |
Matteo Scandolo | c86b4c1 | 2016-01-25 17:36:08 -0800 | [diff] [blame] | 37 | .node circle, |
| 38 | .node rect{ |
Matteo Scandolo | be9b13d | 2016-01-21 11:21:03 -0800 | [diff] [blame] | 39 | fill: #fff; |
| 40 | stroke: steelblue; |
| 41 | stroke-width: 3px; |
| 42 | } |
| 43 | |
Matteo Scandolo | fb46f5b | 2016-01-25 10:10:38 -0800 | [diff] [blame] | 44 | .node.subscriber circle, |
| 45 | .node.internet circle { |
Matteo Scandolo | 65d6fc4 | 2016-01-25 16:24:42 -0800 | [diff] [blame] | 46 | stroke: #05ffcb; |
Matteo Scandolo | fb46f5b | 2016-01-25 10:10:38 -0800 | [diff] [blame] | 47 | } |
| 48 | |
Matteo Scandolo | c86b4c1 | 2016-01-25 17:36:08 -0800 | [diff] [blame] | 49 | .node.slice rect { |
Matteo Scandolo | 4889f5a | 2016-01-25 12:00:42 -0800 | [diff] [blame] | 50 | stroke: #b01dff; |
| 51 | } |
| 52 | |
Matteo Scandolo | c86b4c1 | 2016-01-25 17:36:08 -0800 | [diff] [blame] | 53 | .node.instance rect { |
Matteo Scandolo | 998e465 | 2016-01-28 12:02:57 -0800 | [diff] [blame] | 54 | stroke: #ccc; |
| 55 | } |
| 56 | |
| 57 | .node.instance rect.active { |
Matteo Scandolo | 65d6fc4 | 2016-01-25 16:24:42 -0800 | [diff] [blame] | 58 | stroke: #ff8b00; |
Matteo Scandolo | 4889f5a | 2016-01-25 12:00:42 -0800 | [diff] [blame] | 59 | } |
| 60 | |
Matteo Scandolo | 793e1dd | 2016-01-22 09:33:26 -0800 | [diff] [blame] | 61 | .node rect.slice-detail{ |
| 62 | fill: #fff; |
| 63 | stroke: steelblue; |
| 64 | stroke-width: 3px; |
| 65 | } |
| 66 | |
Matteo Scandolo | be9b13d | 2016-01-21 11:21:03 -0800 | [diff] [blame] | 67 | .node text { |
| 68 | font: 12px sans-serif; |
| 69 | } |
| 70 | |
| 71 | .link { |
| 72 | fill: none; |
| 73 | stroke: #ccc; |
| 74 | stroke-width: 2px; |
Matteo Scandolo | 6823626 | 2016-01-21 15:38:06 -0800 | [diff] [blame] | 75 | } |
| 76 | |
Matteo Scandolo | 65d6fc4 | 2016-01-25 16:24:42 -0800 | [diff] [blame] | 77 | .link.slice { |
Matteo Scandolo | 39f4947 | 2016-01-25 13:55:09 -0800 | [diff] [blame] | 78 | stroke: rgba(157, 4, 183, 0.29); |
| 79 | } |
Matteo Scandolo | 65d6fc4 | 2016-01-25 16:24:42 -0800 | [diff] [blame] | 80 | .link.instance{ |
Matteo Scandolo | 998e465 | 2016-01-28 12:02:57 -0800 | [diff] [blame] | 81 | stroke: #ccc; |
| 82 | } |
| 83 | |
| 84 | .link.instance.active{ |
Matteo Scandolo | 65d6fc4 | 2016-01-25 16:24:42 -0800 | [diff] [blame] | 85 | stroke: rgba(255, 138, 0, 0.65); |
| 86 | } |
Matteo Scandolo | 39f4947 | 2016-01-25 13:55:09 -0800 | [diff] [blame] | 87 | |
Matteo Scandolo | 6823626 | 2016-01-21 15:38:06 -0800 | [diff] [blame] | 88 | .service-details{ |
| 89 | width: 200px; |
| 90 | position: absolute; |
| 91 | top: 20px; |
| 92 | right: 20px; |
Matteo Scandolo | 53a0226 | 2016-01-21 16:02:57 -0800 | [diff] [blame] | 93 | } |
| 94 | |
| 95 | /* when showing the thing */ |
| 96 | |
| 97 | .animate.ng-hide-remove { |
| 98 | animation:0.5s bounceInRight ease; |
| 99 | } |
| 100 | |
| 101 | /* when hiding the picture */ |
| 102 | .animate.ng-hide-add { |
| 103 | animation:0.5s bounceOutRight ease; |
| 104 | } |
| 105 | |
| 106 | /* ANIMATIONS */ |
| 107 | |
| 108 | @keyframes bounceInRight { |
| 109 | from, 60%, 75%, 90%, to { |
| 110 | animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); |
| 111 | } |
| 112 | |
| 113 | from { |
| 114 | opacity: 0; |
| 115 | transform: translate3d(3000px, 0, 0); |
| 116 | } |
| 117 | |
| 118 | 60% { |
| 119 | opacity: 1; |
| 120 | transform: translate3d(-25px, 0, 0); |
| 121 | } |
| 122 | |
| 123 | 75% { |
| 124 | transform: translate3d(10px, 0, 0); |
| 125 | } |
| 126 | |
| 127 | 90% { |
| 128 | transform: translate3d(-5px, 0, 0); |
| 129 | } |
| 130 | |
| 131 | to { |
| 132 | transform: none; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | @keyframes bounceInLeft { |
| 137 | from, 60%, 75%, 90%, to { |
| 138 | animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); |
| 139 | } |
| 140 | |
| 141 | 0% { |
| 142 | opacity: 0; |
| 143 | transform: translate3d(-3000px, 0, 0); |
| 144 | } |
| 145 | |
| 146 | 60% { |
| 147 | opacity: 1; |
| 148 | transform: translate3d(25px, 0, 0); |
| 149 | } |
| 150 | |
| 151 | 75% { |
| 152 | transform: translate3d(-10px, 0, 0); |
| 153 | } |
| 154 | |
| 155 | 90% { |
| 156 | transform: translate3d(5px, 0, 0); |
| 157 | } |
| 158 | |
| 159 | to { |
| 160 | transform: none; |
| 161 | } |
Matteo Scandolo | be9b13d | 2016-01-21 11:21:03 -0800 | [diff] [blame] | 162 | } |