Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 html { | 1 html { |
| 2 /* This is needed because of chrome://theme/css/new_tab.css */ | 2 /* This is needed because of chrome://theme/css/new_tab.css */ |
| 3 height: 100%; | 3 height: 100%; |
| 4 } | 4 } |
| 5 | 5 |
| 6 body { | 6 body { |
| 7 margin: 0; | 7 margin: 0; |
| 8 height: 100%; | 8 height: 100%; |
| 9 overflow: auto; | 9 overflow: auto; |
| 10 -webkit-user-select: none; | 10 -webkit-user-select: none; |
| 11 cursor: default; | 11 cursor: default; |
| 12 } | 12 } |
| 13 | 13 |
| 14 html[mode=app-launcher] { | 14 html[mode=app-launcher] { |
| 15 height: auto; | 15 height: auto; |
| 16 } | 16 } |
| 17 | 17 |
| 18 #main { | 18 #main { |
| 19 -webkit-box-sizing: border-box; | 19 -webkit-box-sizing: border-box; |
| 20 -webkit-transition: width .15s; | 20 -webkit-transition: width .15s; |
| 21 background: url(chrome://theme/IDR_PRODUCT_LOGO) no-repeat 0 6px; | |
| 22 margin: 0 auto; | 21 margin: 0 auto; |
| 23 min-height: 100%; | 22 min-height: 100%; |
| 24 padding-bottom: 25px; /* Make room for the bottom positioned footer. */ | 23 padding:10px 0 20px; |
|
arv (Not doing code reviews)
2010/08/31 20:33:57
whitespace
| |
| 25 position: relative; | 24 position: relative; |
| 26 width: 920px; | 25 width: 920px; |
| 27 } | 26 } |
| 28 | 27 |
| 29 html[dir=rtl] #main { | 28 html[dir=rtl] #main { |
| 30 background-position-x: 100%; | 29 background-position-x: 100%; |
| 31 } | 30 } |
| 32 | 31 |
| 33 html[mode=app-launcher] #main { | 32 html[mode=app-launcher] #main { |
| 34 min-height: 50px; | 33 min-height: 50px; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 208 text-overflow: ellipsis; | 207 text-overflow: ellipsis; |
| 209 font-size: 100%; | 208 font-size: 100%; |
| 210 margin: 0 10px; | 209 margin: 0 10px; |
| 211 } | 210 } |
| 212 | 211 |
| 213 #recently-closed > span, | 212 #recently-closed > span, |
| 214 #recently-closed .nav { | 213 #recently-closed .nav { |
| 215 max-width: none !important; | 214 max-width: none !important; |
| 216 } | 215 } |
| 217 | 216 |
| 217 #most-visited { | |
| 218 margin-bottom: 20px; | |
| 219 } | |
| 220 | |
| 218 .nav > a { | 221 .nav > a { |
| 219 /* no icon */ | 222 /* no icon */ |
| 220 padding: 0; | 223 padding: 0; |
| 221 } | 224 } |
| 222 | 225 |
| 223 .nav > a:after { | 226 .nav > a:after { |
| 224 content: '\00bb'; /* raque gets flipped automatically in rtl */ | 227 content: '\00bb'; /* raque gets flipped automatically in rtl */ |
| 225 font-size: 115%; | 228 font-size: 115%; |
| 226 -webkit-padding-start: 2px; | 229 -webkit-padding-start: 2px; |
| 227 } | 230 } |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 238 #sync-status > * { | 241 #sync-status > * { |
| 239 display: inline-block; | 242 display: inline-block; |
| 240 max-width: none; | 243 max-width: none; |
| 241 white-space: nowrap; | 244 white-space: nowrap; |
| 242 overflow: hidden; | 245 overflow: hidden; |
| 243 text-overflow: ellipsis; | 246 text-overflow: ellipsis; |
| 244 font-size: 100%; | 247 font-size: 100%; |
| 245 margin: 0 10px; | 248 margin: 0 10px; |
| 246 } | 249 } |
| 247 | 250 |
| 248 #top-bar { | |
| 249 display: -webkit-box; | |
| 250 -webkit-box-align: center; | |
| 251 min-height: 56px; | |
| 252 } | |
| 253 | |
| 254 .notification.hidden { | 251 .notification.hidden { |
| 255 opacity: 0; | 252 opacity: 0; |
| 256 pointer-events: none; | 253 pointer-events: none; |
| 257 } | 254 } |
| 258 | 255 |
| 259 #option-button { | 256 #option-button { |
| 260 -webkit-appearance: none; | 257 -webkit-appearance: none; |
| 261 background-color: transparent; | 258 background-color: transparent; |
| 262 width: 19px; | 259 width: 19px; |
| 263 height: 17px; | 260 height: 17px; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 333 padding: 0; | 330 padding: 0; |
| 334 margin: 0; | 331 margin: 0; |
| 335 -webkit-appearance: none; | 332 -webkit-appearance: none; |
| 336 border: 0; | 333 border: 0; |
| 337 background: none; | 334 background: none; |
| 338 cursor: pointer; | 335 cursor: pointer; |
| 339 text-decoration: underline; | 336 text-decoration: underline; |
| 340 font-family: inherit; | 337 font-family: inherit; |
| 341 } | 338 } |
| 342 | 339 |
| 343 #apps-section { | |
| 344 padding: 10px 0px; | |
| 345 border-top: 0; | |
| 346 } | |
| 347 | |
| 348 #apps-launch-control { | 340 #apps-launch-control { |
| 349 margin-top: 10px; | 341 margin-top: 10px; |
| 350 } | 342 } |
| 351 | 343 |
| 352 #apps-launch-control input { | 344 #apps-launch-control input { |
| 353 position: relative; | 345 position: relative; |
| 354 top: 1px; | 346 top: 1px; |
| 355 margin-right: 0.2em; | 347 margin-right: 0.2em; |
| 356 margin-left: 1em; | 348 margin-left: 1em; |
| 357 } | 349 } |
| 358 | 350 |
| 359 #debug > h2 { | 351 #debug > h2 { |
| 360 color: red; | 352 color: red; |
| 361 } | 353 } |
| 362 | 354 |
| 363 #debug > div { | 355 #debug > div { |
| 364 margin: 0; | 356 margin: 0; |
| 365 } | 357 } |
| 366 | 358 |
| 367 .section.disabled { | 359 .section.disabled { |
| 368 display: none !important; | 360 display: none !important; |
| 369 } | 361 } |
| 370 | 362 |
| 371 .section + :not(.hidden) { | |
| 372 border-top: 0; | |
| 373 } | |
| 374 | |
| 375 .section > div { | 363 .section > div { |
| 376 margin-bottom: 10px; | 364 margin-bottom: 10px; |
| 377 } | 365 } |
| 378 | 366 |
| 379 .section > h2 { | 367 .section > h2 { |
| 380 display: inline-block; | 368 background-position: 0 center; |
| 381 margin: 0; | 369 background-repeat: no-repeat; |
| 382 font-size: 100%; | 370 -webkit-background-size: 100% 26px; |
| 383 cursor: pointer; | 371 cursor: pointer; |
| 384 margin-top: 10px; | 372 display: block; |
| 385 margin-bottom: 10px; | 373 font-family: Helvetica, Arial, sans-serif; |
| 374 font-size: 16px; | |
| 375 font-weight: normal; | |
| 376 margin:10px 0; | |
| 377 -webkit-margin-collapse: separate; | |
| 386 } | 378 } |
| 387 | 379 |
| 388 .section > h2:hover { | 380 .section > h2 > img { |
|
arv (Not doing code reviews)
2010/08/31 20:33:57
RTL?
-webkit-margin-start: -13px;
-webkit-padding
| |
| 389 text-decoration: underline; | 381 margin-left:-13px; |
| 382 padding-right:4px; | |
| 383 } | |
| 384 | |
| 385 .section:not(.hidden) > h2 > img { | |
| 386 -webkit-transform:rotate(90deg); | |
|
arv (Not doing code reviews)
2010/08/31 20:33:57
ws after :
Can you add a transition for this tran
| |
| 387 } | |
| 388 | |
| 389 .section > h2 > span { | |
| 390 padding-right: 4px; | |
|
arv (Not doing code reviews)
2010/08/31 20:33:57
rtl
| |
| 390 } | 391 } |
| 391 | 392 |
| 392 .section.hidden { | 393 .section.hidden { |
| 393 display: inline; | |
| 394 border: 0; | 394 border: 0; |
| 395 } | 395 } |
| 396 | 396 |
| 397 .section.hidden > :not(h2) { | 397 .section.hidden > :not(h2) { |
| 398 display: none !important; | 398 display: none !important; |
| 399 } | 399 } |
| 400 | 400 |
| 401 .section > h2 { | |
| 402 margin-right: 5px; | |
| 403 } | |
| 404 | |
| 405 .section.hidden > h2 { | 401 .section.hidden > h2 { |
| 406 margin-right: 0px; | 402 margin-right: 0px; |
| 407 } | 403 } |
| 408 | 404 |
| 409 .section.hidden:last-child { | 405 .section.hidden:last-child { |
| 410 border-right: 0; | 406 border-right: 0; |
| 411 } | 407 } |
| 412 | 408 |
| 413 .section.hidden + .hidden > h2 { | |
| 414 padding-left: 5px; | |
| 415 } | |
| 416 | |
| 417 .section:last-child { | 409 .section:last-child { |
| 418 border-bottom: 0; | 410 border-bottom: 0; |
| 419 } | 411 } |
| 420 | 412 |
| 421 .section .nav { | 413 .section .nav { |
| 422 display: inline-block; | 414 display: inline-block; |
| 423 } | 415 } |
| 424 | 416 |
| 425 #apps { | |
| 426 margin-top: 10px; | |
| 427 } | |
| 428 | |
| 429 .section > * { | 417 .section > * { |
| 430 font-size: 12px; | 418 font-size: 12px; |
| 431 } | 419 } |
| 432 | 420 |
| 433 /* small */ | 421 /* small */ |
| 434 | 422 |
| 435 @media (max-width: 940px) { | 423 @media (max-width: 940px) { |
| 436 | 424 |
| 437 #main { | 425 #main { |
| 438 width: 692px; | 426 width: 692px; |
| 439 } | 427 } |
| 440 | 428 |
| 441 #notification > * { | 429 #notification > * { |
| 442 max-width: 300px; | 430 max-width: 300px; |
| 443 } | 431 } |
| 444 | 432 |
| 445 #notification > span > .blacklist-title { | 433 #notification > span > .blacklist-title { |
| 446 max-width: 15ex; | 434 max-width: 15ex; |
| 447 } | 435 } |
| 448 } | 436 } |
| 449 | 437 |
| 450 /* Ensure we have at least 10px horizontal marging. */ | 438 /* Ensure we have at least 10px horizontal marging. */ |
| 451 @media (max-width: 712px) { | 439 @media (max-width: 712px) { |
| 452 #main { | 440 #main { |
| 453 margin-left: 10px; | 441 margin-left: 10px; |
| 454 margin-right: 10px; | 442 margin-right: 10px; |
| 455 } | 443 } |
| 456 } | 444 } |
| 457 | |
| 458 #footer { | |
| 459 bottom: 0; | |
| 460 padding-bottom: 5px; | |
| 461 position: absolute; | |
| 462 text-align: end; | |
| 463 width: 100%; | |
| 464 } | |
| 465 | |
| 466 #footer hr { | |
| 467 border: 0; | |
| 468 display: inline; | |
| 469 margin: 0; | |
| 470 padding: 0; | |
| 471 } | |
| 472 | |
| 473 #footer hr:after { | |
| 474 content: "|"; | |
| 475 } | |
| OLD | NEW |