|
1 | 1 | /* Document-style homepage body. Measured prose, hairline sections. */ |
2 | 2 | .doc { |
3 | 3 | max-width: 720px; |
| 4 | + /* Without the rail there is nothing to align to, so the column centres. */ |
| 5 | + margin-inline: auto; |
4 | 6 | padding: 4rem 1.5rem 6rem; |
| 7 | + overflow-x: clip; |
5 | 8 | } |
6 | 9 | @media (min-width: 640px) { |
7 | 10 | .doc { |
|
12 | 15 | /* Fill the content column; the frame around rail + content is centred. */ |
13 | 16 | .doc { |
14 | 17 | max-width: none; |
| 18 | + margin-inline: 0; |
15 | 19 | padding-inline: 0; |
16 | 20 | } |
17 | 21 | .doc__intro, |
@@ -613,16 +617,20 @@ a.doc__term-v:hover { |
613 | 617 | 0 12px 32px -12px rgba(13, 13, 16, 0.18); |
614 | 618 | opacity: 0; |
615 | 619 | pointer-events: none; |
| 620 | + visibility: hidden; |
616 | 621 | transform: translateY(-4px); |
617 | 622 | transition: |
618 | 623 | opacity 0.15s ease, |
619 | | - transform 0.15s ease; |
| 624 | + transform 0.15s ease, |
| 625 | + visibility 0s linear 0.15s; |
620 | 626 | } |
621 | 627 | .doc__pop:hover .doc__pop-panel, |
622 | 628 | .doc__pop:focus-within .doc__pop-panel { |
623 | 629 | opacity: 1; |
624 | 630 | pointer-events: auto; |
| 631 | + visibility: visible; |
625 | 632 | transform: translateY(0); |
| 633 | + transition-delay: 0s; |
626 | 634 | } |
627 | 635 | .doc__pop-tile, |
628 | 636 | .doc__pop-pill { |
@@ -818,3 +826,126 @@ a.doc__term-v:hover { |
818 | 826 | .doc__list--open li:last-child { |
819 | 827 | border-bottom: 0; |
820 | 828 | } |
| 829 | + |
| 830 | +/* ── Phones ── */ |
| 831 | +@media (max-width: 719.98px) { |
| 832 | + .doc { |
| 833 | + padding: 2.25rem 1.25rem 4rem; |
| 834 | + } |
| 835 | + .doc__title { |
| 836 | + font-size: 1.75rem; |
| 837 | + } |
| 838 | + .doc__steps { |
| 839 | + font-size: 16px; |
| 840 | + } |
| 841 | + .doc__steps li { |
| 842 | + grid-template-columns: 1.75rem 1fr; |
| 843 | + } |
| 844 | + .doc__subhead { |
| 845 | + font-size: 16px; |
| 846 | + } |
| 847 | + /* Hover reveals become tap reveals. The word can sit anywhere on the line, |
| 848 | + so the panel is not anchored to it; it is fixed across the viewport width |
| 849 | + just under the top bar. */ |
| 850 | + .doc__pop { |
| 851 | + position: static; |
| 852 | + } |
| 853 | + .doc__pop-panel { |
| 854 | + position: fixed; |
| 855 | + left: 1rem; |
| 856 | + right: 1rem; |
| 857 | + top: 64px; |
| 858 | + width: auto; |
| 859 | + max-width: none; |
| 860 | + } |
| 861 | + .doc__tabs { |
| 862 | + display: flex; |
| 863 | + width: 100%; |
| 864 | + } |
| 865 | + .doc__tabs button { |
| 866 | + flex: 1; |
| 867 | + padding: 0.45rem 0.4rem; |
| 868 | + font-size: 13px; |
| 869 | + white-space: nowrap; |
| 870 | + } |
| 871 | + .doc__tabpanes p { |
| 872 | + min-height: 0; |
| 873 | + } |
| 874 | + .doc__actions { |
| 875 | + flex-direction: column; |
| 876 | + align-items: stretch; |
| 877 | + } |
| 878 | + .doc__actions > .btn-primary, |
| 879 | + .doc__actions > .btn-secondary, |
| 880 | + .doc__actions > .doc__cmd, |
| 881 | + .doc__actions > .doc__dl { |
| 882 | + width: 100%; |
| 883 | + justify-content: center; |
| 884 | + text-align: center; |
| 885 | + } |
| 886 | + .doc__dl { |
| 887 | + display: flex; |
| 888 | + flex-direction: column; |
| 889 | + align-items: stretch; |
| 890 | + } |
| 891 | + .doc__dl > a { |
| 892 | + width: 100%; |
| 893 | + justify-content: center; |
| 894 | + } |
| 895 | + .doc__dl-other { |
| 896 | + align-self: center; |
| 897 | + } |
| 898 | + .doc__dl .download-other-list { |
| 899 | + left: 50%; |
| 900 | + transform: translateX(-50%); |
| 901 | + } |
| 902 | + .doc__section { |
| 903 | + margin-top: 2.5rem; |
| 904 | + padding-top: 1.75rem; |
| 905 | + } |
| 906 | + .doc__h { |
| 907 | + font-size: 20px; |
| 908 | + } |
| 909 | + .doc__ways { |
| 910 | + grid-template-columns: 1fr; |
| 911 | + } |
| 912 | + .doc__way-a .btn-primary, |
| 913 | + .doc__way-a .btn-secondary { |
| 914 | + width: 100%; |
| 915 | + justify-content: center; |
| 916 | + text-align: center; |
| 917 | + } |
| 918 | + .doc__way-a .doc__dl { |
| 919 | + width: 100%; |
| 920 | + } |
| 921 | + .doc__fig--hero .surface-card { |
| 922 | + padding: 1rem; |
| 923 | + } |
| 924 | +} |
| 925 | + |
| 926 | +/* Below the rail breakpoint the intro is centred, not left-ragged. */ |
| 927 | +@media (max-width: 1023.98px) { |
| 928 | + .doc__intro { |
| 929 | + text-align: center; |
| 930 | + } |
| 931 | + .doc__steps { |
| 932 | + justify-content: center; |
| 933 | + } |
| 934 | + .doc__steps li { |
| 935 | + display: flex; |
| 936 | + justify-content: center; |
| 937 | + gap: 0.6rem; |
| 938 | + } |
| 939 | + .doc__tabs { |
| 940 | + margin-inline: auto; |
| 941 | + } |
| 942 | + .doc__tabpanes p { |
| 943 | + margin-inline: auto; |
| 944 | + } |
| 945 | + .doc__actions { |
| 946 | + justify-content: center; |
| 947 | + } |
| 948 | + .doc__pop-panel { |
| 949 | + text-align: left; |
| 950 | + } |
| 951 | +} |
0 commit comments