diff options
author | silverwind <me@silverwind.io> | 2024-03-23 21:11:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 20:11:15 +0000 |
commit | 0bef9a2775af0e27a0754207fc87537b96c2792e (patch) | |
tree | 2bacee1ea836e1c662e89c3a533c59498e01efe7 /templates | |
parent | fabe01478ab449cc4870b7e2a9a1db3911bb14bd (diff) | |
download | gitea-0bef9a2775af0e27a0754207fc87537b96c2792e.tar.gz gitea-0bef9a2775af0e27a0754207fc87537b96c2792e.zip |
Replace all simple inline styles with tailwind (#30032)
These should be all simple inline styles that were left in the
templates.
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/notice.tmpl | 2 | ||||
-rw-r--r-- | templates/devtest/flex-list.tmpl | 2 | ||||
-rw-r--r-- | templates/devtest/tmplerr.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/diff/box.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content/reference_issue_dialog.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/settings/deploy_keys.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/settings/options.tmpl | 4 | ||||
-rw-r--r-- | templates/user/auth/webauthn.tmpl | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index c788ebc602..5ea003e5ec 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -20,7 +20,7 @@ <td><div class="ui checkbox tw-flex" data-id="{{.ID}}"><input type="checkbox"></div></td> <td>{{.ID}}</td> <td>{{ctx.Locale.Tr .TrStr}}</td> - <td class="view-detail auto-ellipsis" style="width: 80%;"><span class="notice-description">{{.Description}}</span></td> + <td class="view-detail auto-ellipsis tw-w-4/5"><span class="notice-description">{{.Description}}</span></td> <td nowrap>{{DateTime "short" .CreatedUnix}}</td> <td class="view-detail"><a href="#">{{svg "octicon-note" 16}}</a></td> </tr> diff --git a/templates/devtest/flex-list.tmpl b/templates/devtest/flex-list.tmpl index 0c7b27cd84..fdb9eb6b39 100644 --- a/templates/devtest/flex-list.tmpl +++ b/templates/devtest/flex-list.tmpl @@ -73,7 +73,7 @@ </div> <div class="flex-item-trailing"> <a class="muted" href="{{$.Link}}"> - <span class="flex-text-inline"><i class="color-icon gt-mr-3" style="background-color: aqua"></i>Go</span> + <span class="flex-text-inline"><i class="color-icon gt-mr-3 tw-bg-blue"></i>Go</span> </a> <a class="text grey flex-text-inline" href="{{$.Link}}">{{svg "octicon-star" 16}}45000</a> <a class="text grey flex-text-inline" href="{{$.Link}}">{{svg "octicon-git-branch" 16}}1234</a> diff --git a/templates/devtest/tmplerr.tmpl b/templates/devtest/tmplerr.tmpl index 09cf05fc1f..dd938c895e 100644 --- a/templates/devtest/tmplerr.tmpl +++ b/templates/devtest/tmplerr.tmpl @@ -1,10 +1,10 @@ {{template "base/head" .}} <div class="page-content devtest"> <div class="tw-flex"> - <div style="width: 80%; "> + <div class="tw-w-4/5"> hello hello hello hello hello hello hello hello hello hello </div> - <div style="width: 20%;"> + <div class="tw-w-1/5"> {{template "devtest/tmplerr-sub" .}} </div> </div> diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 4ea1d2c621..0761e3f7bd 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -178,7 +178,7 @@ <div class="diff-file-body ui attached unstackable table segment" {{if and $file.IsViewed $.IsShowingAllCommits}}data-folded="true"{{end}}> <div id="diff-source-{{$file.NameHash}}" class="file-body file-code unicode-escaped code-diff{{if $.IsSplitStyle}} code-diff-split{{else}} code-diff-unified{{end}}{{if $showFileViewToggle}} gt-hidden{{end}}"> {{if or $file.IsIncomplete $file.IsBin}} - <div class="diff-file-body binary" style="padding: 5px 10px;"> + <div class="diff-file-body binary"> {{if $file.IsIncomplete}} {{if $file.IsIncompleteLineTooLong}} {{ctx.Locale.Tr "repo.diff.file_suppressed_line_too_long"}} diff --git a/templates/repo/issue/view_content/reference_issue_dialog.tmpl b/templates/repo/issue/view_content/reference_issue_dialog.tmpl index b771e08909..5f338f6768 100644 --- a/templates/repo/issue/view_content/reference_issue_dialog.tmpl +++ b/templates/repo/issue/view_content/reference_issue_dialog.tmpl @@ -2,7 +2,7 @@ <div class="header"> {{ctx.Locale.Tr "repo.issues.context.reference_issue"}} </div> - <div class="content" style="text-align:left"> + <div class="content tw-text-left"> <form class="ui form form-fetch-action" action="{{printf "%s/issues/new" .Repository.Link}}" method="post"> {{.CsrfTokenHtml}} <div class="ui segment content"> diff --git a/templates/repo/settings/deploy_keys.tmpl b/templates/repo/settings/deploy_keys.tmpl index a79a196825..f66b94c332 100644 --- a/templates/repo/settings/deploy_keys.tmpl +++ b/templates/repo/settings/deploy_keys.tmpl @@ -31,7 +31,7 @@ <label for="is_writable"> {{ctx.Locale.Tr "repo.settings.is_writable"}} </label> - <small style="padding-left: 26px;">{{ctx.Locale.Tr "repo.settings.is_writable_info"}}</small> + <small class="tw-pl-[26px]">{{ctx.Locale.Tr "repo.settings.is_writable_info"}}</small> </div> </div> <button class="ui primary button"> diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 6fa7184265..1e32853d81 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -110,7 +110,7 @@ <table class="ui table"> <thead> <tr> - <th style="width:40%">{{ctx.Locale.Tr "repo.settings.mirror_settings.mirrored_repository"}}</th> + <th class="tw-w-2/5">{{ctx.Locale.Tr "repo.settings.mirror_settings.mirrored_repository"}}</th> <th>{{ctx.Locale.Tr "repo.settings.mirror_settings.direction"}}</th> <th>{{ctx.Locale.Tr "repo.settings.mirror_settings.last_update"}}</th> <th></th> @@ -207,7 +207,7 @@ <table class="ui table"> <thead> <tr> - <th style="width:40%">{{ctx.Locale.Tr "repo.settings.mirror_settings.pushed_repository"}}</th> + <th class="tw-w-2/5">{{ctx.Locale.Tr "repo.settings.mirror_settings.pushed_repository"}}</th> <th>{{ctx.Locale.Tr "repo.settings.mirror_settings.direction"}}</th> <th>{{ctx.Locale.Tr "repo.settings.mirror_settings.last_update"}}</th> <th></th> diff --git a/templates/user/auth/webauthn.tmpl b/templates/user/auth/webauthn.tmpl index 7c543cb16d..867248718d 100644 --- a/templates/user/auth/webauthn.tmpl +++ b/templates/user/auth/webauthn.tmpl @@ -11,7 +11,7 @@ <p>{{ctx.Locale.Tr "webauthn_sign_in"}}</p> </div> <div class="ui attached segment tw-flex tw-items-center tw-justify-center gt-gap-2 gt-py-3"> - <div class="is-loading" style="width: 40px; height: 40px"></div> + <div class="is-loading tw-w-[40px] tw-h-[40px]"></div> {{ctx.Locale.Tr "webauthn_press_button"}} </div> {{if .HasTwoFactor}} |