OLD | NEW |
1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
5 <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-button/paper-butt
on.html"> |
6 <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-checkbox/paper-ch
eckbox.html"> |
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
8 <link rel="import" href="chrome://resources/html/icon.html"> | 8 <link rel="import" href="chrome://resources/html/icon.html"> |
9 <link rel="import" href="chrome://resources/html/util.html"> | 9 <link rel="import" href="chrome://resources/html/util.html"> |
| 10 <link rel="import" href="chrome://history/constants.html"> |
10 <link rel="import" href="chrome://history/shared_style.html"> | 11 <link rel="import" href="chrome://history/shared_style.html"> |
11 | 12 |
12 <dom-module id="history-item"> | 13 <dom-module id="history-item"> |
13 <template> | 14 <template> |
14 <style include="shared-style"> | 15 <style include="shared-style"> |
15 :host { | 16 :host { |
16 @apply(--layout-center); | 17 @apply(--layout-center); |
17 @apply(--layout-vertical); | 18 @apply(--layout-vertical); |
18 padding: 0 var(--card-padding-side); | 19 padding: 0 var(--history-item-padding-side, 0); |
19 } | 20 } |
20 | 21 |
21 #main-container { | 22 #main-container { |
22 background: #fff; | 23 background: #fff; |
23 border-color: var(--card-border-color); | 24 border-color: var(--card-border-color); |
24 border-style: solid; | 25 border-style: var(--border-style, solid); |
25 border-width: 0 1px; | 26 border-width: 0 1px; |
26 max-width: var(--card-max-width); | 27 max-width: var(--card-max-width); |
27 min-width: var(--card-min-width); | 28 min-width: var(--card-min-width); |
28 width: 100%; | 29 width: 100%; |
29 } | 30 } |
30 | 31 |
31 :host([is-card-start]) #main-container { | 32 :host([is-card-start]) #main-container { |
32 border-top-width: 1px; | 33 border-top-width: 1px; |
33 } | 34 } |
34 | 35 |
35 :host([is-card-end]) #main-container { | 36 :host([is-card-end]) #main-container { |
36 border-bottom-width: 2px; | 37 border-bottom-width: 2px; |
37 margin-bottom: 20px; | 38 margin-bottom: var(--card-padding-between); |
38 } | 39 } |
39 | 40 |
40 #date-accessed { | 41 #date-accessed { |
41 display: none; | 42 display: none; |
42 } | 43 } |
43 | 44 |
44 :host([is-card-start]) #date-accessed { | 45 :host([is-card-start]) #date-accessed { |
45 display: flex; | 46 display: flex; |
46 } | 47 } |
47 | 48 |
48 #item-container { | 49 #item-container { |
49 @apply(--layout-center); | 50 @apply(--layout-center); |
50 @apply(--layout-horizontal); | 51 @apply(--layout-horizontal); |
51 min-height: 40px; | 52 min-height: 40px; |
52 } | 53 } |
53 | 54 |
54 :host([is-card-start]) #item-container { | 55 :host([is-card-start]) #item-container { |
55 padding-top: 8px; | 56 padding-top: var(--card-first-last-item-padding); |
56 } | 57 } |
57 | 58 |
58 :host([is-card-end]) #item-container { | 59 :host([is-card-end]) #item-container { |
59 padding-bottom: 8px; | 60 padding-bottom: var(--card-first-last-item-padding); |
60 } | 61 } |
61 | 62 |
62 #title-and-domain { | 63 #title-and-domain { |
63 @apply(--layout-center); | 64 @apply(--layout-center); |
64 @apply(--layout-flex); | 65 @apply(--layout-flex); |
65 @apply(--layout-horizontal); | 66 @apply(--layout-horizontal); |
66 min-height: 40px; | 67 min-height: 40px; |
67 overflow: hidden; | 68 overflow: hidden; |
68 } | 69 } |
69 | 70 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 on-tap="onMenuButtonTap_"> | 137 on-tap="onMenuButtonTap_"> |
137 </paper-icon-button> | 138 </paper-icon-button> |
138 </div> | 139 </div> |
139 <template is="dom-if" if="[[hasTimeGap]]"> | 140 <template is="dom-if" if="[[hasTimeGap]]"> |
140 <div id="time-gap-separator"></div> | 141 <div id="time-gap-separator"></div> |
141 </template> | 142 </template> |
142 </div> | 143 </div> |
143 </template> | 144 </template> |
144 <script src="chrome://history/history_item.js"></script> | 145 <script src="chrome://history/history_item.js"></script> |
145 </dom-module> | 146 </dom-module> |
OLD | NEW |