use tailwind

This commit is contained in:
Tim-Niclas Oelschläger 2024-03-04 22:48:16 +01:00 committed by Lunny Xiao
parent fa199e7e59
commit 2994945eb4
3 changed files with 2 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<div class="flex-text-inline">
{{ctx.Locale.Tr .TitleKey}}
{{range $i, $dependency := .Dependencies}}
{{if gt $i 0}}<span class="gt-ml--2">, </span>{{end}}
{{if gt $i 0}}<span class="-tw-ml-1">, </span>{{end}}
{{template "shared/issue_link" $dependency.Issue}}
{{end}}
</div>

View File

@ -1 +1 @@
<a href="{{.Link}}" class="{{if .IsClosed}}gt-line-through {{end}}gt-ml-2 ref-issue">#{{.Index}}</a>
<a href="{{.Link}}" class="{{if .IsClosed}}tw-line-through {{end}}gt-ml-2 ref-issue">#{{.Index}}</a>

View File

@ -49,7 +49,6 @@ Gitea's private styles use `g-` prefix.
/* below class names match Tailwind CSS */
.gt-object-contain { object-fit: contain !important; }
.gt-no-underline { text-decoration-line: none !important; }
.gt-line-through { text-decoration-line: line-through !important; }
.gt-normal-case { text-transform: none !important; }
.gt-italic { font-style: italic !important; }
@ -103,7 +102,6 @@ Gitea's private styles use `g-` prefix.
.gt-m-4 { margin: 1rem !important; }
.gt-m-5 { margin: 2rem !important; }
.gt-ml--2 { margin-left: -.25rem !important; }
.gt-ml-0 { margin-left: 0 !important; }
.gt-ml-1 { margin-left: .125rem !important; }
.gt-ml-2 { margin-left: .25rem !important; }