Home | History | Annotate | Download | only in ui
      1 <!--
      2 Copyright 2014 The Chromium Authors. All rights reserved.
      3 Use of this source code is governed by a BSD-style license that can be
      4 found in the LICENSE file.
      5 -->
      6 
      7 <polymer-element name="ct-commit" attributes="data" noscript>
      8   <template>
      9     <style>
     10       :host {
     11         display: flex;
     12         align-items: center;
     13       }
     14       :host > * {
     15         flex-shrink: 0;
     16       }
     17       a {
     18         padding: 5px;
     19         margin-right: 5px;
     20         border-radius: 4px;
     21       }
     22       div {
     23         flex: 1;
     24       }
     25       :host(:hover) a {
     26         background-color: #555;
     27         color: white;
     28       }
     29     </style>
     30     <a href="{{ data.url }}">{{ data.revision }}</a>
     31     <div>{{ data.summary }} <em>{{ data.author }}</em></div>
     32   </template>
     33 </polymer-element>
     34