| OLD | NEW |
| (Empty) | |
| 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 7 <link rel="import" href="chrome://resources/html/util.html"> |
| 8 |
| 9 <dom-module id="history-item"> |
| 10 <template> |
| 11 <style> |
| 12 #main-container { |
| 13 @apply(--layout-center); |
| 14 @apply(--layout-horizontal); |
| 15 min-height: 40px; |
| 16 } |
| 17 |
| 18 paper-checkbox { |
| 19 --paper-checkbox-checked-color: rgb(68, 136, 255); |
| 20 --paper-checkbox-size: 16px; |
| 21 --paper-checkbox-unchecked-color: #969696; |
| 22 height: 16px; |
| 23 margin: 0 16px 0 20px; |
| 24 padding: 2px; |
| 25 width: 16px; |
| 26 } |
| 27 |
| 28 #time { |
| 29 color: #646464; |
| 30 min-width: 96px; |
| 31 } |
| 32 |
| 33 #title { |
| 34 color: #333; |
| 35 overflow: hidden; |
| 36 text-decoration: none; |
| 37 text-overflow: ellipsis; |
| 38 white-space: nowrap; |
| 39 } |
| 40 |
| 41 #title:hover { |
| 42 text-decoration: underline; |
| 43 } |
| 44 |
| 45 #domain { |
| 46 @apply(--layout-flex); |
| 47 -webkit-margin-start: 16px; |
| 48 color: #969696; |
| 49 white-space: nowrap; |
| 50 } |
| 51 |
| 52 iron-icon { |
| 53 --iron-icon-height: 16px; |
| 54 --iron-icon-width: 16px; |
| 55 } |
| 56 |
| 57 #website-icon { |
| 58 -webkit-margin-end: 16px; |
| 59 height: 16px; |
| 60 min-width: 16px; |
| 61 } |
| 62 |
| 63 #menu-button { |
| 64 -webkit-margin-end: 12px; |
| 65 -webkit-margin-start: 2px; |
| 66 color: #969696; |
| 67 height: 36px; |
| 68 min-width: 36px; |
| 69 width: 36px; |
| 70 } |
| 71 |
| 72 #bookmark { |
| 73 -webkit-margin-end: 10px; |
| 74 -webkit-margin-start: 20px; |
| 75 color: rgb(68, 136, 255); |
| 76 min-width: 16px; |
| 77 visibility: hidden; |
| 78 } |
| 79 |
| 80 :host([starred]) #bookmark { |
| 81 visibility: visible; |
| 82 } |
| 83 </style> |
| 84 <div id="main-container"> |
| 85 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_" |
| 86 checked="{{selected}}"> |
| 87 </paper-checkbox> |
| 88 <span id="time">{{timeAccessed_}}</span> |
| 89 <div id="website-icon"></div> |
| 90 <a href="{{websiteUrl_}}" id="title">{{websiteTitle_}}</a> |
| 91 <span id="domain">{{websiteDomain_}}</span> |
| 92 <iron-icon icon="star" id="bookmark"></iron-icon> |
| 93 <paper-icon-button icon="more-vert" id="menu-button" |
| 94 on-tap="onMenuButtonTap_"> |
| 95 </paper-icon-button> |
| 96 </div> |
| 97 </template> |
| 98 <script src="chrome://history/history_item.js"></script> |
| 99 </dom-module> |
| OLD | NEW |