Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Side by Side Diff: runtime/bin/vmservice/observatory/lib/src/elements/class_tree.html

Issue 810623005: Build Observatory with runtime (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <link rel="import" href="../../../../packages/polymer/polymer.html">
2 <link rel="import" href="nav_bar.html">
3 <link rel="import" href="observatory_element.html">
4 <link rel="import" href="class_ref.html">
5
6 <polymer-element name="class-tree" extends="observatory-element">
7 <template>
8 <link rel="stylesheet" href="css/shared.css">
9 <style>
10 .table {
11 border-collapse: collapse!important;
12 width: 100%;
13 margin-bottom: 20px
14 }
15 .table thead > tr > th,
16 .table tbody > tr > th,
17 .table tfoot > tr > th,
18 .table thead > tr > td,
19 .table tbody > tr > td,
20 .table tfoot > tr > td {
21 padding: 8px;
22 vertical-align: top;
23 }
24 .table thead > tr > th {
25 vertical-align: bottom;
26 text-align: left;
27 border-bottom:2px solid #ddd;
28 }
29
30 tr:hover > td {
31 background-color: #FFF3E3;
32 }
33 .rowColor0 {
34 background-color: #FFE9CC;
35 }
36 .rowColor1 {
37 background-color: #FFDEB2;
38 }
39 .rowColor2 {
40 background-color: #FFD399;
41 }
42 .rowColor3 {
43 background-color: #FFC87F;
44 }
45 .rowColor4 {
46 background-color: #FFBD66;
47 }
48 .rowColor5 {
49 background-color: #FFB24C;
50 }
51 .rowColor6 {
52 background-color: #FFA733;
53 }
54 .rowColor7 {
55 background-color: #FF9C19;
56 }
57 .rowColor8 {
58 background-color: #FF9100;
59 }
60
61 .tooltip {
62 display: block;
63 position: absolute;
64 visibility: hidden;
65 opacity: 0;
66 transition: visibility 0s linear 0.5s;
67 transition: opacity .4s ease-in-out;
68 }
69
70 tr:hover .tooltip {
71 display: block;
72 position: absolute;
73 top: 100%;
74 right: 100%;
75 visibility: visible;
76 z-index: 999;
77 width: 400px;
78 color: #ffffff;
79 background-color: #0489c3;
80 border-top-right-radius: 8px;
81 border-top-left-radius: 8px;
82 border-bottom-right-radius: 8px;
83 border-bottom-left-radius: 8px;
84 transition: visibility 0s linear 0.5s;
85 transition: opacity .4s ease-in-out;
86 opacity: 1;
87 }
88
89 .white {
90 color: #ffffff;
91 }
92 </style>
93 <nav-bar>
94 <top-nav-menu last="{{ true }}"></top-nav-menu>
95 <nav-control></nav-control>
96 </nav-bar>
97 <div class="content-centered">
98 <h1>Class Hierarchy</h1>
99 <table id="tableTree" class="table">
100 <thead>
101 <tr>
102 <th>Class</th>
103 </tr>
104 </thead>
105 <tbody>
106 <tr template repeat="{{row in tree.rows }}">
107 <td on-click="{{toggleExpanded}}"
108 class="{{ coloring(row) }}"
109 style="{{ padding(row) }}">
110 <span id="expand" style="{{ row.expanderStyle }}">{{ row.expander }}</span>
111 <class-ref ref="{{ row.cls }}"></class-ref>
112 </td>
113 </tr>
114 </tbody>
115 </table>
116 </div>
117 </template>
118 </polymer-element>
119
120 <script type="application/dart" src="class_tree.dart"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698