|
21 | 21 |
|
22 | 22 | <!-- tabs --> |
23 | 23 | <div class="border-b border-gray-200 border-gray-700"> |
24 | | - <nav class="-mb-0.5 flex justify-center space-x-6" aria-label="Tabs" role="tablist"> |
| 24 | + <nav class="-mb-0.5 flex justify-center space-x-4 md:space-x-6 flex-wrap md:flex-nowrap" aria-label="Tabs" role="tablist"> |
25 | 25 |
|
26 | 26 | {% for excerpt in excerpts %} |
27 | 27 | {% if loop.index == 1 %}{% set active = "active" %} |
28 | 28 | {% else %}{% set active = "" %} |
29 | 29 | {% endif %} |
30 | 30 |
|
31 | 31 | <button type="button" |
32 | | - class="hs-tab-active:font-semibold hs-tab-active:border-yellow-600 hs-tab-active:text-yellow-600 py-4 px-1 inline-flex items-center gap-2 border-b-[3px] border-transparent text-sm whitespace-nowrap text-gray-300 hover:text-yellow-600 {{ active }}" |
| 32 | + class="hs-tab-active:font-semibold hs-tab-active:border-yellow-600 hs-tab-active:text-yellow-600 py-1 md:py-4 px-1 inline-flex items-center gap-2 border-b-[3px] border-transparent text-sm whitespace-nowrap text-gray-300 hover:text-yellow-600 {{ active }}" |
33 | 33 | id="horizontal-alignment-item-{{ excerpt.id }}" data-hs-tab="#horizontal-alignment-{{ excerpt.id }}" |
34 | 34 | aria-controls="horizontal-alignment-{{ excerpt.id }}" role="tab"> |
35 | 35 | {{ excerpt.name }} |
|
49 | 49 |
|
50 | 50 | <div id="horizontal-alignment-{{ excerpt.id }}" class="{{ hidden }}" role="tabpanel" |
51 | 51 | aria-labelledby="horizontal-alignment-item-{{ excerpt.id }}"> |
52 | | - <div class="grid grid-cols-3 gap-4"> |
53 | | - <div class="col-span-2"> |
| 52 | + <div class="grid grid-cols-1 md:grid-cols-3 md:gap-4"> |
| 53 | + <div class="md:col-span-2"> |
54 | 54 | {{ excerpt.code | markdown(inline=true) | safe }} |
55 | 55 | </div> |
56 | | - <div class="pr-2"> |
| 56 | + <div class="px-4 py-2 md:pr-2"> |
57 | 57 | <p class="font-thin text-gray-300"> |
58 | 58 | {{ excerpt.desc | markdown(inline=true) | safe }} |
59 | 59 | </p> |
|
69 | 69 | </div> |
70 | 70 | </div> <!-- center justification wrapper --> |
71 | 71 |
|
72 | | - <div class="max-w-[70rem] grid grid-cols-2 gap-4"> |
| 72 | + <div class="max-w-[70rem] grid grid-cols-1 md:grid-cols-2 md:gap-4"> |
73 | 73 | <div> |
74 | 74 | |
75 | 75 | </div> |
76 | 76 | <div> |
77 | 77 | <h2> |
78 | 78 | {{ section.extra.summary.content | markdown(inline=true) | safe }} |
79 | | - <a href="/learn"> |
| 79 | + <a href="/learn" class="block mt-1 md:inline md:mt-0"> |
80 | 80 | <button type="button" |
81 | 81 | class="py-2 px-3 inline-flex justify-center items-center gap-2 rounded-md border border-transparent font-semibold bg-yellow-500 text-slate-700 hover:bg-yellow-600 focus:outline-none focus:ring-2 focus:ring-yellow-500 focus:ring-offset-2 transition-all text-sm dark:focus:ring-offset-gray-800"> |
82 | 82 | {{ section.extra.summary.link_text }} » |
|
0 commit comments