Chromium Code Reviews| 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-a11y-keys-behavior /iron-a11y-keys-behavior.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior /iron-a11y-keys-behavior.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-selector/iron-sele ctor.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-selector/iron-sele ctor.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-ripple/paper-ripp le.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-ripple/paper-ripp le.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html "> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html "> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/typography .html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/typography .html"> |
| 7 <link rel="import" href="chrome://history/browser_service.html"> | 7 <link rel="import" href="chrome://history/browser_service.html"> |
| 8 <link rel="import" href="chrome://history/shared_style.html"> | 8 <link rel="import" href="chrome://history/shared_style.html"> |
| 9 | 9 |
| 10 <dom-module id="history-side-bar"> | 10 <dom-module id="history-side-bar"> |
| 11 <template> | 11 <template> |
| 12 <style include="shared-style"> | 12 <style include="shared-style"> |
| 13 :host { | 13 :host { |
| 14 display: block; | 14 display: block; |
| 15 height: 100%; | 15 height: 100%; |
| 16 padding-top: 5px; | 16 padding-top: 5px; |
| 17 width: var(--side-bar-width); | 17 width: var(--side-bar-width); |
| 18 } | 18 } |
| 19 | 19 |
| 20 div.separator { | 20 div.separator { |
| 21 background-color: rgba(0, 0, 0, 0.08); | 21 background-color: rgba(0, 0, 0, 0.08); |
| 22 height: 1px; | 22 height: 1px; |
| 23 margin: 8px 0; | 23 margin: 8px 0; |
| 24 } | 24 } |
| 25 | 25 |
| 26 #clear-browsing-data { | 26 #clear-browsing-data { |
| 27 text-transform: uppercase; | 27 justify-content: space-between; |
| 28 } | |
| 29 | |
| 30 #clear-browsing-data-icon { | |
|
tsergeant
2016/09/21 23:51:47
Nit: Remove the id from the icon and use the selec
lshang
2016/09/22 04:47:13
Done.
| |
| 31 color: var(--paper-grey-400); | |
| 32 margin: 20px 48px 20px 0; | |
|
tsergeant
2016/09/21 23:51:47
I think the sizes in the mock were for 2x screens:
Dan Beam
2016/09/22 00:14:39
this probably wont work in TRL
lshang
2016/09/22 04:47:13
Done. I saw the more-vert-button in history item i
lshang
2016/09/22 04:47:13
I added 24px margin to both left and right, in cas
tsergeant
2016/09/22 06:34:30
I think it would be better to use -webkit-margin-e
lshang
2016/09/22 07:27:07
Done.
Dan Beam
2016/09/23 06:22:30
yes
| |
| 28 } | 33 } |
| 29 | 34 |
| 30 iron-selector { | 35 iron-selector { |
| 31 -webkit-user-select: none; | 36 -webkit-user-select: none; |
| 32 background-color: transparent; | 37 background-color: transparent; |
| 33 color: #5a5a5a; | 38 color: #5a5a5a; |
| 34 } | 39 } |
| 35 | 40 |
| 36 iron-selector > a { | 41 iron-selector > a { |
| 37 @apply(--paper-font-subhead); | 42 @apply(--paper-font-subhead); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 </a> | 94 </a> |
| 90 <a href="/syncedTabs[[getQueryString_(route)]]" class="page-item" | 95 <a href="/syncedTabs[[getQueryString_(route)]]" class="page-item" |
| 91 path="syncedTabs"> | 96 path="syncedTabs"> |
| 92 $i18n{openTabsMenuItem} | 97 $i18n{openTabsMenuItem} |
| 93 <paper-ripple></paper-ripple> | 98 <paper-ripple></paper-ripple> |
| 94 </a> | 99 </a> |
| 95 <div class="separator"></div> | 100 <div class="separator"></div> |
| 96 <a href="chrome://settings/clearBrowserData" | 101 <a href="chrome://settings/clearBrowserData" |
| 97 on-tap="onClearBrowsingDataTap_" id="clear-browsing-data"> | 102 on-tap="onClearBrowsingDataTap_" id="clear-browsing-data"> |
| 98 $i18n{clearBrowsingData} | 103 $i18n{clearBrowsingData} |
| 104 <iron-icon icon="history:open-in-new" id="clear-browsing-data-icon"></ir on-icon> | |
|
Dan Beam
2016/09/22 00:14:39
80 char wrap
lshang
2016/09/22 04:47:13
NaN after remove the id XD
| |
| 99 <paper-ripple id="cbd-ripple"></paper-ripple> | 105 <paper-ripple id="cbd-ripple"></paper-ripple> |
| 100 </a> | 106 </a> |
| 101 <div id="footer" hidden="[[!showFooter]]"> | 107 <div id="footer" hidden="[[!showFooter]]"> |
| 102 <div class="separator"></div> | 108 <div class="separator"></div> |
| 103 <div id="footer-text">$i18nRaw{sidebarFooter}</div> | 109 <div id="footer-text">$i18nRaw{sidebarFooter}</div> |
| 104 </div> | 110 </div> |
| 105 </iron-selector> | 111 </iron-selector> |
| 106 </template> | 112 </template> |
| 107 <script src="chrome://history/side_bar.js"></script> | 113 <script src="chrome://history/side_bar.js"></script> |
| 108 </dom-module> | 114 </dom-module> |
| OLD | NEW |