| 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/cr/ui/focus_row.html"> | 2 <link rel="import" href="chrome://resources/html/cr/ui/focus_row.html"> |
| 3 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.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-styles/shadow.htm
l"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> |
| 6 <link rel="import" href="chrome://resources/html/icon.html"> | 6 <link rel="import" href="chrome://resources/html/icon.html"> |
| 7 <link rel="import" href="chrome://resources/html/util.html"> | 7 <link rel="import" href="chrome://resources/html/util.html"> |
| 8 <link rel="import" href="chrome://history/browser_service.html"> | 8 <link rel="import" href="chrome://history/browser_service.html"> |
| 9 <link rel="import" href="chrome://history/constants.html"> | 9 <link rel="import" href="chrome://history/constants.html"> |
| 10 <link rel="import" href="chrome://history/searched_label.html"> | 10 <link rel="import" href="chrome://history/searched_label.html"> |
| 11 <link rel="import" href="chrome://history/shared_style.html"> | 11 <link rel="import" href="chrome://history/shared_style.html"> |
| 12 | 12 |
| 13 <!-- Lazy loaded: paper-icon-button-light. --> | 13 <!-- Lazy loaded: paper-icon-button-light. --> |
| 14 | 14 |
| 15 <dom-module id="history-item"> | 15 <dom-module id="history-item"> |
| 16 <template> | 16 <template> |
| 17 <style include="shared-style"> | 17 <style include="shared-style"> |
| 18 :host { | 18 :host { |
| 19 --checked-color: rgb(68, 136, 255); | |
| 20 display: block; | 19 display: block; |
| 21 outline: none; | 20 outline: none; |
| 22 pointer-events: none; | 21 pointer-events: none; |
| 23 } | 22 } |
| 24 | 23 |
| 25 /** Unresolved paper-icon-button-light styles. */ | 24 /** Unresolved paper-icon-button-light styles. */ |
| 26 button { | 25 button { |
| 27 background: none; | 26 background: none; |
| 28 border: none; | 27 border: none; |
| 29 outline: none; | 28 outline: none; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 } | 73 } |
| 75 | 74 |
| 76 #checkbox { | 75 #checkbox { |
| 77 -webkit-margin-end: 6px; | 76 -webkit-margin-end: 6px; |
| 78 -webkit-margin-start: 10px; | 77 -webkit-margin-start: 10px; |
| 79 height: 40px; | 78 height: 40px; |
| 80 width: 40px; | 79 width: 40px; |
| 81 } | 80 } |
| 82 | 81 |
| 83 :host([selected]) #checkbox { | 82 :host([selected]) #checkbox { |
| 84 color: var(--checked-color); | 83 color: var(--interactive-color); |
| 85 } | 84 } |
| 86 | 85 |
| 87 #checkmark { | 86 #checkmark { |
| 88 border: 2px solid var(--secondary-text-color); | 87 border: 2px solid var(--secondary-text-color); |
| 89 border-radius: 2px; | 88 border-radius: 2px; |
| 90 height: 12px; | 89 height: 12px; |
| 91 margin: 12px; | 90 margin: 12px; |
| 92 width: 12px; | 91 width: 12px; |
| 93 } | 92 } |
| 94 | 93 |
| 95 #checkmark::after { | 94 #checkmark::after { |
| 96 border-color: inherit; | 95 border-color: inherit; |
| 97 border-style: solid; | 96 border-style: solid; |
| 98 border-width: 0 2px 2px 0; | 97 border-width: 0 2px 2px 0; |
| 99 content: ''; | 98 content: ''; |
| 100 display: block; | 99 display: block; |
| 101 height: 70%; | 100 height: 70%; |
| 102 transform: scale(0) rotate(45deg); | 101 transform: scale(0) rotate(45deg); |
| 103 transform-origin: 97% 86%; | 102 transform-origin: 97% 86%; |
| 104 width: 36%; | 103 width: 36%; |
| 105 } | 104 } |
| 106 | 105 |
| 107 :host-context([dir='rtl']) #checkmark::after { | 106 :host-context([dir='rtl']) #checkmark::after { |
| 108 transform-origin: 50% 14%; | 107 transform-origin: 50% 14%; |
| 109 } | 108 } |
| 110 | 109 |
| 111 :host([selected]) #checkmark { | 110 :host([selected]) #checkmark { |
| 112 background: var(--checked-color); | 111 background: var(--interactive-color); |
| 113 border-color: var(--checked-color); | 112 border-color: var(--interactive-color); |
| 114 } | 113 } |
| 115 | 114 |
| 116 :host([selected]) #checkmark::after { | 115 :host([selected]) #checkmark::after { |
| 117 border-color: white; | 116 border-color: white; |
| 118 transform: scale(1) rotate(45deg); | 117 transform: scale(1) rotate(45deg); |
| 119 /* Only animate when showing checkmark. */ | 118 /* Only animate when showing checkmark. */ |
| 120 transition: transform 140ms ease-out; | 119 transition: transform 140ms ease-out; |
| 121 } | 120 } |
| 122 | 121 |
| 123 #time-accessed { | 122 #time-accessed { |
| 124 color: #646464; | 123 color: var(--history-item-time-color); |
| 125 min-width: 96px; | 124 min-width: 96px; |
| 126 } | 125 } |
| 127 | 126 |
| 128 #domain { | 127 #domain { |
| 129 -webkit-margin-start: 16px; | 128 -webkit-margin-start: 16px; |
| 130 color: var(--secondary-text-color); | 129 color: var(--secondary-text-color); |
| 131 flex-shrink: 0; | 130 flex-shrink: 0; |
| 132 } | 131 } |
| 133 | 132 |
| 134 #menu-button { | 133 #menu-button { |
| 135 -webkit-margin-end: 12px; | 134 -webkit-margin-end: 12px; |
| 136 } | 135 } |
| 137 | 136 |
| 138 #star-container { | 137 #star-container { |
| 139 -webkit-margin-end: 4px; | 138 -webkit-margin-end: 4px; |
| 140 -webkit-margin-start: 12px; | 139 -webkit-margin-start: 12px; |
| 141 width: 32px; | 140 width: 32px; |
| 142 } | 141 } |
| 143 | 142 |
| 144 #bookmark-star { | 143 #bookmark-star { |
| 145 color: var(--checked-color); | 144 color: var(--interactive-color); |
| 146 height: 32px; | 145 height: 32px; |
| 147 width: 32px; | 146 width: 32px; |
| 148 } | 147 } |
| 149 | 148 |
| 150 #bookmark-star iron-icon { | 149 #bookmark-star iron-icon { |
| 151 height: 16px; | 150 height: 16px; |
| 152 width: 16px; | 151 width: 16px; |
| 153 } | 152 } |
| 154 | 153 |
| 155 #time-gap-separator { | 154 #time-gap-separator { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 <div></div> | 248 <div></div> |
| 250 <div></div> | 249 <div></div> |
| 251 <div></div> | 250 <div></div> |
| 252 </button> | 251 </button> |
| 253 </div> | 252 </div> |
| 254 <div id="time-gap-separator" hidden="[[!hasTimeGap]]"></div> | 253 <div id="time-gap-separator" hidden="[[!hasTimeGap]]"></div> |
| 255 </div> | 254 </div> |
| 256 </template> | 255 </template> |
| 257 <script src="chrome://history/history_item.js"></script> | 256 <script src="chrome://history/history_item.js"></script> |
| 258 </dom-module> | 257 </dom-module> |
| OLD | NEW |