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

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

Powered by Google App Engine
This is Rietveld 408576698