|
487 | 487 | /** |
488 | 488 | * We're going to lay out this element's children |
489 | 489 | * just like in the "Centered prompt" example. |
490 | | - * First we'll rotate the main axis so that the |
| 490 | + * First we'll rotate the main axis so that the |
491 | 491 | * children are laid out vertically. |
492 | 492 | */ |
493 | 493 | -webkit-flex-direction: column; |
|
512 | 512 | -ms-flex-pack: center; |
513 | 513 | justify-content: center; |
514 | 514 |
|
515 | | - padding: 15px; |
| 515 | + padding: 15px 0; |
516 | 516 | } |
517 | 517 |
|
518 | 518 | .card__descriptionIcon { |
|
524 | 524 | color: #57727C; |
525 | 525 | font-size: 12px; |
526 | 526 | text-align: center; |
| 527 | + max-width: calc(100% - 30px); |
527 | 528 | } |
528 | 529 |
|
529 | 530 | .card__price { |
|
539 | 540 | .card--fixedWidth { |
540 | 541 | max-width: 120px; |
541 | 542 | } |
| 543 | + |
542 | 544 | /*===================================================== |
543 | 545 | contents of: index.css |
544 | 546 | =====================================================*/ |
|
566 | 568 | * properties. These properties control how the |
567 | 569 | * element resizes to fill its container. |
568 | 570 | * |
569 | | - * We'll also set flex-grow to 1 so that it |
570 | | - * will expand to fill its container. (The |
| 571 | + * We'll set flex-grow to 1 so that it will |
| 572 | + * expand to fill its container. (The default |
571 | 573 | * default value is 0.) |
572 | 574 | * |
573 | | - * We'll set flex-shrink to 1 so that the element |
574 | | - * will shrink as its container gets smaller. |
575 | | - * (The default value is 1.) |
| 575 | + * We'll also set flex-shrink to 1 so that the |
| 576 | + * element will shrink as its container gets |
| 577 | + * smaller. (The default value is 1.) |
576 | 578 | * |
577 | 579 | * Last, we set flex-basis to 0 so that its |
578 | 580 | * size is solely determined by the size of |
|
585 | 587 | * shrink with its container and siblings, but |
586 | 588 | * they will all have the same size, even if they |
587 | 589 | * have different amounts of content. |
| 590 | + * |
| 591 | + * NOTE: IE11 ignores flex short-hand declarations |
| 592 | + * with unitless flex-basis values. So we have to |
| 593 | + * use 0% instead of 0 as a workaround. You can |
| 594 | + * find more info at: |
| 595 | + * github.com/philipwalton/flexbugs. |
588 | 596 | */ |
589 | | - -webkit-flex: 1 1 0; |
590 | | - -ms-flex: 1 1 0; |
591 | | - flex: 1 1 0; |
| 597 | + -webkit-flex: 1 1 0%; |
| 598 | + -ms-flex: 1 1 0%; |
| 599 | + flex: 1 1 0%; |
592 | 600 |
|
593 | 601 | border: none; |
594 | 602 | border-radius: 0; |
|
0 commit comments