Clarify "text-align" CSS helpers, fix clone button padding (#25763)
Changes: * Rename gt-tl/gt-tc/gt-tr to gt-text-left/gt-text-center/gt-text-right * The gt-ab and gt-br-0 are removed because they are not needed anymore * Fix the clone dropdown button padding by ":not(.icon)" Before: <details>  </details> After: <details>  </details> Fixes #25758 Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
62f3c0fe76
commit
cc00fd50f3
11 changed files with 17 additions and 17 deletions
|
@ -1,5 +1,5 @@
|
|||
{{if .CanWriteProjects}}
|
||||
<div class="gt-tr">
|
||||
<div class="gt-text-right">
|
||||
<a class="ui small green button" href="{{$.Link}}/new">{{.locale.Tr "repo.projects.new"}}</a>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
SSH
|
||||
</button>
|
||||
{{end}}
|
||||
<input id="repo-clone-url" size="20" class="js-clone-url gt-br-0" value="{{$.CloneButtonOriginLink.HTTPS}}" readonly>
|
||||
<input id="repo-clone-url" size="20" class="js-clone-url" value="{{$.CloneButtonOriginLink.HTTPS}}" readonly>
|
||||
<button class="ui basic small compact icon button" id="clipboard-btn" data-tooltip-content="{{.locale.Tr "copy_url"}}" data-clipboard-target="#repo-clone-url" aria-label="{{.locale.Tr "copy_url"}}">
|
||||
{{svg "octicon-copy" 14}}
|
||||
</button>
|
||||
|
|
|
@ -189,7 +189,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{{if .Commit.Signature}}
|
||||
<div class="ui bottom attached message gt-tl gt-df gt-ac gt-sb commit-header-row gt-fw {{$class}}">
|
||||
<div class="ui bottom attached message gt-text-left gt-df gt-ac gt-sb commit-header-row gt-fw {{$class}}">
|
||||
<div class="gt-df gt-ac">
|
||||
{{if .Verification.Verified}}
|
||||
{{if ne .Verification.SigningUser.ID 0}}
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
<div class="header">
|
||||
{{$.locale.Tr "repo.already_forked" .Name}}
|
||||
</div>
|
||||
<div class="content gt-tl">
|
||||
<div class="content gt-text-left">
|
||||
<div class="ui list">
|
||||
{{range $.UserAndOrgForks}}
|
||||
<div class="ui item gt-py-3">
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
{{svg (printf "gitea-%s" .Name) 184}}
|
||||
{{end}}
|
||||
<div class="content">
|
||||
<div class="header gt-tc">
|
||||
<div class="header gt-text-center">
|
||||
{{.Title}}
|
||||
</div>
|
||||
<div class="description gt-tc">
|
||||
<div class="description gt-text-center">
|
||||
{{(printf "repo.migrate.%s.description" .Name) | $.locale.Tr}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{if .EscapeStatus}}
|
||||
{{if .EscapeStatus.HasInvisible}}
|
||||
<div class="ui error message unicode-escape-prompt gt-tl">
|
||||
<div class="ui error message unicode-escape-prompt gt-text-left">
|
||||
<button class="close icon hide-panel button" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</button>
|
||||
<div class="header">
|
||||
{{$.root.locale.Tr "repo.invisible_runes_header"}}
|
||||
|
@ -11,7 +11,7 @@
|
|||
{{end}}
|
||||
</div>
|
||||
{{else if .EscapeStatus.HasAmbiguous}}
|
||||
<div class="ui warning message unicode-escape-prompt gt-tl">
|
||||
<div class="ui warning message unicode-escape-prompt gt-text-left">
|
||||
<button class="close icon hide-panel button" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</button>
|
||||
<div class="header">
|
||||
{{$.root.locale.Tr "repo.ambiguous_runes_header"}}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<div id="captcha" data-captcha-type="m-captcha" class="m-captcha" data-sitekey="{{.McaptchaSitekey}}" data-instance-url="{{.McaptchaURL}}"></div>
|
||||
</div>
|
||||
{{else if eq .CaptchaType "cfturnstile"}}
|
||||
<div class="inline field captcha-field gt-tc">
|
||||
<div class="inline field captcha-field gt-text-center">
|
||||
<div id="captcha" data-captcha-type="cf-turnstile" data-sitekey="{{.CfTurnstileSitekey}}"></div>
|
||||
</div>
|
||||
{{end}}{{end}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue