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