💄 Clean up article link styles

pull/231/head
James Panther 2022-06-27 10:16:36 +10:00
parent 5ebc70ab3a
commit aa102e67de
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 31 additions and 37 deletions

View File

@ -1932,14 +1932,14 @@ body button {
max-width: 65ch; max-width: 65ch;
} }
.max-w-\[10rem\] {
max-width: 10rem;
}
.max-w-3xl { .max-w-3xl {
max-width: 48rem; max-width: 48rem;
} }
.max-w-\[10rem\] {
max-width: 10rem;
}
.flex-none { .flex-none {
flex: none; flex: none;
} }
@ -2181,11 +2181,6 @@ body button {
padding-bottom: 2.5rem; padding-bottom: 2.5rem;
} }
.py-6 {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
.py-2 { .py-2 {
padding-top: 0.5rem; padding-top: 0.5rem;
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
@ -2201,6 +2196,11 @@ body button {
padding-bottom: 0.75rem; padding-bottom: 0.75rem;
} }
.py-6 {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
.pt-8 { .pt-8 {
padding-top: 2rem; padding-top: 2rem;
} }
@ -2229,6 +2229,10 @@ body button {
text-align: right; text-align: right;
} }
.align-top {
vertical-align: top;
}
.align-text-bottom { .align-text-bottom {
vertical-align: text-bottom; vertical-align: text-bottom;
} }
@ -2526,10 +2530,6 @@ body button {
left: -1.5rem; left: -1.5rem;
} }
[dir="ltr"] .ltr\:ml-\[0\.1rem\] {
margin-left: 0.1rem;
}
[dir="ltr"] .ltr\:ml-2 { [dir="ltr"] .ltr\:ml-2 {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
@ -2590,10 +2590,6 @@ body button {
right: -1.5rem; right: -1.5rem;
} }
[dir="rtl"] .rtl\:mr-\[0\.1rem\] {
margin-right: 0.1rem;
}
[dir="rtl"] .rtl\:mr-2 { [dir="rtl"] .rtl\:mr-2 {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
@ -2839,10 +2835,6 @@ body button {
flex-direction: row; flex-direction: row;
} }
.sm\:items-center {
align-items: center;
}
.sm\:p-6 { .sm\:p-6 {
padding: 1.5rem; padding: 1.5rem;
} }

View File

@ -1,6 +1,7 @@
<article> <article>
<h3 class="mt-6 text-xl font-semibold"> <h3 class="flex items-center mt-6 text-xl font-semibold">
{{ with .Params.externalUrl }} {{ with .Params.externalUrl }}
<div>
<a <a
class="decoration-primary-500 hover:underline hover:underline-offset-2 text-neutral-800 dark:text-neutral" class="decoration-primary-500 hover:underline hover:underline-offset-2 text-neutral-800 dark:text-neutral"
href="{{ . }}" href="{{ . }}"
@ -9,12 +10,13 @@
>{{ $.Title | emojify }}</a >{{ $.Title | emojify }}</a
> >
<span <span
class="absolute mt-0 ltr:ml-[0.1rem] rtl:mr-[0.1rem] text-xs cursor-default text-neutral-400 dark:text-neutral-500" class="text-xs align-top cursor-default text-neutral-400 dark:text-neutral-500"
title="{{ i18n "list.externalurl_title" }}" title="{{ i18n "list.externalurl_title" }}"
> >
<span class="rtl:hidden">&#8599;</span> <span class="rtl:hidden">&#8599;</span>
<span class="ltr:hidden">&#8598;</span> <span class="ltr:hidden">&#8598;</span>
</span> </span>
</div>
{{ else }} {{ else }}
<a <a
class="decoration-primary-500 hover:underline hover:underline-offset-2 text-neutral-800 dark:text-neutral" class="decoration-primary-500 hover:underline hover:underline-offset-2 text-neutral-800 dark:text-neutral"
@ -23,7 +25,7 @@
> >
{{ end }} {{ end }}
{{ if and .Draft .Site.Params.article.showDraftLabel }} {{ if and .Draft .Site.Params.article.showDraftLabel }}
<div class="ltr:ml-2 rtl:mr-2"> <div class=" ltr:ml-2 rtl:mr-2">
{{ partial "badge.html" (i18n "article.draft" | emojify) }} {{ partial "badge.html" (i18n "article.draft" | emojify) }}
</div> </div>
{{ end }} {{ end }}