|
735 | 735 | @mixin _fullscreen-dialog-size($query: feature-targeting.all()) { |
736 | 736 | $feat-structure: feature-targeting.create-target($query, structure); |
737 | 737 | .mdc-dialog__surface { |
| 738 | + @include feature-targeting.targets($feat-structure) { |
| 739 | + // Reset the max-width so the default dialog sizing doesn't interfere with |
| 740 | + // the full-screen dialog sizing. |
| 741 | + max-width: none; |
| 742 | + } |
| 743 | + |
738 | 744 | // Medium screens |
739 | | - @media (max-width: 960px) and (max-height: 1440px) { |
| 745 | + @media (max-width: 960px) { |
740 | 746 | @include feature-targeting.targets($feat-structure) { |
741 | 747 | max-height: 560px; |
742 | | - max-width: 560px; |
| 748 | + width: 560px; |
743 | 749 | @include _modal-header( |
744 | 750 | $close-icon-padding: variables.$close-icon-padding |
745 | 751 | ); |
746 | 752 | } |
747 | 753 | } |
748 | 754 |
|
749 | 755 | // Small screens |
750 | | - @media (max-width: 720px) and (max-height: 1023px) { |
| 756 | + @media (max-width: 720px) { |
751 | 757 | @include feature-targeting.targets($feat-structure) { |
752 | 758 | $max-small-height: 560px; |
753 | 759 | $max-small-width: 560px; |
|
773 | 779 | height: 100%; |
774 | 780 | max-height: 100vh; |
775 | 781 | max-width: 100vw; |
776 | | - width: 100%; |
| 782 | + width: 100vw; |
777 | 783 | @include _fullscreen-header( |
778 | 784 | $close-icon-padding: variables.$close-icon-padding, |
779 | 785 | $title-side-padding: variables.$title-side-padding |
|
782 | 788 | @include shape-mixins.radius(0, $query: $query); |
783 | 789 | } |
784 | 790 |
|
785 | | - // X-Small Screens (vertical) |
786 | | - @media (max-width: 600px) and (max-height: 960px) { |
| 791 | + // X-Small Screens |
| 792 | + @media (max-width: 600px) { |
787 | 793 | @include feature-targeting.targets($feat-structure) { |
788 | 794 | // Use 100% instead of vw/vh so the url bar is taken into account on |
789 | 795 | // mobile. |
|
800 | 806 | } |
801 | 807 |
|
802 | 808 | // Large to X-Large screens |
803 | | - @media (min-width: 960px) and (min-height: 1440px) { |
| 809 | + @media (min-width: 960px) { |
804 | 810 | @include feature-targeting.targets($feat-structure) { |
805 | 811 | $min-horizontal-margin: 200px; |
806 | | - max-width: calc(100vw - #{$min-horizontal-margin * 2}); |
| 812 | + width: calc(100vw - #{$min-horizontal-margin * 2}); |
807 | 813 | @include _modal-header( |
808 | 814 | $close-icon-padding: variables.$close-icon-padding |
809 | 815 | ); |
|
828 | 834 | $max-width-breakpoint: $max-width + ($horizontal-margin * 2); |
829 | 835 |
|
830 | 836 | @media (max-width: $max-width-breakpoint) { |
831 | | - max-width: $max-width-calc-expr; |
| 837 | + width: $max-width-calc-expr; |
832 | 838 | } |
833 | 839 | @media (min-width: $max-width-breakpoint) { |
834 | | - max-width: $max-width; |
| 840 | + width: $max-width; |
835 | 841 | } |
836 | 842 |
|
837 | 843 | $max-height-calc-expr: calc(100vh - #{$vertical-margin * 2}); |
|
0 commit comments