OLD | NEW |
---|---|
(Empty) | |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | |
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll apse.html"> | |
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> | |
4 <link rel="import" href="chrome://history/constants.html"> | |
5 <link rel="import" href="chrome://history/history_item.html"> | |
6 <link rel="import" href="chrome://history/shared_style.html"> | |
7 | |
8 <dom-module id="history-grouped-list"> | |
9 <template> | |
10 <style include="shared-style"> | |
11 :host { | |
12 align-items: center; | |
13 display: flex; | |
14 flex-direction: column; | |
15 overflow: overlay; | |
16 position: relative; | |
17 } | |
18 | |
19 #main-container { | |
20 box-sizing: border-box; | |
21 max-width: var(--card-max-width); | |
22 min-width: var(--card-min-width); | |
23 margin: var(--first-card-padding-top) var(--card-padding-side); | |
tsergeant
2016/05/23 01:21:11
Why did this change to margin instead of padding?
calamity
2016/05/24 07:08:16
Oops, I think I was playing with something. The si
| |
24 width: 100%; | |
25 } | |
26 | |
27 .domain-heading { | |
28 align-items: center; | |
29 display: flex; | |
30 height: 40px; | |
31 padding: 0 20px; | |
32 } | |
33 | |
34 .domain-count { | |
35 color: rgb(151, 156, 160); | |
36 padding-left: 10px; | |
37 } | |
38 | |
39 .domain-heading-text { | |
40 display: flex; | |
41 } | |
42 | |
43 .group-container { | |
44 background: #fff; | |
45 border: 1px solid var(--card-border-color); | |
46 border-bottom-width: 2px; | |
47 margin-bottom: var(--card-padding-between); | |
48 max-width: var(--card-max-width); | |
49 min-width: var(--card-min-width); | |
50 width: 100%; | |
51 } | |
52 | |
53 .card-title { | |
54 margin-bottom: var(--card-first-last-item-padding); | |
55 } | |
56 | |
57 .domain-heading-text { | |
58 flex: 1 1 0; | |
59 } | |
60 | |
61 .dropdown-indicator { | |
62 max-width: 16px; | |
63 } | |
64 | |
65 history-item { | |
66 --border-style: none; | |
67 padding-left: 20px; | |
68 } | |
69 </style> | |
70 <div id="no-results" class="centered-message" | |
71 hidden$="[[hasResults(groupedHistoryData_.length)]]"> | |
72 [[noResultsMessage_(searchedTerm, querying)]] | |
73 </div> | |
74 <div id="main-container" | |
75 hidden$="[[!hasResults(groupedHistoryData_.length)]]"> | |
76 <template is="dom-repeat" items="[[groupedHistoryData_]]" as="group" | |
77 initial-count="1" index-as="groupIndex"> | |
78 <div class="group-container"> | |
79 <div class="card-title"> | |
80 [[group.title]] | |
81 </div> | |
82 | |
83 <template is="dom-repeat" items="[[group.domains]]" as="domain" | |
84 initial-count="10" index-as="domainIndex"> | |
85 <div> | |
86 <div class="domain-heading" on-tap="toggleDomainExpanded_"> | |
87 <div class="domain-heading-text"> | |
88 <div class="website-icon" | |
89 style="[[getWebsiteIconStyle(domain)]]"></div> | |
90 <span>[[domain.domain]]</span> | |
91 <span class="domain-count">[[domain.visits.length]]</span> | |
92 </div> | |
93 <iron-icon icon="[[getDropdownIcon(domain.expanded)]]" | |
94 class="dropdown-indicator"></iron-icon> | |
95 </div> | |
96 <iron-collapse opened="{{domain.expanded}}" id="collapse"> | |
97 <template is="dom-if" if="[[domain.rendered]]"> | |
98 <template is="dom-repeat" items="[[domain.visits]]" | |
99 as="item" initial-count="5" index-as="itemIndex"> | |
100 <history-item item="[[item]]" | |
101 starred="[[item.starred]]" | |
102 selected="{{item.selected}}" | |
103 has-time-gap="[[needsTimeGap_( | |
104 groupIndex, domainIndex, itemIndex)]]" | |
105 search-term="[[searchedTerm]]" | |
106 number-of-items="[[historyData.length]]"> | |
107 </history-item> | |
108 </template> | |
109 </template> | |
110 </iron-collapse> | |
111 </div> | |
112 </template> | |
113 </div> | |
114 </template> | |
115 </div> | |
116 </template> | |
117 <script src="chrome://history/grouped_list.js"></script> | |
118 </dom-module> | |
OLD | NEW |