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 margin: 0 auto; | 21 margin: 0 auto; |
| 22 min-height: 100%; | 22 min-height: 100%; |
| 23 padding:10px 0 20px; | |
| 24 position: relative; | |
| 25 width: 920px; | 23 width: 920px; |
| 26 } | 24 } |
| 27 | 25 |
| 28 html[dir=rtl] #main { | 26 html[dir=rtl] #main { |
| 29 background-position-x: 100%; | 27 background-position-x: 100%; |
| 30 } | 28 } |
| 31 | 29 |
| 32 html[mode=app-launcher] #main { | 30 html[mode=app-launcher] #main { |
| 33 min-height: 50px; | 31 min-height: 50px; |
| 34 } | 32 } |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 210 text-overflow: ellipsis; | 208 text-overflow: ellipsis; |
| 211 font-size: 100%; | 209 font-size: 100%; |
| 212 margin: 0 10px; | 210 margin: 0 10px; |
| 213 } | 211 } |
| 214 | 212 |
| 215 .notification.hidden { | 213 .notification.hidden { |
| 216 opacity: 0; | 214 opacity: 0; |
| 217 pointer-events: none; | 215 pointer-events: none; |
| 218 } | 216 } |
| 219 | 217 |
| 220 #option-button { | |
| 221 -webkit-appearance: none; | |
| 222 background-color: transparent; | |
| 223 width: 19px; | |
| 224 height: 17px; | |
| 225 position: absolute; | |
| 226 right: 0; | |
| 227 left: auto; | |
| 228 top: 20px; | |
| 229 border: 0; | |
| 230 padding: 0; | |
| 231 vertical-align: top; | |
| 232 -webkit-margin-start: 10px; | |
| 233 /* Do not show focus outline */ | |
| 234 outline: none; | |
| 235 background-image: url(chrome://theme/IDR_NEWTAB_OPTION); | |
| 236 } | |
| 237 | |
| 238 #option-button:hover, | |
| 239 #option-button:focus { | |
| 240 background-image: url(chrome://theme/IDR_NEWTAB_OPTION_H); | |
| 241 } | |
| 242 | |
| 243 #option-button:active, | |
| 244 #option-button.open { | |
| 245 background-image: url(chrome://theme/IDR_NEWTAB_OPTION_P); | |
| 246 } | |
| 247 | |
| 248 #option-menu { | 218 #option-menu { |
| 249 right: 0; | 219 right: 0; |
| 250 left: auto; | 220 left: auto; |
| 251 min-width: 175px; | 221 min-width: 175px; |
| 222 z-index: 3; | |
| 252 } | 223 } |
| 253 | 224 |
| 254 html[dir=rtl] #option-button, | 225 html[dir=rtl] #option-button, |
| 255 html[dir=rtl] #option-menu { | 226 html[dir=rtl] #option-menu { |
| 256 right: auto; | 227 right: auto; |
| 257 left: 0; | 228 left: 0; |
| 258 } | 229 } |
| 259 | 230 |
| 260 #option-menu > * { | 231 #option-menu > * { |
| 261 /* Work around rendering bug. */ | 232 /* Work around rendering bug. */ |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 315 #debug > h2 { | 286 #debug > h2 { |
| 316 color: red; | 287 color: red; |
| 317 } | 288 } |
| 318 | 289 |
| 319 #debug > div { | 290 #debug > div { |
| 320 margin: 0; | 291 margin: 0; |
| 321 } | 292 } |
| 322 | 293 |
| 323 .section > * { | 294 .section > * { |
| 324 font-size: 12px; | 295 font-size: 12px; |
| 296 width: 920px; | |
| 325 } | 297 } |
| 326 | 298 |
| 327 .section.disabled { | 299 .section.disabled { |
| 328 display: none !important; | 300 display: none !important; |
| 329 } | 301 } |
| 330 | 302 |
| 331 .section > div { | 303 .section > div { |
| 332 margin-bottom: 15px; | 304 padding-bottom: 20px; |
| 333 } | 305 } |
| 334 | 306 |
| 335 #apps-section-content { | 307 #apps-section-content { |
| 336 /* This one is special because the app buttons already have a lot of empty | 308 /* This one is special because the app buttons already have a lot of empty |
| 337 space around them. */ | 309 space around them. */ |
| 338 margin-bottom: 5px; | 310 margin-top: -5px; |
| 311 padding-bottom: 5px; | |
| 339 } | 312 } |
| 340 | 313 |
| 341 .section > h2 { | 314 .section > h2 { |
| 342 background-position: 0 center; | |
| 343 background-repeat: no-repeat; | |
| 344 -webkit-background-size: 100% 26px; | |
| 345 display: block; | 315 display: block; |
| 346 font-family: Helvetica, Arial, sans-serif; | 316 font-family: Helvetica, Arial, sans-serif; |
| 347 font-size: 16px; | 317 font-size: 16px; |
| 348 font-weight: normal; | 318 font-weight: normal; |
| 349 margin:10px 0; | 319 margin: 0; |
| 350 -webkit-margin-collapse: separate; | 320 padding: 15px 0; |
| 321 position: fixed; | |
| 322 z-index: 2; | |
| 323 } | |
| 324 | |
| 325 .section:not(.hidden) > h2 { | |
| 326 background-position: 0 0, 0 100%; | |
| 327 background-repeat: no-repeat; | |
| 328 background-size: 100% 39px, 100% 10px; | |
| 329 } | |
| 330 | |
| 331 .section:not(.hidden) + .section > h2 { | |
| 332 background-position: 0 0, 0 100%; | |
| 333 background-repeat: no-repeat; | |
| 334 background-size: 100% 10px, 100% 39px; | |
| 351 } | 335 } |
| 352 | 336 |
| 353 .section:not([noexpand]) > h2 { | 337 .section:not([noexpand]) > h2 { |
| 354 cursor: pointer; | 338 cursor: pointer; |
| 355 } | 339 } |
| 356 | 340 |
| 357 .section > h2 > img { | 341 /* The first one is special because we want a little extra space at the top of |
| 358 margin-left:-13px; | 342 the layout. */ |
| 359 padding-right:4px; | 343 .section:first-child > h2 { |
| 344 padding-top: 20px; | |
| 345 background-size: 100% 44px, 100% 10px; | |
| 360 } | 346 } |
| 361 | 347 |
| 362 .section:not(.hidden) > h2 > img { | 348 .section > h2 > .disclosure { |
| 349 margin-left: -13px; | |
|
arv (Not doing code reviews)
2010/08/31 21:13:59
-webkit-margin-start: -13px;
-webkit-padding-end:
| |
| 350 padding-right: 4px; | |
| 351 } | |
| 352 | |
| 353 .section:not(.hidden) > h2 > .disclosure { | |
| 363 -webkit-transform:rotate(90deg); | 354 -webkit-transform:rotate(90deg); |
| 364 } | 355 } |
| 365 | 356 |
| 357 .section > h2 > .back { | |
| 358 position: absolute; | |
| 359 bottom: 5px; | |
| 360 left: 0; | |
| 361 width: 100%; | |
| 362 height: 19px; | |
| 363 background-repeat: no-repeat; | |
| 364 z-index: 1; | |
| 365 } | |
| 366 | |
| 366 .section > h2 > span { | 367 .section > h2 > span { |
| 367 padding-right: 4px; | 368 padding-right: 5px; |
|
arv (Not doing code reviews)
2010/08/31 21:13:59
rtl
| |
| 369 position: relative; | |
| 370 z-index: 2; | |
| 371 } | |
| 372 | |
| 373 .section > h2 > .settings { | |
| 374 position: absolute; | |
| 375 top: 18px; | |
| 376 right: 0; | |
|
arv (Not doing code reviews)
2010/08/31 21:13:59
rtl
Here you need to add another css rule that ov
| |
| 377 width: 11px; | |
| 378 height: 11px; | |
| 379 /* TODO(aa): Need a better image. This one is semi-transparent. Also, I think | |
| 380 a gear would be better. */ | |
| 381 background-image: url(chrome://theme/IDR_BALLOON_WRENCH); | |
| 382 background-position: center center; | |
| 383 background-repeat: no-repeat; | |
| 384 background-size: 100%; | |
| 385 border-style: solid; | |
| 386 border-width: 0 5px 0 6px; | |
| 387 z-index: 2; | |
| 388 } | |
| 389 | |
| 390 .section.hidden > h2 > .settings { | |
| 391 display: none; | |
| 392 } | |
| 393 | |
| 394 .section > .maxiview { | |
| 395 position: absolute; | |
| 368 } | 396 } |
| 369 | 397 |
| 370 .section > .miniview { | 398 .section > .miniview { |
| 371 display: none; | 399 display: none; |
| 372 /* Because the items have 10px horizontal margins. */ | 400 position: fixed; |
| 373 margin-left:-10px; | 401 z-index: 2; |
| 374 margin-right:-10px; | |
| 375 } | 402 } |
| 376 | 403 |
| 377 .section.hidden > * { | 404 .section.hidden > * { |
| 378 display: none; | 405 display: none; |
| 379 } | 406 } |
| 380 | 407 |
| 381 .section.hidden > h2, | 408 .section.hidden > h2, |
| 382 .section.hidden > .miniview { | 409 .section.hidden > .miniview { |
| 383 display: block; | 410 display: block; |
| 384 } | 411 } |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 395 .miniview > span { | 422 .miniview > span { |
| 396 display: inline-block; | 423 display: inline-block; |
| 397 max-width: 114px; /* Selected so that we can fit 5 items in EN-US */ | 424 max-width: 114px; /* Selected so that we can fit 5 items in EN-US */ |
| 398 white-space: nowrap; | 425 white-space: nowrap; |
| 399 overflow: hidden; | 426 overflow: hidden; |
| 400 text-overflow: ellipsis; | 427 text-overflow: ellipsis; |
| 401 font-size: 100%; | 428 font-size: 100%; |
| 402 margin: 0 10px; | 429 margin: 0 10px; |
| 403 } | 430 } |
| 404 | 431 |
| 432 .miniview > span:first-child { | |
| 433 margin-left: 0; | |
|
arv (Not doing code reviews)
2010/08/31 21:13:59
rtl?
| |
| 434 } | |
| 435 | |
| 436 .miniview > span:last-child { | |
| 437 margin-right: 0; | |
| 438 } | |
| 439 | |
| 405 /* small */ | 440 /* small */ |
| 406 | 441 |
| 407 @media (max-width: 940px) { | 442 @media (max-width: 940px) { |
| 408 | 443 |
| 409 #main { | 444 #main, |
| 445 .section > * { | |
| 410 width: 692px; | 446 width: 692px; |
| 411 } | 447 } |
| 412 | 448 |
| 413 #notification > * { | 449 #notification > * { |
| 414 max-width: 300px; | 450 max-width: 300px; |
| 415 } | 451 } |
| 416 | 452 |
| 417 #notification > span > .blacklist-title { | 453 #notification > span > .blacklist-title { |
| 418 max-width: 15ex; | 454 max-width: 15ex; |
| 419 } | 455 } |
| 420 } | 456 } |
| 421 | 457 |
| 422 /* Ensure we have at least 10px horizontal marging. */ | 458 /* Ensure we have at least 10px horizontal marging. */ |
| 423 @media (max-width: 712px) { | 459 @media (max-width: 712px) { |
| 424 #main { | 460 #main { |
| 425 margin-left: 10px; | 461 margin-left: 10px; |
| 426 margin-right: 10px; | 462 margin-right: 10px; |
| 427 } | 463 } |
| 428 } | 464 } |
| OLD | NEW |