Skip to content

Commit 0bef9a2

Browse files
silverwindGiteaBot
andauthored
Replace all simple inline styles with tailwind (go-gitea#30032)
These should be all simple inline styles that were left in the templates. Co-authored-by: Giteabot <[email protected]>
1 parent fabe014 commit 0bef9a2

File tree

9 files changed

+14
-10
lines changed

9 files changed

+14
-10
lines changed

templates/admin/notice.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<td><div class="ui checkbox tw-flex" data-id="{{.ID}}"><input type="checkbox"></div></td>
2121
<td>{{.ID}}</td>
2222
<td>{{ctx.Locale.Tr .TrStr}}</td>
23-
<td class="view-detail auto-ellipsis" style="width: 80%;"><span class="notice-description">{{.Description}}</span></td>
23+
<td class="view-detail auto-ellipsis tw-w-4/5"><span class="notice-description">{{.Description}}</span></td>
2424
<td nowrap>{{DateTime "short" .CreatedUnix}}</td>
2525
<td class="view-detail"><a href="#">{{svg "octicon-note" 16}}</a></td>
2626
</tr>

templates/devtest/flex-list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</div>
7474
<div class="flex-item-trailing">
7575
<a class="muted" href="{{$.Link}}">
76-
<span class="flex-text-inline"><i class="color-icon gt-mr-3" style="background-color: aqua"></i>Go</span>
76+
<span class="flex-text-inline"><i class="color-icon gt-mr-3 tw-bg-blue"></i>Go</span>
7777
</a>
7878
<a class="text grey flex-text-inline" href="{{$.Link}}">{{svg "octicon-star" 16}}45000</a>
7979
<a class="text grey flex-text-inline" href="{{$.Link}}">{{svg "octicon-git-branch" 16}}1234</a>

templates/devtest/tmplerr.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{{template "base/head" .}}
22
<div class="page-content devtest">
33
<div class="tw-flex">
4-
<div style="width: 80%; ">
4+
<div class="tw-w-4/5">
55
hello hello hello hello hello hello hello hello hello hello
66
</div>
7-
<div style="width: 20%;">
7+
<div class="tw-w-1/5">
88
{{template "devtest/tmplerr-sub" .}}
99
</div>
1010
</div>

templates/repo/diff/box.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
<div class="diff-file-body ui attached unstackable table segment" {{if and $file.IsViewed $.IsShowingAllCommits}}data-folded="true"{{end}}>
179179
<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}}">
180180
{{if or $file.IsIncomplete $file.IsBin}}
181-
<div class="diff-file-body binary" style="padding: 5px 10px;">
181+
<div class="diff-file-body binary">
182182
{{if $file.IsIncomplete}}
183183
{{if $file.IsIncompleteLineTooLong}}
184184
{{ctx.Locale.Tr "repo.diff.file_suppressed_line_too_long"}}

templates/repo/issue/view_content/reference_issue_dialog.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="header">
33
{{ctx.Locale.Tr "repo.issues.context.reference_issue"}}
44
</div>
5-
<div class="content" style="text-align:left">
5+
<div class="content tw-text-left">
66
<form class="ui form form-fetch-action" action="{{printf "%s/issues/new" .Repository.Link}}" method="post">
77
{{.CsrfTokenHtml}}
88
<div class="ui segment content">

templates/repo/settings/deploy_keys.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<label for="is_writable">
3232
{{ctx.Locale.Tr "repo.settings.is_writable"}}
3333
</label>
34-
<small style="padding-left: 26px;">{{ctx.Locale.Tr "repo.settings.is_writable_info"}}</small>
34+
<small class="tw-pl-[26px]">{{ctx.Locale.Tr "repo.settings.is_writable_info"}}</small>
3535
</div>
3636
</div>
3737
<button class="ui primary button">

templates/repo/settings/options.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
<table class="ui table">
111111
<thead>
112112
<tr>
113-
<th style="width:40%">{{ctx.Locale.Tr "repo.settings.mirror_settings.mirrored_repository"}}</th>
113+
<th class="tw-w-2/5">{{ctx.Locale.Tr "repo.settings.mirror_settings.mirrored_repository"}}</th>
114114
<th>{{ctx.Locale.Tr "repo.settings.mirror_settings.direction"}}</th>
115115
<th>{{ctx.Locale.Tr "repo.settings.mirror_settings.last_update"}}</th>
116116
<th></th>
@@ -207,7 +207,7 @@
207207
<table class="ui table">
208208
<thead>
209209
<tr>
210-
<th style="width:40%">{{ctx.Locale.Tr "repo.settings.mirror_settings.pushed_repository"}}</th>
210+
<th class="tw-w-2/5">{{ctx.Locale.Tr "repo.settings.mirror_settings.pushed_repository"}}</th>
211211
<th>{{ctx.Locale.Tr "repo.settings.mirror_settings.direction"}}</th>
212212
<th>{{ctx.Locale.Tr "repo.settings.mirror_settings.last_update"}}</th>
213213
<th></th>

templates/user/auth/webauthn.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<p>{{ctx.Locale.Tr "webauthn_sign_in"}}</p>
1212
</div>
1313
<div class="ui attached segment tw-flex tw-items-center tw-justify-center gt-gap-2 gt-py-3">
14-
<div class="is-loading" style="width: 40px; height: 40px"></div>
14+
<div class="is-loading tw-w-[40px] tw-h-[40px]"></div>
1515
{{ctx.Locale.Tr "webauthn_press_button"}}
1616
</div>
1717
{{if .HasTwoFactor}}

web_src/css/review.css

+4
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@
194194
margin: 0 0 0 3em;
195195
}
196196

197+
.diff-file-body.binary {
198+
padding: 5px 10px;
199+
}
200+
197201
.file-comment {
198202
color: var(--color-text);
199203
}

0 commit comments

Comments
 (0)