[fix] margins

main
yaemiku 2022-08-18 02:08:29 +02:00
parent bb69be5fcb
commit 22e1eb3c0c
Signed by: podlaskizbs
GPG Key ID: ADC039636B3E4AAB
7 changed files with 21 additions and 28 deletions

View File

@ -8,13 +8,16 @@
class="prose w-full max-w-screen-md bg-white rounded-md shadow-md p-4"
>
{% if focus.show_title %}
<h1 class="font-medium text-center">{{ focus.title }}</h1>
<h1 class="font-medium text-center mb-2">{{ focus.title }}</h1>
{% endif %}
<div class="flex flex-wrap gap-4 items-center justify-center">
{% buttons focus.buttons %}
</div>
<figure class="flex flex-col">
<a href="{{ focus.link }}" target="_blank" class="mx-auto"
<figure class="flex flex-col mt-2">
<a
href="{{ focus.buttons | firstbutton }}"
target="_blank"
class="mx-auto"
><img
src="{{ focus.photo.url }}"
alt=""

View File

@ -9,12 +9,12 @@
class="prose w-full max-w-screen-md bg-white rounded-md shadow-md p-4"
>
{% if tournament.show_title %}
<h2 class="font-medium text-center">{{ tournament.title }}</h2>
<h2 class="font-medium text-center mb-2">{{ tournament.title }}</h2>
{% endif %}
<div class="flex flex-wrap gap-4 items-center justify-center">
{% buttons tournament.buttons %}
</div>
<figure class="flex flex-col">
<figure class="flex flex-col mt-2">
<a
href="{{ tournament.buttons | firstbutton }}"
target="_blank"

View File

@ -8,7 +8,7 @@
class="prose w-full max-w-screen-md bg-white rounded-md shadow-md p-4"
>
{% if focus.show_title %}
<h1 class="font-medium text-center">{{ focus.title }}</h1>
<h1 class="font-medium text-center mb-2">{{ focus.title }}</h1>
{% endif %}
<div class="flex flex-wrap gap-4 items-center justify-center">
{% buttons focus.buttons %}

View File

@ -9,7 +9,7 @@
class="prose w-full max-w-screen-md bg-white rounded-md shadow-md p-4"
>
{% if article.show_title %}
<h1 class="font-medium text-center">{{ article.title }}</h1>
<h1 class="font-medium text-center mb-2">{{ article.title }}</h1>
{% endif %}
<div class="flex flex-wrap gap-4 items-center justify-center">
{% buttons article.buttons %}

View File

@ -48,7 +48,7 @@ class Tournament(OrderableModel):
@property
def link(self):
href = reverse_lazy('youth-reverse', args=[self.id])
href = reverse_lazy('tournaments-reverse', args=[self.id])
return mark_safe(f'<a href="{href}" target="_blank">{href}</a>')
class Meta(OrderableModel.Meta):

View File

@ -1304,8 +1304,12 @@ select {
margin-bottom: auto;
}
.mt-4 {
margin-top: 1rem;
.mt-0 {
margin-top: 0px;
}
.mt-2 {
margin-top: 0.5rem;
}
.block {
@ -1532,11 +1536,6 @@ select {
padding-bottom: 0.5rem;
}
.px-12 {
padding-left: 3rem;
padding-right: 3rem;
}
.pb-1 {
padding-bottom: 0.25rem;
}
@ -1800,8 +1799,8 @@ h4 {
margin-bottom: 0.3em;
}
.prose-img\:m-1 :is(:where(img):not(:where([class~="not-prose"] *))) {
margin: 0.25rem;
.prose-figure\:mt-0 :is(:where(figure):not(:where([class~="not-prose"] *))) {
margin-top: 0px;
}
.prose-img\:my-1 :is(:where(img):not(:where([class~="not-prose"] *))) {

View File

@ -1304,8 +1304,8 @@ select {
margin-bottom: auto;
}
.mt-4 {
margin-top: 1rem;
.mt-2 {
margin-top: 0.5rem;
}
.block {
@ -1532,11 +1532,6 @@ select {
padding-bottom: 0.5rem;
}
.px-12 {
padding-left: 3rem;
padding-right: 3rem;
}
.pb-1 {
padding-bottom: 0.25rem;
}
@ -1800,10 +1795,6 @@ h4 {
margin-bottom: 0.3em;
}
.prose-img\:m-1 :is(:where(img):not(:where([class~="not-prose"] *))) {
margin: 0.25rem;
}
.prose-img\:my-1 :is(:where(img):not(:where([class~="not-prose"] *))) {
margin-top: 0.25rem;
margin-bottom: 0.25rem;