Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: chrome/browser/resources/history/history.css

Issue 15969014: History: Update managed user history page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor fixes Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 html[dir='rtl'] body.uber-frame > .page { 5 html[dir='rtl'] body.uber-frame > .page {
6 -webkit-margin-end: 0; 6 -webkit-margin-end: 0;
7 } 7 }
8 8
9 body.uber-frame > .page.big-topbar-page {
10 padding-top: 78px;
11 }
12
9 #top-container { 13 #top-container {
10 margin-top: 16px; 14 margin-top: 16px;
11 overflow: auto; 15 overflow: auto;
12 } 16 }
13 17
14 #editing-controls, 18 #editing-controls,
15 #loading-spinner { 19 #loading-spinner {
16 white-space: nowrap; 20 white-space: nowrap;
17 } 21 }
18 22
(...skipping 25 matching lines...) Expand all
44 } 48 }
45 49
46 #filter-controls, 50 #filter-controls,
47 #top-container, 51 #top-container,
48 #results-display, 52 #results-display,
49 #results-pagination { 53 #results-pagination {
50 max-width: 718px; 54 max-width: 718px;
51 } 55 }
52 56
53 #filter-controls { 57 #filter-controls {
58 margin-bottom: 4px;
59 margin-top: 4px;
54 overflow: auto; 60 overflow: auto;
55 } 61 }
56 62
57 #editing-controls { 63 #editing-controls {
58 -webkit-margin-end: 12px; 64 -webkit-margin-end: 12px;
59 float: left; 65 float: left;
60 } 66 }
61 67
62 html[dir='rtl'] #editing-controls { 68 html[dir='rtl'] #editing-controls {
63 float: right; 69 float: right;
64 } 70 }
65 71
66 #editing-controls button:first-of-type { 72 #editing-controls button:first-of-type {
67 -webkit-margin-start: 0; 73 -webkit-margin-start: 0;
68 } 74 }
69 75
70 #filter-controls select { 76 #filter-controls select {
71 -webkit-margin-end: 0; 77 -webkit-margin-end: 0;
72 } 78 }
73 79
74 html[dir='rtl'] #range-today, 80 html[dir='rtl'] #range-today,
75 html[dir='rtl'] #range-previous, 81 html[dir='rtl'] #range-previous,
76 html[dir='rtl'] #range-next { 82 html[dir='rtl'] #range-next {
77 float: left; 83 float: right;
78 } 84 }
79 85
80 #range-next img, 86 #range-next img,
81 #range-previous img { 87 #range-previous img {
82 position: relative; 88 position: relative;
83 top: 1px; 89 top: 1px;
84 } 90 }
85 91
86 #range-next:disabled img, 92 #range-next:disabled img,
87 #range-previous:disabled img { 93 #range-previous:disabled img {
88 opacity: 0.4; 94 opacity: 0.4;
89 } 95 }
90 96
97 html[dir='rtl'] #range-next img,
98 #range-previous img {
99 -webkit-transform: scalex(-1);
100 }
101
102 html[dir='rtl'] #range-previous img {
103 -webkit-transform: scaleX(1);
104 }
105
106 #range-today {
107 -webkit-margin-end: 10px;
108 }
109
110 #range-today,
111 #range-previous,
112 #range-next {
113 float: left;
114 padding-bottom: 4px;
115 padding-top: 4px;
116 }
117
118 html[dir='rtl'] #range-previous {
119 border-radius: 0 2px 2px 0;
120 }
121
122 html[dir='rtl'] #range-next {
123 border-left: 1px solid rgba(80, 80, 80, 0.20);
124 border-radius: 2px 0 0 2px;
125 }
126
127 html[dir='rtl'] #range-next:disabled {
128 border-right: 1px solid rgba(0, 0, 0, 0.25);
129 }
130
131 #range-next {
132 -webkit-border-start: 1px solid rgba(0, 0, 0, 0.25);
133 -webkit-margin-start: -1px;
134 border-bottom-left-radius: 0;
135 border-top-left-radius: 0;
136 }
137
138 #range-previous {
139 -webkit-margin-end: 0;
140 border-bottom-right-radius: 0;
141 border-top-right-radius: 0;
142 }
143
91 #display-filter-controls { 144 #display-filter-controls {
92 float: right; 145 float: right;
93 } 146 }
94 147
95 #display-filter-controls > * { 148 html[dir='rtl'] #display-filter-controls {
96 -webkit-margin-start: 8px; 149 float: left;
97 } 150 }
98 151
99 #display-filter-controls > *:not(:last-child) { 152 .display-filter-button {
100 -webkit-border-end: 1px solid rgb(151, 156, 160); 153 float: left;
101 -webkit-margin-start: 0; 154 }
102 padding: 0 6px 0 6px; 155
156 html[dir='rtl'] .display-filter-button {
157 float: right;
158 }
159
160 #display-filter-controls label input[type='radio'] {
161 display: none;
162 }
163
164 #display-filter-controls label span {
165 -webkit-align-items: flex-start;
166 -webkit-appearance: none;
167 -webkit-user-select: none;
168 background-color: buttonface;
169 background-image: -webkit-linear-gradient(rgb(237, 237, 237),
170 rgb(237, 237, 237) 38%,
171 rgb(222, 222, 222));
172 border: 1px solid rgba(0, 0, 0, 0.25);
173 border-radius: 0;
174 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08),
175 inset 0 1px 2px rgba(255, 255, 255, 0.75);
176 box-sizing: border-box;
177 color: rgb(68, 68, 68);
178 cursor: default;
179 display: inline-block;
180 letter-spacing: normal;
181 line-height: 2em;
182 margin-left: -1px;
183 margin-right: -1px;
184 min-height: 2em;
185 min-width: 4em;
186 text-align: center;
187 text-indent: 0;
188 text-shadow: 0 1px 0 rgb(240, 240, 240);
189 text-transform: none;
190 vertical-align: middle;
191 word-spacing: normal;
192 }
193
194 html[dir='rtl'] #display-filter-controls label span.last-button-component,
195 #display-filter-controls label span.first-button-component {
196 border-bottom-left-radius: 2px;
197 border-top-left-radius: 2px;
198 margin-left: 0;
199 }
200
201 html[dir='rtl'] #display-filter-controls label span.first-button-component,
202 #display-filter-controls label span.last-button-component {
203 border-bottom-right-radius: 2px;
204 border-top-right-radius: 2px;
205 margin-right: 0;
206 }
207
208 #display-filter-controls input:checked ~ span {
209 background-image: -webkit-linear-gradient(rgb(185, 185, 185),
210 rgb(216, 216, 216) 38%,
211 rgb(167, 167, 167));
212 border-left-color: rgb(173, 173, 173);
213 border-right-color: rgb(173, 173, 173);
103 } 214 }
104 215
105 #results-display { 216 #results-display {
106 margin: 16px 0 0 0; 217 margin: 16px 0 0 0;
107 } 218 }
108 219
109 .edit-button { 220 .edit-button {
110 -webkit-appearance: none; 221 -webkit-appearance: none;
111 background: none; 222 background: none;
112 border: 0; 223 border: 0;
(...skipping 14 matching lines...) Expand all
127 padding: 0; 238 padding: 0;
128 } 239 }
129 240
130 .gap { 241 .gap {
131 -webkit-border-end: 1px solid rgb(192, 195, 198); 242 -webkit-border-end: 1px solid rgb(192, 195, 198);
132 height: 14px; 243 height: 14px;
133 margin: 1px 0; 244 margin: 1px 0;
134 width: 45px; 245 width: 45px;
135 } 246 }
136 247
248 .no-checkboxes .gap {
249 width: 25px;
250 }
251
137 .entry-box, 252 .entry-box,
138 .site-domain-wrapper { 253 .site-domain-wrapper {
139 -webkit-align-items: center; 254 -webkit-align-items: center;
140 cursor: default; 255 cursor: default;
141 display: -webkit-flex; 256 display: -webkit-flex;
142 /* An odd line-height ensures a consistent baseline on all platforms. */ 257 /* An odd line-height ensures a consistent baseline on all platforms. */
143 line-height: 1.75em; 258 line-height: 1.75em;
144 margin-bottom: 6px; 259 margin-bottom: 6px;
145 /* The box should be no bigger than its parent. */ 260 /* The box should be no bigger than its parent. */
146 max-width: 100%; 261 max-width: 100%;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 overflow: hidden; 313 overflow: hidden;
199 padding-left: 6px; 314 padding-left: 6px;
200 padding-right: 6px; 315 padding-right: 6px;
201 white-space: nowrap; 316 white-space: nowrap;
202 } 317 }
203 318
204 .site-results .domain { 319 .site-results .domain {
205 display: none; 320 display: none;
206 } 321 }
207 322
208
209 html[dir='rtl'] .number-visits { 323 html[dir='rtl'] .number-visits {
210 /* This element contains parentheses, which without the unicode-bidi: embed 324 /* This element contains parentheses, which without the unicode-bidi: embed
211 * directive would show up incorrectly (e.g. '(www.google.com (5'). Using 325 * directive would show up incorrectly (e.g. '(www.google.com (5'). Using
212 * 'embed' makes the engine set the text in the parentheses as LTR even 326 * 'embed' makes the engine set the text in the parentheses as LTR even
213 * when the layout is set to RTL, which makes using -webkit-*-start 327 * when the layout is set to RTL, which makes using -webkit-*-start
214 * impossible. So use margins and dir='rtl'. 328 * impossible. So use margins and dir='rtl'.
215 */ 329 */
216 direction: rtl; 330 direction: rtl;
217 unicode-bidi: embed; 331 unicode-bidi: embed;
218 } 332 }
219 333
220 .number-visits { 334 .number-visits {
221 color: rgb(151, 156, 160); 335 color: rgb(151, 156, 160);
222 } 336 }
223 337
224 .drop-down { 338 .drop-down {
225 -webkit-margin-end: 5px; 339 -webkit-margin-end: 5px;
226 margin-top: 1px; 340 margin-top: 1px;
227 } 341 }
228 342
229 html[dir='rtl'] .entry .title, 343 html[dir='rtl'] .entry .title,
230 html[dir='rtl'] .site-domain { 344 html[dir='rtl'] .site-domain {
231 /* Put the favicon on the right. */ 345 /* Put the favicon on the right. */
232 background-position-x: right; 346 background-position-x: right;
233 } 347 }
234 348
349 .no-checkboxes .entry .time {
350 min-width: 68px;
351 }
352
235 .entry .time { 353 .entry .time {
236 color: rgb(151, 156, 160); 354 color: rgb(151, 156, 160);
237 min-width: 55px; 355 min-width: 55px;
238 overflow: hidden; 356 overflow: hidden;
239 text-align: right; 357 text-align: right;
240 text-overflow: ellipsis; 358 text-overflow: ellipsis;
241 white-space: nowrap; 359 white-space: nowrap;
242 } 360 }
243 361
244 html[dir='rtl'] .entry .time { 362 html[dir='rtl'] .entry .time {
245 text-align: left; 363 text-align: left;
246 } 364 }
247 365
248 .search-results .time, 366 .search-results .time,
249 .month-results .time { 367 .month-results .time {
250 min-width: 85px; 368 min-width: 85px;
251 } 369 }
252 370
371 .no-checkboxes.search-results .time,
372 .no-checkboxes.month-results .time {
373 min-width: 90px;
374 }
375
253 .entry input[type='checkbox'] { 376 .entry input[type='checkbox'] {
254 -webkit-margin-end: 6px; 377 -webkit-margin-end: 6px;
255 -webkit-margin-start: 4px; 378 -webkit-margin-start: 4px;
256 line-height: 1em; 379 line-height: 1em;
257 margin-top: 2px; 380 margin-top: 2px;
258 min-width: 13px; 381 min-width: 13px;
259 } 382 }
260 383
261 <if expr="not is_android"> 384 <if expr="not is_android">
262 /* Checkboxes are shown when checked or focused, or when the entry is hovered. 385 /* Checkboxes are shown when checked or focused, or when the entry is hovered.
263 * Fade in on focus, but not on hover, because it makes the UI feel laggy. */ 386 * Fade in on focus, but not on hover, because it makes the UI feel laggy. */
264 .site-domain-wrapper input[type=checkbox]:not(:checked), 387 .site-domain-wrapper input[type=checkbox]:not(:checked),
265 .entry input[type='checkbox']:not(:checked) { 388 .entry input[type='checkbox']:not(:checked) {
266 opacity: 0; 389 opacity: 0;
267 } 390 }
268 391
269 .site-domain-wrapper:hover input[type='checkbox'], 392 .site-domain-wrapper:hover input[type='checkbox'],
270 .site-domain-wrapper input[type='checkbox']:focus, 393 .site-domain-wrapper input[type='checkbox']:focus,
271 .entry-box:hover input[type='checkbox'], 394 .entry-box:hover input[type='checkbox'],
272 .entry-box input[type='checkbox']:focus { 395 .entry-box input[type='checkbox']:focus {
273 opacity: 1; 396 opacity: 1;
274 } 397 }
275 398
276 .site-domain-wrapper input[type='checkbox']:focus, 399 .site-domain-wrapper input[type='checkbox']:focus,
277 .entry-box input[type='checkbox']:focus { 400 .entry-box input[type='checkbox']:focus {
278 -webkit-transition: opacity 150ms; 401 -webkit-transition: opacity 150ms;
279 } 402 }
280 403
281 .filter-status { 404 .filter-status {
282 display: -webkit-flex; 405 -webkit-margin-start: 10px;
283 -webkit-flex: 1 0 auto;
284 -webkit-justify-content: flex-end;
285 } 406 }
286 407
287 .filter-status > div { 408 .filter-status > div {
288 -webkit-flex: 0 0 auto; 409 -webkit-flex: 0 0 auto;
289 -webkit-transition: background-color 500ms ease-in-out; 410 -webkit-transition: background-color 500ms ease-in-out;
290 border-radius: 3px; 411 border-radius: 3px;
291 display: none; 412 display: none;
292 font-size: 11px; 413 font-size: 11px;
293 height: 14px; 414 height: 14px;
294 line-height: 12px; 415 line-height: 12px;
(...skipping 11 matching lines...) Expand all
306 } 427 }
307 428
308 .filter-allowed, 429 .filter-allowed,
309 .in-content-pack-active { 430 .in-content-pack-active {
310 background-color: rgb(141, 240, 127); 431 background-color: rgb(141, 240, 127);
311 border: 1px solid rgb(33, 190, 33); 432 border: 1px solid rgb(33, 190, 33);
312 color: rgb(54, 54, 54); 433 color: rgb(54, 54, 54);
313 } 434 }
314 435
315 .filter-blocked { 436 .filter-blocked {
316 border: 1px solid rgb(211, 0, 0); 437 border: 1px solid rgb(207, 207, 207);
317 background-color: rgb(255, 147, 105); 438 background-color: rgb(231, 231, 231);
318 color: rgb(54, 54, 54); 439 color: rgb(54, 54, 54);
319 } 440 }
320 441
321 .in-content-pack-passive { 442 .in-content-pack-passive {
322 border: 1px solid rgb(155, 224, 163); 443 border: 1px solid rgb(155, 224, 163);
323 background-color: rgb(225, 255, 205); 444 background-color: rgb(225, 255, 205);
324 color: rgb(148, 148, 148); 445 color: rgb(148, 148, 148);
325 } 446 }
326 447
327 /* TODO(sergiu): If this is the final icon replace it with a separate resource. 448 /* TODO(sergiu): If this is the final icon replace it with a separate resource.
328 */ 449 */
329 .blocked-indicator { 450 .blocked-indicator {
330 background: url(../ssl/roadblock_icon.png) no-repeat; 451 background: url(../ssl/roadblock_icon.png) no-repeat;
331 background-size: 30%; 452 background-size: 30%;
332 } 453 }
333 454
334 .blocked-indicator .title { 455 .blocked-indicator .title {
335 color: rgb(151, 156, 160); 456 color: rgb(151, 156, 160);
336 } 457 }
337 </if> 458 </if>
338 459
339 #range-previous img {
340 -webkit-transform: scaleX(-1);
341 }
342
343 .entry-box { 460 .entry-box {
344 background-color: none; 461 background-color: none;
345 } 462 }
346 463
347 .entry-box:hover, 464 .entry-box:hover,
348 .entry-box.contains-focus { 465 .entry-box.contains-focus {
349 background-color: rgb(252, 252, 252); 466 background-color: rgb(252, 252, 252);
350 border-radius: 2px; 467 border-radius: 2px;
351 } 468 }
352 469
353 .entry-box-container { 470 .entry-box-container {
354 display: -webkit-flex; 471 display: -webkit-flex;
355 } 472 }
356 473
357 .entry .title-and-domain { 474 .entry .visit-entry {
358 display: -webkit-flex; 475 display: -webkit-flex;
359 min-width: 0; 476 min-width: 0;
360 } 477 }
361 478
362 .entry .title { 479 .entry .title {
363 min-width: 0; 480 min-width: 0;
364 overflow: hidden; 481 overflow: hidden;
365 text-overflow: ellipsis; 482 text-overflow: ellipsis;
366 white-space: nowrap; 483 white-space: nowrap;
367 } 484 }
368 485
369 .entry .title-and-domain, 486 .entry .visit-entry,
370 .site-domain { 487 .site-domain {
371 /* Make room for the favicon. */ 488 /* Make room for the favicon. */
372 -webkit-padding-start: 20px; 489 -webkit-padding-start: 20px;
373 490
374 /* Control the favicon appearance. */ 491 /* Control the favicon appearance. */
375 background-position-y: center; 492 background-position-y: center;
376 background-repeat: no-repeat; 493 background-repeat: no-repeat;
377 background-size: 16px; 494 background-size: 16px;
378 } 495 }
379 496
380 html[dir='rtl'] .entry .title-and-domain, 497 html[dir='rtl'] .entry .visit-entry,
381 html[dir='rtl'] .site-domain { 498 html[dir='rtl'] .site-domain {
382 background-position-x: right; 499 background-position-x: right;
383 } 500 }
384 501
385 .site-domain button { 502 .site-domain button {
386 color: rgb(48, 57, 66); 503 color: rgb(48, 57, 66);
387 } 504 }
388 505
389 .site-domain button:hover { 506 .site-domain button:hover {
390 text-decoration: none; 507 text-decoration: none;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 } 577 }
461 578
462 body:not(.has-results) #results-pagination { 579 body:not(.has-results) #results-pagination {
463 display: none; 580 display: none;
464 } 581 }
465 582
466 #older-button { 583 #older-button {
467 float: right; 584 float: right;
468 } 585 }
469 586
470
471 html[dir='rtl'] #older-button { 587 html[dir='rtl'] #older-button {
472 float: left; 588 float: left;
473 } 589 }
474 590
475 html[dir='ltr'] #newest-button::before { 591 html[dir='ltr'] #newest-button::before {
476 /* Left-pointing double angle quotation mark followed by '&nbsp;'. */ 592 /* Left-pointing double angle quotation mark followed by '&nbsp;'. */
477 content: '\00AB\A0'; 593 content: '\00AB\A0';
478 } 594 }
479 595
480 html[dir='rtl'] #newest-button::after { 596 html[dir='rtl'] #newest-button::after {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 background-image: url(../../../../ui/webui/resources/images/phone_small.png); 653 background-image: url(../../../../ui/webui/resources/images/phone_small.png);
538 background-position: 14px center; 654 background-position: 14px center;
539 padding-left: 43px; 655 padding-left: 43px;
540 } 656 }
541 657
542 #action-menu[data-devicetype='tablet']::before { 658 #action-menu[data-devicetype='tablet']::before {
543 background-image: url(../../../../ui/webui/resources/images/tablet_small.png); 659 background-image: url(../../../../ui/webui/resources/images/tablet_small.png);
544 background-position: 17px center; 660 background-position: 17px center;
545 padding-left: 49px; 661 padding-left: 49px;
546 } 662 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698