File tree 19 files changed +27
-48
lines changed 19 files changed +27
-48
lines changed Original file line number Diff line number Diff line change 103
103
<td><span>{{ctx.Locale.Tr "admin.users.never_login"}}</span></td>
104
104
{{end}}
105
105
<td>
106
- <div class="tw-flex gt -gap-3 ">
106
+ <div class="tw-flex tw -gap-2 ">
107
107
<a href="{{$.Link}}/{{.ID}}" data-tooltip-content="{{ctx.Locale.Tr "admin.users.details"}}">{{svg "octicon-person"}}</a>
108
108
<a href="{{$.Link}}/{{.ID}}/edit" data-tooltip-content="{{ctx.Locale.Tr "edit"}}">{{svg "octicon-pencil"}}</a>
109
109
</div>
Original file line number Diff line number Diff line change 7
7
{{if .Org.Visibility.IsLimited}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}</span>{{end}}
8
8
{{if .Org.Visibility.IsPrivate}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}</span>{{end}}
9
9
</span>
10
- <span class="tw-flex tw-items-center gt -gap-2 tw-ml-auto tw-text-16 tw-whitespace-nowrap">
10
+ <span class="tw-flex tw-items-center tw -gap-1 tw-ml-auto tw-text-16 tw-whitespace-nowrap">
11
11
{{if .EnableFeed}}
12
12
<a class="ui basic label button gt-mr-0" href="{{.Org.HomeLink}}.rss" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}">
13
13
{{svg "octicon-rss" 24}}
Original file line number Diff line number Diff line change 9
9
{{template "org/team/navbar" .}}
10
10
{{if .IsOrganizationOwner}}
11
11
<div class="ui attached segment">
12
- <form class="ui form ignore-dirty tw-flex tw-flex-wrap gt -gap-3 " action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/add" method="post">
12
+ <form class="ui form ignore-dirty tw-flex tw-flex-wrap tw -gap-2 " action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/add" method="post">
13
13
{{.CsrfTokenHtml}}
14
14
<input type="hidden" name="uid" value="{{.SignedUser.ID}}">
15
15
<div id="search-user-box" class="ui search gt-mr-3"{{if .IsEmailInviteEnabled}} data-allow-email="true" data-allow-email-description="{{ctx.Locale.Tr "org.teams.invite_team_member" $.Team.Name}}"{{end}}>
Original file line number Diff line number Diff line change 9
9
{{template "org/team/navbar" .}}
10
10
{{$canAddRemove := and $.IsOrganizationOwner (not $.Team.IncludesAllRepositories)}}
11
11
{{if $canAddRemove}}
12
- <div class="ui attached segment tw-flex tw-flex-wrap gt -gap-3 ">
12
+ <div class="ui attached segment tw-flex tw-flex-wrap tw -gap-2 ">
13
13
<form class="ui form ignore-dirty tw-flex-1 tw-flex" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/add" method="post">
14
14
{{.CsrfTokenHtml}}
15
15
<div id="search-repo-box" data-uid="{{.Org.ID}}" class="ui search">
Original file line number Diff line number Diff line change 1
1
{{$showFileTree := (and (not .DiffNotAvailable) (gt .Diff.NumFiles 1))}}
2
2
<div>
3
3
<div class="diff-detail-box diff-box">
4
- <div class="tw-flex tw-items-center tw-flex-wrap gt -gap-3 gt-ml-1">
4
+ <div class="tw-flex tw-items-center tw-flex-wrap tw -gap-2 gt-ml-1">
5
5
{{if $showFileTree}}
6
6
<button class="diff-toggle-file-tree-button not-mobile btn interact-fg" data-show-text="{{ctx.Locale.Tr "repo.diff.show_file_tree"}}" data-hide-text="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}">
7
7
{{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}}
111
111
{{$isReviewFile := and $.IsSigned $.PageIsPullFiles (not $.IsArchived) $.IsShowingAllCommits}}
112
112
<div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}} gt-mt-0" id="diff-{{$file.NameHash}}" data-old-filename="{{$file.OldName}}" data-new-filename="{{$file.Name}}" {{if or ($file.ShouldBeHidden) (not $isExpandable)}}data-folded="true"{{end}}>
113
113
<h4 class="diff-file-header sticky-2nd-row ui top attached header tw-font-normal tw-flex tw-items-center tw-justify-between tw-flex-wrap">
114
- <div class="diff-file-name tw-flex tw-items-center gt -gap-2 tw-flex-wrap">
114
+ <div class="diff-file-name tw-flex tw-items-center tw -gap-1 tw-flex-wrap">
115
115
<button class="fold-file btn interact-bg gt-p-2{{if not $isExpandable}} tw-invisible{{end}}">
116
116
{{if $file.ShouldBeHidden}}
117
117
{{svg "octicon-chevron-right" 18}}
144
144
<span class="gt-ml-4 gt-mono">{{ctx.Locale.Tr ($file.ModeTranslationKey $file.Mode)}}</span>
145
145
{{end}}
146
146
</div>
147
- <div class="diff-file-header-actions tw-flex tw-items-center gt -gap-2 tw-flex-wrap">
147
+ <div class="diff-file-header-actions tw-flex tw-items-center tw -gap-1 tw-flex-wrap">
148
148
{{if $showFileViewToggle}}
149
149
<div class="ui compact icon buttons">
150
150
<button class="ui tiny basic button file-view-toggle" data-toggle-selector="#diff-source-{{$file.NameHash}}" data-tooltip-content="{{ctx.Locale.Tr "repo.file_view_source"}}">{{svg "octicon-code"}}</button>
Original file line number Diff line number Diff line change 9
9
<div class="conversation-holder" data-path="{{$comment.TreePath}}" data-side="{{if lt $comment.Line 0}}left{{else}}right{{end}}" data-idx="{{$comment.UnsignedLine}}">
10
10
{{if $resolved}}
11
11
<div class="ui attached header resolved-placeholder tw-flex tw-items-center tw-justify-between">
12
- <div class="ui grey text tw-flex tw-items-center tw-flex-wrap gt -gap-2 ">
12
+ <div class="ui grey text tw-flex tw-items-center tw-flex-wrap tw -gap-1 ">
13
13
{{svg "octicon-check" 16 "icon gt-mr-2"}}
14
14
<b>{{$resolveDoer.Name}}</b> {{ctx.Locale.Tr "repo.issues.review.resolved_by"}}
15
15
{{if $invalid}}
22
22
</a>
23
23
{{end}}
24
24
</div>
25
- <div class="tw-flex tw-items-center gt -gap-3 ">
25
+ <div class="tw-flex tw-items-center tw -gap-2 ">
26
26
<button id="show-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="ui tiny labeled button show-outdated tw-flex tw-items-center">
27
27
{{svg "octicon-unfold" 16 "gt-mr-3"}}
28
28
{{ctx.Locale.Tr "repo.issues.review.show_resolved"}}
Original file line number Diff line number Diff line change 27
27
</div>
28
28
{{end}}
29
29
</div>
30
- <div class="tw-flex tw-items-center tw-flex-wrap gt -gap-2 " id="repo-topics">
30
+ <div class="tw-flex tw-items-center tw-flex-wrap tw -gap-1 " id="repo-topics">
31
31
{{range .Topics}}<a class="ui repo-topic large label topic gt-m-0" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
32
32
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<button id="manage_topic" class="btn interact-fg tw-text-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>{{end}}
33
33
</div>
61
61
{{end}}
62
62
{{template "repo/sub_menu" .}}
63
63
<div class="repo-button-row">
64
- <div class="tw-flex tw-items-center tw-flex-wrap gt -gap-y-3 ">
64
+ <div class="tw-flex tw-items-center tw-flex-wrap tw -gap-y-2 ">
65
65
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
66
66
{{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
67
67
{{$cmpBranch := ""}}
Original file line number Diff line number Diff line change 26
26
{{.Milestone.RenderedContent}}
27
27
</div>
28
28
{{end}}
29
- <div class="tw-flex tw-flex-col gt -gap-3 ">
29
+ <div class="tw-flex tw-flex-col tw -gap-2 ">
30
30
<progress class="milestone-progress-big" value="{{.Milestone.Completeness}}" max="100"></progress>
31
- <div class="tw-flex gt -gap-4">
31
+ <div class="tw-flex tw -gap-4">
32
32
<div classs="tw-flex tw-items-center">
33
33
{{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix ctx.Locale}}
34
34
{{if .IsClosed}}
Original file line number Diff line number Diff line change 58
58
<span class="text">{{svg "octicon-people" 20 "gt-mr-3"}}{{$.Issue.Repo.OwnerName}}/{{.Team.Name}}</span>
59
59
{{end}}
60
60
</div>
61
- <div class="tw-flex tw-items-center gt -gap-3 ">
61
+ <div class="tw-flex tw-items-center tw -gap-2 ">
62
62
{{if (and $.Permission.IsAdmin (or (eq .Review.Type 1) (eq .Review.Type 3)) (not $.Issue.IsClosed))}}
63
63
<a href="#" class="ui muted icon tw-flex tw-items-center show-modal" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dismiss_review"}}" data-modal="#dismiss-review-modal-{{.Review.ID}}">
64
64
{{svg "octicon-x" 20}}
106
106
{{.OriginalAuthor}}
107
107
</a>
108
108
</div>
109
- <div class="tw-flex tw-items-center gt -gap-3 ">
109
+ <div class="tw-flex tw-items-center tw -gap-2 ">
110
110
{{svg (printf "octicon-%s" .Type.Icon) 16 (printf "text %s" (.HTMLTypeColorName))}}
111
111
</div>
112
112
</div>
310
310
<div class="ui mini modal issue-start-time-modal">
311
311
<div class="header">{{ctx.Locale.Tr "repo.issues.add_time"}}</div>
312
312
<div class="content">
313
- <form method="post" id="add_time_manual_form" action="{{.Issue.Link}}/times/add" class="ui input fluid gt -gap-3 ">
313
+ <form method="post" id="add_time_manual_form" action="{{.Issue.Link}}/times/add" class="ui input fluid tw -gap-2 ">
314
314
{{$.CsrfTokenHtml}}
315
315
<input placeholder='{{ctx.Locale.Tr "repo.issues.add_time_hours"}}' type="number" name="hours">
316
316
<input placeholder='{{ctx.Locale.Tr "repo.issues.add_time_minutes"}}' type="number" name="minutes" class="ui compact">
Original file line number Diff line number Diff line change 15
15
{{ctx.Locale.Tr "repo.pulls.tab_files"}}
16
16
<span class="ui small label">{{if .NumFiles}}{{.NumFiles}}{{else}}-{{end}}</span>
17
17
</a>
18
- <span class="item tw-ml-auto gt-pr-0 tw-font-bold tw-flex tw-items-center gt -gap-3 ">
18
+ <span class="item tw-ml-auto gt-pr-0 tw-font-bold tw-flex tw-items-center tw -gap-2 ">
19
19
<span><span class="text green">{{if .Diff.TotalAddition}}+{{.Diff.TotalAddition}}{{end}}</span> <span class="text red">{{if .Diff.TotalDeletion}}-{{.Diff.TotalDeletion}}{{end}}</span></span>
20
20
<span class="diff-stats-bar">
21
21
<div class="diff-stats-add-bar" style="width: {{Eval 100 "*" .Diff.TotalAddition "/" "(" .Diff.TotalAddition "+" .Diff.TotalDeletion "+" 0.0 ")"}}%"></div>
Original file line number Diff line number Diff line change 55
55
</div>
56
56
<div id="oauth2-login-navigator" class="gt-py-2">
57
57
<div class="tw-flex tw-flex-col tw-justify-center">
58
- <div id="oauth2-login-navigator-inner" class="tw-flex tw-flex-col tw-flex-wrap tw-items-center gt -gap-3 ">
58
+ <div id="oauth2-login-navigator-inner" class="tw-flex tw-flex-col tw-flex-wrap tw-items-center tw -gap-2 ">
59
59
{{range $provider := .OAuth2Providers}}
60
60
<a class="{{$provider.Name}} ui button tw-flex tw-items-center tw-justify-center gt-py-3 tw-w-full oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$provider.DisplayName}}">
61
61
{{$provider.IconHTML 28}}
Original file line number Diff line number Diff line change 60
60
</div>
61
61
<div id="oauth2-login-navigator" class="gt-py-2">
62
62
<div class="tw-flex tw-flex-col tw-justify-center">
63
- <div id="oauth2-login-navigator-inner" class="tw-flex tw-flex-col tw-flex-wrap tw-items-center gt -gap-3 ">
63
+ <div id="oauth2-login-navigator-inner" class="tw-flex tw-flex-col tw-flex-wrap tw-items-center tw -gap-2 ">
64
64
{{range $provider := .OAuth2Providers}}
65
65
<a class="{{$provider.Name}} ui button tw-flex tw-items-center tw-justify-center gt-py-3 tw-w-full oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$provider.DisplayName}}">
66
66
{{$provider.IconHTML 28}}
Original file line number Diff line number Diff line change 10
10
{{template "base/alert" .}}
11
11
<p>{{ctx.Locale.Tr "webauthn_sign_in"}}</p>
12
12
</div>
13
- <div class="ui attached segment tw-flex tw-items-center tw-justify-center gt -gap-2 gt-py-3">
13
+ <div class="ui attached segment tw-flex tw-items-center tw-justify-center tw -gap-1 gt-py-3">
14
14
<div class="is-loading tw-w-[40px] tw-h-[40px]"></div>
15
15
{{ctx.Locale.Tr "webauthn_press_button"}}
16
16
</div>
Original file line number Diff line number Diff line change 4
4
<div class="flex-item-leading">
5
5
{{ctx.AvatarUtils.AvatarByAction .}}
6
6
</div>
7
- <div class="flex-item-main gt -gap-3 ">
7
+ <div class="flex-item-main tw -gap-2 ">
8
8
<div>
9
9
{{if gt .ActUser.ID 0}}
10
10
<a href="{{AppSubUrl}}/{{(.GetActUserName ctx) | PathEscape}}" title="{{.GetActDisplayNameTitle ctx}}">{{.GetActDisplayName ctx}}</a>
84
84
{{$push := ActionContent2Commits .}}
85
85
{{$repoLink := (.GetRepoLink ctx)}}
86
86
{{$repo := .Repo}}
87
- <div class="tw-flex tw-flex-col gt -gap-2 ">
87
+ <div class="tw-flex tw-flex-col tw -gap-1 ">
88
88
{{range $push.Commits}}
89
89
{{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}}
90
90
<div class="flex-text-block">
Original file line number Diff line number Diff line change 35
35
</div>
36
36
{{else}}
37
37
{{range $notification := .Notifications}}
38
- <div class="notifications-item tw-flex tw-items-center tw-flex-wrap gt -gap-3 gt-p-3" id="notification_{{.ID}}" data-status="{{.Status}}">
38
+ <div class="notifications-item tw-flex tw-items-center tw-flex-wrap tw -gap-2 gt-p-3" id="notification_{{.ID}}" data-status="{{.Status}}">
39
39
<div class="notifications-icon gt-ml-3 gt-mr-2 tw-self-start gt-mt-2">
40
40
{{if .Issue}}
41
41
{{template "shared/issueicon" .Issue}}
67
67
{{TimeSinceUnix .UpdatedUnix ctx.Locale}}
68
68
{{end}}
69
69
</div>
70
- <div class="notifications-buttons tw-items-center tw-justify-end gt -gap-2 gt-px-2">
70
+ <div class="notifications-buttons tw-items-center tw-justify-end tw -gap-1 gt-px-2">
71
71
{{if ne .Status 3}}
72
72
<form action="{{AppSubUrl}}/notifications/status" method="post">
73
73
{{$.CsrfTokenHtml}}
Original file line number Diff line number Diff line change 46
46
<form action="{{AppSubUrl}}/user/settings/account/email" class="ui form" method="post">
47
47
{{$.CsrfTokenHtml}}
48
48
<input name="_method" type="hidden" value="NOTIFICATION">
49
- <div class="tw-flex tw-flex-wrap gt -gap-3 ">
49
+ <div class="tw-flex tw-flex-wrap tw -gap-2 ">
50
50
<div class="ui selection dropdown">
51
51
<input name="preference" type="hidden" value="{{.EmailNotificationsPreference}}">
52
52
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
Original file line number Diff line number Diff line change @@ -142,27 +142,6 @@ Gitea's private styles use `g-` prefix.
142
142
.gt-py-4 { padding-top : 1rem !important ; padding-bottom : 1rem !important ; }
143
143
.gt-py-5 { padding-top : 2rem !important ; padding-bottom : 2rem !important ; }
144
144
145
- .gt-gap-0 { gap : 0 !important ; }
146
- .gt-gap-1 { gap : .125rem !important ; }
147
- .gt-gap-2 { gap : .25rem !important ; }
148
- .gt-gap-3 { gap : .5rem !important ; }
149
- .gt-gap-4 { gap : 1rem !important ; }
150
- .gt-gap-5 { gap : 2rem !important ; }
151
-
152
- .gt-gap-x-0 { column-gap : 0 !important ; }
153
- .gt-gap-x-1 { column-gap : .125rem !important ; }
154
- .gt-gap-x-2 { column-gap : .25rem !important ; }
155
- .gt-gap-x-3 { column-gap : .5rem !important ; }
156
- .gt-gap-x-4 { column-gap : 1rem !important ; }
157
- .gt-gap-x-5 { column-gap : 2rem !important ; }
158
-
159
- .gt-gap-y-0 { row-gap : 0 !important ; }
160
- .gt-gap-y-1 { row-gap : .125rem !important ; }
161
- .gt-gap-y-2 { row-gap : .25rem !important ; }
162
- .gt-gap-y-3 { row-gap : .5rem !important ; }
163
- .gt-gap-y-4 { row-gap : 1rem !important ; }
164
- .gt-gap-y-5 { row-gap : 2rem !important ; }
165
-
166
145
/*
167
146
gt-hidden must win all other "display: xxx !important" classes to get the chance to "hide" an element.
168
147
do not use:
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ export default {
240
240
@click.meta.exact =" commitClicked(commit.id, true)"
241
241
@click.shift.exact.stop.prevent =" commitClickedShift(commit)"
242
242
>
243
- <div class =" tw-flex-1 tw-flex tw-flex-col gt -gap-2 " >
243
+ <div class =" tw-flex-1 tw-flex tw-flex-col tw -gap-1 " >
244
244
<div class =" gt-ellipsis commit-list-summary" >
245
245
{{ commit.summary }}
246
246
</div >
Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ export default {
384
384
<h4 v-else class =" contributor-name" >
385
385
{{ contributor.name }}
386
386
</h4 >
387
- <p class =" tw-text-12 tw-flex gt -gap-2 " >
387
+ <p class =" tw-text-12 tw-flex tw -gap-1 " >
388
388
<strong v-if =" contributor.total_commits" >{{ contributor.total_commits.toLocaleString() }} {{ locale.contributionType.commits }}</strong >
389
389
<strong v-if =" contributor.total_additions" class =" text green" >{{ contributor.total_additions.toLocaleString() }}++ </strong >
390
390
<strong v-if =" contributor.total_deletions" class =" text red" >
You can’t perform that action at this time.
0 commit comments