Skip to content

Commit ee9e83b

Browse files
authored
Remove incorrect CSS helper classes (#26712)
1 parent 636b6ea commit ee9e83b

File tree

5 files changed

+21
-29
lines changed

5 files changed

+21
-29
lines changed

templates/repo/diff/conversation.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{{template "repo/diff/comments" dict "root" $ "comments" .comments}}
3838
</ui>
3939
</div>
40-
<div class="gt-df gt-je gt-js-small gt-ac gt-fw gt-mt-3">
40+
<div class="gt-df gt-je gt-ac gt-fw gt-mt-3">
4141
<div class="ui buttons gt-mr-2">
4242
<button class="ui icon tiny basic button previous-conversation">
4343
{{svg "octicon-arrow-up" 12 "icon"}} {{$.locale.Tr "repo.issues.previous"}}

templates/user/auth/captcha.tmpl

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
<div id="captcha" data-captcha-type="h-captcha" class="h-captcha-style" data-sitekey="{{.HcaptchaSitekey}}"></div>
1717
</div>
1818
{{else if eq .CaptchaType "mcaptcha"}}
19-
<div class="inline field gt-df gt-ac gt-db-small captcha-field">
20-
<span>{{.locale.Tr "captcha"}}</span>
21-
<div class="gt-border-secondary gt-w-100-small" id="mcaptcha__widget-container" style="width: 50%; height: 5em"></div>
22-
<div id="captcha" data-captcha-type="m-captcha" class="m-captcha" data-sitekey="{{.McaptchaSitekey}}" data-instance-url="{{.McaptchaURL}}"></div>
19+
<div class="inline field">
20+
<label></label>
21+
<div class="m-captcha-style" id="mcaptcha__widget-container"></div>
22+
<div id="captcha" data-captcha-type="m-captcha" data-sitekey="{{.McaptchaSitekey}}" data-instance-url="{{.McaptchaURL}}"></div>
2323
</div>
2424
{{else if eq .CaptchaType "cfturnstile"}}
25-
<div class="inline field captcha-field gt-text-center">
25+
<div class="inline field gt-text-center">
2626
<div id="captcha" data-captcha-type="cf-turnstile" data-sitekey="{{.CfTurnstileSitekey}}"></div>
2727
</div>
2828
{{end}}{{end}}

web_src/css/form.css

+13-13
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ textarea:focus,
179179
#create-page-form form .header {
180180
padding-left: 280px !important;
181181
}
182-
#create-page-form form .inline.field > label,
183-
#create-page-form form .inline.field.captcha-field > span {
182+
#create-page-form form .inline.field > label {
184183
text-align: right;
185184
width: 250px !important;
186185
word-wrap: break-word;
@@ -206,6 +205,13 @@ textarea:focus,
206205
}
207206
}
208207

208+
.m-captcha-style {
209+
width: 100%;
210+
height: 5em;
211+
vertical-align: middle;
212+
display: inline-block;
213+
}
214+
209215
@media (min-width: 768px) {
210216
.g-recaptcha-style,
211217
.h-captcha-style {
@@ -219,6 +225,9 @@ textarea:focus,
219225
width: 302px !important;
220226
height: 76px !important;
221227
}
228+
.m-captcha-style {
229+
width: 50%;
230+
}
222231
}
223232

224233
@media (max-height: 575px) {
@@ -271,13 +280,7 @@ textarea:focus,
271280
.user.reset.password form .inline.field > label,
272281
.user.link-account form .inline.field > label,
273282
.user.signin form .inline.field > label,
274-
.user.signup form .inline.field > label,
275-
.user.activate form .inline.field.captcha-field > span,
276-
.user.forgot.password form .inline.field.captcha-field > span,
277-
.user.reset.password form .inline.field.captcha-field > span,
278-
.user.link-account form .inline.field.captcha-field > span,
279-
.user.signin form .inline.field.captcha-field > span,
280-
.user.signup form .inline.field.captcha-field > span {
283+
.user.signup form .inline.field > label {
281284
text-align: right;
282285
width: 250px !important;
283286
word-wrap: break-word;
@@ -421,10 +424,7 @@ textarea:focus,
421424
}
422425
.repository.new.repo form .inline.field > label,
423426
.repository.new.migrate form .inline.field > label,
424-
.repository.new.fork form .inline.field > label,
425-
.repository.new.repo form .inline.field.captcha-field > span,
426-
.repository.new.migrate form .inline.field.captcha-field > span,
427-
.repository.new.fork form .inline.field.captcha-field > span {
427+
.repository.new.fork form .inline.field > label {
428428
text-align: right;
429429
width: 250px !important;
430430
word-wrap: break-word;

web_src/css/helpers.css

-6
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,6 @@ Gitea's private styles use `g-` prefix.
273273
.gt-font-17 { font-size: 17px !important }
274274
.gt-font-18 { font-size: 18px !important }
275275

276-
@media (max-width: 767.98px) {
277-
.gt-db-small { display: block !important; }
278-
.gt-w-100-small { width: 100% !important; }
279-
.gt-js-small { justify-content: flex-start !important; }
280-
}
281-
282276
/*
283277
gt-hidden must be placed after all other "display: xxx !important" classes to win the chance
284278
do not use:

web_src/css/org.css

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#create-page-form form .header {
1414
padding-left: 280px !important;
1515
}
16-
#create-page-form form .inline.field > label,
17-
#create-page-form form .inline.field.captcha-field > span {
16+
#create-page-form form .inline.field > label {
1817
text-align: right;
1918
width: 250px !important;
2019
word-wrap: break-word;
@@ -59,8 +58,7 @@
5958
.organization.new.org form .header {
6059
padding-left: 280px !important;
6160
}
62-
.organization.new.org form .inline.field > label,
63-
.organization.new.org form .inline.field.captcha-field > span {
61+
.organization.new.org form .inline.field > label {
6462
text-align: right;
6563
width: 250px !important;
6664
word-wrap: break-word;

0 commit comments

Comments
 (0)