| OLD | NEW |
| 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
| 2 <link rel="import" href="action_link.html"> | 2 <link rel="import" href="action_link.html"> |
| 3 <link rel="import" href="observatory_element.html"> | 3 <link rel="import" href="observatory_element.html"> |
| 4 | 4 |
| 5 <polymer-element name="nav-bar" extends="observatory-element"> | 5 <polymer-element name="nav-bar" extends="observatory-element"> |
| 6 <template> | 6 <template> |
| 7 <link rel="stylesheet" href="css/shared.css"> | 7 <link rel="stylesheet" href="css/shared.css"> |
| 8 <style> | 8 <style> |
| 9 nav { | 9 nav { |
| 10 position: fixed; | 10 position: fixed; |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 | 379 |
| 380 <polymer-element name="nav-notify-exception" extends="observatory-element"> | 380 <polymer-element name="nav-notify-exception" extends="observatory-element"> |
| 381 <template> | 381 <template> |
| 382 <style> | 382 <style> |
| 383 .item { | 383 .item { |
| 384 position: relative; | 384 position: relative; |
| 385 padding: 16px; | 385 padding: 16px; |
| 386 margin-top: 10px; | 386 margin-top: 10px; |
| 387 margin-right: 10px; | 387 margin-right: 10px; |
| 388 padding-right: 25px; | 388 padding-right: 25px; |
| 389 width: 250px; | 389 width: 500px; |
| 390 color: #ddd; | 390 color: #ddd; |
| 391 background: rgba(0,0,0,.6); | 391 background: rgba(0,0,0,.6); |
| 392 border: solid 2px white; | 392 border: solid 2px white; |
| 393 box-shadow: 0 0 5px black; | 393 box-shadow: 0 0 5px black; |
| 394 border-radius: 5px; | 394 border-radius: 5px; |
| 395 animation: fadein 1s; | 395 animation: fadein 1s; |
| 396 } | 396 } |
| 397 | 397 |
| 398 @keyframes fadein { | 398 @keyframes fadein { |
| 399 from { opacity: 0; } | 399 from { opacity: 0; } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 421 line-height: 16px; | 421 line-height: 16px; |
| 422 border-radius: 9px; | 422 border-radius: 9px; |
| 423 color: white; | 423 color: white; |
| 424 font-size: 18px; | 424 font-size: 18px; |
| 425 cursor: pointer; | 425 cursor: pointer; |
| 426 text-align: center; | 426 text-align: center; |
| 427 } | 427 } |
| 428 a.boxclose:hover { | 428 a.boxclose:hover { |
| 429 background: rgba(255,255,255,0.5); | 429 background: rgba(255,255,255,0.5); |
| 430 } | 430 } |
| 431 .stacktrace { |
| 432 white-space: pre |
| 433 } |
| 431 </style> | 434 </style> |
| 432 <template if="{{ isUnexpectedError }}"> | 435 <template if="{{ isUnexpectedError }}"> |
| 433 <!-- TODO(turnidge): Add a file-a-bug link to this notification --> | 436 <!-- TODO(turnidge): Add a file-a-bug link to this notification --> |
| 434 <div class="item"> | 437 <div class="item"> |
| 435 Unexpected exception:<br><br> | 438 Unexpected exception:<br><br> |
| 436 <div class="indent">{{ exception.toString() }}</div><br> | 439 <div class="indent">{{ exception.toString() }}</div><br> |
| 437 <template if="{{ stacktrace != null }}"> | 440 <template if="{{ stacktrace != null }}"> |
| 438 Stacktrace:<br><br> | 441 Stacktrace:<br><br> |
| 439 <div class="indent">{{ stacktrace.toString() }}</div> | 442 <div class="indent stacktrace">{{ stacktrace.toString() }}</div> |
| 440 <br> | 443 <br> |
| 441 </template> | 444 </template> |
| 442 [<a class="link" on-click="{{ goto }}" | 445 [<a class="link" on-click="{{ goto }}" |
| 443 _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>] | 446 _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>] |
| 444 <a class="boxclose" on-click="{{ closeItem }}">×</a> | 447 <a class="boxclose" on-click="{{ closeItem }}">×</a> |
| 445 </div> | 448 </div> |
| 446 </template> | 449 </template> |
| 447 <template if="{{ isNetworkError }}"> | 450 <template if="{{ isNetworkError }}"> |
| 448 <div class="item"> | 451 <div class="item"> |
| 449 The request cannot be completed because the VM is currently | 452 The request cannot be completed because the VM is currently |
| 450 disconnected. | 453 disconnected. |
| 451 <br><br> | 454 <br><br> |
| 452 [<a class="link" on-click="{{ goto }}" | 455 [<a class="link" on-click="{{ goto }}" |
| 453 _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>] | 456 _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>] |
| 454 <a class="boxclose" on-click="{{ closeItem }}">×</a> | 457 <a class="boxclose" on-click="{{ closeItem }}">×</a> |
| 455 </div> | 458 </div> |
| 456 </template> | 459 </template> |
| 457 </template> | 460 </template> |
| 458 </polymer-element> | 461 </polymer-element> |
| 459 | 462 |
| 460 | 463 |
| 461 <script type="application/dart" src="nav_bar.dart"></script> | 464 <script type="application/dart" src="nav_bar.dart"></script> |
| OLD | NEW |