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 28 matching lines...) Expand all Loading... |
39 </ul> | 39 </ul> |
40 </nav> | 40 </nav> |
41 <div class="vertical-spacer"> | 41 <div class="vertical-spacer"> |
42 </div> | 42 </div> |
43 <template if="{{ pad }}"> | 43 <template if="{{ pad }}"> |
44 <br> | 44 <br> |
45 </template> | 45 </template> |
46 </template> | 46 </template> |
47 </polymer-element> | 47 </polymer-element> |
48 | 48 |
49 <polymer-element name="nav-menu" extends="observatory-element"> | |
50 <template> | |
51 <style> | |
52 .menu, .spacer { | |
53 float: left; | |
54 } | |
55 .menu a, .spacer { | |
56 display: block; | |
57 padding: 12px 8px; | |
58 color: White; | |
59 text-decoration: none; | |
60 } | |
61 .menu:hover { | |
62 background: #455; | |
63 } | |
64 .menu ul { | |
65 display: none; | |
66 position: absolute; | |
67 top: 98%; | |
68 list-style: none; | |
69 margin: 0; | |
70 padding: 0; | |
71 width: auto; | |
72 z-index: 1000; | |
73 font: 400 16px 'Montserrat', sans-serif; | |
74 color: white; | |
75 background: #567; | |
76 } | |
77 .menu ul:after { | |
78 content: ""; clear: both; display: block; | |
79 } | |
80 .menu:hover > ul { | |
81 display: block; | |
82 } | |
83 </style> | |
84 | |
85 <li class="menu"> | |
86 <a on-click="{{ goto }}" _href="{{ gotoLink(link) }}">{{ anchor }}</a> | |
87 <ul><content></content></ul> | |
88 </li> | |
89 <template if="{{ !last }}"> | |
90 <li class="spacer">></li> | |
91 </template> | |
92 | |
93 </template> | |
94 </polymer-element> | |
95 | |
96 <polymer-element name="nav-menu-item" extends="observatory-element"> | 49 <polymer-element name="nav-menu-item" extends="observatory-element"> |
97 <template> | 50 <template> |
98 <style> | 51 <style> |
99 li { | 52 li { |
100 float: none; | 53 float: none; |
101 border-top: 1px solid #677; | 54 border-top: 1px solid #677; |
102 border-bottom: 1px solid #556; position: relative; | 55 border-bottom: 1px solid #556; position: relative; |
103 } | 56 } |
104 li:hover { | 57 li:hover { |
105 background: #455; | 58 background: #455; |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 [<a class="link" on-click="{{ goto }}" | 430 [<a class="link" on-click="{{ goto }}" |
478 _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>] | 431 _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>] |
479 <a class="boxclose" on-click="{{ closeItem }}">×</a> | 432 <a class="boxclose" on-click="{{ closeItem }}">×</a> |
480 </div> | 433 </div> |
481 </template> | 434 </template> |
482 </template> | 435 </template> |
483 </polymer-element> | 436 </polymer-element> |
484 | 437 |
485 | 438 |
486 <script type="application/dart" src="nav_bar.dart"></script> | 439 <script type="application/dart" src="nav_bar.dart"></script> |
OLD | NEW |