Skip to content

Commit c3e4159

Browse files
committed
use -gt notation to be consistent with tailwind
1 parent fdc398a commit c3e4159

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

templates/repo/diff/compare.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
</div>
106106
</div>
107107
</div>
108-
<a href="{{.RepoLink}}/compare/{{PathEscapeSegments .BaseBranch}}{{.OtherCompareSeparator}}{{if not $.PullRequestCtx.SameRepo}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{end}}{{PathEscapeSegments $.HeadBranch}}" title="{{ctx.Locale.Tr "repo.pulls.switch_comparison_type"}}">{{svg "octicon-arrow-left" 16}}<div class="gt-w-100 gt-text-center gt--mt-4">{{.CompareSeparator}}</div></a>
108+
<a href="{{.RepoLink}}/compare/{{PathEscapeSegments .BaseBranch}}{{.OtherCompareSeparator}}{{if not $.PullRequestCtx.SameRepo}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{end}}{{PathEscapeSegments $.HeadBranch}}" title="{{ctx.Locale.Tr "repo.pulls.switch_comparison_type"}}">{{svg "octicon-arrow-left" 16}}<div class="gt-w-100 gt-text-center -gt-mt-4">{{.CompareSeparator}}</div></a>
109109
<div class="ui floating filter dropdown">
110110
<div class="ui basic small button">
111111
<span class="text">{{if $.PageIsComparePull}}{{ctx.Locale.Tr "repo.pulls.compare_compare"}}{{else}}{{ctx.Locale.Tr "repo.compare.compare_head"}}{{end}}: {{$HeadCompareName}}:{{$.HeadBranch}}</span>

web_src/css/helpers.css

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ Gitea's private styles use `g-` prefix.
137137
.gt-m-4 { margin: 1rem !important; }
138138
.gt-m-5 { margin: 2rem !important; }
139139

140-
.gt--m-1 { margin: -.125rem !important; }
141-
.gt--m-2 { margin: -.25rem !important; }
142-
.gt--m-3 { margin: -.5rem !important; }
143-
.gt--m-4 { margin: -1rem !important; }
144-
.gt--m-5 { margin: -2rem !important; }
140+
.-gt-m-1 { margin: -.125rem !important; }
141+
.-gt-m-2 { margin: -.25rem !important; }
142+
.-gt-m-3 { margin: -.5rem !important; }
143+
.-gt-m-4 { margin: -1rem !important; }
144+
.-gt-m-5 { margin: -2rem !important; }
145145

146146
.gt-ml-0 { margin-left: 0 !important; }
147147
.gt-ml-1 { margin-left: .125rem !important; }
@@ -150,11 +150,11 @@ Gitea's private styles use `g-` prefix.
150150
.gt-ml-4 { margin-left: 1rem !important; }
151151
.gt-ml-5 { margin-left: 2rem !important; }
152152

153-
.gt--ml-1 { margin-left: -.125rem !important; }
154-
.gt--ml-2 { margin-left: -.25rem !important; }
155-
.gt--ml-3 { margin-left: -.5rem !important; }
156-
.gt--ml-4 { margin-left: -1rem !important; }
157-
.gt--ml-5 { margin-left: -2rem !important; }
153+
.-gt-ml-1 { margin-left: -.125rem !important; }
154+
.-gt-ml-2 { margin-left: -.25rem !important; }
155+
.-gt-ml-3 { margin-left: -.5rem !important; }
156+
.-gt-ml-4 { margin-left: -1rem !important; }
157+
.-gt-ml-5 { margin-left: -2rem !important; }
158158

159159
.gt-mr-0 { margin-right: 0 !important; }
160160
.gt-mr-1 { margin-right: .125rem !important; }
@@ -163,11 +163,11 @@ Gitea's private styles use `g-` prefix.
163163
.gt-mr-4 { margin-right: 1rem !important; }
164164
.gt-mr-5 { margin-right: 2rem !important; }
165165

166-
.gt--mr-1 { margin-right: -.125rem !important; }
167-
.gt--mr-2 { margin-right: -.25rem !important; }
168-
.gt--mr-3 { margin-right: -.5rem !important; }
169-
.gt--mr-4 { margin-right: -1rem !important; }
170-
.gt--mr-5 { margin-right: -2rem !important; }
166+
.-gt-mr-1 { margin-right: -.125rem !important; }
167+
.-gt-mr-2 { margin-right: -.25rem !important; }
168+
.-gt-mr-3 { margin-right: -.5rem !important; }
169+
.-gt-mr-4 { margin-right: -1rem !important; }
170+
.-gt-mr-5 { margin-right: -2rem !important; }
171171

172172
.gt-mt-0 { margin-top: 0 !important; }
173173
.gt-mt-1 { margin-top: .125rem !important; }
@@ -176,11 +176,11 @@ Gitea's private styles use `g-` prefix.
176176
.gt-mt-4 { margin-top: 1rem !important; }
177177
.gt-mt-5 { margin-top: 2rem !important; }
178178

