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

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: RTL fix 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;
James Hawkins 2013/06/10 01:37:11 Hmm, I don't see a corresponding float: left for t
Sergiu 2013/06/10 08:41:25 I've put it explicitly now.
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 padding-bottom: 4px;
114 padding-top: 4px;
115 }
116
117 html[dir='rtl'] #range-previous,
118 html[dir='ltr'] #range-next {
James Hawkins 2013/06/10 01:37:11 ltr should never be specified. It is the default.
Sergiu 2013/06/10 08:41:25 In this case I have two buttons that have to be fl
119 border-bottom-left-radius: 0;
120 border-left: 1px solid rgba(0, 0, 0, 0.25);
James Hawkins 2013/06/10 01:37:11 Only the left/right properties should be under the
Sergiu 2013/06/10 08:41:25 Updated (but they contained only *-left rules befo
121 border-top-left-radius: 0;
122 margin-left: -1px;
123 }
124
125 html[dir='rtl'] #range-next,
126 html[dir='ltr'] #range-previous {
127 border-bottom-right-radius: 0;
128 border-top-right-radius: 0;
129 margin-right: 0;
130 }
131
91 #display-filter-controls { 132 #display-filter-controls {
92 float: right; 133 float: right;
93 } 134 }
94 135
95 #display-filter-controls > * { 136 html[dir='rtl'] #display-filter-controls {
96 -webkit-margin-start: 8px; 137 float: left;
97 } 138 }
98 139
99 #display-filter-controls > *:not(:last-child) { 140 .display-filter-button {
100 -webkit-border-end: 1px solid rgb(151, 156, 160); 141 float: left;
101 -webkit-margin-start: 0; 142 }
102 padding: 0 6px 0 6px; 143
144 html[dir='rtl'] .display-filter-button {
145 float: right;
146 }
147
148 #display-filter-controls label input[type='radio'] {
149 display: none;
150 }
151
152 #display-filter-controls label span {
153 -webkit-align-items: flex-start;
154 -webkit-appearance: none;
155 -webkit-user-select: none;
156 background-color: buttonface;
157 background-image: -webkit-linear-gradient(rgb(237, 237, 237),
158 rgb(237, 237, 237) 38%,
159 rgb(222, 222, 222));
160 border: 1px solid rgba(0, 0, 0, 0.25);
161 border-radius: 0;
162 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08),
163 inset 0 1px 2px rgba(255, 255, 255, 0.75);
164 box-sizing: border-box;
165 color: rgb(68, 68, 68);
166 cursor: default;
167 display: inline-block;
168 letter-spacing: normal;
169 line-height: 2em;
170 margin-left: -1px;
171 margin-right: -1px;
172 min-height: 2em;
173 min-width: 4em;
174 text-align: center;
175 text-indent: 0;
176 text-shadow: 0 1px 0 rgb(240, 240, 240);
177 text-transform: none;
178 vertical-align: middle;
179 word-spacing: normal;
180 }
181
182 html[dir='rtl'] #display-filter-controls label span.last-button-component,
183 #display-filter-controls label span.first-button-component {
184 border-bottom-left-radius: 2px;
185 border-top-left-radius: 2px;
186 margin-left: 0;
187 }
188
189 html[dir='rtl'] #display-filter-controls label span.first-button-component,
190 #display-filter-controls label span.last-button-component {
191 border-bottom-right-radius: 2px;
192 border-top-right-radius: 2px;
193 margin-right: 0;
194 }
195
196 #display-filter-controls input:checked ~ span {
197 background-image: -webkit-linear-gradient(rgb(185, 185, 185),
198 rgb(216, 216, 216) 38%,
199 rgb(167, 167, 167));
200 border-left-color: rgb(173, 173, 173);
201 border-right-color: rgb(173, 173, 173);
103 } 202 }
104 203
105 #results-display { 204 #results-display {
106 margin: 16px 0 0 0; 205 margin: 16px 0 0 0;
107 } 206 }
108 207
109 .edit-button { 208 .edit-button {
110 -webkit-appearance: none; 209 -webkit-appearance: none;
111 background: none; 210 background: none;
112 border: 0; 211 border: 0;
(...skipping 14 matching lines...) Expand all
127 padding: 0; 226 padding: 0;
128 } 227 }
129 228
130 .gap { 229 .gap {
131 -webkit-border-end: 1px solid rgb(192, 195, 198); 230 -webkit-border-end: 1px solid rgb(192, 195, 198);
132 height: 14px; 231 height: 14px;
133 margin: 1px 0; 232 margin: 1px 0;
134 width: 45px; 233 width: 45px;
135 } 234 }
136 235
236 .no-checkboxes .gap {
237 width: 25px;
238 }
239
137 .entry-box, 240 .entry-box,
138 .site-domain-wrapper { 241 .site-domain-wrapper {
139 -webkit-align-items: center; 242 -webkit-align-items: center;
140 cursor: default; 243 cursor: default;
141 display: -webkit-flex; 244 display: -webkit-flex;
142 /* An odd line-height ensures a consistent baseline on all platforms. */ 245 /* An odd line-height ensures a consistent baseline on all platforms. */
143 line-height: 1.75em; 246 line-height: 1.75em;
144 margin-bottom: 6px; 247 margin-bottom: 6px;
145 /* The box should be no bigger than its parent. */ 248 /* The box should be no bigger than its parent. */
146 max-width: 100%; 249 max-width: 100%;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 overflow: hidden; 301 overflow: hidden;
199 padding-left: 6px; 302 padding-left: 6px;
200 padding-right: 6px; 303 padding-right: 6px;
201 white-space: nowrap; 304 white-space: nowrap;
202 } 305 }
203 306
204 .site-results .domain { 307 .site-results .domain {
205 display: none; 308 display: none;
206 } 309 }
207 310
208
209 html[dir='rtl'] .number-visits { 311 html[dir='rtl'] .number-visits {
210 /* This element contains parentheses, which without the unicode-bidi: embed 312 /* This element contains parentheses, which without the unicode-bidi: embed
211 * directive would show up incorrectly (e.g. '(www.google.com (5'). Using 313 * 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 314 * '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 315 * when the layout is set to RTL, which makes using -webkit-*-start
214 * impossible. So use margins and dir='rtl'. 316 * impossible. So use margins and dir='rtl'.
215 */ 317 */
216 direction: rtl; 318 direction: rtl;
217 unicode-bidi: embed; 319 unicode-bidi: embed;
218 } 320 }
219 321
220 .number-visits { 322 .number-visits {
221 color: rgb(151, 156, 160); 323 color: rgb(151, 156, 160);
222 } 324 }
223 325
224 .drop-down { 326 .drop-down {
225 -webkit-margin-end: 5px; 327 -webkit-margin-end: 5px;
226 margin-top: 1px; 328 margin-top: 1px;
227 } 329 }
228 330
229 html[dir='rtl'] .entry .title, 331 html[dir='rtl'] .entry .title,
230 html[dir='rtl'] .site-domain { 332 html[dir='rtl'] .site-domain {
231 /* Put the favicon on the right. */ 333 /* Put the favicon on the right. */
232 background-position-x: right; 334 background-position-x: right;
233 } 335 }
234 336
337 .no-checkboxes .entry .time {
338 min-width: 68px;
339 width: 68px;
James Hawkins 2013/06/10 01:37:11 Setting width after min-width does nothing; remove
Sergiu 2013/06/10 08:41:25 Done.
340 }
341
235 .entry .time { 342 .entry .time {
236 color: rgb(151, 156, 160); 343 color: rgb(151, 156, 160);
237 min-width: 90px; 344 min-width: 90px;
238 overflow: hidden; 345 overflow: hidden;
239 text-overflow: ellipsis; 346 text-overflow: ellipsis;
240 white-space: nowrap; 347 white-space: nowrap;
241 width: 90px; 348 width: 90px;
242 } 349 }
243 350
244 .search-results .time, 351 .search-results .time,
245 .month-results .time { 352 .month-results .time {
246 min-width: 110px; 353 min-width: 110px;
247 width: 110px; 354 width: 110px;
248 } 355 }
249 356
357 .no-checkboxes.search-results .time,
358 .no-checkboxes.month-results .time {
359 min-width: 90px;
360 width: 90px;
James Hawkins 2013/06/10 01:37:11 Same as above.
Sergiu 2013/06/10 08:41:25 Done.
361 }
362
250 .entry input[type='checkbox'] { 363 .entry input[type='checkbox'] {
251 -webkit-margin-end: 6px; 364 -webkit-margin-end: 6px;
252 -webkit-margin-start: 4px; 365 -webkit-margin-start: 4px;
253 line-height: 1em; 366 line-height: 1em;
254 } 367 }
255 368
256 <if expr="not is_android"> 369 <if expr="not is_android">
257 /* Checkboxes are shown when checked or focused, or when the entry is hovered. 370 /* Checkboxes are shown when checked or focused, or when the entry is hovered.
258 * Fade in on focus, but not on hover, because it makes the UI feel laggy. */ 371 * Fade in on focus, but not on hover, because it makes the UI feel laggy. */
259 .site-domain-wrapper input[type=checkbox]:not(:checked), 372 .site-domain-wrapper input[type=checkbox]:not(:checked),
260 .entry input[type='checkbox']:not(:checked) { 373 .entry input[type='checkbox']:not(:checked) {
261 opacity: 0; 374 opacity: 0;
262 } 375 }
263 376
264 .site-domain-wrapper:hover input[type='checkbox'], 377 .site-domain-wrapper:hover input[type='checkbox'],
265 .site-domain-wrapper input[type='checkbox']:focus, 378 .site-domain-wrapper input[type='checkbox']:focus,
266 .entry-box:hover input[type='checkbox'], 379 .entry-box:hover input[type='checkbox'],
267 .entry-box input[type='checkbox']:focus { 380 .entry-box input[type='checkbox']:focus {
268 opacity: 1; 381 opacity: 1;
269 } 382 }
270 383
271 .site-domain-wrapper input[type='checkbox']:focus, 384 .site-domain-wrapper input[type='checkbox']:focus,
272 .entry-box input[type='checkbox']:focus { 385 .entry-box input[type='checkbox']:focus {
273 -webkit-transition: opacity 150ms; 386 -webkit-transition: opacity 150ms;
274 } 387 }
275 388
276 .filter-status { 389 .filter-status {
277 display: -webkit-flex; 390 -webkit-margin-start: 10px;
278 -webkit-flex: 1 0 auto;
279 -webkit-justify-content: flex-end;
280 } 391 }
281 392
282 .filter-status > div { 393 .filter-status > div {
283 -webkit-flex: 0 0 auto; 394 -webkit-flex: 0 0 auto;
284 -webkit-transition: background-color 500ms ease-in-out; 395 -webkit-transition: background-color 500ms ease-in-out;
285 border-radius: 3px; 396 border-radius: 3px;
286 display: none; 397 display: none;
287 font-size: 11px; 398 font-size: 11px;
288 height: 14px; 399 height: 14px;
289 line-height: 12px; 400 line-height: 12px;
(...skipping 11 matching lines...) Expand all
301 } 412 }
302 413
303 .filter-allowed, 414 .filter-allowed,
304 .in-content-pack-active { 415 .in-content-pack-active {
305 background-color: rgb(141, 240, 127); 416 background-color: rgb(141, 240, 127);
306 border: 1px solid rgb(33, 190, 33); 417 border: 1px solid rgb(33, 190, 33);
307 color: rgb(54, 54, 54); 418 color: rgb(54, 54, 54);
308 } 419 }
309 420
310 .filter-blocked { 421 .filter-blocked {
311 border: 1px solid rgb(211, 0, 0); 422 border: 1px solid rgb(207, 207, 207);
312 background-color: rgb(255, 147, 105); 423 background-color: rgb(231, 231, 231);
313 color: rgb(54, 54, 54); 424 color: rgb(54, 54, 54);
314 } 425 }
315 426
316 .in-content-pack-passive { 427 .in-content-pack-passive {
317 border: 1px solid rgb(155, 224, 163); 428 border: 1px solid rgb(155, 224, 163);
318 background-color: rgb(225, 255, 205); 429 background-color: rgb(225, 255, 205);
319 color: rgb(148, 148, 148); 430 color: rgb(148, 148, 148);
320 } 431 }
321 432
322 /* TODO(sergiu): If this is the final icon replace it with a separate resource. 433 /* TODO(sergiu): If this is the final icon replace it with a separate resource.
323 */ 434 */
324 .blocked-indicator { 435 .blocked-indicator {
325 background: url(../ssl/roadblock_icon.png) no-repeat; 436 background: url(../ssl/roadblock_icon.png) no-repeat;
326 background-size: 30%; 437 background-size: 30%;
327 } 438 }
328 439
329 .blocked-indicator .title { 440 .blocked-indicator .title {
330 color: rgb(151, 156, 160); 441 color: rgb(151, 156, 160);
331 } 442 }
332 </if> 443 </if>
333 444
334 #range-previous img {
335 -webkit-transform: scaleX(-1);
336 }
337
338 .entry-box { 445 .entry-box {
339 background-color: none; 446 background-color: none;
340 } 447 }
341 448
342 .entry-box:hover, 449 .entry-box:hover,
343 .entry-box.contains-focus { 450 .entry-box.contains-focus {
344 background-color: rgb(252, 252, 252); 451 background-color: rgb(252, 252, 252);
345 border-radius: 2px; 452 border-radius: 2px;
346 } 453 }
347 454
348 .entry-box-container { 455 .entry-box-container {
349 display: -webkit-flex; 456 display: -webkit-flex;
350 } 457 }
351 458
352 .entry .title-and-domain { 459 .entry .visit-entry {
353 display: -webkit-flex; 460 display: -webkit-flex;
354 min-width: 0; 461 min-width: 0;
355 } 462 }
356 463
357 .entry .title { 464 .entry .title {
358 min-width: 0; 465 min-width: 0;
359 overflow: hidden; 466 overflow: hidden;
360 text-overflow: ellipsis; 467 text-overflow: ellipsis;
361 white-space: nowrap; 468 white-space: nowrap;
362 } 469 }
363 470
364 .entry .title-and-domain, 471 .entry .visit-entry,
365 .site-domain { 472 .site-domain {
366 /* Make room for the favicon. */ 473 /* Make room for the favicon. */
367 -webkit-padding-start: 20px; 474 -webkit-padding-start: 20px;
368 475
369 /* Control the favicon appearance. */ 476 /* Control the favicon appearance. */
370 background-position-y: center; 477 background-position-y: center;
371 background-repeat: no-repeat; 478 background-repeat: no-repeat;
372 background-size: 16px; 479 background-size: 16px;
373 } 480 }
374 481
375 html[dir='rtl'] .entry .title-and-domain, 482 html[dir='rtl'] .entry .visit-entry,
376 html[dir='rtl'] .site-domain { 483 html[dir='rtl'] .site-domain {
377 background-position-x: right; 484 background-position-x: right;
378 } 485 }
379 486
380 .site-domain button { 487 .site-domain button {
381 color: rgb(48, 57, 66); 488 color: rgb(48, 57, 66);
382 } 489 }
383 490
384 .site-domain button:hover { 491 .site-domain button:hover {
385 text-decoration: none; 492 text-decoration: none;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 } 558 }
452 559
453 body:not(.has-results) #results-pagination { 560 body:not(.has-results) #results-pagination {
454 display: none; 561 display: none;
455 } 562 }
456 563
457 #older-button { 564 #older-button {
458 float: right; 565 float: right;
459 } 566 }
460 567
461
462 html[dir='rtl'] #older-button { 568 html[dir='rtl'] #older-button {
463 float: left; 569 float: left;
464 } 570 }
465 571
466 html[dir='ltr'] #newest-button::before { 572 html[dir='ltr'] #newest-button::before {
467 /* Left-pointing double angle quotation mark followed by '&nbsp;'. */ 573 /* Left-pointing double angle quotation mark followed by '&nbsp;'. */
468 content: '\00AB\A0'; 574 content: '\00AB\A0';
469 } 575 }
470 576
471 html[dir='rtl'] #newest-button::after { 577 html[dir='rtl'] #newest-button::after {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 background-image: url(../../../../ui/webui/resources/images/phone_small.png); 634 background-image: url(../../../../ui/webui/resources/images/phone_small.png);
529 background-position: 14px center; 635 background-position: 14px center;
530 padding-left: 43px; 636 padding-left: 43px;
531 } 637 }
532 638
533 #action-menu[data-devicetype='tablet']::before { 639 #action-menu[data-devicetype='tablet']::before {
534 background-image: url(../../../../ui/webui/resources/images/tablet_small.png); 640 background-image: url(../../../../ui/webui/resources/images/tablet_small.png);
535 background-position: 17px center; 641 background-position: 17px center;
536 padding-left: 49px; 642 padding-left: 49px;
537 } 643 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698