| 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 margin: 0 auto; | 21 margin: 0 auto; |
| 22 min-height: 100%; | 22 min-height: 100%; |
| 23 } |
| 24 |
| 25 #main, |
| 26 .section, |
| 27 .maxiview { |
| 23 width: 920px; | 28 width: 920px; |
| 24 } | 29 } |
| 25 | 30 |
| 26 html[dir=rtl] #main { | 31 html[dir=rtl] #main { |
| 27 background-position-x: 100%; | 32 background-position-x: 100%; |
| 28 } | 33 } |
| 29 | 34 |
| 30 html[mode=app-launcher] #main { | 35 html[mode=app-launcher] #main { |
| 31 min-height: 50px; | 36 min-height: 50px; |
| 32 } | 37 } |
| 33 | 38 |
| 34 #top-spacer { | |
| 35 position: fixed; | |
| 36 top: 0; | |
| 37 left: 0; | |
| 38 width: 100%; | |
| 39 height: 5px; | |
| 40 z-index: 2; | |
| 41 } | |
| 42 | |
| 43 html[anim=false] *, | 39 html[anim=false] *, |
| 44 .no-anim, .no-anim *, | 40 .no-anim, .no-anim *, |
| 45 .loading * { | 41 .loading * { |
| 46 -webkit-transition: none !important; | 42 -webkit-transition: none !important; |
| 47 -webkit-animation: none !important; | 43 -webkit-animation: none !important; |
| 48 } | 44 } |
| 49 | 45 |
| 50 :link, | 46 :link, |
| 51 :visited, | 47 :visited, |
| 52 .link { | 48 .link { |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 to(rgb(228, 229, 240))); | 189 to(rgb(228, 229, 240))); |
| 194 width: auto; | 190 width: auto; |
| 195 max-width: 300px; | 191 max-width: 300px; |
| 196 } | 192 } |
| 197 | 193 |
| 198 .hbox { | 194 .hbox { |
| 199 display: -webkit-box; | 195 display: -webkit-box; |
| 200 -webkit-box-orient: horizontal; | 196 -webkit-box-orient: horizontal; |
| 201 } | 197 } |
| 202 | 198 |
| 203 #sync-status { | 199 #sync-status > div { |
| 204 display: none; | |
| 205 border-radius: 6px; | 200 border-radius: 6px; |
| 206 padding: 5px 0; | 201 padding: 5px 0; |
| 207 margin: 10px 0; | 202 margin: 10px 0 20px; |
| 208 white-space: nowrap; | 203 white-space: nowrap; |
| 209 overflow-x: hidden; | 204 overflow-x: hidden; |
| 210 } | 205 } |
| 211 | 206 |
| 212 #sync-status > * { | 207 #sync-status > div > * { |
| 213 display: inline-block; | 208 display: inline-block; |
| 214 max-width: none; | 209 max-width: none; |
| 215 white-space: nowrap; | 210 white-space: nowrap; |
| 216 overflow: hidden; | 211 overflow: hidden; |
| 217 text-overflow: ellipsis; | 212 text-overflow: ellipsis; |
| 218 font-size: 100%; | 213 font-size: 100%; |
| 219 margin: 0 10px; | 214 margin: 0 10px; |
| 220 } | 215 } |
| 221 | 216 |
| 222 .notification.hidden { | 217 .notification.hidden { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 } | 288 } |
| 294 | 289 |
| 295 #debug > h2 { | 290 #debug > h2 { |
| 296 color: red; | 291 color: red; |
| 297 } | 292 } |
| 298 | 293 |
| 299 #debug > div { | 294 #debug > div { |
| 300 margin: 0; | 295 margin: 0; |
| 301 } | 296 } |
| 302 | 297 |
| 303 .section > * { | 298 .section { |
| 299 position: fixed; |
| 304 font-size: 12px; | 300 font-size: 12px; |
| 305 width: 920px; | |
| 306 } | 301 } |
| 307 | 302 |
| 308 .section.disabled { | 303 .section.disabled { |
| 309 display: none !important; | 304 display: none !important; |
| 310 } | 305 } |
| 311 | 306 |
| 312 .section > div { | |
| 313 padding-bottom: 20px; | |
| 314 } | |
| 315 | |
| 316 #apps-section-content { | |
| 317 /* This one is special because the app buttons already have a lot of empty | |
| 318 space around them. */ | |
| 319 margin-top: -5px; | |
| 320 padding-bottom: 5px; | |
| 321 } | |
| 322 | |
| 323 .section > h2 { | 307 .section > h2 { |
| 324 font-family: Helvetica, Arial, sans-serif; | 308 font-family: Helvetica, Arial, sans-serif; |
| 325 font-size: 16px; | 309 font-size: 16px; |
| 326 font-weight: normal; | 310 font-weight: normal; |
| 327 margin: 0; | 311 margin: 0; |
| 328 position: fixed; | 312 position: relative; |
| 329 z-index: 2; | |
| 330 } | 313 } |
| 331 | 314 |
| 332 .section:not([noexpand]) > h2 { | 315 .section:not([noexpand]) > h2 { |
| 333 cursor: pointer; | 316 cursor: pointer; |
| 334 } | 317 } |
| 335 | 318 |
| 336 .section > h2 > .disclosure { | 319 .section > h2 > .disclosure { |
| 337 position: absolute; | 320 position: absolute; |
| 338 left: -15px; | 321 left: -15px; |
| 339 top: 19px; | 322 top: 4px; |
| 340 } | 323 } |
| 341 | 324 |
| 342 .section:not(.hidden) > h2 > .disclosure { | 325 .section:not(.hidden) > h2 > .disclosure { |
| 343 -webkit-transform:rotate(90deg); | 326 -webkit-transform:rotate(90deg); |
| 344 } | 327 } |
| 345 | 328 |
| 346 .section > h2 > .mask { | |
| 347 padding: 15px 0; | |
| 348 } | |
| 349 | |
| 350 .section:not(.hidden) > h2 > .mask { | |
| 351 /* NOTE: 0.75 ~= 29/39 (for 10px of gradient) */ | |
| 352 -webkit-mask-image: | |
| 353 -webkit-gradient(linear, 0% 0%, 0% 100%, from(black), | |
| 354 color-stop(0.75, black), to(transparent)); | |
| 355 } | |
| 356 | |
| 357 .section:not(.hidden) + .section > h2 > .mask { | |
| 358 /* NOTE: 0.25 ~= 10/39 (for 10px of gradient) */ | |
| 359 -webkit-mask-image: | |
| 360 -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), | |
| 361 color-stop(0.25, black), to(black)); | |
| 362 } | |
| 363 | |
| 364 .section > h2 .back { | 329 .section > h2 .back { |
| 365 position: absolute; | 330 position: absolute; |
| 366 left: 0; | 331 left: 0; |
| 367 top: 24px; | 332 top: 9px; |
| 368 width: 100%; | 333 width: 100%; |
| 369 height: 24px; | 334 height: 24px; |
| 370 z-index: 1; | 335 z-index: 1; |
| 371 } | 336 } |
| 372 | 337 |
| 373 .section > h2 span { | 338 .section > h2 span { |
| 374 padding-right: 5px; | 339 padding-right: 5px; |
| 375 position: relative; | 340 position: relative; |
| 376 z-index: 2; | 341 z-index: 2; |
| 377 } | 342 } |
| 378 | 343 |
| 379 .section > h2 .settings-wrapper { | 344 .section > h2 .settings-wrapper { |
| 380 position: absolute; | 345 position: absolute; |
| 381 top: 13px; | 346 top: -1px; |
| 382 right: 0; | 347 right: 0; |
| 383 width: 21px; | 348 width: 21px; |
| 384 height: 21px; | 349 height: 21px; |
| 385 z-index: 3; | 350 z-index: 3; |
| 386 } | 351 } |
| 387 | 352 |
| 388 .section > h2 .settings { | 353 .section > h2 .settings { |
| 389 position: absolute; | 354 position: absolute; |
| 390 left: 5px; | 355 left: 5px; |
| 391 top: 5px; | 356 top: 5px; |
| 392 width: 11px; | 357 width: 11px; |
| 393 height: 11px; | 358 height: 11px; |
| 394 /* TODO(aa): Need a better image. This one is semi-transparent. Also, I think | 359 /* TODO(aa): Need a better image. This one is semi-transparent. Also, I think |
| 395 a gear would be better. */ | 360 a gear would be better. */ |
| 396 background-image: url(chrome://theme/IDR_BALLOON_WRENCH); | 361 background-image: url(chrome://theme/IDR_BALLOON_WRENCH); |
| 397 background-position: center center; | 362 background-position: center center; |
| 398 background-repeat: no-repeat; | 363 background-repeat: no-repeat; |
| 399 background-size: 100%; | 364 background-size: 100%; |
| 400 } | 365 } |
| 401 | 366 |
| 402 .section.hidden > h2 .settings-wrapper { | 367 .section.hidden > h2 .settings-wrapper { |
| 403 display: none; | 368 display: none; |
| 404 } | 369 } |
| 405 | 370 |
| 406 .section > .maxiview { | 371 .maxiview { |
| 372 padding: 5px 0 30px; |
| 407 position: absolute; | 373 position: absolute; |
| 374 -webkit-mask-attachment: fixed; |
| 408 } | 375 } |
| 409 | 376 |
| 410 .section > .miniview { | 377 .section > .miniview { |
| 411 display: none; | 378 display: none; |
| 412 position: fixed; | 379 height: 24px; |
| 413 z-index: 2; | 380 margin: 10px 0 30px; |
| 381 overflow: hidden; |
| 414 } | 382 } |
| 415 | 383 |
| 416 .section.hidden > * { | 384 .section.hidden > * { |
| 417 display: none; | 385 display: none; |
| 418 } | 386 } |
| 419 | 387 |
| 420 .section.hidden > h2, | 388 .section.hidden > h2, |
| 421 .section.hidden > .miniview { | 389 .section.hidden > .miniview { |
| 422 display: block; | 390 display: block; |
| 423 } | 391 } |
| 424 | 392 |
| 425 .section.hidden > h2 { | 393 .section.hidden > h2 { |
| 426 margin-right: 0; | 394 margin-right: 0; |
| 427 } | 395 } |
| 428 | 396 |
| 429 .miniview { | 397 .maxiview.hidden { |
| 430 white-space: nowrap; | 398 display: none; |
| 431 overflow-x: hidden; | |
| 432 } | 399 } |
| 433 | 400 |
| 434 .miniview > span { | 401 .miniview > span { |
| 435 display: inline-block; | 402 display: inline-block; |
| 436 max-width: 114px; /* Selected so that we can fit 5 items in EN-US */ | 403 max-width: 114px; /* Selected so that we can fit 5 items in EN-US */ |
| 437 white-space: nowrap; | 404 white-space: nowrap; |
| 438 overflow: hidden; | 405 overflow: hidden; |
| 439 text-overflow: ellipsis; | 406 text-overflow: ellipsis; |
| 440 font-size: 100%; | 407 font-size: 100%; |
| 441 margin: 0 10px; | 408 margin: 0 10px; |
| 442 } | 409 } |
| 443 | 410 |
| 444 .miniview > span:first-child { | 411 .miniview > span:first-child { |
| 445 margin-left: 0; | 412 margin-left: 0; |
| 446 } | 413 } |
| 447 | 414 |
| 448 .miniview > span:last-child { | 415 .miniview > span:last-child { |
| 449 margin-right: 0; | 416 margin-right: 0; |
| 450 } | 417 } |
| 451 | 418 |
| 452 /* small */ | 419 /* small */ |
| 453 | 420 |
| 454 @media (max-width: 940px) { | 421 @media (max-width: 940px) { |
| 455 | 422 |
| 456 #main, | 423 #main, |
| 457 .section > * { | 424 .section, |
| 425 .maxiview { |
| 458 width: 692px; | 426 width: 692px; |
| 459 } | 427 } |
| 460 | 428 |
| 461 #notification > * { | 429 #notification > * { |
| 462 max-width: 300px; | 430 max-width: 300px; |
| 463 } | 431 } |
| 464 | 432 |
| 465 #notification > span > .blacklist-title { | 433 #notification > span > .blacklist-title { |
| 466 max-width: 15ex; | 434 max-width: 15ex; |
| 467 } | 435 } |
| 468 } | 436 } |
| 469 | 437 |
| 470 /* Ensure we have at least 10px horizontal marging. */ | 438 /* Ensure we have at least 10px horizontal marging. */ |
| 471 @media (max-width: 712px) { | 439 @media (max-width: 712px) { |
| 472 #main { | 440 #main { |
| 473 margin-left: 10px; | 441 margin-left: 10px; |
| 474 margin-right: 10px; | 442 margin-right: 10px; |
| 475 } | 443 } |
| 476 } | 444 } |
| OLD | NEW |