From 413095627fdcd6190d2bf014f7949e29efa48a31 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Thu, 17 Oct 2024 16:39:40 +1100 Subject: [PATCH] Update style --- locale/en/LC_MESSAGES/django.po | 6 ---- locale/zh_Hans/LC_MESSAGES/django.mo | Bin 3312 -> 3919 bytes locale/zh_Hans/LC_MESSAGES/django.po | 6 ++-- new_theme/static/css/dist/styles.css | 50 +++++++-------------------- 4 files changed, 14 insertions(+), 48 deletions(-) diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po index 53425a1..31ea26d 100644 --- a/locale/en/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -1669,12 +1669,6 @@ msgstr "" msgid "New Link" msgstr "" -#: links/templates/links/link_form.html:33 -msgid "" -"Link type is used for redirecting to an external URL. Use this when you want " -"to create a short alias for a long URL." -msgstr "" - #: links/templates/links/link_form.html:38 msgid "" "Custom type allows you to create a link with custom HTML content. Use this " diff --git a/locale/zh_Hans/LC_MESSAGES/django.mo b/locale/zh_Hans/LC_MESSAGES/django.mo index 054eee95b26f3419e271291e934bf4941bbe8979..8fb704ac2bcd922f259479dfdeb9458c4cfaca81 100644 GIT binary patch delta 1804 zcmaKsU2GIp6o7AODHISWN-bbvq$&k%ts2`HB#{WQiCc^f_|%tmcW5_mXUoo%wF$|# z)Y@&NShBPw&}c|X(?DozN^o0#8ejCqgeQFwc#xgxZX*69YJ4#2cXn@U6BBQ8_PgiI z`MYQC?9W^7Y>(gHR5YYmFCkAL*9w$+1NsX2VYL=1wF-vd26zmvgx#$HsaU)GJ_YY-`wHHR_?2ju!MGSIwV@Wu==VWM)Cfo6VXgn7 zpZ}rt)dY**1}J&Tv|b6fpzqQ41CSon+mK0M>7D!=2G?dZ)s=0~_A^KJ*d8(o0sfQAGU_JAf&6^k`L6dfPS35+s zeq6H$R^m4Z>)|yhBmM#IgQXvi%c^;`i=r8xxJTC8FmfTEPOg1;V zoT7i^)0Co*Av+MRLGHe6gU=$e z4JGduZHvF&VLOpF!|7}{4SzTsiP=VHq{DC`Mj&eX9gIdeWW8s^LQbm@$U8S2ZuA*} zh~=1;Q)3*lO~Yvo*+#6@v~s~QzvW1VV90I{`#VX|X4RRcvr`=UH#dMv*evAU(;L==lJ|y=CVWc81qL>r@GRq%L|`gbrVLy}=BqMMUAu*zah%{=f zi0q=E@~Wa;6bO3PMM2#}c@;!VW^|F5co%(t+hd3Kc|Yeo?|I*I-t(UKQ^W6Y>RYWZ z<0#!kJu&HV?ttoEPLwvEbEO!?wb+Ax+>dQ|2;1=juEB>Gz$aLPFDyTcy8j(k;Fn@P z<-Sv?CXp{D+zP7WU(~?Wj7HT3u^j7A`4-%aG1UG2<_Wug&e{o#bNvcxLO)P1`v?17 ziU%?6N)idw0Hde@$FLS}q6T_|>+mhA|9h;$uc-bxcKtCP6O{kwfnFS2e29MTK)~H-;DXeoI|Z_&f3eE zQlfKR~V60(Rm`1?xXZ zrIj6{2Pe&|s0mG=mM~*ZnbXMR-AB}YbEy6~^B3v`mh8HhPP$%$>K`(jD_Q?-Bzj2n z;&Iecj^kc@jeLPZq58jQ!xdHt8N<~Pt%N44Qc|R_(NxuH=*{*0wU<uNgDYo-3pUqzzbHzsP#{K-`DVM)JnH$e!m#R*C F{sGiocuoKS diff --git a/locale/zh_Hans/LC_MESSAGES/django.po b/locale/zh_Hans/LC_MESSAGES/django.po index 8c11308..9bed1be 100644 --- a/locale/zh_Hans/LC_MESSAGES/django.po +++ b/locale/zh_Hans/LC_MESSAGES/django.po @@ -1568,10 +1568,8 @@ msgstr "" #: links/models.py:10 links/templates/links/link_detail.html:13 #: links/templates/links/link_form.html:22 -#, fuzzy -#| msgid "GoLinks" msgid "Link" -msgstr "GoLinks" +msgstr "URL链接" #: links/models.py:11 links/templates/links/link_detail.html:17 #: links/templates/links/link_form.html:25 @@ -1702,7 +1700,7 @@ msgstr "链接类型用于重定向到外部URL。当您想为长URL创建一个 msgid "" "Custom type allows you to create a link with custom HTML content. Use this " "when you want to display a message or custom content instead of redirecting." -msgstr "" +msgstr "自定义类型允许您创建带有自定义 HTML 内容的链接。当您想要显示消息或自定义内容而不是重定向时,请使用此选项。" #: links/templates/links/link_form.html:77 #, fuzzy diff --git a/new_theme/static/css/dist/styles.css b/new_theme/static/css/dist/styles.css index c54a089..0cef1d7 100644 --- a/new_theme/static/css/dist/styles.css +++ b/new_theme/static/css/dist/styles.css @@ -774,22 +774,6 @@ video { height: 100vh; } -.w-1\/12 { - width: 8.333333%; -} - -.w-1\/3 { - width: 33.333333%; -} - -.w-1\/6 { - width: 16.666667%; -} - -.w-10 { - width: 2.5rem; -} - .w-4 { width: 1rem; } @@ -901,12 +885,6 @@ video { row-gap: 2rem; } -.space-x-2 > :not([hidden]) ~ :not([hidden]) { - --tw-space-x-reverse: 0; - margin-right: calc(0.5rem * var(--tw-space-x-reverse)); - margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); -} - .space-x-3 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 0; margin-right: calc(0.75rem * var(--tw-space-x-reverse)); @@ -925,6 +903,12 @@ video { margin-bottom: calc(0.25rem * var(--tw-space-y-reverse)); } +.space-y-2 > :not([hidden]) ~ :not([hidden]) { + --tw-space-y-reverse: 0; + margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); +} + .space-y-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); @@ -937,12 +921,6 @@ video { margin-bottom: calc(1.5rem * var(--tw-space-y-reverse)); } -.space-y-2 > :not([hidden]) ~ :not([hidden]) { - --tw-space-y-reverse: 0; - margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); - margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); -} - .divide-y > :not([hidden]) ~ :not([hidden]) { --tw-divide-y-reverse: 0; border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse))); @@ -1613,18 +1591,18 @@ video { align-items: center; } - .sm\:space-y-0 > :not([hidden]) ~ :not([hidden]) { - --tw-space-y-reverse: 0; - margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse))); - margin-bottom: calc(0px * var(--tw-space-y-reverse)); - } - .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 0; margin-right: calc(0.5rem * var(--tw-space-x-reverse)); margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); } + .sm\:space-y-0 > :not([hidden]) ~ :not([hidden]) { + --tw-space-y-reverse: 0; + margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0px * var(--tw-space-y-reverse)); + } + .sm\:p-6 { padding: 1.5rem; } @@ -1661,10 +1639,6 @@ video { } @media (min-width: 1024px) { - .lg\:table-cell { - display: table-cell; - } - .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }