OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 body:not(.uber-frame) { | 5 body:not(.uber-frame) { |
6 color: rgb(48, 57, 66); | 6 color: rgb(48, 57, 66); |
7 margin: 0 8px 0 8px; | 7 margin: 0 8px 0 8px; |
8 } | 8 } |
9 | 9 |
10 #editing-controls, | 10 #editing-controls, |
11 #loading-spinner { | 11 #loading-spinner { |
12 margin-top: 16px; | 12 margin-top: 16px; |
13 <if expr="not pp_ifdef('android')"> | 13 <if expr="not pp_ifdef('android')"> |
14 white-space: nowrap; | 14 white-space: nowrap; |
15 </if> | 15 </if> |
16 } | 16 } |
17 | 17 |
18 #loading-spinner[hidden] { | 18 #loading-spinner[hidden] { |
19 display: inline-block; | 19 display: inline-block; |
20 } | 20 } |
21 | 21 |
22 #spinner { | 22 #spinner { |
23 position: relative; | 23 position: relative; |
24 top: 3px; | 24 top: 3px; |
25 } | 25 } |
26 | 26 |
| 27 #editing-controls, |
| 28 #filter-controls, |
| 29 #results-display { |
| 30 max-width: 718px; |
| 31 } |
| 32 |
27 #editing-controls button:first-of-type { | 33 #editing-controls button:first-of-type { |
28 -webkit-margin-start: 0; | 34 -webkit-margin-start: 0; |
29 } | 35 } |
30 | 36 |
| 37 #filter-controls div { |
| 38 display: inline-block; |
| 39 } |
| 40 |
| 41 #display-filter-controls { |
| 42 float: right; |
| 43 } |
| 44 |
31 #results-display { | 45 #results-display { |
32 margin: 16px 0 0 0; | 46 margin: 16px 0 0 0; |
33 max-width: 740px; | |
34 } | 47 } |
35 | 48 |
36 .edit-button { | 49 .edit-button { |
37 -webkit-appearance: none; | 50 -webkit-appearance: none; |
38 background: none; | 51 background: none; |
39 border: 0; | 52 border: 0; |
40 color: blue; /* -webkit-link makes it purple :'( */ | 53 color: blue; /* -webkit-link makes it purple :'( */ |
41 cursor: pointer; | 54 cursor: pointer; |
42 display: inline-block; | 55 display: inline-block; |
43 font: inherit; | 56 font: inherit; |
44 padding: 0 9px; | 57 padding: 0 9px; |
45 text-decoration: underline; | 58 text-decoration: underline; |
46 } | 59 } |
47 | 60 |
| 61 .entry, |
48 .gap, | 62 .gap, |
49 .entry, | 63 .no-entries, |
50 .no-entries { | 64 .site-entry { |
51 list-style: none; | 65 list-style: none; |
52 margin: 0; | 66 margin: 0; |
53 padding: 0; | 67 padding: 0; |
54 } | 68 } |
55 | 69 |
56 .gap { | 70 .gap { |
57 -webkit-border-end: 1px solid rgb(192, 195, 198); | 71 -webkit-border-end: 1px solid rgb(192, 195, 198); |
58 height: 14px; | 72 height: 14px; |
59 margin: 1px 0; | 73 margin: 1px 0; |
60 width: 45px; | 74 width: 45px; |
61 } | 75 } |
62 | 76 |
63 .entry { | 77 .entry { |
64 overflow: auto; /* Make sure it's at least as large as its children. */ | 78 overflow: auto; /* Make sure it's at least as large as its children. */ |
65 } | 79 } |
66 | 80 |
67 .entry-box { | 81 .entry-box, |
| 82 .site-domain-wrapper { |
68 -webkit-box-orient: horizontal; | 83 -webkit-box-orient: horizontal; |
69 cursor: default; | 84 cursor: default; |
70 display: -webkit-box; | 85 display: -webkit-box; |
71 float: left; /* Box will shrink to fit its content. */ | 86 float: left; /* Box will shrink to fit its content. */ |
72 /* An odd line-height ensures a consistent baseline on all platforms. */ | 87 /* An odd line-height ensures a consistent baseline on all platforms. */ |
73 line-height: 1.75em; | 88 line-height: 1.75em; |
74 margin-bottom: 6px; | 89 margin-bottom: 6px; |
75 /* The box should be no bigger than its parent. */ | 90 /* The box should be no bigger than its parent. */ |
76 max-width: 100%; | 91 max-width: 100%; |
77 overflow: hidden; | 92 overflow: hidden; |
78 padding-bottom: 1px; | 93 padding-bottom: 1px; |
79 } | 94 } |
80 | 95 |
| 96 .site-domain-wrapper { |
| 97 cursor: pointer; |
| 98 } |
| 99 |
81 html[dir=rtl] .entry-box { | 100 html[dir=rtl] .entry-box { |
82 float: right; /* To make the box shrink to fit its content. */ | 101 float: right; /* To make the box shrink to fit its content. */ |
83 } | 102 } |
84 | 103 |
85 .day { | 104 .day { |
86 white-space: nowrap; | 105 white-space: nowrap; |
87 } | 106 } |
88 | 107 |
89 .search-results, | 108 .search-results, |
90 .day-results { | 109 .day-results { |
91 margin: 0 0 24px 0; | 110 margin: 0 0 24px 0; |
92 padding: 0; | 111 padding: 0; |
93 } | 112 } |
94 | 113 |
| 114 .site-results { |
| 115 -webkit-transition: height 350ms ease-in-out; |
| 116 clear: left; |
| 117 margin: 0; |
| 118 overflow: hidden; |
| 119 padding: 0; |
| 120 } |
| 121 |
| 122 h2.timeframe { |
| 123 font-size: 1.5em; |
| 124 } |
| 125 |
95 .snippet { | 126 .snippet { |
96 -webkit-box-orient: vertical; | 127 -webkit-box-orient: vertical; |
97 -webkit-line-clamp: 2; | 128 -webkit-line-clamp: 2; |
98 -webkit-margin-start: 110px; | 129 -webkit-margin-start: 110px; |
99 clear: both; | 130 clear: both; |
100 color: rgb(34, 34, 34); | 131 color: rgb(34, 34, 34); |
101 display: -webkit-box; | 132 display: -webkit-box; |
102 line-height: 1.6em; | 133 line-height: 1.6em; |
103 margin-bottom: 1em; | 134 margin-bottom: 1em; |
104 overflow: hidden; | 135 overflow: hidden; |
105 text-overflow: ellipsis; | 136 text-overflow: ellipsis; |
106 } | 137 } |
107 | 138 |
108 .entry .domain { | 139 .entry .domain { |
109 color: rgb(151, 156, 160); | 140 color: rgb(151, 156, 160); |
110 padding-left: 6px; | 141 padding-left: 6px; |
111 padding-right: 6px; | 142 padding-right: 6px; |
112 } | 143 } |
113 | 144 |
| 145 .site-results .domain { |
| 146 display: none; |
| 147 } |
| 148 |
| 149 .number-visits { |
| 150 color: rgb(151, 156, 160); |
| 151 } |
| 152 |
114 .drop-down { | 153 .drop-down { |
115 -webkit-margin-end: 5px; | 154 -webkit-margin-end: 5px; |
116 background: white -webkit-canvas(drop-down-arrow) no-repeat center 4px; | 155 background: white -webkit-canvas(drop-down-arrow) no-repeat center 4px; |
117 border: 1px solid rgb(192, 195, 198); | 156 border: 1px solid rgb(192, 195, 198); |
118 border-radius: 2px; | 157 border-radius: 2px; |
119 height: 12px; | 158 height: 12px; |
120 padding: 0; | 159 padding: 0; |
121 position: relative; | 160 position: relative; |
122 top: 2px; | 161 top: 2px; |
123 width: 12px; | 162 width: 12px; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 border-radius: 2px; | 224 border-radius: 2px; |
186 } | 225 } |
187 | 226 |
188 .entry .title { | 227 .entry .title { |
189 -webkit-box-flex: 1; | 228 -webkit-box-flex: 1; |
190 overflow: hidden; | 229 overflow: hidden; |
191 text-overflow: ellipsis; | 230 text-overflow: ellipsis; |
192 white-space: nowrap; | 231 white-space: nowrap; |
193 } | 232 } |
194 | 233 |
195 .entry .title { | 234 .day-results > .entry .title, |
| 235 .search-results > .entry .title, |
| 236 .site-domain { |
196 /* Make room for the favicon. */ | 237 /* Make room for the favicon. */ |
197 -webkit-padding-start: 20px; | 238 -webkit-padding-start: 20px; |
198 | 239 |
199 /* Control the favicon appearance. */ | 240 /* Control the favicon appearance. */ |
200 background-position-y: 3px; | 241 background-position-y: 3px; |
201 background-repeat: no-repeat; | 242 background-repeat: no-repeat; |
| 243 background-size: 16px; |
| 244 } |
| 245 |
| 246 .site-domain-arrow { |
| 247 -webkit-transition: -webkit-transform 300ms linear; |
| 248 /* Make room for the arrow and place it. */ |
| 249 background: url('../twisty_closed.png') no-repeat center center; |
| 250 height: 21px; |
| 251 width: 21px; |
| 252 } |
| 253 |
| 254 .site-domain-arrow.collapse { |
| 255 -webkit-transform: rotate(0); |
| 256 } |
| 257 |
| 258 .site-domain-arrow.expand { |
| 259 -webkit-transform: rotate(90deg); |
202 } | 260 } |
203 | 261 |
204 .entry .starred { | 262 .entry .starred { |
205 -webkit-margin-start: 4px; | 263 -webkit-margin-start: 4px; |
206 background: url('../../../../ui/webui/resources/images/star_small.png') no-rep
eat; | 264 background: url('../../../../ui/webui/resources/images/star_small.png') no-rep
eat; |
207 display: inline-block; | 265 display: inline-block; |
208 height: 11px; | 266 height: 11px; |
209 width: 11px; | 267 width: 11px; |
210 } | 268 } |
211 | 269 |
(...skipping 16 matching lines...) Expand all Loading... |
228 } | 286 } |
229 | 287 |
230 .menu-button.drop-down { | 288 .menu-button.drop-down { |
231 position: relative; | 289 position: relative; |
232 top: 2px; | 290 top: 2px; |
233 } | 291 } |
234 | 292 |
235 #action-menu > :not(hr) { | 293 #action-menu > :not(hr) { |
236 line-height: 29px; | 294 line-height: 29px; |
237 } | 295 } |
OLD | NEW |