179-
.gt--mt-1 { margin-top: -.125rem !important; }
180-
.gt--mt-2 { margin-top: -.25rem !important; }
181-
.gt--mt-3 { margin-top: -.5rem !important; }
182-
.gt--mt-4 { margin-top: -1rem !important; }
183-
.gt--mt-5 { margin-top: -2rem !important; }
179+
.-gt-mt-1 { margin-top: -.125rem !important; }
180+
.-gt-mt-2 { margin-top: -.25rem !important; }
181+
.-gt-mt-3 { margin-top: -.5rem !important; }
182+
.-gt-mt-4 { margin-top: -1rem !important; }
183+
.-gt-mt-5 { margin-top: -2rem !important; }
184184

185185
.gt-mb-0 { margin-bottom: 0 !important; }
186186
.gt-mb-1 { margin-bottom: .125rem !important; }
@@ -189,11 +189,11 @@ Gitea's private styles use `g-` prefix.
189189
.gt-mb-4 { margin-bottom: 1rem !important; }
190190
.gt-mb-5 { margin-bottom: 2rem !important; }
191191

192-
.gt--mb-1 { margin-bottom: -.125rem !important; }
193-
.gt--mb-2 { margin-bottom: -.25rem !important; }
194-
.gt--mb-3 { margin-bottom: -.5rem !important; }
195-
.gt--mb-4 { margin-bottom: -1rem !important; }
196-
.gt--mb-5 { margin-bottom: -2rem !important; }
192+
.-gt-mb-1 { margin-bottom: -.125rem !important; }
193+
.-gt-mb-2 { margin-bottom: -.25rem !important; }
194+
.-gt-mb-3 { margin-bottom: -.5rem !important; }
195+
.-gt-mb-4 { margin-bottom: -1rem !important; }
196+
.-gt-mb-5 { margin-bottom: -2rem !important; }
197197

198198
.gt-mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
199199
.gt-mx-1 { margin-left: .125rem !important; margin-right: .125rem !important; }
@@ -202,11 +202,11 @@ Gitea's private styles use `g-` prefix.
202202
.gt-mx-4 { margin-left: 1rem !important; margin-right: 1rem !important; }
203203
.gt-mx-5 { margin-left: 2rem !important; margin-right: 2rem !important; }
204204

205-
.gt--mx-1 { margin-left: -.125rem !important; margin-right: -.125rem !important; }
206-
.gt--mx-2 { margin-left: -.25rem !important; margin-right: -.25rem !important; }
207-
.gt--mx-3 { margin-left: -.5rem !important; margin-right: -.5rem !important; }
208-
.gt--mx-4 { margin-left: -1rem !important; margin-right: -1rem !important; }
209-
.gt--mx-5 { margin-left: -2rem !important; margin-right: -2rem !important; }
205+
.-gt-mx-1 { margin-left: -.125rem !important; margin-right: -.125rem !important; }
206+
.-gt-mx-2 { margin-left: -.25rem !important; margin-right: -.25rem !important; }
207+
.-gt-mx-3 { margin-left: -.5rem !important; margin-right: -.5rem !important; }
208+
.-gt-mx-4 { margin-left: -1rem !important; margin-right: -1rem !important; }
209+
.-gt-mx-5 { margin-left: -2rem !important; margin-right: -2rem !important; }
210210

211211
.gt-my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
212212
.gt-my-1 { margin-top: .125rem !important; margin-bottom: .125rem !important; }
@@ -215,11 +215,11 @@ Gitea's private styles use `g-` prefix.
215215
.gt-my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
216216
.gt-my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
217217

218-
.gt--my-1 { margin-top: -.125rem !important; margin-bottom: -.125rem !important; }
219-
.gt--my-2 { margin-top: -.25rem !important; margin-bottom: -.25rem !important; }
220-
.gt--my-3 { margin-top: -.5rem !important; margin-bottom: -.5rem !important; }
221-
.gt--my-4 { margin-top: -1rem !important; margin-bottom: -1rem !important; }
222-
.gt--my-5 { margin-top: -2rem !important; margin-bottom: -2rem !important; }
218+
.-gt-my-1 { margin-top: -.125rem !important; margin-bottom: -.125rem !important; }
219+
.-gt-my-2 { margin-top: -.25rem !important; margin-bottom: -.25rem !important; }
220+
.-gt-my-3 { margin-top: -.5rem !important; margin-bottom: -.5rem !important; }
221+
.-gt-my-4 { margin-top: -1rem !important; margin-bottom: -1rem !important; }
222+
.-gt-my-5 { margin-top: -2rem !important; margin-bottom: -2rem !important; }
223223

224224
.gt-m-auto { margin: auto !important; }
225225
.gt-mx-auto { margin-left: auto !important; margin-right: auto !important; }

0 commit comments

Comments
 (0)