Skip to content

Commit f63e277

Browse files
committed
Fix Event detail page grid layout
Links and body text were being spread out vertically too much.
1 parent feff51c commit f63e277

File tree

2 files changed

+17
-32
lines changed

2 files changed

+17
-32
lines changed

website/static/css/main.css

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,11 @@ select {
16921692
margin-bottom: -0.5rem;
16931693
}
16941694

1695+
.mx-2 {
1696+
margin-left: 0.5rem;
1697+
margin-right: 0.5rem;
1698+
}
1699+
16951700
.mx-auto {
16961701
margin-left: auto;
16971702
margin-right: auto;
@@ -1707,16 +1712,6 @@ select {
17071712
margin-bottom: 3px;
17081713
}
17091714

1710-
.mx-4 {
1711-
margin-left: 1rem;
1712-
margin-right: 1rem;
1713-
}
1714-
1715-
.mx-2 {
1716-
margin-left: 0.5rem;
1717-
margin-right: 0.5rem;
1718-
}
1719-
17201715
.-ml-4 {
17211716
margin-left: -1rem;
17221717
}
@@ -2094,10 +2089,6 @@ select {
20942089
justify-content: space-between;
20952090
}
20962091

2097-
.justify-around {
2098-
justify-content: space-around;
2099-
}
2100-
21012092
.justify-evenly {
21022093
justify-content: space-evenly;
21032094
}
@@ -3226,13 +3217,12 @@ input#id_phone_number, label[for='id_phone_number'] {
32263217
grid-column: span 5 / span 5;
32273218
}
32283219

3229-
.md\:row-span-3 {
3230-
grid-row: span 3 / span 3;
3220+
.md\:row-span-4 {
3221+
grid-row: span 4 / span 4;
32313222
}
32323223

3233-
.md\:mx-2 {
3234-
margin-left: 0.5rem;
3235-
margin-right: 0.5rem;
3224+
.md\:row-span-5 {
3225+
grid-row: span 5 / span 5;
32363226
}
32373227

32383228
.md\:mx-0 {
@@ -3288,8 +3278,12 @@ input#id_phone_number, label[for='id_phone_number'] {
32883278
grid-template-columns: repeat(5, minmax(0, 1fr));
32893279
}
32903280

3291-
.md\:grid-rows-3 {
3292-
grid-template-rows: repeat(3, minmax(0, 1fr));
3281+
.md\:grid-rows-4 {
3282+
grid-template-rows: repeat(4, minmax(0, 1fr));
3283+
}
3284+
3285+
.md\:grid-rows-5 {
3286+
grid-template-rows: repeat(5, minmax(0, 1fr));
32933287
}
32943288

32953289
.md\:place-items-center {
@@ -3314,10 +3308,6 @@ input#id_phone_number, label[for='id_phone_number'] {
33143308
margin-left: calc(2.5rem * calc(1 - var(--tw-space-x-reverse)));
33153309
}
33163310

3317-
.md\:p-2 {
3318-
padding: 0.5rem;
3319-
}
3320-
33213311
.md\:px-6 {
33223312
padding-left: 1.5rem;
33233313
padding-right: 1.5rem;
@@ -3342,11 +3332,6 @@ input#id_phone_number, label[for='id_phone_number'] {
33423332
grid-column: span 1 / span 1;
33433333
}
33443334

3345-
.lg\:mx-2 {
3346-
margin-left: 0.5rem;
3347-
margin-right: 0.5rem;
3348-
}
3349-
33503335
.lg\:ml-0 {
33513336
margin-left: 0px;
33523337
}

website/templates/events/event_page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% block nav_classes %}border-b-2 border-gray-100{% endblock %}
55

66
{% block content %}
7-
<div class="px-4 md:px-6 lg:px-8 mx-auto grid grid-cols-1 md:grid-cols-5 md:grid-rows-3 grid-flow-row gap-4">
7+
<div class="px-4 md:px-6 lg:px-8 mx-auto grid grid-cols-1 md:grid-cols-5 md:grid-rows-5 grid-flow-row gap-4">
88

99
<div class="pt-4 lg:pt-6 md:col-span-4">
1010
<span class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">{{ event.name }}</span>
@@ -21,7 +21,7 @@
2121
</div>
2222
</div>
2323

24-
<div class="order-last md:order-none mx-auto md:ml-auto md:col-span-1 md:row-span-3">
24+
<div class="order-last md:order-none mx-auto md:ml-auto md:col-span-1 md:row-span-5">
2525
{% include 'events/_years.html' %}
2626
</div>
2727

0 commit comments

Comments
 (0)