Fossil SCM
Blitz skin: style buttons consistently, regardless of their type (do not distinguish submit buttons from others because this confuses pages which use a mix of button types).
Commit
5780702fc1aae3aea34d140af58350d165b76c8f03590b3ba06330d4183c8520
Parent
69cc41e6b3f2ce3…
1 file changed
+33
-64
+33
-64
| --- skins/blitz/css.txt | ||
| +++ skins/blitz/css.txt | ||
| @@ -207,11 +207,10 @@ | ||
| 207 | 207 | /** |
| 208 | 208 | * Address differences between Firefox and other browsers. |
| 209 | 209 | */ |
| 210 | 210 | |
| 211 | 211 | hr { |
| 212 | - -moz-box-sizing: content-box; | |
| 213 | 212 | box-sizing: content-box; |
| 214 | 213 | height: 0; |
| 215 | 214 | } |
| 216 | 215 | |
| 217 | 216 | /** |
| @@ -286,38 +285,29 @@ | ||
| 286 | 285 | * 3. Improve usability and consistency of cursor style between image-type |
| 287 | 286 | * `input` and others. |
| 288 | 287 | */ |
| 289 | 288 | |
| 290 | 289 | button, |
| 291 | -html input[type="button"], /* 1 */ | |
| 292 | -input[type="reset"], | |
| 293 | -input[type="submit"], | |
| 294 | -input[type="button"].submit, | |
| 295 | -button.submit{ | |
| 290 | +input[type=button], /* 1 */ | |
| 291 | +input[type=reset], | |
| 292 | +input[type=submit], | |
| 293 | +input[type=button]{ | |
| 296 | 294 | -webkit-appearance: button; /* 2 */ |
| 297 | 295 | cursor: pointer; /* 3 */ |
| 298 | 296 | } |
| 299 | 297 | |
| 300 | 298 | /** |
| 301 | 299 | * Re-set default cursor for disabled elements. |
| 302 | 300 | */ |
| 303 | 301 | |
| 304 | -button[disabled], | |
| 305 | -html input[disabled] { | |
| 302 | +button:disabled, | |
| 303 | +input[type=button]:disabled, | |
| 304 | +input[type=reset]:disabled, | |
| 305 | +input[type=submit]:disabled{ | |
| 306 | 306 | cursor: default; |
| 307 | 307 | } |
| 308 | 308 | |
| 309 | -/** | |
| 310 | - * Remove inner padding and border in Firefox 4+. | |
| 311 | - */ | |
| 312 | - | |
| 313 | -button::-moz-focus-inner, | |
| 314 | -input::-moz-focus-inner { | |
| 315 | - border: 0; | |
| 316 | - padding: 0; | |
| 317 | -} | |
| 318 | - | |
| 319 | 309 | /** |
| 320 | 310 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in |
| 321 | 311 | * the UA stylesheet. |
| 322 | 312 | */ |
| 323 | 313 | |
| @@ -348,20 +338,11 @@ | ||
| 348 | 338 | input[type="number"]::-webkit-inner-spin-button, |
| 349 | 339 | input[type="number"]::-webkit-outer-spin-button { |
| 350 | 340 | height: auto; |
| 351 | 341 | } |
| 352 | 342 | |
| 353 | -/** | |
| 354 | - * 1. Address `appearance` set to `searchfield` in Safari and Chrome. | |
| 355 | - * 2. Address `box-sizing` set to `border-box` in Safari and Chrome | |
| 356 | - * (include `-moz` to future-proof). | |
| 357 | - */ | |
| 358 | - | |
| 359 | 343 | input[type="search"] { |
| 360 | - -webkit-appearance: textfield; /* 1 */ | |
| 361 | - -moz-box-sizing: content-box; | |
| 362 | - -webkit-box-sizing: content-box; /* 2 */ | |
| 363 | 344 | box-sizing: content-box; |
| 364 | 345 | } |
| 365 | 346 | |
| 366 | 347 | /** |
| 367 | 348 | * Remove inner padding and search cancel button in Safari and Chrome on OS X. |
| @@ -517,19 +498,17 @@ | ||
| 517 | 498 | |
| 518 | 499 | /* Buttons |
| 519 | 500 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 520 | 501 | .button, |
| 521 | 502 | button, |
| 522 | -input[type="button"], | |
| 523 | -input[type="reset"], | |
| 524 | -input[type="submit"], | |
| 525 | -input[type="button"].submit, | |
| 526 | -button.submit{ | |
| 503 | +input[type=button], | |
| 504 | +input[type=reset], | |
| 505 | +input[type=submit]{ | |
| 527 | 506 | display: inline-block; |
| 528 | 507 | height: 3.3rem; |
| 529 | 508 | padding: 0 2.2rem; |
| 530 | - color: #555 !important; | |
| 509 | + color: #555; | |
| 531 | 510 | text-align: center; |
| 532 | 511 | font-size: 1.1rem; |
| 533 | 512 | font-weight: 700; |
| 534 | 513 | line-height: 3.3rem; |
| 535 | 514 | letter-spacing: .08rem; |
| @@ -543,48 +522,40 @@ | ||
| 543 | 522 | box-sizing: border-box; |
| 544 | 523 | } |
| 545 | 524 | |
| 546 | 525 | .button:hover, |
| 547 | 526 | button:hover, |
| 548 | -input[type="button"]:hover, | |
| 549 | -input[type="reset"]:hover, | |
| 550 | -.button:focus, | |
| 527 | +input[type=button]:hover, | |
| 528 | +input[type=reset]:hover, | |
| 529 | +input[type=submit]:hover, | |
| 530 | +.button:hover, | |
| 551 | 531 | button:focus, |
| 552 | -input[type="button"]:focus, | |
| 553 | -input[type="reset"]:focus { | |
| 554 | - color: #444 !important; | |
| 555 | - background-color: #eee; | |
| 556 | - border-color: #aaa; | |
| 532 | +input[type=button]:focus, | |
| 533 | +input[type=reset]:focus, | |
| 534 | +input[type=submit]:focus{ | |
| 557 | 535 | outline: 0; |
| 558 | -} | |
| 559 | - | |
| 560 | -input[type="submit"], | |
| 561 | -input[type="button"].submit, | |
| 562 | -button.submit{ | |
| 563 | - color: white !important; | |
| 564 | - background-color: #446979; | |
| 565 | - border-color: #446979; | |
| 566 | -} | |
| 567 | - | |
| 568 | -input[type="submit"]:hover, | |
| 569 | -input[type="submit"]:focus, | |
| 570 | -input[type="button"].submit:hover, | |
| 571 | -input[type="button"].submit:focus, | |
| 572 | -button.submit:hover, | |
| 573 | -button.submit:focus{ | |
| 574 | - color: white !important; | |
| 536 | + color: white; | |
| 575 | 537 | background-color: #648898; |
| 576 | 538 | border-color: #648898; |
| 577 | 539 | } |
| 578 | 540 | |
| 579 | -input[type="submit"]:disabled, | |
| 580 | -input[type="button"].submit:disabled, | |
| 581 | -button.submit:disabled{ | |
| 541 | +.button:disabled, | |
| 542 | +button:disabled, | |
| 543 | +input[type=button]:disabled, | |
| 544 | +input[type=reset]:disabled, | |
| 545 | +input[type=submit]:disabled{ | |
| 582 | 546 | color: rgb(128,128,128); |
| 583 | - background-color: rgb(153,153,153); | |
| 547 | + background-color: rgb(227,227,227); | |
| 584 | 548 | } |
| 585 | 549 | |
| 550 | +.button:disabled:hover, | |
| 551 | +button:disabled:hover, | |
| 552 | +input[type=button]:disabled:hover, | |
| 553 | +input[type=reset]:disabled:hover, | |
| 554 | +input[type=submit]:disabled:hover{ | |
| 555 | + | |
| 556 | +} | |
| 586 | 557 | |
| 587 | 558 | /* Forms |
| 588 | 559 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 589 | 560 | input[type="email"], |
| 590 | 561 | input[type="number"], |
| @@ -611,12 +582,10 @@ | ||
| 611 | 582 | input[type="text"], |
| 612 | 583 | input[type="tel"], |
| 613 | 584 | input[type="url"], |
| 614 | 585 | input[type="password"], |
| 615 | 586 | textarea { |
| 616 | - -webkit-appearance: none; | |
| 617 | - -moz-appearance: none; | |
| 618 | 587 | appearance: none; |
| 619 | 588 | } |
| 620 | 589 | |
| 621 | 590 | textarea { |
| 622 | 591 | height: inherit; |
| 623 | 592 |
| --- skins/blitz/css.txt | |
| +++ skins/blitz/css.txt | |
| @@ -207,11 +207,10 @@ | |
| 207 | /** |
| 208 | * Address differences between Firefox and other browsers. |
| 209 | */ |
| 210 | |
| 211 | hr { |
| 212 | -moz-box-sizing: content-box; |
| 213 | box-sizing: content-box; |
| 214 | height: 0; |
| 215 | } |
| 216 | |
| 217 | /** |
| @@ -286,38 +285,29 @@ | |
| 286 | * 3. Improve usability and consistency of cursor style between image-type |
| 287 | * `input` and others. |
| 288 | */ |
| 289 | |
| 290 | button, |
| 291 | html input[type="button"], /* 1 */ |
| 292 | input[type="reset"], |
| 293 | input[type="submit"], |
| 294 | input[type="button"].submit, |
| 295 | button.submit{ |
| 296 | -webkit-appearance: button; /* 2 */ |
| 297 | cursor: pointer; /* 3 */ |
| 298 | } |
| 299 | |
| 300 | /** |
| 301 | * Re-set default cursor for disabled elements. |
| 302 | */ |
| 303 | |
| 304 | button[disabled], |
| 305 | html input[disabled] { |
| 306 | cursor: default; |
| 307 | } |
| 308 | |
| 309 | /** |
| 310 | * Remove inner padding and border in Firefox 4+. |
| 311 | */ |
| 312 | |
| 313 | button::-moz-focus-inner, |
| 314 | input::-moz-focus-inner { |
| 315 | border: 0; |
| 316 | padding: 0; |
| 317 | } |
| 318 | |
| 319 | /** |
| 320 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in |
| 321 | * the UA stylesheet. |
| 322 | */ |
| 323 | |
| @@ -348,20 +338,11 @@ | |
| 348 | input[type="number"]::-webkit-inner-spin-button, |
| 349 | input[type="number"]::-webkit-outer-spin-button { |
| 350 | height: auto; |
| 351 | } |
| 352 | |
| 353 | /** |
| 354 | * 1. Address `appearance` set to `searchfield` in Safari and Chrome. |
| 355 | * 2. Address `box-sizing` set to `border-box` in Safari and Chrome |
| 356 | * (include `-moz` to future-proof). |
| 357 | */ |
| 358 | |
| 359 | input[type="search"] { |
| 360 | -webkit-appearance: textfield; /* 1 */ |
| 361 | -moz-box-sizing: content-box; |
| 362 | -webkit-box-sizing: content-box; /* 2 */ |
| 363 | box-sizing: content-box; |
| 364 | } |
| 365 | |
| 366 | /** |
| 367 | * Remove inner padding and search cancel button in Safari and Chrome on OS X. |
| @@ -517,19 +498,17 @@ | |
| 517 | |
| 518 | /* Buttons |
| 519 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 520 | .button, |
| 521 | button, |
| 522 | input[type="button"], |
| 523 | input[type="reset"], |
| 524 | input[type="submit"], |
| 525 | input[type="button"].submit, |
| 526 | button.submit{ |
| 527 | display: inline-block; |
| 528 | height: 3.3rem; |
| 529 | padding: 0 2.2rem; |
| 530 | color: #555 !important; |
| 531 | text-align: center; |
| 532 | font-size: 1.1rem; |
| 533 | font-weight: 700; |
| 534 | line-height: 3.3rem; |
| 535 | letter-spacing: .08rem; |
| @@ -543,48 +522,40 @@ | |
| 543 | box-sizing: border-box; |
| 544 | } |
| 545 | |
| 546 | .button:hover, |
| 547 | button:hover, |
| 548 | input[type="button"]:hover, |
| 549 | input[type="reset"]:hover, |
| 550 | .button:focus, |
| 551 | button:focus, |
| 552 | input[type="button"]:focus, |
| 553 | input[type="reset"]:focus { |
| 554 | color: #444 !important; |
| 555 | background-color: #eee; |
| 556 | border-color: #aaa; |
| 557 | outline: 0; |
| 558 | } |
| 559 | |
| 560 | input[type="submit"], |
| 561 | input[type="button"].submit, |
| 562 | button.submit{ |
| 563 | color: white !important; |
| 564 | background-color: #446979; |
| 565 | border-color: #446979; |
| 566 | } |
| 567 | |
| 568 | input[type="submit"]:hover, |
| 569 | input[type="submit"]:focus, |
| 570 | input[type="button"].submit:hover, |
| 571 | input[type="button"].submit:focus, |
| 572 | button.submit:hover, |
| 573 | button.submit:focus{ |
| 574 | color: white !important; |
| 575 | background-color: #648898; |
| 576 | border-color: #648898; |
| 577 | } |
| 578 | |
| 579 | input[type="submit"]:disabled, |
| 580 | input[type="button"].submit:disabled, |
| 581 | button.submit:disabled{ |
| 582 | color: rgb(128,128,128); |
| 583 | background-color: rgb(153,153,153); |
| 584 | } |
| 585 | |
| 586 | |
| 587 | /* Forms |
| 588 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 589 | input[type="email"], |
| 590 | input[type="number"], |
| @@ -611,12 +582,10 @@ | |
| 611 | input[type="text"], |
| 612 | input[type="tel"], |
| 613 | input[type="url"], |
| 614 | input[type="password"], |
| 615 | textarea { |
| 616 | -webkit-appearance: none; |
| 617 | -moz-appearance: none; |
| 618 | appearance: none; |
| 619 | } |
| 620 | |
| 621 | textarea { |
| 622 | height: inherit; |
| 623 |
| --- skins/blitz/css.txt | |
| +++ skins/blitz/css.txt | |
| @@ -207,11 +207,10 @@ | |
| 207 | /** |
| 208 | * Address differences between Firefox and other browsers. |
| 209 | */ |
| 210 | |
| 211 | hr { |
| 212 | box-sizing: content-box; |
| 213 | height: 0; |
| 214 | } |
| 215 | |
| 216 | /** |
| @@ -286,38 +285,29 @@ | |
| 285 | * 3. Improve usability and consistency of cursor style between image-type |
| 286 | * `input` and others. |
| 287 | */ |
| 288 | |
| 289 | button, |
| 290 | input[type=button], /* 1 */ |
| 291 | input[type=reset], |
| 292 | input[type=submit], |
| 293 | input[type=button]{ |
| 294 | -webkit-appearance: button; /* 2 */ |
| 295 | cursor: pointer; /* 3 */ |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * Re-set default cursor for disabled elements. |
| 300 | */ |
| 301 | |
| 302 | button:disabled, |
| 303 | input[type=button]:disabled, |
| 304 | input[type=reset]:disabled, |
| 305 | input[type=submit]:disabled{ |
| 306 | cursor: default; |
| 307 | } |
| 308 | |
| 309 | /** |
| 310 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in |
| 311 | * the UA stylesheet. |
| 312 | */ |
| 313 | |
| @@ -348,20 +338,11 @@ | |
| 338 | input[type="number"]::-webkit-inner-spin-button, |
| 339 | input[type="number"]::-webkit-outer-spin-button { |
| 340 | height: auto; |
| 341 | } |
| 342 | |
| 343 | input[type="search"] { |
| 344 | box-sizing: content-box; |
| 345 | } |
| 346 | |
| 347 | /** |
| 348 | * Remove inner padding and search cancel button in Safari and Chrome on OS X. |
| @@ -517,19 +498,17 @@ | |
| 498 | |
| 499 | /* Buttons |
| 500 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 501 | .button, |
| 502 | button, |
| 503 | input[type=button], |
| 504 | input[type=reset], |
| 505 | input[type=submit]{ |
| 506 | display: inline-block; |
| 507 | height: 3.3rem; |
| 508 | padding: 0 2.2rem; |
| 509 | color: #555; |
| 510 | text-align: center; |
| 511 | font-size: 1.1rem; |
| 512 | font-weight: 700; |
| 513 | line-height: 3.3rem; |
| 514 | letter-spacing: .08rem; |
| @@ -543,48 +522,40 @@ | |
| 522 | box-sizing: border-box; |
| 523 | } |
| 524 | |
| 525 | .button:hover, |
| 526 | button:hover, |
| 527 | input[type=button]:hover, |
| 528 | input[type=reset]:hover, |
| 529 | input[type=submit]:hover, |
| 530 | .button:hover, |
| 531 | button:focus, |
| 532 | input[type=button]:focus, |
| 533 | input[type=reset]:focus, |
| 534 | input[type=submit]:focus{ |
| 535 | outline: 0; |
| 536 | color: white; |
| 537 | background-color: #648898; |
| 538 | border-color: #648898; |
| 539 | } |
| 540 | |
| 541 | .button:disabled, |
| 542 | button:disabled, |
| 543 | input[type=button]:disabled, |
| 544 | input[type=reset]:disabled, |
| 545 | input[type=submit]:disabled{ |
| 546 | color: rgb(128,128,128); |
| 547 | background-color: rgb(227,227,227); |
| 548 | } |
| 549 | |
| 550 | .button:disabled:hover, |
| 551 | button:disabled:hover, |
| 552 | input[type=button]:disabled:hover, |
| 553 | input[type=reset]:disabled:hover, |
| 554 | input[type=submit]:disabled:hover{ |
| 555 | |
| 556 | } |
| 557 | |
| 558 | /* Forms |
| 559 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 560 | input[type="email"], |
| 561 | input[type="number"], |
| @@ -611,12 +582,10 @@ | |
| 582 | input[type="text"], |
| 583 | input[type="tel"], |
| 584 | input[type="url"], |
| 585 | input[type="password"], |
| 586 | textarea { |
| 587 | appearance: none; |
| 588 | } |
| 589 | |
| 590 | textarea { |
| 591 | height: inherit; |
| 592 |