OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.html"> | 2 <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-icons/hardware-ico
ns.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/hardware-ico
ns.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 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-icon-button/paper
-icon-button.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tab.ht
ml"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tab.ht
ml"> |
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tabs.h
tml"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tabs.h
tml"> |
8 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 8 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
9 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht
ml"> | 9 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht
ml"> |
10 <link rel="import" href="chrome://history/icons.html"> | 10 <link rel="import" href="chrome://history/icons.html"> |
11 <link rel="import" href="chrome://history/shared_style.html"> | 11 <link rel="import" href="chrome://history/shared_style.html"> |
12 | 12 |
13 <dom-module id="history-toolbar"> | 13 <dom-module id="history-toolbar"> |
14 <template> | 14 <template> |
15 <style include="shared-style"> | 15 <style include="shared-style"> |
16 :host { | 16 :host { |
17 color: #fff; | 17 color: #fff; |
| 18 display: block; |
18 transition: background-color 150ms; | 19 transition: background-color 150ms; |
19 width: 100%; | 20 width: 100%; |
20 } | 21 } |
21 | 22 |
22 cr-toolbar, | 23 cr-toolbar, |
23 #overlay-buttons, | 24 #overlay-buttons, |
24 #overlay-wrapper, | 25 #overlay-wrapper, |
25 #toolbar-container { | 26 #toolbar-container { |
26 @apply(--layout-center); | 27 @apply(--layout-center); |
27 @apply(--layout-horizontal); | 28 @apply(--layout-horizontal); |
28 width: 100%; | 29 width: 100%; |
29 } | 30 } |
30 | 31 |
31 :host([items-selected_]) { | 32 :host([items-selected_]) { |
32 background: rgb(68, 136, 255); | 33 background: rgb(68, 136, 255); |
33 } | 34 } |
34 | 35 |
35 #toolbar-container { | 36 #toolbar-container { |
36 height: 56px; | 37 height: var(--toolbar-height); |
37 } | 38 } |
38 | 39 |
39 #overlay-buttons { | 40 #overlay-buttons { |
40 margin: 0 auto; | 41 margin: 0 auto; |
41 max-width: var(--card-max-width); | 42 max-width: var(--card-max-width); |
42 padding: 0 var(--card-padding-side); | 43 padding: 0 var(--card-padding-side); |
43 } | 44 } |
44 | 45 |
45 #overlay-wrapper { | 46 #overlay-wrapper { |
46 -webkit-margin-start: var(--side-bar-width); | 47 -webkit-margin-start: var(--side-bar-width); |
(...skipping 18 matching lines...) Expand all Loading... |
65 } | 66 } |
66 | 67 |
67 paper-tab { | 68 paper-tab { |
68 --paper-tab-ink: rgba(255, 255, 255, 0.4); | 69 --paper-tab-ink: rgba(255, 255, 255, 0.4); |
69 font-size: 13px; | 70 font-size: 13px; |
70 text-transform: uppercase; | 71 text-transform: uppercase; |
71 } | 72 } |
72 | 73 |
73 paper-tabs { | 74 paper-tabs { |
74 --paper-tabs-selection-bar-color: var(--google-blue-500); | 75 --paper-tabs-selection-bar-color: var(--google-blue-500); |
75 height: 45px; | 76 height: calc(var(--toolbar-grouped-height) - var(--toolbar-height)); |
76 min-width: 300px; | 77 min-width: 300px; |
77 } | 78 } |
78 | 79 |
79 #grouped-buttons-container { | 80 #grouped-buttons-container { |
80 @apply(--layout-center); | 81 @apply(--layout-center); |
81 @apply(--layout-horizontal); | 82 @apply(--layout-horizontal); |
82 -webkit-margin-start: var(--side-bar-width); | 83 -webkit-margin-start: var(--side-bar-width); |
83 } | 84 } |
84 | 85 |
85 #grouped-range-buttons { | 86 #grouped-range-buttons { |
86 -webkit-margin-start: 32px; | 87 -webkit-margin-start: 32px; |
87 } | 88 } |
88 | 89 |
89 #grouped-nav-container { | 90 #grouped-nav-container { |
90 @apply(--layout-center); | 91 @apply(--layout-center); |
91 @apply(--layout-end-justified); | 92 @apply(--layout-end-justified); |
92 @apply(--layout-flex); | 93 @apply(--layout-flex); |
93 @apply(--layout-horizontal); | 94 @apply(--layout-horizontal); |
94 -webkit-margin-end: 24px; | 95 -webkit-margin-end: 24px; |
95 overflow: hidden; | 96 overflow: hidden; |
96 transition: opacity 150ms; | 97 transition: opacity 150ms; |
97 } | 98 } |
98 | 99 |
99 :host([grouped-range="0"]) #grouped-nav-container { | 100 :host([grouped-range='0']) #grouped-nav-container { |
100 opacity: 0; | 101 opacity: 0; |
101 pointer-events: none; | 102 pointer-events: none; |
102 } | 103 } |
103 | 104 |
104 #grouped-date { | 105 #grouped-date { |
105 flex: 0 1 auto; | 106 flex: 0 1 auto; |
106 opacity: 0.7; | 107 opacity: 0.7; |
107 overflow: hidden; | 108 overflow: hidden; |
108 text-align: right; | 109 text-align: right; |
109 text-overflow: ellipsis; | 110 text-overflow: ellipsis; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 class="rtl-reversible"></paper-icon-button> | 154 class="rtl-reversible"></paper-icon-button> |
154 <paper-icon-button icon="cr:chevron-right" | 155 <paper-icon-button icon="cr:chevron-right" |
155 alt="$i18n{rangeNext}" title="$i18n{rangeNext}" | 156 alt="$i18n{rangeNext}" title="$i18n{rangeNext}" |
156 class="rtl-reversible"></paper-icon-button> | 157 class="rtl-reversible"></paper-icon-button> |
157 </div> | 158 </div> |
158 </div> | 159 </div> |
159 </template> | 160 </template> |
160 </template> | 161 </template> |
161 <script src="chrome://history/history_toolbar.js"></script> | 162 <script src="chrome://history/history_toolbar.js"></script> |
162 </dom-module> | 163 </dom-module> |
OLD | NEW |