Chromium Code Reviews| 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 | |
| 8 <dom-module id="history-item"> | |
| 9 <template> | |
| 10 <style> | |
| 11 :host([starred]) #bookmark { | |
| 12 visibility: visible; | |
| 13 } | |
| 14 | |
| 15 #main-container { | |
| 16 @apply(--layout-center); | |
| 17 @apply(--layout-horizontal); | |
| 18 min-height: 40px; | |
| 19 } | |
| 20 | |
| 21 paper-checkbox { | |
| 22 --paper-checkbox-checked-color: #48f; | |
| 23 --paper-checkbox-size: 16px; | |
| 24 --paper-checkbox-unchecked-color: #969696; | |
| 25 height: 16px; | |
| 26 margin: 0 16px 0 20px; | |
| 27 padding: 2px; | |
| 28 width: 16px; | |
| 29 } | |
| 30 | |
| 31 #time { | |
| 32 color: #646464; | |
| 33 min-width: 96px; | |
| 34 } | |
| 35 | |
| 36 #title { | |
| 37 color: #333; | |
| 38 overflow: hidden; | |
| 39 text-decoration: none; | |
| 40 text-overflow: ellipsis; | |
| 41 white-space: nowrap; | |
| 42 } | |
| 43 | |
| 44 #title:hover { | |
| 45 text-decoration: underline; | |
| 46 } | |
| 47 | |
| 48 #domain { | |
| 49 @apply(--layout-flex); | |
| 50 color: #969696; | |
| 51 margin-left: 16px; | |
| 52 white-space: nowrap; | |
| 53 } | |
| 54 | |
| 55 iron-icon { | |
| 56 --iron-icon-height: 16px; | |
| 57 --iron-icon-width: 16px; | |
| 58 } | |
| 59 | |
| 60 #website-icon { | |
| 61 height: 16px; | |
| 62 margin-right: 16px; | |
|
Dan Beam
2016/01/16 02:54:36
RTL
yingran
2016/01/18 05:40:30
Done.
| |
| 63 min-width: 16px; | |
| 64 } | |
| 65 | |
| 66 paper-icon-button { | |
| 67 color: #969696; | |
| 68 height: 36px; | |
| 69 margin: 0 12px 0 2px; | |
|
Dan Beam
2016/01/16 02:54:36
RTL
yingran
2016/01/18 05:40:30
Done.
| |
| 70 min-width: 36px; | |
| 71 width: 36px; | |
| 72 } | |
| 73 | |
| 74 #bookmark { | |
| 75 color: #48f; | |
| 76 margin: 0 10px 0 20px; | |
|
Dan Beam
2016/01/16 02:54:36
RTL
yingran
2016/01/18 05:40:30
Done.
| |
| 77 min-width: 16px; | |
| 78 visibility: hidden; | |
| 79 } | |
| 80 </style> | |
| 81 <div id="main-container"> | |
| 82 <paper-checkbox id="checkbox" on-tap="checkboxSelected" | |
| 83 checked="{{selected}}"> | |
|
Dan Beam
2016/01/16 02:54:36
indent off
yingran
2016/01/18 05:40:30
Done.
| |
| 84 </paper-checkbox> | |
| 85 <span id="time">{{timeAccessed}}</span> | |
| 86 <div id="website-icon"></div> | |
| 87 <a href="{{websiteUrl}}" id="title">{{websiteTitle}}</a> | |
| 88 <span id="domain">{{websiteDomain}}</span> | |
| 89 <iron-icon icon="star" id="bookmark"></iron-icon> | |
| 90 <paper-icon-button icon="more-vert" id="menu-button" on-tap="openMenu"> | |
| 91 </paper-icon-button> | |
| 92 </div> | |
| 93 </template> | |
| 94 <script src="chrome://history/history-item.js"></script> | |
| 95 | |
| 96 </dom-module> | |
| OLD | NEW |