Skip to content

Commit 9a19355

Browse files
gamecubateoubiwann
authored andcommitted
Smaller (768px and less) screen masthead adjustment
1 parent 654cf0f commit 9a19355

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

templates/home/masthead.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121

2222
<!-- tabs -->
2323
<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">
2525

2626
{% for excerpt in excerpts %}
2727
{% if loop.index == 1 %}{% set active = "active" %}
2828
{% else %}{% set active = "" %}
2929
{% endif %}
3030

3131
<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 }}"
3333
id="horizontal-alignment-item-{{ excerpt.id }}" data-hs-tab="#horizontal-alignment-{{ excerpt.id }}"
3434
aria-controls="horizontal-alignment-{{ excerpt.id }}" role="tab">
3535
{{ excerpt.name }}
@@ -49,11 +49,11 @@
4949

5050
<div id="horizontal-alignment-{{ excerpt.id }}" class="{{ hidden }}" role="tabpanel"
5151
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">
5454
{{ excerpt.code | markdown(inline=true) | safe }}
5555
</div>
56-
<div class="pr-2">
56+
<div class="px-4 py-2 md:pr-2">
5757
<p class="font-thin text-gray-300">
5858
{{ excerpt.desc | markdown(inline=true) | safe }}
5959
</p>
@@ -69,14 +69,14 @@
6969
</div>
7070
</div> <!-- center justification wrapper -->
7171

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">
7373
<div>
7474
&nbsp;
7575
</div>
7676
<div>
7777
<h2>
7878
{{ 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">
8080
<button type="button"
8181
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">
8282
{{ section.extra.summary.link_text }} &raquo;

0 commit comments

Comments
 (0)